I’m trying to figure out a way to have it so button 1 on my ge switch (double tap up) toggles between loop and daylight for my backlighting and button 2 turns the light off. Can this be done? Or does toggle solely work for on/off commands?
Hmm, you might need a way of knowing what state the lights are currently in for daylight and loop…Is this information displayed currently in the ST App?
If you are familar with webCoRE, you can test it out there. See if you have these options:
If Light is Daylight
If Light is Loop
If so then you can say this in webCoRE:
If Button 1 is pushed
And
Light is Daylight
Then using Light
Loop
If Button 1 is pushed
And
Light is Loop
Then using Light
Daylight
If Button 2 is pushed
Then using Light
Turn Off
i don’t think i can specify if light is loop
Close…However, I wouldn’t use Else If just start another If Block.
If Switch changes to on
And
Light is Off
Then using Light
Turn On
Now start another separate If Block
If Button 1 is pushed
And
Light is Daylight
And
Light is On
Then using Light
Loop
Now start another separate If Block
If Button 1 is pushed
And
Light is not Daylight
And
Light is On
Then using Light
Set color to Daylight
Now start another separate If Block
If Button 2 is pushed
Then using Light
Turn Off
it’s hard to say within the app if it’s working or not though, guess i won’t be sure until i get home
Seems OK outside of the 2nd and 3rd If Blocks.
I would add the argument in the If portions:
And
Light is On
I would take out in the Then portions
Turn On
Either way it should work the way you have it now.
so I tried to run it at home. and what’s happening is that it’ll turn daylight, if I double tap again it turns blue but then quickly back to daylight.