The code is available from Hubitat Package Manager.
Application Details
- Each Switch LED Dashboard Manager app may have one or more LED dashboards
- You can create one or more Switch LED Dashboard Manager apps to organize your dashboards
- Using the same switches across multiple dashboards and managers is supported
- Each dashboard may be paused and resumed using the button next to the name field
- Each dashboard may have any number of conditions defined with each condition being assigned a priority from 1 - 9
- Conditions with a higher priority number (e.g. 9) are prioritized over a conditions with lower numbers (e.g. 1)
- Each condition has the following settings:
- LED Number: Select a specific LED, 'All' or use a Hub variable
- LED Effect: Select a specific effect or use a Hub variable
- LED Color: Select a specific color or use a Hub variable
- Duration: Use Indefinitely to leave the effect running or select the time unit (Hours, Minutes or Seconds) and enter the numeric value
- Level: Set the brightness level for the LED effect
- One of more condition rules can be defined using the select dropdown:
- When using multiple condition rules, you can select to match on Any or All
- When selecting multiple devices you can also select to match on Any or All devices
- You can select a Hub variable and a matching value to trigger on
- You can also trigger based on Hubitat Safety Monitor events (armed/intrusion etc.)
Switch LED Activation
- The application will subscribe to all the devices, variables and HSM as needed when the Done button is selected
- When an event is received all the conditions will be evaluated for changes and any conflicts resolved based on priority (if a conflict happens between the same priority level the result is undefined)
- Conditions using All LEDs will take priority over those using individual LEDs
- The application tracks each LED on each switch (by subscribing to the switch ledEffect events) and attempts to send only changes in order to minimize the Zigbee traffic