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

Support for 1 channel Inching/Self-locking Switch 5V 12V #308

Closed Roberto6969 closed 3 years ago

Roberto6969 commented 3 years ago

Hello!

Thank you for your great work - integration works fantastic! The only problem I have is support for https://ewelink.coolkit.cc/?p=143 1 channel Inching/Self-locking Switch 5V 12V. I can't get entity of this device. Is this device supported? How can I integrate it?

Thank You! image

AlexxIT commented 3 years ago

It should be supported. Show debug logs.

Roberto6969 commented 3 years ago

Yes, but please let me know how can I filter log events - is this the right way:

logger: default: debug logs: custom_components.sonoff: debug

Or do you want complete log?

AlexxIT commented 3 years ago

Check debug mode in readme

Roberto6969 commented 3 years ago

Here it is. Problematic device is: Device ID: 100002ca68 FW Name: PSA-B01-GL In log: 2020-12-12 10:33:44 INFO sonoff_local 100002ca68 <= Local1 | No devicekey for device Log.txt

Roberto6969 commented 3 years ago

Actually, this is a problem: DEBUG sonoff_cloud 8 devices loaded from the Cloud Server It should load 9 devices, 9th is missing in HA.

When trigger device, this INFO happens: INFO sonoff_local 100002ca68 <= Local1 | No devicekey for device

Also find out: DEBUG sonoff_local Zeroconf Removed: eWeLink_100002ca68._ewelink._tcp.local.

If it is useful: Alexa can control this device; device is connected via WiFi range extender (no NAT, getting IP from the same DHCP server). I can PING it. Device is shred with another user. LAN control doesn't change anything.

Roberto6969 commented 3 years ago

Does anyone have an idea, what is the meaning of No devicekey for device message? So far I have found out:

  1. Local or Cloud mode: no effect, same error all the time
  2. file .sonoff.json has definitions for all devices except for the missing one I have devicekey but I have no idea how can I force HA to detect the device?
AlexxIT commented 3 years ago

Maybe device have been added to other ewelink account?

Roberto6969 commented 3 years ago

Of course ... many thanks for magic word "other ewelink account"! Since transition from Peter's project to your's, I have connect N1 in other network segment. I have blamed this change, but in fact I just forget to share N1 device from phone's account to HA's account.

Thank You again!