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.67k stars 414 forks source link

POW R2 no sensor value update #1455

Open buitre-buitaker opened 2 months ago

buitre-buitaker commented 2 months ago

Hi!

I installed the integration from HACS and it works nicely, but the sensors for my POW R2 (voltage, power, current,...) only updates if I toggle the state of the Led property. I think that this way I force to update them.

The devices are updated up to the last firmware version and I have installed latest HA version.

Thank you

Please, if you need more info, give me instructions to provide them.

AlexxIT commented 2 months ago

https://github.com/AlexxIT/SonoffLAN?tab=readme-ov-file#issues https://github.com/AlexxIT/SonoffLAN?tab=readme-ov-file#sonoff-pow

buitre-buitaker commented 1 month ago

Thank you, does it mean that it is not possible to get the voltage, current and power updated with a refresh interval in homeassisntant during local operation? Thanks

AlexxIT commented 1 month ago

Based on your description, it's possible: https://github.com/AlexxIT/SonoffLAN?tab=readme-ov-file#force-update

https://github.com/AlexxIT/SonoffLAN/blob/e5babd09f737d1371ce7b7df5fe5143f394deec2/custom_components/sonoff/core/entity.py#L122-L129

gluca commented 3 weeks ago

I have the same problem with a Sonoff PSF-X67 (A rack power switch with differential). Power is updated only when eWelink app is open on my phone. I've already: re-authenticate from the integration, logged out and in from eWelink app.

I do not have other HA instances nor eWelink addon (i am using HA with docker). homeassistant.update_entity does nothing.

I am quite sure is a recent behaviour (i am running HA 2024.9)