homebridge-switchbot: v2.9.0 is causing homebridge docker to crash repeatedly
Describe the Bug
After updating the plugin, I get repeated crashes until downgrading.
To Reproduce
Start homebridge. Downgrading will fix the issue.
Expected Behavior
Homebridge to start and remain running
Relevant Log Output
[9/19/2023, 3:47:21 PM] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Firmware Revision': characteristic was supplied illegal value: number instead of string, supplying illegal values will throw errors in the future. See https://homebridge.io/w/JtMGR for more info.
[9/19/2023, 3:47:21 PM] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Firmware Revision': characteristic was supplied illegal value: number instead of string, supplying illegal values will throw errors in the future. See https://homebridge.io/w/JtMGR for more info.
[9/19/2023, 3:47:21 PM] TypeError: Cannot read properties of undefined (reading 'updateCharacteristic')
at BlindTilt.updateHomeKitCharacteristics (/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/blindtilt.ts:911:34)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
[9/19/2023, 3:47:21 PM] Got SIGTERM, shutting down Homebridge...
[9/19/2023, 3:47:21 PM] [Meross] [Outdoor Switch] mqtt connection closed.
[9/19/2023, 3:47:21 PM] Got SIGTERM, shutting down child bridge process...
Config for homebridge-switchbot
{
"name": "SwitchBot",
"credentials": {
"token": "XXXXXXXXXXXXXXX",
"secret": "XXXXXXXXXXXXXXXXXX",
"notice": "Keep your Token & Secret a secret!"
},
"options": {
"devices": [
{
"deviceId": "XXXXXXXXXXXXXXXXX",
"configDeviceType": "Blind Tilt",
"connectionType": "OpenAPI",
"blindTilt": {
"set_minStep": 5
}
}
]
},
"platform": "SwitchBot"
},
Screenshots
No response
Device and Model
Blind Tilt and Hub Mini
Node.js Version
v18.16.0
NPM Version
?
Homebridge Version
v1.6.1
Homebridge Switchbot Plugin Version
v2.9.0
Homebridge Config UI X Plugin Version
v4.50.5
Operating System
Docker
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 16
Commits related to this issue
- v2.9.1 ## [Version 2.9.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.9.1) (2023-10-14) ## What's Changed - Fix issue with `FirmwareRevision` causing Homebridge Crash. Fi... — committed to OpenWonderLabs/homebridge-switchbot by donavanbecker 9 months ago
- v2.9.1 (#840) ## [Version 2.9.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.9.1) (2023-10-14) ## What's Changed - Fix issue with `FirmwareRevision` causing Homebridg... — committed to OpenWonderLabs/homebridge-switchbot by donavanbecker 9 months ago
- v2.9.1 (#840) - Fix issue with `FirmwareRevision` causing Homebridge Crash. Fixes [#839](https://github.com/OpenWonderLabs/homebridge-switchbot/discussions/839), [#832](https://github.com/OpenWonderL... — committed to banboobee/homebridge-switchbot by donavanbecker 9 months ago
- v2.11.0 # Changelog All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/) ## [Version 2.11.0](https://github.com/OpenWond... — committed to OpenWonderLabs/homebridge-switchbot by donavanbecker 8 months ago
v2.9.1-beta.4 doesn’t seem to be crashing for me
@donavanbecker Newest beta fixed for me 🙌
Can you all try the latest beta:
Click here to find out how to install Beta
And report back.
I’m running 18.18.0
On Mon, Oct 2, 2023 at 10:01 AM BGosh @.***> wrote:
Chiming in to say that I’m seeing the same error message after updating to 2.9.0 and downgrading also fixes the issue for me. I’m running 2 blind tilts through my setup. Happy to provide any logs if needed.