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

Most upvoted comments

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:

npm version

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:

@razzamatazm https://github.com/razzamatazm great news! What node version are you currently running, 18.18.0 or 20.8.0? I was running 20.6.0 when I first got the error, thought I had it resolved until I restarted my instance and the issue came back.

— Reply to this email directly, view it on GitHub https://github.com/OpenWonderLabs/homebridge-switchbot/issues/828#issuecomment-1743414124, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOEFJTTLMU6ZPM32DYYFATX5LXO5AVCNFSM6AAAAAA47ABJ6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBTGQYTIMJSGQ . You are receiving this because you were mentioned.Message ID: @.***>

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.