Control SwitchBot devices from GNOME Quick Settings and extension preferences (first release). * Quick Settings hub for lights, plugs, curtains, and other supported types * Pin devices, run scenes, and open preferences from the shell * Optional light automation (time-of-day and wallpaper color) Requires a SwitchBot account and Open API token and secret (SwitchBot app → Developer Options). The extension contacts SwitchBot cloud servers over the network when you sync or control devices. Credentials are stored in plaintext in ~/.config/gnome-switchbot/credentials.json (config directory should be mode 0700). Anyone with access to your user account can read this file.
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
| Version | Status |
|---|---|
| 1.0 (3) | Unreviewed |
| 1.0 (2) | Rejected |
| 1.0 (1) | Rejected |
1. Please remove version from the import: - line 4 `lib/switchbot/http.js` - line 8 `prefs.js` - line 6 `quickSettings.js` 2. Timeout should be removed on destroy and before creating a new one: - line 16 `lib/switchbot/throttle.js` - lien 357 `lightAutomation.js` - line 401 `quickSettings.js` [EGO Review Guidelines: Timeout](https://gjs.guide/extensions/review-guidelines/review-guidelines.html#remove-main-loop-sources) 3. Why are you calling resolve in global scope (line 9 `lib/switchbot/throttle.js`)? 4. `this._destroyed` is a bad practice. Please remove that. 5. `metadata.json` should only hold the standard `keys`. Please remove all unnecessary keys: [EGO Review Guidelines: unnecessary metadata keys](https://gjs.guide/extensions/review-guidelines/review-guidelines.html#metadata-json-must-be-well-formed) 6. Remove unnecessary `=== 'function'` checks: [EGO Review Guidelines: AI](https://gjs.guide/extensions/review-guidelines/review-guidelines.html#extensions-must-not-be-ai-generated) If you need any help with your extension you can ask us on: - [GNOME Extensions Matrix Channel](https://matrix.to/#/#extensions:gnome.org) - IRC Bridge: irc://irc.gimpnet.org/shell-extensions