Hello HA friends, i have a question.
My solar panel meter outputs kWh and because I use 2 tariffs peak and off-peak (tariff 1 and 2), I would really like to calculate how much the solar panels have generated at peak and how much at off-peak. I also have a sensor that shows see which rate is currently being used.
Solar panel sensor:
- sensor.kwh_meter_energy_export
P1 meter tariif:
- sensor.p1_meter_tarief (which results in 1 or 2)
Tariffs peak and off-peak:
- Peak € 0,36075
- Off-peak. € 0,32036
I have already tried to create a sensor with a utility meter, but unfortunately I can’t figure it out. Is there a solution using .yaml with the above data, something like if the P1 meter is rate 1 then use Peak € 0.36075 and P1 meter is rate 2 then use Off-peak. €0.32036.
Thank you in advance for your efforts to help further, it is much appreciated.