bwp91 / homebridge-ewelink

Homebridge plugin to integrate eWeLink devices into HomeKit.
MIT License
384 stars 126 forks source link

Sonoff WiFi sensor issue #482

Open Gambl2022 opened 1 year ago

Gambl2022 commented 1 year ago

What issue do you have? Please be as thorough and explicit as possible.

DW2 sensor not being recognized and always showing closed in Homekit. 2 channel Sonofff Dual switch works corrrectly. The DW2 works correctly in the ewelink app. It will also work for a short period if the homebridge is rebooted.

Details of your setup.

v1.6.0

Please paste any relevant logs below.

[06/04/2023, 09:11:27] [eWeLink] Fetching devices from eWeLink home/id [My Home] [5ed215c6879f1700087fcb70].
[06/04/2023, 09:11:31] [eWeLink] LAN monitoring started.
[06/04/2023, 09:11:31] [eWeLink] [Camera] has not been added as it cannot be supported.
[06/04/2023, 09:11:31] [eWeLink] [Gate] initialising with options {"hideChannels":"0","inchChannels":"","inUsePowerThreshold":0,"logging":"standard","showAs":"default"}.
[06/04/2023, 09:11:32] [eWeLink] [Gate] initialised and found locally with IP [192.168.1.98] [2:0285].
[06/04/2023, 09:11:32] [eWeLink] [Gate] initialising with options {"logging":"debug","lowBattThreshold":25,"showAs":"default"}.
[06/04/2023, 09:11:32] [eWeLink] [Gate] initialised and LAN mode unavailable as not discovered/supported [154:DW2-Wi-Fi-L].
[06/04/2023, 09:11:34] [eWeLink] ✓ Setup complete. Interested in sponsoring this plugin?
Config file
{
            "name": "eWeLink",
            "username": "*****************",
            "password": "******************",
            "mode": "auto",
            "language": "en",
            "multiDevices": [
                {
                    "label": "Gate",
                    "deviceId": "100146f785",
                    "deviceModel": "dual_dualr2",
                    "showAs": "default",
                    "hideChannels": "0"
                }
            ],
            "sensorDevices": [
                {
                    "label": "Sensor",
                    "deviceId": "10016c8565",
                    "deviceModel": "dw",
                    "showAs": "default",
                    "overrideLogging": "debug"
                }
            ],
            "platform": "eWeLink"
ravny commented 1 year ago

Hi,

have issue with DW2-Wi sensor. I can see device in eWeLink and also status, but I dont see this door sensor in HomeKit. All the other switches etc. I see in the HomeKit. Im using HOOBS In the bridege I enable debug logging and see this

    1. 2023, 10:07:11eWeLink BridgeeWeLinkInitialising plugin v10.4.0 | System linux | Node v16.20.0 | HB v1.6.0 | HAPNodeJS v0.11.0...
      1. 2023, 10:07:11eWeLink BridgeeWeLinkPlugin initialised. Setting up accessories....
      1. 2023, 10:07:11eWeLink BridgeBridge is running on port 51826.
      1. 2023, 10:07:13eWeLink BridgeeWeLinkFetching devices from eWeLink home/id [My Home] [xxxxxxxxxxxxxxxxxxxxxx].
      1. 2023, 10:07:17eWeLink BridgeeWeLinkLAN monitoring started.
    1. 2023, 10:07:17eWeLink BridgeeWeLink[Door] initialising with options {"logging":"standard","lowBattThreshold":25,"showAs":"default"}.
    1. 2023, 10:07:17eWeLink BridgeeWeLinkWARNING[Door] has been reported [offline] via WS.
    1. 2023, 10:07:17eWeLink BridgeeWeLink[Door] initialised and LAN mode unavailable as not discovered/supported [102:DW2-Wi-Fi].
    1. 2023, 10:07:17eWeLink BridgeeWeLinkInternal API listening on port [36059].
    1. 2023, 10:07:19eWeLink BridgeeWeLink✓ Setup complete. Have time to give this plugin a review? https://bit.ly/hb-ewelink-review

Any suggestion what could be wrong ?

Thank you