tjmehta / homebridge-eightsleep-platform

Homebridge Plugin for supporting the Eightsleep Pod
Apache License 2.0
13 stars 2 forks source link

v 2.4.3 validation error and Hombridge slow warning #9

Open ftoralesacosta opened 2 years ago

ftoralesacosta commented 2 years ago

Hi thjmehta,

Thanks for the quick response. I'm posting as a separate issue here.

I'm on v2.4.3 and am now getting the second set of errors posted above. I normally have the beta temperature setting disabled, but I get these errors now whether it's enabled or disabled.

Pasting a subset of my errors below: Get CurrentHeaterCoolerState Error -> InvalidSid eStatusError: invalid currentTargetLevel at validateSideStatus (/usr/local/lib/node_modules/homebridge-eightsleep-pod/node_modules/eightslee p/src/validateDeviceStatus.ts:76:11) at Object.validateDeviceStatus [as default] (/usr/local/lib/node_modules/homebridge-eightsleep-pod/ node_modules/eightsleep/src/validateDeviceStatus.ts:51:11) at EightSleepAppApi. (/usr/local/lib/node_modules/homebridge-eightsleep-pod/node_modules /eightsleep/src/EightSleepAppApi.ts:79:32) at Generator.next () at fulfilled (/usr/local/lib/node_modules/homebridge-eightsleep-pod/node_modules/eightsleep/dist/cj s/EightSleepAppApi.js:5:58) at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5) { "sideStatus": { "currentLevel": 7, "currentTargetLevel": 6, "currentActivity": "schedule", "version": 2, "smartTemperature": { "bedTimeLevel": 6, "initialSleepLevel": 10, "finalSleepLevel": 9, "currentPhase": "bedtime" } } } { sideStatus: { currentLevel: 7, currentTargetLevel: 6, currentActivity: 'schedule', version: 2, smartTemperature: { bedTimeLevel: 6, initialSleepLevel: 10, finalSleepLevel: 9, currentPhase: 'bedtime' } } } [07/02/2022, 22:39:20] [EightSleepPod] Get TargetHeaterCoolerState Error -> InvalidSide StatusError: invalid currentTargetLevel at validateSideStatus (/usr/local/lib/node_modules/homebridge-eightsleep-pod/node_modules/eightslee p/src/validateDeviceStatus.ts:76:11) at Object.validateDeviceStatus [as default] (/usr/local/lib/node_modules/homebridge-eightsleep-pod/ node_modules/eightsleep/src/validateDeviceStatus.ts:51:11) at EightSleepAppApi. (/usr/local/lib/node_modules/homebridge-eightsleep-pod/node_modules /eightsleep/src/EightSleepAppApi.ts:79:32) at Generator.next () at fulfilled (/usr/local/lib/node_modules/homebridge-eightsleep-pod/node_modules/eightsleep/dist/cj s/EightSleepAppApi.js:5:58) at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5) { "sideStatus": { "currentLevel": 7, "currentTargetLevel": 6, "currentActivity": "schedule", "version": 2, "smartTemperature": { "bedTimeLevel": 6, "initialSleepLevel": 10, "finalSleepLevel": 9, "currentPhase": "bedtime" } } } { sideStatus: { currentLevel: 7, currentTargetLevel: 6, currentActivity: 'schedule', version: 2, smartTemperature: { bedTimeLevel: 6, initialSleepLevel: 10, finalSleepLevel: 9, currentPhase: 'bedtime' } } } [07/02/2022, 22:39:20] [EightSleepPod] Get Active Error -> InvalidSideStatusError: inva

The logs look ok before this, but there is a warning that precedes this. Including this just in case it helps. Let me know if I can include more info!

This plugin slows down Homebridg e. The read handler for the characteristic 'Active' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info. [07/02/2022, 21:39:31] [homebridge-eightsleep-pod] This plugin slows down Homebridg e. The read handler for the characteristic 'Current Heater-Cooler State' didn't respond at all!. Please che ck that you properly call the callback! See https://git.io/JtMGR for more info. [07/02/2022, 21:39:31] [homebridge-eightsleep-pod] This plugin slows down Homebridg e. The read handler for the characteristic 'Target Heater-Cooler State' didn't respond at all!. Please chec k that you properly call the callback! See https://git.io/JtMGR for more info. [07/02/2022, 21:39:31] [homebridge-eightsleep-pod] This plugin slows down Homebridg e. The read handler for the characteristic 'Rotation Speed' didn't respond at all!. Please check that you p roperly call the callback! See https://git.io/JtMGR for more info.

I'm a bit out of my scope to do my own PR, but let me know if I can help in any way. Many thanks!