bropat / eufy-security-ws

Small server wrapper around eufy-security-client library to access it via a WebSocket.
MIT License
176 stars 26 forks source link

InvalidPropertyError #56

Closed MechEng70 closed 2 years ago

MechEng70 commented 2 years ago

Seeing this in the log of the add-on:

2021-11-29 15:55:42.730  ERROR Station runtime state error (station: T8002 channel: 2) 
 InvalidPropertyError  Property battery invalid
details:
{
  name: 'InvalidPropertyError'
}
error stack:
• device.ts:279 getPropertyMetadata
    node_modules/eufy-security-client/src/http/device.ts:279:15
• eufysecurity.ts:1213 onStationRuntimeState
    node_modules/eufy-security-client/src/eufysecurity.ts:1213:44
• eufysecurity.ts:347 <anonymous>
    node_modules/eufy-security-client/src/eufysecurity.ts:347:150
• node:events:390 emit
    node:events:390:28
• station.ts:2535 onRuntimeState
    node_modules/eufy-security-client/src/http/station.ts:2535:14
• station.ts:65 <anonymous>
    node_modules/eufy-security-client/src/http/station.ts:65:114
• node:events:390 emit
    node:events:390:28
• session.ts:1218 handleDataControl
    node_modules/eufy-security-client/src/p2p/session.ts:1218:26
• session.ts:898 handleData
    node_modules/eufy-security-client/src/p2p/session.ts:898:18
• session.ts:889 parseDataMessage
    node_modules/eufy-security-client/src/p2p/session.ts:889:26
2021-11-29 15:56:15.682  WARN Station T8124 - Tried all hosts, no connection could be established 
2021-11-29 15:56:15.682  INFO Timeout connecting to station T8124
2021-11-29 15:57:05.745  WARN Station T8124 - Tried all hosts, no connection could be established 
2021-11-29 15:57:05.746  INFO Timeout connecting to station T8124
2021-11-29 15:57:45.826  ERROR Station runtime state error (station: T8002 channel: 1) 
 InvalidPropertyError  Property battery invalid
details:
{
  name: 'InvalidPropertyError'
}
error stack:
• device.ts:279 getPropertyMetadata
    node_modules/eufy-security-client/src/http/device.ts:279:15
• eufysecurity.ts:1213 onStationRuntimeState
    node_modules/eufy-security-client/src/eufysecurity.ts:1213:44
• eufysecurity.ts:347 <anonymous>
    node_modules/eufy-security-client/src/eufysecurity.ts:347:150
• node:events:390 emit
    node:events:390:28
• station.ts:2535 onRuntimeState
    node_modules/eufy-security-client/src/http/station.ts:2535:14
• station.ts:65 <anonymous>
    node_modules/eufy-security-client/src/http/station.ts:65:114
• node:events:390 emit
    node:events:390:28
• session.ts:1218 handleDataControl
    node_modules/eufy-security-client/src/p2p/session.ts:1218:26
• session.ts:898 handleData
    node_modules/eufy-security-client/src/p2p/session.ts:898:18
• session.ts:889 parseDataMessage
    node_modules/eufy-security-client/src/p2p/session.ts:889:26
2021-11-29 15:58:05.757  WARN Station T8124 - Tried all hosts, no connection could be established 
2021-11-29 15:58:05.758  INFO Timeout connecting to station T8124
2021-11-29 15:58:51.977  INFO Connected to station T8124 on host 172.16.5.160 and port 11294 
2021-11-29 15:59:01.847  INFO Disconnected from station T8124

restarted the addon and this is the logs:

2021-11-29 16:06:05.242  INFO Eufy Security server listening on port 3000 
2021-11-29 16:06:07.573  INFO Connected to station T8002 on host 172.16.5.204 and port 15235 
2021-11-29 16:06:07.606  INFO Connected to station T8200 on host 172.16.5.163 and port 17178 
2021-11-29 16:06:07.920  INFO Push notification connection successfully established 
2021-11-29 16:06:11.945  INFO Connected to station T8124 on host 172.16.5.159 and port 15154 
2021-11-29 16:06:13.436  ERROR Station runtime state error (station: T8002 channel: 1) 
 InvalidPropertyError  Property battery invalid
details:
{
  name: 'InvalidPropertyError'
}
error stack:
• device.ts:279 getPropertyMetadata
    node_modules/eufy-security-client/src/http/device.ts:279:15
• eufysecurity.ts:1213 onStationRuntimeState
    node_modules/eufy-security-client/src/eufysecurity.ts:1213:44
• eufysecurity.ts:347 <anonymous>
    node_modules/eufy-security-client/src/eufysecurity.ts:347:150
• node:events:390 emit
    node:events:390:28
• station.ts:2535 onRuntimeState
    node_modules/eufy-security-client/src/http/station.ts:2535:14
• station.ts:65 <anonymous>
    node_modules/eufy-security-client/src/http/station.ts:65:114
• node:events:390 emit
    node:events:390:28
• session.ts:1218 handleDataControl
    node_modules/eufy-security-client/src/p2p/session.ts:1218:26
• session.ts:898 handleData
    node_modules/eufy-security-client/src/p2p/session.ts:898:18
• session.ts:889 parseDataMessage
    node_modules/eufy-security-client/src/p2p/session.ts:889:26
2021-11-29 16:06:13.990  INFO Connected to station T8124 on host 172.16.5.161 and port 22833 
2021-11-29 16:06:21.811  INFO Disconnected from station T8124 
2021-11-29 16:06:23.928  INFO Disconnected from station T8124P
2021-11-29 16:06:42.490  WARN Station T8124 - Tried all hosts, no connection could be established 
2021-11-29 16:06:42.491  INFO Timeout connecting to station T8124P
2021-11-29 16:06:58.286  INFO Connected to station T8124Pon host 172.16.5.160 and port 17735 
2021-11-29 16:07:07.651  INFO Disconnected from station T8124
2021-11-29 16:08:33.763  ERROR Station runtime state error (station: T8002 channel: 0) 
 InvalidPropertyError  Property battery invalid
details:
{
  name: 'InvalidPropertyError'
}
bropat commented 2 years ago

This issue will be fixed in the next version.