Hi, I have a battery system which I successfully connected to a DC meter (PZEM-017).
But this sensor only allow positive values so I only have an increasing kWh value from the energy sensor.
Now I want to create a new sensor based on the following logic:
if: sensor.battery_voltage is equal/increasing in the past 30 or 60 seconds AND the time is between 6AM to 5PM then =charging is TRUE
Then based on that sensor I want to create another sensor that will record my sensor.battery_energy.
This will be my battery energy input of the day.
Is this possible?
Thanks!