Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Unknown statusCode: undefined - Re-opening #906

Closed
nyjklein opened this issue Feb 3, 2024 · 2 comments
Closed

Bug: Unknown statusCode: undefined - Re-opening #906

nyjklein opened this issue Feb 3, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@nyjklein
Copy link

nyjklein commented Feb 3, 2024

Describe the Bug

In the past I was getting these every once in a while. After upgrading to v3.1.0, I'm getting them almost continuously and across multiple devices.

To Reproduce

Just run the plugin

Expected Behavior

No errors

Relevant Log Output

[03/02/2024, 07:34:51] [SwitchBot] Curtain: Living Room Curtain Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 07:34:51] [SwitchBot] Curtain: Living Room Curtain Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 09:20:03] [SwitchBot] Curtain: Living Room Curtain Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 09:20:03] [SwitchBot] Curtain: Living Room Curtain Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 09:28:06] [SwitchBot] Initializing SwitchBot platform...
[03/02/2024, 09:28:09] [SwitchBot] Total SwitchBot Devices Found: 11
[03/02/2024, 09:28:09] [SwitchBot] Restoring existing accessory from cache: Outdoor Meter SwB DeviceID: CFD41B916DA3
[03/02/2024, 09:28:09] [SwitchBot] Restoring existing accessory from cache: Dining Room SwB DeviceID: E0C8750159BB
[03/02/2024, 09:28:09] [SwitchBot] Restoring existing accessory from cache: Bedroom SwBP DeviceID: E3D163DE2E31
[03/02/2024, 09:28:09] [SwitchBot] Restoring existing accessory from cache: Motion Sensor 2E DeviceID: EBA08112E12E
[03/02/2024, 09:28:09] [SwitchBot] Restoring existing accessory from cache: Small Bathroom SwB DeviceID: F1BAF4B4E58E
[03/02/2024, 09:28:09] [SwitchBot] Restoring existing accessory from cache: Main Bathroom SwB DeviceID: F3745EADBBFE
[03/02/2024, 09:28:09] [SwitchBot] Restoring existing accessory from cache: Living Room SwBP DeviceID: F4B27AC3DF57
[03/02/2024, 09:28:09] [SwitchBot] Restoring existing accessory from cache: Office SwBP DeviceID: FA500E1417E8
[03/02/2024, 09:28:09] [SwitchBot] Restoring existing accessory from cache: Living Room Curtain DeviceID: FD1E6D06B532
[03/02/2024, 09:38:09] [SwitchBot] Motion Sensor: Motion Sensor 2E Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 09:38:09] [SwitchBot] Motion Sensor: Motion Sensor 2E Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 09:40:09] [SwitchBot] MeterPlus: Office SwBP Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 09:40:09] [SwitchBot] MeterPlus: Office SwBP Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 10:06:09] [SwitchBot] WoIOSensor: Outdoor Meter SwB Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 10:06:09] [SwitchBot] WoIOSensor: Outdoor Meter SwB Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 10:06:09] [SwitchBot] Motion Sensor: Motion Sensor 2E Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 10:06:09] [SwitchBot] Motion Sensor: Motion Sensor 2E Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 10:38:09] [SwitchBot] Motion Sensor: Motion Sensor 2E Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 10:38:09] [SwitchBot] Motion Sensor: Motion Sensor 2E Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 10:42:09] [SwitchBot] Meter: Main Bathroom SwB Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 10:42:09] [SwitchBot] Meter: Main Bathroom SwB Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 10:50:09] [SwitchBot] WoIOSensor: Outdoor Meter SwB Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 10:50:09] [SwitchBot] WoIOSensor: Outdoor Meter SwB Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 10:50:09] [SwitchBot] Meter: Dining Room SwB Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 10:50:09] [SwitchBot] Meter: Dining Room SwB Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 10:50:09] [SwitchBot] Meter: Main Bathroom SwB Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 10:50:09] [SwitchBot] Meter: Main Bathroom SwB Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 10:50:09] [SwitchBot] MeterPlus: Living Room SwBP Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 10:50:09] [SwitchBot] MeterPlus: Living Room SwBP Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 10:50:09] [SwitchBot] MeterPlus: Office SwBP Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 10:50:09] [SwitchBot] MeterPlus: Office SwBP Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 10:52:09] [SwitchBot] MeterPlus: Bedroom SwBP Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 10:52:09] [SwitchBot] MeterPlus: Bedroom SwBP Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 10:58:09] [SwitchBot] MeterPlus: Office SwBP Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 10:58:09] [SwitchBot] MeterPlus: Office SwBP Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:02:09] [SwitchBot] WoIOSensor: Outdoor Meter SwB Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:02:09] [SwitchBot] WoIOSensor: Outdoor Meter SwB Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:02:09] [SwitchBot] Meter: Dining Room SwB Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:02:09] [SwitchBot] Meter: Dining Room SwB Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:12:09] [SwitchBot] MeterPlus: Bedroom SwBP Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:12:09] [SwitchBot] MeterPlus: Bedroom SwBP Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:12:09] [SwitchBot] Meter: Small Bathroom SwB Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:12:09] [SwitchBot] Meter: Small Bathroom SwB Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:18:09] [SwitchBot] Motion Sensor: Motion Sensor 2E Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:18:09] [SwitchBot] Motion Sensor: Motion Sensor 2E Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:20:09] [SwitchBot] Meter: Dining Room SwB Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:20:09] [SwitchBot] Meter: Dining Room SwB Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:22:09] [SwitchBot] MeterPlus: Living Room SwBP Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:22:09] [SwitchBot] MeterPlus: Living Room SwBP Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:28:09] [SwitchBot] Meter: Dining Room SwB Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:28:09] [SwitchBot] Meter: Dining Room SwB Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:28:09] [SwitchBot] Meter: Small Bathroom SwB Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:28:09] [SwitchBot] Meter: Small Bathroom SwB Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:38:09] [SwitchBot] WoIOSensor: Outdoor Meter SwB Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:38:09] [SwitchBot] WoIOSensor: Outdoor Meter SwB Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:38:09] [SwitchBot] Meter: Dining Room SwB Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:38:09] [SwitchBot] Meter: Dining Room SwB Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:38:09] [SwitchBot] Meter: Small Bathroom SwB Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:38:09] [SwitchBot] Meter: Small Bathroom SwB Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:40:09] [SwitchBot] MeterPlus: Bedroom SwBP Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:40:09] [SwitchBot] MeterPlus: Bedroom SwBP Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:40:09] [SwitchBot] WoIOSensor: Outdoor Meter SwB Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:40:09] [SwitchBot] WoIOSensor: Outdoor Meter SwB Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:40:09] [SwitchBot] Meter: Dining Room SwB Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:40:09] [SwitchBot] Meter: Dining Room SwB Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:42:09] [SwitchBot] Meter: Small Bathroom SwB Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:42:09] [SwitchBot] Meter: Small Bathroom SwB Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:44:09] [SwitchBot] MeterPlus: Office SwBP Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:44:09] [SwitchBot] MeterPlus: Office SwBP Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:48:09] [SwitchBot] MeterPlus: Bedroom SwBP Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:48:09] [SwitchBot] MeterPlus: Bedroom SwBP Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:50:09] [SwitchBot] WoIOSensor: Outdoor Meter SwB Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:50:09] [SwitchBot] WoIOSensor: Outdoor Meter SwB Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:58:09] [SwitchBot] Motion Sensor: Motion Sensor 2E Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 11:58:09] [SwitchBot] Motion Sensor: Motion Sensor 2E Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 12:04:09] [SwitchBot] WoIOSensor: Outdoor Meter SwB Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 12:04:09] [SwitchBot] WoIOSensor: Outdoor Meter SwB Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 12:04:09] [SwitchBot] MeterPlus: Office SwBP Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 12:04:09] [SwitchBot] MeterPlus: Office SwBP Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 12:08:09] [SwitchBot] Meter: Small Bathroom SwB Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[03/02/2024, 12:08:09] [SwitchBot] Meter: Small Bathroom SwB Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug

Config for homebridge-switchbot

{
    "name": "SwitchBot",
    "credentials": {
        "token": "yyy",
        "secret": "xxx",
        "notice": "Keep your Token & Secret a secret!"
    },
    "options": {
        "devices": [
            {
                "deviceId": "C3C22D5491D3",
                "configDeviceName": "Living Room Hub 2",
                "hide_device": true
            },
            {
                "deviceId": "FD1E6D06B532",
                "configDeviceName": "Living Room Curtain",
                "hide_device": false,
                "configDeviceType": "Curtain",
                "connectionType": "OpenAPI",
                "curtain": {
                    "set_minStep": 10,
                    "set_min": 5,
                    "set_max": 96,
                    "setOpenMode": "0",
                    "setCloseMode": "0"
                },
                "refreshRate": 30,
                "logging": "standard"
            }
        ],
        "logging": "standard"
    },
    "platform": "SwitchBot"
}

Screenshots

No response

Device and Model

Curains v2, meters, meters plus

Node.js Version

v20.11.0

NPM Version

v10.2.4

Homebridge Version

v1.7.0

Homebridge Switchbot Plugin Version

v3.1.0

Homebridge Config UI X Plugin Version

v4.55.1

Operating System

Debian GNU/Linux Bullseye (11)

@maxileith
Copy link

Same issue here 😐

@donavanbecker
Copy link
Collaborator

I believe SwitchBot was and may still be having issues. I saw this too and then restarted a few times a now now issues. Going to close. Please reopen if it happens again.

@nyjklein nyjklein changed the title Bug: Unknown statusCode: 500; Unknown statusCode: undefined Bug: Unknown statusCode: undefined - Re-opening May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants