OpenWonderLabs / homebridge-switchbot

The Homebridge SwitchBot plugin allows you to access your SwitchBot Device(s) from HomeKit. Homebridge.
https://www.switch-bot.com/
ISC License
229 stars 47 forks source link

Bug: #957

Closed lucanaut closed 1 month ago

lucanaut commented 3 months ago

Describe the Bug

The bot doesn't respond consistently.

To Reproduce

toggling switch on/off using the Home app

Expected Behavior

I expect the switch to respond.

Relevant Log Output

[DEBUG] Bot: Under cabinet light by the stove statusCode: 500
[3/30/2024, 3:18:03 PM] [SwitchBot] [DEBUG] Bot: Under cabinet light by the stove deviceStatus: {"message":"Internal server error"}
[3/30/2024, 3:18:03 PM] [SwitchBot] [DEBUG] Bot: Under cabinet light by the stove deviceStatus body: undefined
[3/30/2024, 3:18:03 PM] [SwitchBot] [DEBUG] Bot: Under cabinet light by the stove deviceStatus statusCode: undefined
[3/30/2024, 3:18:03 PM] [SwitchBot] Bot: Under cabinet light by the stove Internal Server Error,        An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[3/30/2024, 3:18:03 PM] [SwitchBot] Bot: Under cabinet light by the stove Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug

Config for homebridge-switchbot

{
            "name": "SwitchBot",
            "credentials": {
                "token": "4b8ef87ef01f54d7c3f946e56aa2b1b86e81a3fc347ae062fa2e2f321fca299a40a1a67af223c176981cc1491fc4ccad",
                "secret": "9c238624cc4334a29f9c6501d3bde8bf",
                "notice": "Keep your Token & Secret a secret!"
            },
            "options": {
                "devices": [
                    {
                        "deviceId": "D71FD5715D22",
                        "configDeviceName": "Bot",
                        "configDeviceType": "Bot",
                        "connectionType": "BLE/OpenAPI",
                        "bot": {
                            "mode": "switch",
                            "deviceType": "switch",
                            "allowPush": true
                        },
                        "firmware": "6.6",
                        "refreshRate": 30
                    }
                ]
            },
            "platform": "SwitchBot"
        }

Screenshots

No response

Device and Model

Bot + SwitchBot Hub Mini

Node.js Version

20.10.0

NPM Version

10.2.3

Homebridge Version

1.7

Homebridge Switchbot Plugin Version

3.4.0

Homebridge Config UI X Plugin Version

4.55.1

Operating System

macos Sonoma

romka-best commented 3 months ago

I have the same issue!

Node.js Version 20.12.0

NPM Version 10.5.0

Homebridge Version 1.7

Homebridge Switchbot Plugin Version 3.4.0

Homebridge Config UI X Plugin Version 4.55.1

Operating System MacOS Sonoma 14.4.1

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

egb116 commented 2 months ago

Just adding my info to keep the bug report open. I've been seeing the same errors pretty regularly for a few weeks now on multiple Bots connected via Hub Plus.

[4/15/2024, 9:33:36 AM] [SwitchBot] Bot: Front Porch Light Internal Server Error,       An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[4/15/2024, 9:33:36 AM] [SwitchBot] Bot: Front Porch Light Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug

Node.js Version 20.12.0

NPM Version 10.5.0

Homebridge Version 1.7

Homebridge Switchbot Plugin Version 3.4.0

Homebridge Config UI X Plugin Version 4.56.1

Operating System Ubuntu Focal (20.04.5 LTS) with HomeBridge running in Docker v26 standalone

{
    "name": "SwitchBot",
    "credentials": {
        "token": "removed",
        "secret": "removed",
        "notice": "Keep your Token & Secret a secret!"
    },
    "options": {
        "devices": [
            {
                "deviceId": "E25BF1BC9669",
                "configDeviceName": "Front Door Light",
                "configDeviceType": "Bot",
                "connectionType": "OpenAPI",
                "bot": {
                    "mode": "switch",
                    "deviceType": "switch"
                }
            },
            {
                "deviceId": "FCADE63D8815",
                "configDeviceName": "Front Porch Light",
                "configDeviceType": "Bot",
                "connectionType": "OpenAPI",
                "bot": {
                    "mode": "switch",
                    "deviceType": "switch"
                }
            }
        ]
    },
    "platform": "SwitchBot"
}
github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 month ago

This issue has been closed as no further activity has occurred.