v1.1.2
New Feature
-
Support price sensors in EUR/MWh and EUR/Wh (#220)
The integration now automatically detects the price sensor's
unit_of_measurementand converts to per-kWh before calculating costs. Previously, price values were always treated as per-kWh, which caused 1000x incorrect costs for users with ENTSO-E, Nord Pool, or other integrations that report prices in EUR/MWh.Supported price units:
currency/kWh,currency/MWh,currency/Wh(any currency prefix). Unrecognised or missing units default to per-kWh (no change in behavior for existing setups).
No action required for existing users
If your price sensor is already in EUR/kWh (or your local currency per kWh), nothing changes. If you previously created a template sensor to convert EUR/MWh to EUR/kWh, you can now point directly to the original price sensor and remove the template.