Skip to content

Releases: martinarva/dynamic_energy_cost

0.4.2

28 May 06:59
3ec5f5c
Compare
Choose a tag to compare

Caution - Breaking change

As there was a request to use same sensor for different prices, unique ID was modified so that it will take account also pirce sensor ID. Because that, all sensors have now new ID and history will be lost.

FIX: Remove the old entities and renaming the new ones (_2) to the value of the old ones. This way history remains.

Fixes by @JannikL87

Version changed in manifest.json

0.4.1

13 May 06:54
2d2b0e9
Compare
Choose a tag to compare

Fix: POWER_SENSOR vas missing in .cont

0.4.0

10 May 07:10
275d54d
Compare
Choose a tag to compare

Thanks to @basbruss we have not entity selectors in config flow. #17

0.3.0

09 May 09:14
b145dba
Compare
Choose a tag to compare

Enhancements

  1. Monetary Classification and Total State Class:

    • Updated the energy and cost sensors to utilize the SensorDeviceClass.MONETARY and SensorStateClass.TOTAL. This enhancement allows Home Assistant to better understand and categorize the sensor data, ensuring that the sensors are correctly recognized as monetary units and that their states are accumulated totals. This update aids in improved integration with other Home Assistant features and automations that rely on financial and cumulative measurements.
      IMPORTANT: You will lose the history graph with this update because of Device and State class change. Correct value will remain.
  2. Reset Cost Service:

    • Introduced a new service dynamic_energy_cost.reset_cost that enables users to reset the cumulative energy costs and kWh counts for specified sensors. This functionality is crucial for users who need to start fresh measurements without having to manually adjust or recalibrate their sensors. This reset can be triggered through the Home Assistant UI or via automation scripts, offering flexibility and control over energy monitoring.

To reset the energy cost and cumulative kWh for a specific sensor, you can use the following service call in Home Assistant:

service: dynamic_energy_cost.reset_cost
target:
  entity_id: sensor.your_sensor_entity_id

These updates aim to enhance user experience and provide more robust control and monitoring capabilities for managing energy costs efficiently within the Home Assistant platform.

0.2.5

07 May 09:44
2dcd6cb
Compare
Choose a tag to compare
  • Migration to async_track_state_change_event: Updated the integration to use async_track_state_change_event in response to the deprecation of async_track_state_change in Home Assistant 2024.05. This change ensures compatibility with future versions of Home Assistant and improves the reliability of state change events.

0.2.4

26 Apr 12:31
08fbc4d
Compare
Choose a tag to compare

Power Based Sensors

Enhancements:

  • Utility Meter Update Logic: Improved the update mechanism for utility meters to exclude negative cost increments. This ensures that only positive values are added, maintaining the accuracy of cumulative energy costs.

Bug Fixes:

  • Daily Reset Timing: Resolved an issue where the daily reset for utility meters was occurring at random times. Daily resets are now correctly scheduled at 00:00, providing consistent and predictable behavior.

0.2.3

24 Apr 12:19
7cd068c
Compare
Choose a tag to compare

Enhancements:
Currency Extraction for kWh Sensors: Updated the BaseEnergyCostSensor to automatically extract the currency from the unit_of_measurement attribute of the configured ELECTRICITY_PRICE_SENSOR. This change ensures accurate currency usage in cost calculations for kWh-based energy sensors. The default currency is 'EUR' if extraction fails. Commit: 7cd068c

Notes:
This update applies only to kWh-based energy sensors and does not affect power (watt) sensors.

v0.2.2

24 Apr 08:31
0acf594
Compare
Choose a tag to compare

Bug Fix: The 'cumulative_energy_kwh' attribute now correctly resets on a daily, monthly, and yearly basis.

v0.2.1

20 Apr 07:07
379db40
Compare
Choose a tag to compare
Rename power_based_sensor.py to power_based_sensors.py

v0.2.0

19 Apr 14:10
2fdb6a7
Compare
Choose a tag to compare

Release Notes - Version 0.2.0

We're excited to release a new update for the Dynamic Energy Cost integration. This update provides users with enhanced options for monitoring and managing energy costs in Home Assistant.

New Features:

  • Energy Sensor Support: Users can now configure the integration to use an energy (kWh) sensor alongside or instead of a power (W) sensor. This addition allows for more precise cost calculations. Each change in the energy sensor triggers a new calculation, multiplying the difference by the current energy cost (e.g., Nordpool prices) and updating the cumulative sensors for daily, monthly, and yearly totals.
  • Device Integration: All sensors related to a specific setup are now grouped under a single device entry within Home Assistant, simplifying management and visibility.
  • Real-Time Cost Monitoring: The integration now includes a real-time cost sensor that calculates costs per hour (EUR/h), providing immediate feedback on your current energy expenditure.
  • Enhanced Sensor Attributes: Sensors based on energy consumption now include attributes for total energy used (kWh) and the average energy price. This feature is particularly useful for users aiming to optimize their energy usage during cheaper price hours and wish to track the effectiveness of such measures.