github zacs/ha-energycalc v2.0.0

3 hours ago

v2.0.0

Requires Home Assistant 2026.8.0 or newer.

Fixes energy sensor creation on HA 2026.8 and adopts the updated pattern for
helpers linking to devices
.

Fixed

  • Energy sensors failed to be created on 2026.8 with
    IntegrationSensor.__init__() got an unexpected keyword argument 'hass'.
  • The reset button never reset anything, and did not clear the long term
    statistics behind the Energy Dashboard.
  • create_energy_sensor did nothing; remove_energy_sensor left the config
    entry and reset button behind.
  • Real time discovery of new power sensors never ran.
  • The options dialog raised an error and was empty. It has been removed.
  • Power sensors without a device_class produced sensors the Energy Dashboard
    rejected.
  • A device where only some outlets were set up is now discoverable for the rest.
  • Removing one power sensor from a multi sensor entry no longer throws away the
    history of the others.

Changed

  • Entities attach to the source device with device_entry instead of claiming
    it with device_info. EnergyCalc is no longer listed as an integration on
    devices it did not create. Entities still appear on the source device's page.
  • Energy sensors are keyed on the source entity's registry ID, so renaming a
    power sensor keeps its history. Moving one to another device moves the energy
    sensor with it.
  • Discovery is debounced and runs once Home Assistant has started.
  • integration_type is now helper.

Added

  • Manual setup from the UI: Add Integration → EnergyCalc to pick power
    sensors and set the integration method, unit, precision and sub-interval.
  • A migration onto the new device linking and unique ID scheme. Entity IDs and
    recorded history are preserved.

Upgrading

Existing entries migrate automatically on first start. Users with partially
covered devices will see new discovery flows for the outlets that were
previously suppressed.

Don't miss a new ha-energycalc release

NewReleases is sending notifications on new releases.