On an Off Master


#1

1) Give a description of the problem
I have the gocontrol switch (https://www.amazon.com/gp/product/B00EAY3K5Y) and it kind of works, but not how I hoped.

2) What is the expected behavior?
I basically want that if you touch either the on or off on this gocontrol that it follows this logic: if any of these 3 lights are on, turn them all off. If none of them are on, turn them all on.

3) What is happening/not happening?
I hoped I could use that switch to turn 3 other ones on and off. If all of the lights are off and I use the go control only, to turn all the lights on and off, it works. But if I use the actual load controllers to turn it on or off, the gocontrol becomes useless. I suspect this is because the gocontrol has an internal on and off state which doesn’t work for me.

4) Post a Green Snapshot of the pistonimage
image

image

5) Attach any logs (From ST IDE and by turning logging level to Full)
(PASTE YOUR LOGS HERE BETWEEN THE MARKS THEN HIGHLIGHT ALL OF THE LOGS SND CLICK ON THE </> ICON TO FORMAT THEM)


#2

try changing indicatorstatus is when off/on to switch is off/on


#3

Thanks! This kind of helped, it’s working better, but still only partially, depending on the switches status. The switch has a green light when it is on. If it is on, it seems like the logic is generally working, but if it is off, not so much. Hope that makes sense. I basically want whether you press up on the paddle or down, it does that same logic.


#4

Try something like this


#5

Thanks! This is going to sound bad, but I’m struggling to figure out how to write the code directly (versus using the “options”) and can’t figure out how to do some of what you’ve put in there with clicks.


#6

I’m working right now. But what are you struggling with?