A web-based editor for managing Homey Boolean Toolbox devices and creating boolean expressions.
Note: This is the setup guide for the Boolean Editor specifically. See the main README.md for information about the Boolean Toolbox app itself.
The app is already hosted at: https://tiwas.github.io/SmartComponentsToolkit/tools/boolean-editor.html
- Download the
tools/boolean-editor.htmlfile - Upload it to any web hosting service (GitHub Pages, Netlify, Vercel, etc.)
- Note your hosted URL - you'll need it for the next step
- Go to Homey API Clients
- Click "Add client" or "Create new client"
- Fill in the form:
- Name:
Boolean Editor(or any name you prefer) - Redirect URL:
https://tiwas.github.io/SmartComponentsToolkit/tools/boolean-editor.html⚠️ Important: Use the exact URL where you host the app- If hosting yourself, replace with your own URL
- Scopes: Check the following boxes:
- ✅
homey.zone.readonly- Required to read zone information - ✅
homey.device.readonly- Required to read device information - ✅
homey.device.control- Required to modify device settings
- ✅
- Name:
- Click "Create"
- Copy both the Client ID and Client Secret - you'll need these in the next step
- Open the app in your browser: Boolean Editor
- You'll see the API Setup screen
- Paste your Client ID and Client Secret from Step 1
- Click "Save and Continue"
- Log in with your Homey account
tools/boolean-editor.html # Main application (all-in-one file)
resources/
lang.en.json # English translations
lang.no.json # Norwegian translations
lang.de.json # German translations
lang.fr.json # French translations
lang.nl.json # Dutch translations
The app supports 5 languages:
- 🇬🇧 English
- 🇳🇴 Norwegian (Norsk)
- 🇩🇪 German (Deutsch)
- 🇫🇷 French (Français)
- 🇳🇱 Dutch (Nederlands)
Language files should be placed in a resources/ folder next to the HTML file.
- Your Client ID and Client Secret are stored locally in your browser (localStorage)
- No data is sent to any third-party servers
- All communication is directly between your browser and Homey's API
- You can change or delete your credentials at any time using the "⚙️ API Settings" button
- Edit existing devices - View and modify settings for Boolean Toolbox devices
- Create new expression - Build boolean formulas using device capabilities
- Import from JSON - Start with existing device/capability configurations
- Select 2-10 device capabilities
- Build boolean formulas using:
- Variables: A-J
- Operators: AND, OR, NOT, XOR
- Parentheses for grouping
- View all Boolean Toolbox devices organized by zone
- Edit device settings
- Debug view to find device driver IDs
If you see this error, it means the redirect URL in your Homey API Client doesn't match where you're accessing the app from. Make sure:
- Your Homey API Client redirect URL matches exactly where the app is hosted
- Include
https://in the URL - No trailing slashes
- Check that your Client ID and Client Secret are correct
- Verify the redirect URL matches in both the API Client settings and where you're accessing the app
- Make sure you selected the required scopes (homey.zone.readonly, homey.device.readonly, homey.device.control)
- Try clearing your browser's localStorage and setting up again
This error means the API scopes are missing or incorrect:
- Go back to Homey API Clients
- Edit your client
- Make sure these scopes are checked:
- ✅
homey.zone.readonly - ✅
homey.device.readonly - ✅
homey.device.control
- ✅
- Save the changes
- In the app, click "⚙️ API Settings" and re-enter your credentials (this forces a new authentication)
The app will fall back to English if language files can't be loaded. To use other languages:
- Create a
resources/folder in the same location as the HTML file - Add the language JSON files to this folder
- Refresh the page
- The app requires internet connection to communicate with Homey's cloud API
- Your Homey must be online and accessible
- First-time setup requires creating a Homey API Client (one-time process)
- Your credentials are saved locally and persist between sessions
To change your API credentials:
- Click the "⚙️ API Settings" button (top right)
- Confirm you want to change credentials (this will log you out)
- Enter new Client ID and Client Secret
- Click "Save and Continue"
- The app works entirely in your browser - no backend needed
- You can host the HTML file anywhere that supports HTTPS
- For development/testing, you can use
http://localhostURLs - The redirect URL must be exact - including protocol (https://) and no trailing slash
This is a community tool for Homey Boolean Toolbox users.