I have a new Xiaomi Button and some smart bulbs I would like to control. I have a piston, but it seems to turn the light on, and then off after a press. Can someone help me figure this out?
settings
end settings;
execute
if
Laundry Room Switch’s button gets pushed
add a new condition
then
if
Laundry Room’s switch is off
add a new condition
then
with
Laundry Room
do
Set level to 100%;
add a new task
end with;
add a new statement
else
with
Laundry Room
do
Turn off;
What is a toggle action? could you explain a bit more?
I have been on the platform for a bit over 24 hours. My background in coding in JavaScript so general terms make sense, but actually getting it to work doesn’t seem to be.