jfarmer08 / homebridge-wyze-smart-home

Wyze Smart Home plugin for Homebridge.
MIT License
93 stars 14 forks source link

HomeBridge Sees Wyze Switches as Always On #200

Closed TheRealConJon closed 4 months ago

TheRealConJon commented 6 months ago

I have two Wyze Switches for lights. HomeBridge is set up and this plugin used to control the accessories. HomeBridge thinks the Wyze Switches are always on. When I turn them off in HomeBridge or the Home App they are redetected as on within just a few short seconds. Logs show this: [11/12/2023, 13:32:42] [homebridge-wyze-smart-home] This plugin generated a warning from the characteristic 'On': characteristic value expected boolean and received undefined. See https://homebridge.io/w/JtMGR for more info. [11/12/2023, 13:32:42] [homebridge-wyze-smart-home] This plugin generated a warning from the characteristic 'On': characteristic value expected boolean and received undefined. See https://homebridge.io/w/JtMGR for more info.

To Reproduce: Not sure, it just is always like this for me

Expected behavior: To be able to turn on and off the Switches from HomeBridge and HomeApp.

Logs: Logs show this: [11/12/2023, 13:32:42] [homebridge-wyze-smart-home] This plugin generated a warning from the characteristic 'On': characteristic value expected boolean and received undefined. See https://homebridge.io/w/JtMGR for more info. [11/12/2023, 13:32:42] [homebridge-wyze-smart-home] This plugin generated a warning from the characteristic 'On': characteristic value expected boolean and received undefined. See https://homebridge.io/w/JtMGR for more info. Show the Homebridge logs here, remove any sensitive information.

Plugin Config:

{
    "bridge": {
        "name": "Homebridge C4B1",
        "username": "0E:59:DA:EB:C4:B1",
        "port": 51654,
        "pin": "758-59-958",
        "advertiser": "avahi"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "auth": "form",
            "theme": "auto",
            "tempUnits": "f",
            "lang": "auto",
            "platform": "config"
        },
        {
            "name": "Wyze",
            "username": "****",
            "password": "****",
            "keyId": " ****",
            "apiKey": "****",
            "mfaCode": "****",
            "refreshInterval": 60000,
            "entryExitDelay": 30,
            "showAdvancedOptions": false,
            "logging": "none",
            "excludeMacAddress": false,
            "excludedeviceType": false,
            "platform": "WyzeSmartHome"
        },
        {
            "controllers": [
                {
                    "address": "172.32.16.25",
                    "defaultDoorbellMessage": "Welcome! :)",
                    "doorbellMessages": [
                        {
                            "duration": 5,
                            "message": "If you need us to answer"
                        },
                        {
                            "duration": 5,
                            "message": "Please ring the doorbell again"
                        }
                    ],
                    "name": "Beans_NVR",
                    "password": "Aep4j6c3*DFG4wwkFYNXquRUYZ*xc3fr",
                    "username": "Homebridge"
                }
            ],
            "name": "UniFi Protect",
            "options": [
                "Disable.Log.HKSV.6022326B2196",
                "Disable.Log.Doorbell.6022326B2196",
                "Enable.Motion.Duration.6022326B2196.10",
                "Enable.Motion.OccupancySensor.6022326B2196",
                "Enable.Motion.OccupancySensor.Vehicle.6022326B2196",
                "Enable.Motion.SmartDetect.6022326B2196",
                "Enable.Video.Transcode.Hardware.6022326B2196",
                "Enable.Video.HKSV.Record.Only.High.6022326B2196"
            ],
            "platform": "UniFi Protect"
        }
    ]
}

Screenshots:

Environment:

github-actions[bot] commented 6 months ago

Message that will be displayed on users' first issue

detriment commented 6 months ago

you should change all the credentials you just posted to a public github repository

TheRealConJon commented 6 months ago

you should change all the credentials you just posted to a public github repository

Done. Didn't think about it. Would be nice to have a warning for that.

carTloyal123 commented 4 months ago

@TheRealConJon is this resolved or you are still having an issue?