energytariff
energytariff copied to clipboard
More stable energy estimate
Hi! Great project. Seems to contain most of the sensors I have created for myself. But i noticed your energy estimate graphs were fluctuating a lot.
I made an energy estimate that does not fluctuate wildly, which i use for controlling loads. Works perfectly for controlling electric car charging with a proportional controller.
Template: {{ states("sensor.energy_consumed_current_hour") | float * 3700 / (now().minute*60 + now().second + 100) }}
https://github.com/sangvikh/homeassistant-templates
Another idea would be to use the nordpool integration as a price source and calculate total cost including all tarriffs. Noticed that Glitre Nett have created an API for getting the tarrifs, which seems to change on a quarterly basis now, maybe that could be used?
https://www.glitrenett.no/kunde/nettleie-og-priser/api-for-nettleiepriser