On my meter, kWh net never decreases. However, Watts does go negative. This PR adds sensors that can be integrated in Home Assistant to make net metering make sense.
Furthermore, if using e.g. https://esphome.io/components/time/homeassistant.html, time can jump backwards, which breaks communication with the meter. This PR adds sanity checks to
allow usage of time components without breaking compilation, and
handling backwards time jumps by resetting the next_ variable(s)
On my meter, kWh net never decreases. However, Watts does go negative. This PR adds sensors that can be integrated in Home Assistant to make net metering make sense. Furthermore, if using e.g. https://esphome.io/components/time/homeassistant.html, time can jump backwards, which breaks communication with the meter. This PR adds sanity checks to
next_
variable(s)