jfarmer08 / homebridge-wyze-smart-home

Wyze Smart Home plugin for Homebridge.
MIT License
93 stars 14 forks source link

Issue after update to alpha 4 #179

Closed lonniemmercer closed 7 months ago

lonniemmercer commented 8 months ago

[10/14/2023, 12:19:12 PM] Homebridge v1.6.1 (HAP v0.11.1) (Wyze) is running on port 59112.

/var/lib/homebridge/node_modules/homebridge-wyze-smart-home/node_modules/colorsys/colorsys.js:197 return colorsys.rgb2Hsv(rgb.r, rgb.g, rgb.b) ^ TypeError: Cannot read properties of null (reading 'r') at Object.colorsys.hex2Hsv (/var/lib/homebridge/node_modules/homebridge-wyze-smart-home/node_modules/colorsys/colorsys.js:197:31) at WyzeMeshLight.updateColor (/var/lib/homebridge/node_modules/homebridge-wyze-smart-home/src/accessories/WyzeMeshLight.js:71:31) at WyzeMeshLight.updateCharacteristics (/var/lib/homebridge/node_modules/homebridge-wyze-smart-home/src/accessories/WyzeMeshLight.js:52:18) at processTicksAndRejections (node:internal/process/task_queues:95:5) at WyzeMeshLight.update (/var/lib/homebridge/node_modules/homebridge-wyze-smart-home/src/accessories/WyzeAccessory.js:336:7)

jfarmer08 commented 8 months ago

Sometimes the API does return Nulls. I will see what i can do to help this. You can try to change your color properties to fix this in the mean time

jfarmer08 commented 8 months ago

Any update