StyraHem / ShellyForHASS

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

[FR] Please Add 'Unavailable State' to sensors #724

Closed auanasgheps closed 1 year ago

auanasgheps commented 1 year ago

Is your feature request related to a problem? Please describe.

My feature request is related to a problem which is described here. #711 is affected too.

The Total Consumption sensor of my Shelly EM reported 0, then restored the correct amount. This is not the correct behavior, because in a scenario like this one the energy consumption reported to HA is literally double the actual amount because it's summing 0 + the new value. I have no idea why Total Consumption has reported 0: the power consumption at the time is correct. image

Describe the solution you'd like

As suggested here: integration developer should implement an “unavailable state”

This feature should be enabled for all Shelly sensors, not just Total Consumption.

Describe alternatives you've considered

There are manual workaround that I can consider like filtering the sensor output.

Additional context

You can find more information here.

I am using:

Cippo2019 commented 1 year ago

Yes, this is exactly what I mean..

auanasgheps commented 1 year ago

Perfect, I updated the issue!

Cippo2019 commented 1 year ago

DId you get info on that ? thanks in advance

auanasgheps commented 1 year ago

I gave up and started using the official Shelly integration, so I will close this issue because I don't really care about it anymore.