github9984 / homebridge-xiaomi-purifier-3

Xiaomi Air Purifier 3 plugin for Homebridge
MIT License
0 stars 0 forks source link

Homebridge crashing unexpectedly #1

Closed toellbe closed 4 years ago

toellbe commented 4 years ago

[Homebridge] TypeError: Cannot read property '0' of undefined [Homebridge] at MiAirPurifier3.getLED (/home/hoobs/.hoobs/node_modules/homebridge-xiaomi-purifier-3/index.js:682:22) [Homebridge] TypeError: Cannot read property '0' of undefined [Homebridge] at MiAirPurifier3.getLED (/home/hoobs/.hoobs/node_modules/homebridge-xiaomi-purifier-3/index.js:682:22) [Homebridge] [4/14/2020, 1:35:16 PM] undefined [Homebridge] [4/14/2020, 1:35:16 PM] Got SIGTERM, shutting down service...

github9984 commented 4 years ago

Do you have the global version or international version? That error comes from when the code is getting the LED status. You can set the LED switch off in the config.json when setting up, but that means you'll lose that functionality to control in HomeKit.

toellbe commented 4 years ago

I use the global version bought in Europe. I will deactivate the switch and see if it helps.

Too bad - the switch was a nice feature.

github9984 commented 4 years ago

i am also using global version. perhaps it's a different version to europe.

toellbe commented 4 years ago

And HomeBridge cashed if I slowly turn up the speed with my finger continuously pressed. Manual mode.

[Homebridge] Error: This callback function has already been called by someone else; it can only be called one time. [Homebridge] at /home/hoobs/.hoobs/node_modules/@hoobs/hap/lib/util/once.js:12:13 [Homebridge] at /home/hoobs/.hoobs/node_modules/homebridge-xiaomi-purifier-3/index.js:496:6 [Homebridge] Error: This callback function has already been called by someone else; it can only be called one time. [Homebridge] at /home/hoobs/.hoobs/node_modules/@hoobs/hap/lib/util/once.js:12:13 [Homebridge] at /home/hoobs/.hoobs/node_modules/homebridge-xiaomi-purifier-3/index.js:496:6

github9984 commented 4 years ago

thanks for reporting that. I'll looking it when i get a chance.

github9984 commented 4 years ago

update to the 1.5.2 version. bug regarding callback function has been fixed

toellbe commented 4 years ago

wow, Thanks. Works 👍