homebridge-switchbot: Unable activate switchbot after update to 3.00

Describe the Bug

With the latest update from version 2.13 to 3.00 everything stopped working. I can no longer activate my switchbots

To Reproduce

try press switchbot plugin

Expected Behavior

Activate my switchbot

Relevant Log Output

Activate my switchbot

Config for homebridge-switchbot

only switch bot section

{
            "name": "SwitchBot",
            "credentials": {
                "token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
                "secret": "xxxxxxxxxxxxxxxxxxxxxxxx",
                "notice": "Keep your Token & Secret a secret!"
            },
            "options": {
                "devices": [
                    {
                        "deviceId": "xxxxxxxxxxxxxxxxxxxxxxxx",
                        "configDeviceName": "Proxmox",
                        "configDeviceType": "Bot",
                        "connectionType": "OpenAPI",
                        "webhook": true,
                        "lock": {
                            "activate_latchbutton": false
                        }
                    },
                    {
                        "deviceId": "xxxxxxxxxxxxxxxxxxxxxxxx",
                        "configDeviceName": "NAS",
                        "configDeviceType": "Bot",
                        "connectionType": "OpenAPI",
                        "webhook": true,
                        "lock": {
                            "activate_latchbutton": false
                        }
                    }
                ],
                "irdevices": [
                    {
                        "deviceId": "xxxxxxxxxxxxxxxxxxxxxxxx",
                        "configDeviceName": "TV",
                        "configRemoteType": "TV",
                        "connectionType": "OpenAPI"
                    }
                ]
            },
            "platform": "SwitchBot"
},

Screenshots

No response

Device and Model

Activate my switchbot

Node.js Version

v18.19.0

NPM Version

10.2.3

Homebridge Version

v1.7.0

Homebridge Switchbot Plugin Version

v3.00

Homebridge Config UI X Plugin Version

v4.55.1

Operating System

Raspian/Docker

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Reactions: 5
  • Comments: 23

Most upvoted comments

Same here! Had to downgrade to 2.14.0

It’s not just the bots. I have a speaker IR device exposed through the plugin and it won’t work either. As soon as I downgraded to 2.14 everything works again.

I would add debug logs but when on 3.0 I don’t even get any debug info in the logs. As soon as I reinstall 2.14 I get a ton of logs.

Is that tv in your config working? I bet not…

@donavanbecker Fixed With 3.1 verssion, thanks

Closing this as it is a duplicate to #898, so post any updates there.

Same here, downgraded to the previous version

Same here. Only entry in the log: [01/02/2024, 18:16:02] [SwitchBot] Initializing SwitchBot platform…

Falling back to v2.`14.0 restores full functionality!