AlexxIT / SonoffLAN

Control Sonoff Devices with eWeLink (original) firmware over LAN and/or Cloud from Home Assistant
https://github.com/AlexxIT/Blog
MIT License
2.66k stars 414 forks source link

POWR316D Missing a total cumul for the energy dashboard summary #1477

Closed chriscatuk closed 2 weeks ago

chriscatuk commented 2 weeks ago

A nice detail in the energy dashboard is to show a per device consumption.

On 1st of the month, the monthly cumul of POWR316D is reset to zero and shows as a negative cost for the whole day equal to all of the past month cost.

Daily cumul is doing the same, daily.

Could we add a total cumul like HA requires for all energy tracking purpose?

we have

we would need

AlexxIT commented 2 weeks ago

For Hass energy dashboard is better to use integration sensor https://github.com/AlexxIT/SonoffLAN?tab=readme-ov-file#sonoff-pow

chriscatuk commented 2 weeks ago

For Hass energy dashboard is better to use integration sensor https://github.com/AlexxIT/SonoffLAN?tab=readme-ov-file#sonoff-pow

Already done before opening the ticket. But you'd rather have all users go to configuration.yaml do this instead of adding it to the integration? Not an easy feat for non expert users.

AlexxIT commented 2 weeks ago

Sonoff energy sensors are could data. With specific logic. With personal reset time. They not compatible with Hass energy dashboard.

Maybe them can be processed with some advanced logic. But I don't use them. And don't have time to make all researching.