You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting up the plugin, if you finish the configuration without entering any device ID, it will cause the error on the log, which makes homebridge restart, repeating the error, restarting again, and goes into a loop.
Adding a Device ID to the configurations stops the error.
Not sure if related, but I had to restart my device too for Homebridge to work.
To Reproduce
Start/install the plugin with a new configuration.
Enter SwitchBot credentials.
Skip adding any device.
Press "Done" on the plugin configuration.
Homebridge restarts with the error.
Expected Behavior
When the user skips adding any device ID and presses "Done" on the configuration should produce a Warning, maybe the plugin isn't going to work but Homebridge and other plugins are unaffected.
Relevant Log Output
(node:36521) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
[07/02/2025, 10:54:21] Error: The devices config section is missing the *Device ID*in the config. Please check your config.
at SwitchBotPlatform.verifyConfig (file:///var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/platform.ts:372:21)
at new SwitchBotPlatform (file:///var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/platform.ts:132:12)
at /var/lib/homebridge/node_modules/homebridge/src/server.ts:462:40
at Array.forEach (<anonymous>)
at Server.loadPlatforms (/var/lib/homebridge/node_modules/homebridge/src/server.ts:389:27)
at Server.start (/var/lib/homebridge/node_modules/homebridge/src/server.ts:164:29)
[07/02/2025, 10:54:21] Got SIGTERM, shutting down Homebridge...
Describe the Bug
When setting up the plugin, if you finish the configuration without entering any device ID, it will cause the error on the log, which makes homebridge restart, repeating the error, restarting again, and goes into a loop.
Adding a Device ID to the configurations stops the error.
Not sure if related, but I had to restart my device too for Homebridge to work.
To Reproduce
Expected Behavior
When the user skips adding any device ID and presses "Done" on the configuration should produce a Warning, maybe the plugin isn't going to work but Homebridge and other plugins are unaffected.
Relevant Log Output
Config for homebridge-switchbot
Screenshots
No response
Device and Model
Raspberry Pi 5
Node.js Version
v22.13.1
NPM Version
v10.9.2
Homebridge Version
v1.8.5
Homebridge Switchbot Plugin Version
v4.3.1-beta.3
Homebridge Config UI X Plugin Version
v4.69.0
Operating System
Raspibian
The text was updated successfully, but these errors were encountered: