This directory contains the complete set of official example plugins from the Indigo SDK (version 2025.1).
These are working, production-quality examples that demonstrate best practices for different types of plugins.
Use for: General-purpose devices with custom states
The most flexible device type. Use this when you need:
- Custom state names and types
- Device-specific properties
- Full control over device behavior
Key concepts demonstrated:
- Custom state definitions in Devices.xml
- State updates with
updateStatesOnServer() - Device property management
- Custom UI fields
Use for: On/off and dimmable devices (lights, switches, outlets)
Demonstrates standard relay (on/off) and dimmer (brightness) devices.
Key concepts demonstrated:
indigo.kDeviceTypeId.Relaydevice typeindigo.kDeviceTypeId.Dimmerdevice typeactionControlDevice()for on/off/dim actions- Brightness control (0-100)
- Status request handling
Use for: Climate control, HVAC systems
Full thermostat implementation with heating/cooling modes.
Key concepts demonstrated:
indigo.kDeviceTypeId.Thermostatdevice type- Temperature setpoints (heat, cool)
- HVAC modes (off, heat, cool, auto)
- Fan control
- Temperature display and units
actionControlThermostat()callback
Use for: Read-only monitoring devices (temperature, humidity, motion)
Demonstrates sensor devices that report values but don't accept commands.
Key concepts demonstrated:
indigo.kDeviceTypeId.Sensordevice type- Read-only state updates
- Sensor value types
- Display in Indigo UI
- Periodic polling patterns
Use for: Variable speed devices (fans, motor controls)
Speed control device with variable speed settings.
Key concepts demonstrated:
indigo.kDeviceTypeId.SpeedControldevice type- Speed levels (0-100%)
- Speed presets
actionControlSpeedControl()callback
Use for: Irrigation systems, multi-zone controllers
Multi-zone sprinkler controller.
Key concepts demonstrated:
indigo.kDeviceTypeId.Sprinklerdevice type- Zone management
- Zone scheduling
- Run times and durations
actionControlSprinkler()callback
Use for: Energy monitoring, power measurement
Energy meter device for tracking power consumption.
Key concepts demonstrated:
- Energy/power accumulation
- Real-time power readings
- Total energy consumed
- Cost calculations
- Time-series data
Use for: Dynamic device creation, device templates
Demonstrates programmatic device creation and management.
Key concepts demonstrated:
- Creating devices from plugin code
- Device templates
- Dynamic device lists
- Device configuration UI generation
Use for: Web interfaces, REST APIs, dashboards
Creates a web server within your plugin to serve web pages and APIs.
Key concepts demonstrated:
- Built-in HTTP server
- Serving static files from Resources/
- Dynamic content generation
- RESTful API endpoints
- JSON responses
- Control panel/dashboard creation
Use for: Complex actions, custom commands
Demonstrates the Action API for creating custom actions.
Key concepts demonstrated:
- Action definitions in Actions.xml
- Action callbacks
- Action parameters
- Action validation
- Concurrent action execution
Use for: Plugin-to-plugin communication
Broadcasts custom messages that other plugins can subscribe to.
Key concepts demonstrated:
- Broadcasting custom messages
- Message payload structure
- Broadcast timing
- Communication patterns
Use for: Listening to other plugins
Subscribes to and handles messages from broadcaster plugins.
Key concepts demonstrated:
- Subscribing to broadcasts
- Message handling
- Filtering messages
- Response actions
Use for: Monitoring Indigo variables
Monitors Indigo variables and responds to changes.
Key concepts demonstrated:
indigo.variables.subscribeToChanges()variableUpdated()callback- Variable value access
- Triggered actions on variable changes
Use for: Accessing Indigo's database, reporting
Demonstrates traversing and querying Indigo's internal database.
Key concepts demonstrated:
- Database access patterns
- Iterating devices
- Iterating variables
- Iterating action groups
- Data collection and reporting
Use for: INSTEON/X10 device integration
Listens for INSTEON and X10 protocol messages.
Key concepts demonstrated:
- INSTEON message listening
- X10 protocol handling
- Device address parsing
- Raw message processing
Use for: Z-Wave device integration
Listens for Z-Wave protocol messages.
Key concepts demonstrated:
- Z-Wave message listening
- Node ID handling
- Command class parsing
- Z-Wave event processing
Each example is a complete, working plugin you can install and test:
# Copy to Indigo plugins folder
cp -r "Example Device - Custom.indigoPlugin" \
"/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/"Then enable in Indigo: Plugins → Manage Plugins
Copy an example as a starting point for your plugin:
# Copy example to your workspace
cp -r "Example Device - Custom.indigoPlugin" "MyPlugin.indigoPlugin"
# Edit Info.plist to change CFBundleIdentifier
# Edit plugin.py with your logicStudy how the examples solve common problems:
- Configuration UI patterns
- State management
- Error handling
- API callbacks
- Threading
Multiple examples may solve similar problems differently. Compare approaches to understand trade-offs.
Each example plugin follows this structure:
Example.indigoPlugin/
└── Contents/
├── Info.plist # Plugin metadata
├── Server Plugin/
│ ├── plugin.py # Main plugin class
│ ├── Devices.xml # Device definitions
│ ├── Actions.xml # Action definitions (if applicable)
│ ├── Events.xml # Event/trigger definitions (if applicable)
│ ├── MenuItems.xml # Menu items (if applicable)
│ └── PluginConfig.xml # Plugin config UI (if applicable)
└── Resources/ # Web content (HTTP Responder example)
These examples are from Indigo SDK 2025.1 and are designed for:
- Indigo 2023.2+
- Python 3.10+
- ServerApiVersion 3.0
For older Indigo versions (Python 2.7), see the reference folder for migration guides.
- Official Plugin Guide
- Object Model Reference
- SDK Documentation - Organized guides and references
- Python 3 Migration Guide
- 📚 Check the SDK Documentation
- 💬 Ask in GitHub Discussions
- 🌐 Visit Indigo Developer Forum
Found an issue or improvement in these examples?
- Check if it's a documentation issue (we can fix)
- Or report to Indigo's official SDK repository
These are copies of official Indigo SDK examples for convenience and reference.