mdegat01 / addon-amr2mqtt

HA Addon which runs rtlamr to read IDM power meter data and send to MQTT broker
MIT License
33 stars 15 forks source link

Keep same interval start across IDM interval #45

Closed mdegat01 closed 2 years ago

mdegat01 commented 2 years ago

Recalculating interval start time every reading is highly inaccurate when time is in picoseconds. Calculate it the first time we see a new interval for a meter then keep using that time until interval ends.