StyraHem / ShellyForHASS

Shelly smart home platform for Home Assistant
MIT License
619 stars 111 forks source link

[BUG] Firmware Update breaks statistics (utility meter...) #605

Closed Alex-joomla closed 2 years ago

Alex-joomla commented 2 years ago

Environment

Describe the bug

Every Firmwareupdate and occasionally on device restarts the utility meter statistics fails because of a corrupt database entry (See screenshots). There is a thread @ utility meter group which describes the Problem and how to fix this. Please fix it, otherwise all long term Energy metering is impossible. In the screenshots you see the time, wenn the shelly 3em got updated. The negative Value must not be there. totalverbrauch.haus is a template sensor which adds the three phases to one value

Steps to Reproduce

Expected behavior

Screenshots

Bildschirmfoto 2021-11-14 um 20 44 16 Bildschirmfoto 2021-11-14 um 20 42 54 Bildschirmfoto 2021-11-14 um 20 42 25 Bildschirmfoto 2021-11-14 um 20 37 35

Traceback/Error logs

Additional context

hakana commented 2 years ago

Please enter a URL to the specific fix