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.63k stars 410 forks source link

Sonoff DualR3 becomes unavailable within Homeassistant #736

Closed bosmanrja closed 2 years ago

bosmanrja commented 2 years ago

Since a few days my Sonoff DualR3 is unavailable within Home assistant. It was before. Firmware of dual R3 is 1.4.0. It worked before, all other Sonoff devices are working within Home assistant. Within Ewelink all devices are working. Who can help?

pii commented 2 years ago

Same with my Dual R3

AlexxIT commented 2 years ago

Maybe you have errors in Hass log? Also you can enable debug mode.

bosmanrja commented 2 years ago

I found 2 interesting messages in the log, perhaps someone can advise:

2022-04-10 21:54:22 DEBUG (MainThread) [custom_components.hacs] <Integration AlexxIT/SonoffLAN> Running checks against v2.4.3 2022-04-10 21:54:23 DEBUG (MainThread) [custom_components.hacs] 'states' is undefined 2022-04-10 21:54:28 DEBUG (MainThread) [custom_components.hacs] 'trigger' is undefined

AlexxIT commented 2 years ago

This log about HACS problems. Not depends with this component

pii commented 2 years ago

No logs at all. The old cover entity got unavailable and changed to two separate switches. image

bosmanrja commented 2 years ago

No logs at all. The old cover entity got unavailable and changed to two separate switches. image

I noticed the same, I also have 2 separate switches. Any suggestion how to solve?

Simonz82 commented 2 years ago

Hi, I too have a dualR3 sonoff and in home assist I only ever see 2 separate switches, but I don't see the power measurements in WATT, is there any configuration to do to make the 2 new entities appear?

Thanks

bosmanrja commented 2 years ago

I installed the latest version of Sonoff and now it works again! Thanks!

Simonz82 commented 2 years ago

I have the latest sonoff lan 2.4.7 version made by you. device sw version 1.4.0 latest ewelink version on the smartphone 4.20.0 (android) but in Home assistant i only see the 2 switches, i don't see the power ampere and voltage.

pii commented 2 years ago

I installed the latest version of Sonoff and now it works again! Thanks!

Same! Works for me with v2.4.7.

AlexxIT commented 2 years ago

Problems only with DualR3 in cover mode? Please show debug logs

pii commented 2 years ago

The Dual R3 in cover mode shows as a cover instead of 2 switches after the 2.4.7 update. For me personally, everything is fixed.

felipebraz commented 2 years ago

I'm on 2.4.7 Sonoff Lan too and I have a DualR3 in measurement mode with 1.4.0 firmware, having the same problem. All sensors unknown or unavailable.

image

image

AlexxIT commented 2 years ago

Check new beta-version: https://github.com/AlexxIT/SonoffLAN/releases/tag/v3.0rc1

felipebraz commented 2 years ago

Problems keeps the same...

image

And now I have some new ones, other sensors wich usually works fine now has problems too (Sonoff POWR2):

image

And my switches are unresponsive (Sonoff TX2):

image

I fully removed the Integration (removed the configuration, removed all entities, removed Hacs files and folders and removed the integration from Hacs) and then reinstalled again doing the configuration from zero. Keeps the same issue.

Also I have this error on HA log:

`Logger: homeassistant Source: custom_components/sonoff/init.py:191 Integration: Sonoff (documentation, issues) First occurred: 11:45:44 (1 occurrences) Last logged: 11:45:44

Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/config/custom_components/sonoff/init.py", line 212, in internal_cache_setup registry.setup_devices(devices) File "/config/custom_components/sonoff/core/ewelink/init.py", line 52, in setup_devices entities = [cls(self, device) for cls in spec] File "/config/custom_components/sonoff/core/ewelink/init.py", line 52, in entities = [cls(self, device) for cls in spec] File "/config/custom_components/sonoff/switch.py", line 36, in init XEntity.init(self, ewelink, device) File "/config/custom_components/sonoff/core/entity.py", line 96, in init self.internal_update(params) File "/config/custom_components/sonoff/core/entity.py", line 112, in internal_update self.set_state(params) File "/config/custom_components/sonoff/switch.py", line 47, in set_state params = next( StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/config/custom_components/sonoff/init.py", line 191, in internal_normal_setup await internal_cache_setup(hass, entry, devices) RuntimeError: coroutine raised StopIteration`

AlexxIT commented 2 years ago

Fixed in v3.0rc2

Simonz82 commented 2 years ago

Check new beta-version: https://github.com/AlexxIT/SonoffLAN/releases/tag/v3.0rc1

hello, i have just updated to BETA version v3.0rc1 all the sonoff entities are not detected anymore (only some zigbee temometers), there is a problem i don't see anything anymore, if i install 2.4.7 again everything works fine as before.

Simonz82 commented 2 years ago

Fixed in v3.0rc2

now work all sonoff and i read the power from DUALR3 and read NSPanel temperature

TOP !!!!

brucehatherell commented 1 year ago

I had the same and unfortunately never invested further but chose to go the tasmota route which is stable…. Had I been able to get the power metrics within HA rather than in the EWeLink frame I would not have done the Tasmota flashing.

On 06 Apr 2022, at 12:51, NotHappy @.***> wrote:



Same with my Dual R3

— Reply to this email directly, view it on GitHubhttps://github.com/AlexxIT/SonoffLAN/issues/736#issuecomment-1090129566, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATBEK5Q6IS4NMRWGTHWLVOLVDVUCHANCNFSM5SJRHNMA. You are receiving this because you are subscribed to this thread.Message ID: @.***>