Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Changing Eufy Base status crashes whole Homebridge #518

Open
mariomaz87 opened this issue Feb 22, 2024 · 2 comments
Open

[Bug]: Changing Eufy Base status crashes whole Homebridge #518

mariomaz87 opened this issue Feb 22, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@mariomaz87
Copy link

What happened?

Since yesterday, changing the Eufy base status from Homekit crashes my whole Homebridge instance. It was working fine before.

Device Type

Station (Supported)

Plugin Version

v2.0.x (Supported)

HomeBridge Version

v1.6.x (Supported)

NodeJS Version

v18 (Supported)

Operating System

Raspbian 10+ (Supported)

Relevant log output

[02/22/2024, 08:57:55]  [EufySecurity]  INFO    Eufy Base Request to change station guard mode to: DISARM(3)
[2/22/2024, 8:57:56 AM] 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>)
[2/22/2024, 8:57:56 AM] Got SIGTERM, shutting down Homebridge...
[02/22/2024, 08:57:56]  [EufySecurity]  INFO    Finished shutdown!
[2/22/2024, 8:57:56 AM] Got SIGTERM, shutting down child bridge process...
[02/22/2024, 08:58:00]  [EufySecurity]  WARN    Eufy Base Changing guard mode to DISARM(3) did not complete. Retry...'
[2/22/2024, 8:58:00 AM] 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 Timeout._onTimeout (/homebridge/node_modules/homebridge-eufy-security/src/plugin/accessories/StationAccessory.ts:359:21)
    at listOnTimeout (node:internal/timers:569:17)
    at processTimers (node:internal/timers:512:7)
[2/22/2024, 8:58:01 AM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[2/22/2024, 8:58:06 AM] [HB Supervisor] Restarting Homebridge...

config

{
    "username": "email",
    "password": "password",
    "country": "IT",
    "deviceName": "",
    "stations": [
        {
            "serialNumber": "serialnumber",
            "manualTriggerModes": [
                1,
                2
            ],
            "hkNight": 3,
            "hkHome": 1,
            "hkAway": 0
        }
    ],
    "ignoreDevices": [
        "serialnumber",
        "serialnumber",
        "serialnumber",
        "serialnumber"
    ],
    "platform": "EufySecurity",
    "ignoreStations": [],
    "cleanCache": true
}
@mariomaz87 mariomaz87 added the bug Something isn't working label Feb 22, 2024
Copy link

Did you check this Common Issues pages ?

@mariomaz87
Copy link
Author

The crash happens only when changing to Off\Disarmed. I was using the "global settings" for this specific state. I changed it to Eufy Disarmed and now it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant