Releases: martinarva/dynamic_energy_cost
0.5.0
Power Based Sensors:
Energy Based Sensors:
0.4.2
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
Fix: POWER_SENSOR vas missing in .cont
0.4.0
0.3.0
Enhancements
-
Monetary Classification and Total State Class:
- Updated the energy and cost sensors to utilize the
SensorDeviceClass.MONETARY
andSensorStateClass.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.
- Updated the energy and cost sensors to utilize the
-
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.
- Introduced a new service
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
- Migration to
async_track_state_change_event
: Updated the integration to useasync_track_state_change_event
in response to the deprecation ofasync_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
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
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
Bug Fix: The 'cumulative_energy_kwh' attribute now correctly resets on a daily, monthly, and yearly basis.
v0.2.1
Rename power_based_sensor.py to power_based_sensors.py