Hi everyone, I just implemented this energy meter and it's working quite good. Thanks for all the help.
I have 1 question, however. Since my sensors runs on batteries, it sometimes dies. I then need to replace the batteries and "restart" the counting. It's not ideal, but I have no way of plugin the sensor to power next to the meter.
When the sensor dies, I read the kWh reading of the meter manually and store it in an input variable. How can I use this to set the kWh value of the mysensor variable at initialization?
I see this line: request(PC_CHILD_ID, V_VAR1);
, however it's never running for me. Somehow it does not work properly with home assistant.
Would request(KWH_CHILD_ID, V_KWH);
do the trick? (provided that I store the kWh value from the meter in the same state created by the mysensor S0 pulse counter)
thanks a lot