Open bunnyc1986 opened 5 months ago
Seems this crash bug's related to the /homebridge/node_modules/homebridge-wyze-smart-home/src/accessories/WyzeHMS.js:46
= Wyze Home Monitoring Service?
Seems this crash bug's related to the
/homebridge/node_modules/homebridge-wyze-smart-home/src/accessories/WyzeHMS.js:46
= Wyze Home Monitoring Service?
yes, I believe so.
Do you have any active account for HMS?
if you don't use HMS or you don't have subscription then add "hms": false to your config.
if you don't use HMS or you don't have subscription then add "hms": false to your config.
Thanks. However, using HMS with HMS subscription.
yes. I have active HMS subscription and am using the HMS. This used to happen occasionally in the past, but recently became consistently, besides the on going authentication issue.
Same here. Neither enabling or disabling fixes the issue:
[2/10/2024, 1:12:19 PM] TypeError: this.getCharacteristic is not a function
at WyzeHMS.updateCharacteristics (/var/lib/homebridge/node_modules/homebridge-wyze-smart-home/src/accessories/WyzeHMS.js:46:12)
at WyzeHMS.update (/var/lib/homebridge/node_modules/homebridge-wyze-smart-home/src/accessories/WyzeAccessory.js:133:12)
at WyzeSmartHome.loadDevice (/var/lib/homebridge/node_modules/homebridge-wyze-smart-home/src/WyzeSmartHome.js:158:15)
at WyzeSmartHome.loadDevices (/var/lib/homebridge/node_modules/homebridge-wyze-smart-home/src/WyzeSmartHome.js:118:36)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at WyzeSmartHome.refreshDevices (/var/lib/homebridge/node_modules/homebridge-wyze-smart-home/src/WyzeSmartHome.js:107:7)
at WyzeSmartHome.runLoop (/var/lib/homebridge/node_modules/homebridge-wyze-smart-home/src/WyzeSmartHome.js:91:9)
[2/10/2024, 1:12:19 PM] Got SIGTERM, shutting down Homebridge...
FWIW,
Version: v0.5.42 OS: Ubuntu 22.04 Node: 20.5.1
Try clearing the accessory cache for it.
Try clearing the accessory cache for it.
How? Commands? Menu item?
I found this error shown up when the HMS is offline. My HMS became offline often recently.
Try clearing the accessory cache for it.
How? Commands? Menu item?
it's in Homebridge settings. "Remove Single Cached Accessory".
That seems to have done it for me.
Can wyze-smart-home
detect when this error happens (WyzeHMS.js TypeError: this.getCharacteristic is not a function
), and automatically do the "remove single cached accessory" thru code?
I still see this error after removing the cached accessory. the timing corelates when HMS is offline in the wyze app.
If you can change the code for WyzeHMS.js at line 46 until I can put out an update for it. All you need to do is comment out the line 46 like this //this.getCharacteristic(Characteristic.On).updateValue(noResponse);
and restart.
hopefully this helps https://github.com/jfarmer08/homebridge-wyze-smart-home/releases/tag/v0.5.44
@bunnyc1986 is this resolved or are there still issues?
@bunnyc1986 is this resolved or are there still issues?
I no longer see the error after upgrading to v0.5.44. Thank you!
this issue just came back:
[2/18/2024, 3:58:35 PM] [Wyze] Restarting Process...
[2/18/2024, 3:58:35 PM] [Wyze] Launched child bridge with PID 2440
[2/18/2024, 3:58:35 PM] Registering platform 'homebridge-wyze-smart-home.WyzeSmartHome'
[2/18/2024, 3:58:35 PM] [Wyze] Loaded homebridge-wyze-smart-home v0.5.44 child bridge successfully
[2/18/2024, 3:58:35 PM] Loaded 9 cached accessories from cachedAccessories.xxxxxx
[2/18/2024, 3:58:35 PM] Homebridge v1.7.0 (HAP v0.11.1) (Wyze) is running on port xxxxxx.
/homebridge/node_modules/homebridge-wyze-smart-home/src/accessories/WyzeHMS.js:46
this.getCharacteristic(Characteristic.SecuritySystemCurrentState).updateValue(noResponse);
^
TypeError: this.getCharacteristic is not a function
at WyzeHMS.updateCharacteristics (/homebridge/node_modules/homebridge-wyze-smart-home/src/accessories/WyzeHMS.js:46:12)
at WyzeHMS.update (/homebridge/node_modules/homebridge-wyze-smart-home/src/accessories/WyzeAccessory.js:133:12)
at WyzeSmartHome.loadDevice (/homebridge/node_modules/homebridge-wyze-smart-home/src/WyzeSmartHome.js:158:15)
at WyzeSmartHome.loadDevices (/homebridge/node_modules/homebridge-wyze-smart-home/src/WyzeSmartHome.js:118:36)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at WyzeSmartHome.refreshDevices (/homebridge/node_modules/homebridge-wyze-smart-home/src/WyzeSmartHome.js:107:7)
at WyzeSmartHome.runLoop (/homebridge/node_modules/homebridge-wyze-smart-home/src/WyzeSmartHome.js:91:9)
[2/18/2024, 3:58:36 PM] [Wyze] Child bridge process ended
[2/18/2024, 3:58:36 PM] [Wyze] Process Ended. Code: 1, Signal: null
You can comment out that line until i can get a fix.
//this.getCharacteristic(Characteristic.SecuritySystemCurrentState).updateValue(noResponse);
Describe The Bug: Inifinte crash and restart loop.
Expected behavior: Should not crash.
Logs:
Plugin Config:
Screenshots:
Environment: