Closed btrfs-d closed 5 months ago
Did you check this Common Issues pages ?
I also saw this error when trying a 2.3.x release. I do not see it with v2.2.21. However there has been a long running issue with Eufy locks not responding when using Apple Home to request an action (lock/unlock). So, you might see if v2.2.21 resolves the error you see but don't get your hopes up on it actually doing anything useful.
@sparsematrix How long has that issue with the lock/unlock request from Home been going on? That's the only thing I'm really using this plugin for so if it doesn't work I'm stuck.
[homebridge-eufy-security] This plugin generated a warning from the characteristic 'Lock Target State': characteristic was supplied illegal value: number 3 exceeded maximum of 1.
if I downgrade to 2.2.21 I get the following
[EufySecurity] WARN This accessory is not compatible with HomeBridge Eufy Security plugin: Front Door Type: 180
hey if you're not using streaming video. you can try 2.3.11 (see https://github.com/homebridge-eufy-security/plugin/wiki/RC---Beta-Version)
hey if you're not using streaming video. you can try 2.3.11 (see https://github.com/homebridge-eufy-security/plugin/wiki/RC---Beta-Version)
This does allow me to control the lock, but the status of the lock is listed as "Unknown".
[03/15/2024, 13:19:52] [EufySecurity] INFO Front Door Lock target state set to: 0 [03/15/2024, 13:20:04] [EufySecurity] INFO Front Door Lock target state set to: 1 [03/15/2024, 13:20:04] [EufySecurity] WARN Front Door Unknown lock status feedback [03/15/2024, 13:20:04] [EufySecurity] WARN Front Door Unknown lock status feedback [3/15/2024, 1:20:04 PM] [homebridge-eufy-security] This plugin generated a warning from the characteristic 'Lock Target State': characteristic was supplied illegal value: number 3 exceeded maximum of 1. See https://homebridge.io/w/JtMGR for more info.
I see this with my locks as well, using LOCK_BLE
and LOCK_8530
for rear and front doors.
[03/16/2024, 16:33:41] [EufySecurity] INFO Front Door Lock target state set to: 0
[03/16/2024, 16:33:45] [EufySecurity] WARN Front Door Unknown lock status feedback
[03/16/2024, 16:33:45] [EufySecurity] WARN Front Door Unknown lock status feedback
[3/16/2024, 4:33:45 PM] [homebridge-eufy-security] This plugin generated a warning from the characteristic 'Lock Target State': characteristic was supplied illegal value: number 3 exceeded maximum of 1. See https://homebridge.io/w/JtMGR for more info.
[03/16/2024, 16:33:50] [EufySecurity] INFO Front Door Lock target state set to: 1
[03/16/2024, 16:33:51] [EufySecurity] WARN Back Door Unknown lock status feedback
[03/16/2024, 16:33:51] [EufySecurity] WARN Front Door Unknown lock status feedback
[03/16/2024, 16:33:51] [EufySecurity] WARN Back Door Unknown lock status feedback
[03/16/2024, 16:33:51] [EufySecurity] WARN Front Door Unknown lock status feedback
[3/16/2024, 4:33:51 PM] [homebridge-eufy-security] This plugin generated a warning from the characteristic 'Battery Level': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.
[3/16/2024, 4:33:51 PM] [homebridge-eufy-security] This plugin generated a warning from the characteristic 'Lock Target State': characteristic was supplied illegal value: number 3 exceeded maximum of 1. See https://homebridge.io/w/JtMGR for more info.
[3/16/2024, 4:33:51 PM] [homebridge-eufy-security] This plugin generated a warning from the characteristic 'Lock Target State': characteristic was supplied illegal value: number 3 exceeded maximum of 1. See https://homebridge.io/w/JtMGR for more info.
[03/16/2024, 16:33:57] [EufySecurity] WARN Front Door Unknown lock status feedback
[03/16/2024, 16:33:57] [EufySecurity] WARN Front Door Unknown lock status feedback
[3/16/2024, 4:33:57 PM] [homebridge-eufy-security] This plugin generated a warning from the characteristic 'Lock Target State': characteristic was supplied illegal value: number 3 exceeded maximum of 1. See https://homebridge.io/w/JtMGR for more info.
[03/16/2024, 16:34:59] [EufySecurity] WARN Back Door Unknown lock status feedback
[03/16/2024, 16:34:59] [EufySecurity] WARN Front Door Unknown lock status feedback
[03/16/2024, 16:34:59] [EufySecurity] WARN Back Door Unknown lock status feedback
[03/16/2024, 16:34:59] [EufySecurity] WARN Front Door Unknown lock status feedback
[3/16/2024, 4:34:59 PM] [homebridge-eufy-security] This plugin generated a warning from the characteristic 'Battery Level': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.
[3/16/2024, 4:34:59 PM] [homebridge-eufy-security] This plugin generated a warning from the characteristic 'Lock Target State': characteristic was supplied illegal value: number 3 exceeded maximum of 1. See https://homebridge.io/w/JtMGR for more info.
[3/16/2024, 4:34:59 PM] [homebridge-eufy-security] This plugin generated a warning from the characteristic 'Lock Target State': characteristic was supplied illegal value: number 3 exceeded maximum of 1. See https://homebridge.io/w/JtMGR for more info.
[03/16/2024, 16:35:59] [EufySecurity] WARN Back Door Unknown lock status feedback
[03/16/2024, 16:35:59] [EufySecurity] WARN Front Door Unknown lock status feedback
[03/16/2024, 16:35:59] [EufySecurity] WARN Back Door Unknown lock status feedback
[03/16/2024, 16:35:59] [EufySecurity] WARN Front Door Unknown lock status feedback
[3/16/2024, 4:35:59 PM] [homebridge-eufy-security] This plugin generated a warning from the characteristic 'Battery Level': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.
[3/16/2024, 4:35:59 PM] [homebridge-eufy-security] This plugin generated a warning from the characteristic 'Lock Target State': characteristic was supplied illegal value: number 3 exceeded maximum of 1. See https://homebridge.io/w/JtMGR for more info.
[3/16/2024, 4:35:59 PM] [homebridge-eufy-security] This plugin generated a warning from the characteristic 'Lock Target State': characteristic was supplied illegal value: number 3 exceeded maximum of 1. See https://homebridge.io/w/JtMGR for more info.
[03/16/2024, 16:36:59] [EufySecurity] WARN Back Door Unknown lock status feedback
[03/16/2024, 16:36:59] [EufySecurity] WARN Front Door Unknown lock status feedback
[03/16/2024, 16:36:59] [EufySecurity] WARN Back Door Unknown lock status feedback
[03/16/2024, 16:36:59] [EufySecurity] WARN Front Door Unknown lock status feedback
[3/16/2024, 4:36:59 PM] [homebridge-eufy-security] This plugin generated a warning from the characteristic 'Battery Level': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.
[3/16/2024, 4:36:59 PM] [homebridge-eufy-security] This plugin generated a warning from the characteristic 'Lock Target State': characteristic was supplied illegal value: number 3 exceeded maximum of 1. See https://homebridge.io/w/JtMGR for more info.
[3/16/2024, 4:36:59 PM] [homebridge-eufy-security] This plugin generated a warning from the characteristic 'Lock Target State': characteristic was supplied illegal value: number 3 exceeded maximum of 1. See https://homebridge.io/w/JtMGR for more info.
is this 2.3.11 logs version ? can you enable debug on global settings ?
is this 2.3.11 logs version ? can you enable debug on global settings ?
Yes, mine are being pulled in on the latest version, 2.3.11.
[3/17/2024, 3:15:01 PM] [homebridge-eufy-security] This plugin generated a warning from the characteristic 'Lock Target State': characteristic was supplied illegal value: number 3 exceeded maximum of 1. See https://homebridge.io/w/JtMGR for more info.
[3/17/2024, 3:15:01 PM] [homebridge-eufy-security] Error:
at LockTargetState.Characteristic.characteristicWarning (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:3011:105)
at LockTargetState.Characteristic.validateUserInput (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2927:14)
at LockTargetState.<anonymous> (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2405:24)
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 fulfilled (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:166:62)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
[03/17/2024, 15:16:01] [EufySecurity] WARN Back Door Unknown lock status feedback
[03/17/2024, 15:16:01] [EufySecurity] WARN Front Door Unknown lock status feedback
[03/17/2024, 15:16:01] [EufySecurity] WARN Back Door Unknown lock status feedback
[03/17/2024, 15:16:01] [EufySecurity] WARN Front Door Unknown lock status feedback
[3/17/2024, 3:16:01 PM] [homebridge-eufy-security] This plugin generated a warning from the characteristic 'Battery Level': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.
[3/17/2024, 3:16:01 PM] [homebridge-eufy-security] Error:
at BatteryLevel.Characteristic.characteristicWarning (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:3011:105)
at BatteryLevel.Characteristic.validateUserInput (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2903:14)
at BatteryLevel.<anonymous> (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2405:24)
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 fulfilled (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:166:62)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
[3/17/2024, 3:16:01 PM] [homebridge-eufy-security] This plugin generated a warning from the characteristic 'Lock Target State': characteristic was supplied illegal value: number 3 exceeded maximum of 1. See https://homebridge.io/w/JtMGR for more info.
[3/17/2024, 3:16:01 PM] [homebridge-eufy-security] Error:
at LockTargetState.Characteristic.characteristicWarning (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:3011:105)
at LockTargetState.Characteristic.validateUserInput (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2927:14)
at LockTargetState.<anonymous> (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2405:24)
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 fulfilled (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:166:62)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
[3/17/2024, 3:16:01 PM] [homebridge-eufy-security] This plugin generated a warning from the characteristic 'Lock Target State': characteristic was supplied illegal value: number 3 exceeded maximum of 1. See https://homebridge.io/w/JtMGR for more info.
[3/17/2024, 3:16:01 PM] [homebridge-eufy-security] Error:
at LockTargetState.Characteristic.characteristicWarning (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:3011:105)
at LockTargetState.Characteristic.validateUserInput (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2927:14)
at LockTargetState.<anonymous> (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2405:24)
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 fulfilled (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:166:62)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
I'm also willing to debug this with you as well.
Looks like boolean values are missing from the state mapping here and instead should be:
const lockStatusMap: Record<number | boolean, CharacteristicValue> = {
true: this.platform.Characteristic.LockCurrentState.SECURED,
false: this.platform.Characteristic.LockCurrentState.UNSECURED,
4: this.platform.Characteristic.LockCurrentState.SECURED,
3: this.platform.Characteristic.LockCurrentState.UNSECURED,
5: this.platform.Characteristic.LockCurrentState.JAMMED,
};
I attempted to reproduce jammed states, but not sure if my lock reports that properly, as it only seems to report target states. The other approach might be to adapt the boolean values into their respective state.
can you try 2.3.14?
In fact JAMMED event should be handled another way. I've implemented and now we rely on isLocked()
instead of trying to decode ourself.
can you try 2.3.14? In fact JAMMED event should be handled another way. I've implemented and now we rely on
isLocked()
instead of trying to decode ourself.
Sorry for the late reply, I've been swamped with PI planning meetings at work and have been exhausted. Seems to have been fixed after the update for me. I won't speak for the others here, but I am seeing the proper states being reproduced in Homebridge and Home Assistant. Thanks for the quick fix, and being quick to integrate 3.0 of the Eufy security library!
can you try 2.3.14? In fact JAMMED event should be handled another way. I've implemented and now we rely on
isLocked()
instead of trying to decode ourself.
This is working for me as well. Thanks for this!
What happened?
Trying to use my Eufy Smart Lock R10 with HomeKit. I just want to be able to lock/unlock from my phone. See log detail below for relevant information.
Device Type
other (UnSupported)
Plugin Version
beta (Best Effort)
HomeBridge Version
v1.6.x (Supported)
NodeJS Version
v18 (Supported)
Operating System
Ubuntu 18.04+ (Supported)
Relevant log output
config