Complete working examples and implementation patterns for Indigo plugin development.
The skill includes 16 complete, production-quality example plugins from the official Indigo SDK.
See: SDK Examples Guide - Complete catalog with descriptions and use cases
These are located in ../../sdk-examples/ and cover:
- Device Types: Custom, Relay, Dimmer, Thermostat, Sensor, Speed Control, Sprinkler, Energy Meter
- Integration: HTTP Responder, Action API, Custom Broadcaster/Subscriber, Variable Subscriber
- Hardware: INSTEON/X10, Z-Wave listeners
- Advanced: Database Traverse, Device Factory
For Claude (AI Assistant): Don't load all SDK examples into context. Instead:
- Reference sdk-examples-guide.md to find the relevant example
- Use Read tool to load only the specific example needed
- Point users to the example location in
../../sdk-examples/
Extracted patterns and best practices from real-world plugins. These are lightweight guides focused on specific implementation patterns rather than complete plugins.
| I need to... | Use This Example |
|---|---|
| Create a custom device with unique states | Example Device - Custom |
| Control lights or switches | Example Device - Relay and Dimmer |
| Build a thermostat | Example Device - Thermostat |
| Create read-only sensors | Example Device - Sensor |
| Track energy usage | Example Device - Energy Meter |
| Control irrigation zones | Example Device - Sprinkler |
| Build a web API or dashboard | Example HTTP Responder |
| Create plugin actions | Example Action API |
| Communicate between plugins | Example Custom Broadcaster/Subscriber |
| React to variable changes | Example Variable Change Subscriber |
| Scan the Indigo database | Example Database Traverse |
We're building a library of extracted patterns from successful plugins:
- API Integration Patterns - RESTful APIs, OAuth, rate limiting
- Polling Strategies - Efficient device polling, backoff algorithms
- Error Handling - Robust error recovery, retry logic
- State Synchronization - Keeping plugin state in sync with hardware
- Configuration UI Patterns - Dynamic lists, validation, user feedback
- Threading Patterns - Safe concurrent access, thread coordination
- Web Dashboard Patterns - Building responsive web UIs
- Device Discovery - Auto-discovering network devices
- Authentication Patterns - API keys, tokens, OAuth flows
- Caching Strategies - Reducing API calls, cache invalidation
- Browse the Catalog: Read sdk-examples-guide.md to understand what each example demonstrates
- Find Similar Example: Match your use case to the closest example
- Study the Code: Right-click bundle → Show Package Contents → review
plugin.py - Try It: Enable the example in Indigo to see it in action
-
Copy the Example:
cp -r "../../sdk-examples/Example Device - Custom.indigoPlugin" MyPlugin.indigoPlugin -
Customize Info.plist:
- Change
CFBundleIdentifierto unique value - Update
CFBundleDisplayName - Adjust version numbers
- Change
-
Adapt the Code:
- Replace example logic with your integration
- Modify Devices.xml for your device types
- Update Actions.xml for your actions
-
Test:
cp -r MyPlugin.indigoPlugin "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/"
Use examples to answer specific questions:
- "How do I handle thermostat setpoints?" → See Thermostat example
- "How do I build a REST API?" → See HTTP Responder example
- "How do I subscribe to variable changes?" → See Variable Change Subscriber
Have a useful pattern or example? We'd love to include it!
Good pattern documentation includes:
- Clear problem statement
- Complete working code
- Explanation of key concepts
- When to use this pattern
- Alternatives and tradeoffs
- Common pitfalls
See CONTRIBUTING.md for guidelines.
- SDK Examples Guide - Complete catalog of all 16 SDK examples
- Quick Start - Get a plugin running in minutes
- Concepts - Core architectural concepts
- Patterns - Implementation patterns (coming soon)
- API Reference - Detailed API documentation
- Indigo Plugin Forum - User-contributed plugins
- Indigo Developer Forum - Development discussions
- Official Plugin Guide
When helping users find examples:
- Check sdk-examples-guide.md first - it has comprehensive descriptions
- Match use case to example type using the quick reference table above
- Read specific example code only when needed - don't load all examples
- Reference by name - e.g., "See Example Device - Thermostat"
- Point to specific sections - e.g., "See the actionControlThermostat() method"
Context optimization: The sdk-examples-guide.md is 8KB - safe to reference. The actual example plugins total 1.3MB - only load specific files when needed.