homebridge-oasis-mini
v1.0.0
Published
Homebridge plugin for Oasis Mini kinetic sand table
Downloads
107
Maintainers
Readme
Homebridge Oasis Mini
A Homebridge plugin that integrates the Oasis Mini kinetic sand table into Apple HomeKit, allowing you to control your sand table via Siri and the Home app.
Features
This plugin creates four separate HomeKit accessories for comprehensive control:
| Accessory | Type | Description | |-----------|------|-------------| | Power | Switch | Wake/sleep control - turn your Oasis Mini on and off | | Drawing | Switch | Play/pause control - start and stop the current pattern | | Light | Lightbulb | Full RGB LED control with brightness, hue, and saturation | | LED Effect | Television | Select from 43 different LED light effects |
LED Effects
The plugin supports all 43 built-in LED effects:
| # | Effect | # | Effect | |---|--------|---|--------| | 0 | Solid | 22 | Gradient Cycle | | 1 | Rainbow | 23 | Rainbow Runner | | 2 | Rainbow Glitter | 24 | Twinkle Random | | 3 | Confetti | 25 | Two Color Chase | | 4 | Sinelon | 26 | Multi Color Chase | | 5 | BPM | 27 | Breathing | | 6 | Juggle | 28 | Hue Breathing | | 7 | Theater | 29 | Fire | | 8 | Theater Rainbow | 30 | Ice | | 9 | Color Wipe | 31 | Ocean | | 10 | Random Color Wipe | 32 | Lava | | 11 | Single Sparkle | 33 | Forest | | 12 | Multi Sparkle | 34 | Party | | 13 | Flash | 35 | Fairy | | 14 | Rainbow Flash | 36 | Candy Cane | | 15 | Christmas | 37 | Hanukkah | | 16 | Holi | 38 | Kwanzaa | | 17 | Comet | 39 | Valentine | | 18 | Bouncing Ball | 40 | Independence | | 19 | Multi Bouncing Ball | 41 | St Patrick | | 20 | Noise | 42 | Halloween | | 21 | Color Wave | | |
Requirements
- Homebridge v1.6.0 or later
- Node.js v18.0.0 or later
- An Oasis Mini sand table with network connectivity
- Your Oasis Mini device serial number
Installation
Using Homebridge UI (Recommended)
- Open the Homebridge UI
- Go to the Plugins tab
- Search for
homebridge-oasis-mini - Click Install
Using npm
npm install -g homebridge-oasis-miniConfiguration
Using Homebridge UI
- Open the Homebridge UI
- Go to Plugins > Homebridge Oasis Mini
- Click Settings
- Enter your device serial number
- Click Save
Manual Configuration
Add the following to your config.json:
{
"platforms": [
{
"platform": "OasisMini",
"name": "Oasis Mini",
"serial": "YOUR_SERIAL_NUMBER",
"pollingInterval": 30
}
]
}Configuration Options
| Option | Required | Default | Description |
|--------|----------|---------|-------------|
| platform | Yes | "OasisMini" | Must be "OasisMini" |
| serial | Yes | - | Your device serial number (e.g., OM123456789) |
| name | No | "Oasis Mini" | Display name in HomeKit |
| pollingInterval | No | 30 | Status polling interval in seconds (5-300) |
Finding Your Serial Number
Your Oasis Mini serial number can be found:
- On a sticker on the bottom of your device
- In the Oasis app under Settings
The serial number format is typically OM followed by numbers (e.g., OM123456789).
Usage
Once configured, four accessories will appear in your Home app:
Power Control
- ON: Wakes the device from sleep
- OFF: Puts the device to sleep
Drawing Control
- ON: Starts/resumes the current pattern
- OFF: Pauses the current pattern
Light Control
- Toggle the LED ring on/off
- Adjust brightness (0-100%)
- Change color using hue and saturation
LED Effect Selector
- Appears as a TV accessory in HomeKit
- Use the input selector to choose between 43 LED effects
- The current effect is shown as the active input
Siri Commands
Example voice commands:
- "Hey Siri, turn on the Oasis Mini"
- "Hey Siri, pause the Oasis Mini Drawing"
- "Hey Siri, set the Oasis Mini Light to blue"
- "Hey Siri, set the Oasis Mini Light to 50%"
- "Hey Siri, turn off the Oasis Mini Light"
Siri Control for LED Effects
The LED Effect selector uses a Television service, which doesn't support direct Siri voice commands for switching effects. However, you can use Apple Shortcuts to create Siri-enabled commands for your favorite effects:
- Open the Shortcuts app on your iPhone/iPad
- Tap + to create a new shortcut
- Add action → Home → Control [your home name]
- Select Oasis Mini LED Effect
- Choose the effect you want (e.g., Rainbow)
- Tap the shortcut name at the top and rename it (e.g., "Oasis Rainbow")
- Save the shortcut
Now you can say "Hey Siri, Oasis Rainbow" to activate that effect.
Repeat for any other effects you want to control by voice.
How It Works
The plugin communicates with your Oasis Mini via MQTT over WebSocket. It connects to the same cloud service used by the official Oasis app, so no local network configuration or port forwarding is required.
The plugin:
- Connects to the Oasis MQTT broker using your device serial number
- Subscribes to status updates from your device
- Sends commands when you interact with HomeKit controls
- Polls for status updates as a fallback (configurable interval)
Troubleshooting
Device not responding
- Ensure your Oasis Mini is powered on and connected to WiFi
- Verify the serial number is correct (check the Oasis app)
- Check the Homebridge logs for connection errors
- Restart Homebridge
Status not updating
- The plugin polls for status updates based on
pollingInterval - Real-time updates are received via MQTT when available
- Try reducing the polling interval for faster updates
Accessories not appearing in HomeKit
- Restart Homebridge
- Remove and re-add the Homebridge bridge in HomeKit
- Check that the plugin is configured correctly
Debug Logging
Enable debug logging in Homebridge to see detailed plugin activity:
DEBUG=* homebridgeDevelopment
Building from Source
# Clone the repository
git clone https://github.com/wowthatisrandom/Oasis-Mini-HB.git
cd homebridge-oasis-mini
# Install dependencies
npm install
# Build the plugin
npm run build
# Link for local development
npm linkAvailable Scripts
| Script | Description |
|--------|-------------|
| npm run build | Compile TypeScript to JavaScript |
| npm run watch | Watch mode for development |
| npm run lint | Run ESLint |
| npm run clean | Remove the dist folder |
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Disclaimer
This plugin is not affiliated with, endorsed by, or connected to Grounded LLC, the makers of Oasis Mini. Use at your own risk.
Acknowledgments
- Homebridge for the amazing home automation platform
- The Oasis Mini team for creating a beautiful product
