I’m a developer and need some webCoRE “mindset guidance” to understand the right constructs for approaching my personal project… webCoRE looks great, but I don’t know its variables, virtual devices, etc work or when I should use them.
Inventory:
3x Cooper dimmers (w/ level indicators)
3x Hue color bulbs.
Goal:
Dimmers should act as a 4way, and the bulbs should act as one.
Brute force approach:
- Create piston: when DIM1 is turned on, turn on DIM2, DIM3, LIGHT1, LIGHT2, LIGHT3.
- Create piston: when DIM1 is turned off, turn off DIM2, DIM3, LIGHT1, LIGHT2, LIGHT3.
- Create piston: when DIM1 level changes, set level of DIM2, DIM3, LIGHT1, LIGHT2, LIGHT3.
- Create piston: when DIM2 is turned on, turn on DIM1, DIM3, LIGHT1, LIGHT2, LIGHT3.
- Create piston: when DIM2 is turned off, turn off DIM1, DIM3, LIGHT1, LIGHT2, LIGHT3.
- Create piston: when DIM2 level changes, set level of DIM1, DIM3, LIGHT1, LIGHT2, LIGHT3.
- Create piston: when DIM3 is turned on, turn on DIM1, DIM2, LIGHT1, LIGHT2, LIGHT3.
- Create piston: when DIM3 is turned off, turn off DIM1, DIM2, LIGHT1, LIGHT2, LIGHT3.
- Create piston: when DIM3 level changes, set level of DIM1, DIM2, LIGHT1, LIGHT2, LIGHT3.
Need Thoughts/Pointers/Tips on how to:
- Create DIMS as a single value to represent the level of the dimmers (DIM1, DIM2, DIM3),
- Have a physical change DIM1, DIM2 or DIM3 set the level of DIMS (to the level of the touched dimmer),
- When DIMS changes, put its level value into DIM1, DIM2 and DIM3,
- Have LIGHT1, LIGHT2 and LIGHT3 act as one and use the state of DIMS for on/off/level.
It feels like this could be a just few pistons and a variable/virtualdevice (?) or two. I bolded a few of the concepts I’ll need to learn/piece together to make this work. I could do the brute force approach, but I’d like to learn, and I’m opposed to ugly solutions
Any thoughts are appreciated. I’ll post/continue my learnings in this thread.
Thanks