homebridge-eufy-security / plugin

Homebridge plugin to control certain Eufy Security devices
Apache License 2.0
158 stars 24 forks source link

[Bug]: missing state for "off" #538

Closed gianlucad3 closed 2 months ago

gianlucad3 commented 2 months ago

What happened?

I have the global mapping "homekit off" set to "eufy disarmed". When disarming the alarm with the keypad the button "off" sets the station in the "off" state though, not disarmed. Since the off state is not recognized by homekit, in HK the alarm remains in the previous (alarmed) state.

Device Type

Station (Supported)

Plugin Version

v2.0.x (Supported)

HomeBridge Version

v1.7.x (Supported)

NodeJS Version

v20 (Supported)

Operating System

Ubuntu 22.04+ (Supported)

Relevant log output

[04/07/2024, 11:51:44]  [EufySecurity]  ERROR   Eufy HomeBase handleSecuritySystemCurrentStateGets: Wrong return value
[04/07/2024, 11:51:44]  [EufySecurity]  ERROR   Eufy HomeBase handleSecuritySystemTargetStateGet: Wrong return value

config

{
            "enableDetailedLogging": false,
            "CameraMaxLivestreamDuration": 30,
            "pollingIntervalMinutes": 10,
            "hkHome": 1,
            "hkAway": 0,
            "hkNight": 3,
            "hkOff": 63,
            "ignoreStations": [],
            "ignoreDevices": [
                "T8010P1320454127",
                "T8140P6121050951",
                "T8140P61210521C4"
            ],
            "country": "US",
            "cameras": [
                {
                    "serialNumber": "T8960P1023531041",
                    "rtsp": false,
                    "talkback": false
                },
                {
                    "serialNumber": "T8140P6121050951",
                    "rtsp": false
                },
                {
                    "serialNumber": "T8140P61210521C4",
                    "rtsp": false
                }
            ],
            "cleanCache": true,
            "unbridge": true,
            "platform": "EufySecurity",
            "username": 
            "password": 
            "stations": [
                {
                    "serialNumber": "T8010P13234107E7",
                    "manualTriggerModes": [
                        1
                    ]
                },
                {
                    "serialNumber": "T8010P1320454127",
                    "manualTriggerModes": [
                        1
                    ]
                }
            ],
            "_bridge": {
                "username": "0E:84:C8:B7:41:B8",
                "port": 45469
            }
        },
github-actions[bot] commented 2 months ago

Did you check this Common Issues pages ?

lenoxys commented 2 months ago

hello did you tried on 3.0.0?

gianlucad3 commented 2 months ago

I didn't. is it the recommended version now? thank you!

lenoxys commented 2 months ago

if it's an issue for you yes.

deus117 commented 2 months ago

Issue persists on 3.0.0 and 3.0.1, I upgraded from 2.2.20 where Eufy mode 'off' would show as disarmed in HomeKit (if that's any help..). I've reset the plugin and re-added accessories too.

deus117 commented 2 months ago

The Off mode is created when you connect the keypad to the homebase but doesn't appear in the plugin under global settings > Change how each mode in the HomeKit security system is mapped to the modes in the Eufy App.

Home/Away keypad buttons to HK work fine. in V2.2.20 Off/Disarmed modes in Eufy both mapped to Off in HK. Have just seen there is an open enhancement #478

lenoxys commented 2 months ago

Can you provide log with debug enable of the changing arming state so I can get the different IDs used?