New to Hubitat, migrated from SmartThings and very much like the local execution and the Hubitat platform.
Wondering what the optimal approach would be in Hubitat to emulate what one could use a “switch” or “case” statement to do in WC. I had several pistons that tested the Mode variable to dispatch to the code blocks in the switch, executing specific device commands (e.g., turn on, off, dim selected lights and switches) for each Mode.
Simple example is Christmas Tree Lighting:
- Day - switch on
- Evening - switch on
- Away - switch off
- Asleep - switch off
- Dawn - switch on
It appears one can accomplish this in many ways, several Simple Lighting Rules, a few RM triggered rules, maybe the Mode Lighting app (although it seems specifying a switch off is not supported by Mode).
Any advice as to the cleanest way to accomplish this in Hubitat would be appreciated.