Since the energy dashboard won’t integrate rates with consumed solar, I figured I’d fix that on my own.
Power produced - power sent to the grid * hourly rate gives me exactly what I want, but as power produced resets 5 minutes past midnight while power sent to the grid resets at midnight, I get the wrong readings…
- platform: template
sensors:
total_solar_saved:
value_template: "{{ (states('sensor.hytta_total_energy_today') | float(0) - states('sensor.accumulated_production') | float(0)) * states('sensor.nordpool_kwh_oslo_nok_3_10_025') | float(0) | round(2) }}"
unit_of_measurement: 'kr'
Unfortunately I can’t find any way to fix the offset from my Growatt inverter. Does anyone have any idea how to mediate this issue?