plugin icon indicating copy to clipboard operation
plugin copied to clipboard

[Bug]: A crash happened when I attempted to change station guard mode

Open Hagalurt opened this issue 2 years ago • 1 comments

What happened?

A crash happened when I attempted to change the station guard mode (like changing "At home" to "Night")

Device Type

Station (Supported)

Plugin Version

v2.0.x (Supported)

HomeBridge Version

v1.6.x (Supported)

NodeJS Version

v18 (Supported)

Operating System

Docker (UnSupported)

Relevant log output

[10/08/2023, 16:29:04]  [EufySecurity]  INFO    Eufy Homebase Request to change station guard mode to: DISARM(3)
InvalidPropertyValueError: Invalid value for this property according to metadata
    at validValue (/homebridge/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/utils.ts:137:19)
    at Station.setGuardMode (/homebridge/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/http/station.ts:692:19)
    at StationAccessory.handleSecuritySystemTargetStateSet (/homebridge/node_modules/homebridge-eufy-security/src/plugin/accessories/StationAccessory.ts:350:19)
    at setValue (/homebridge/node_modules/homebridge-eufy-security/src/plugin/accessories/StationAccessory.ts:99:33)
    at SecuritySystemTargetState.setHandler (/homebridge/node_modules/homebridge-eufy-security/src/plugin/accessories/BaseAccessory.ts:161:25)
    at SecuritySystemTargetState.<anonymous> (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2547:42)
    at step (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:195:27)
    at Object.next (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:176:57)
    at /homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:169:75
    at new Promise (<anonymous>)

config

{
    "username": "[email protected]",
    "password": "xxxxxxxx",
    "country": "FR",
    "deviceName": "",
    "platform": "EufySecurity",
    "ignoreStations": [],
    "ignoreDevices": [],
    "cleanCache": true,
    "_bridge": {
        "username": "xxxxx:91:9A:E1:2C",
        "port": 45571
    }
}

Hagalurt avatar Oct 08 '23 14:10 Hagalurt

Did you check this Common Issues pages ?

github-actions[bot] avatar Oct 08 '23 14:10 github-actions[bot]