homebridge-switchbot: BUG: [SwitchBot] Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
Describe the Bug
When attempting to interact with WoIOSensor (Kitchen Sensor) and Smart Lock (LightBolt) devices using the homebridge-switchbot plugin, I receive an “Internal Server Error” with a status code of 500. Additionally, an “Unknown statusCode: undefined” error is logged. This suggests an unexpected error on the SmartThings servers.
To Reproduce
- Install and configure the homebridge-switchbot plugin.
- Add WoIOSensor (Kitchen Sensor) and Smart Lock (LightBolt) devices to the configuration.
- Observe the error logs when Homebridge attempts to interact with these devices.
Expected Behavior
The plugin should successfully interact with the WoIOSensor and Smart Lock devices without encountering server errors.
Relevant Log Output
[4/7/2024, 12:10:02 AM] [SwitchBot] WoIOSensor: Kitchen Sensor Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[4/7/2024, 12:10:02 AM] [SwitchBot] WoIOSensor: Kitchen Sensor Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[4/7/2024, 12:10:13 AM] [SwitchBot] Smart Lock: LightBolt Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[4/7/2024, 12:10:13 AM] [SwitchBot] Smart Lock: LightBolt Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[4/7/2024, 12:25:15 AM] [SwitchBot] Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[4/7/2024, 12:25:15 AM] [SwitchBot] Unknown statusCode, statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
Config for homebridge-switchbot
{
"name": "SwitchBot",
"credentials": {
"token": "REDACTED",
"secret": "REDACTED",
"notice": "Keep your Token & Secret a secret!"
},
"options": {
"devices": [
{
"deviceId": "REDACTED",
"configDeviceName": "Kitchen Sensor",
"hide_device": false,
"configDeviceType": "WoIOSensor",
"connectionType": "OpenAPI",
"webhook": true,
"lock": {
"activate_latchbutton": false
},
"history": true,
"firmware": "0.4",
"external": true
},
{
"deviceId": "REDACTED",
"configDeviceName": "LightBolt",
"hide_device": false,
"configDeviceType": "Smart Lock",
"connectionType": "OpenAPI",
"webhook": true,
"lock": {
"activate_latchbutton": false
},
"firmware": "2.1.1",
"refreshRate": 20,
"external": false,
"logging": "standard"
},
{
"deviceId": "REDACTED",
"configDeviceName": "LightHub 2",
"hide_device": true,
"lock": {
"activate_latchbutton": false
}
}
],
"refreshRate": 60
},
"_bridge": {
"username": "REDACTED,"
"port": REDACTED
},
"platform": "SwitchBot"
}
Screenshots
No response
Device and Model
Outdoor Thermohygrometer, SmartLock
Node.js Version
v20.12.1
NPM Version
v10.5.0
Homebridge Version
v1.7.0
Homebridge Switchbot Plugin Version
v3.4.0
Homebridge Config UI X Plugin Version
v4.56.1
Operating System
macOS
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 39 (2 by maintainers)
Commits related to this issue
- Add Support for `maxRetries` and `delayBetweenRetries` on OpenAPI status refreshes Add Support for `maxRetries` and `delayBetweenRetries` on OpenAPI status refreshes based on [#959](https://github.co... — committed to OpenWonderLabs/homebridge-switchbot by donavanbecker 3 years ago
- v3.5.0 ## [3.5.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v3.5.0) (2024-05-26) ### What's Changed - Add Support for `Water Detector` - Add Support for `Battery Circulator... — committed to OpenWonderLabs/homebridge-switchbot by donavanbecker 2 years ago
- v3.5.0 (#975) ## [3.5.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v3.5.0) (2024-05-26) ### What's Changed - Add Support for `Water Detector` - Add Support for `Battery... — committed to OpenWonderLabs/homebridge-switchbot by donavanbecker 2 years ago
Thanks @sametguzeldev, I have added this to the latest beta. maxRetries and delayBetweenRetries are both customizable in the config.
I had the same issue, using an Smart Lock and Hub 2:
Node.js Version: v20.12.1 Homebridge Version: v1.8.1 Homebridge Switchbot Plugin Version: v3.4.0 Smart Lock Firmware Version: V6.6
BUT it got fixed yesterday night after an update of the Smart Lock firmware to version V6.8.
I’ve been getting these unknown statuscode errors constantly across all my devices (meters, curtains, etc.) on v3.4.0. (had opened a separate issue a while ago). The latest beta V3.5.0-beta22 seems to have fixed it.
Thanks!
Sorry nothing I can do about this. This is all the SwitchBot API. SwitchBot will have to resolve this.
And no I don’t work for switchBot, I just manage this plugin.