Page 1 of 1

IF multistate-device change to value?

Posted: Friday 03 February 2017 22:23
by Evelen
Hi.
I have this multistate device for changing state on my mobile phone:
Uten navn.png
Uten navn.png (30.5 KiB) Viewed 574 times
I want to do this:

If multistate device CHANGES TO (from other state) "Lader ikke" and if som other devices is off
do: dim 3 lights to 10%

how can i do this?
I only want it to trigger if the multistate device changes to "lader ikke", not if it IS "lader ikke" and some of the other switches change status.

Re: IF multistate-device change to value?

Posted: Friday 03 February 2017 23:48
by pj-r
Store the changed status to some user variable for example and compare also to that 8-)

pseudo code:

Code: Select all

if yourswitch.status = wantedstatus and yourswitch.status <> laststatus then 
 do the stuff... set dimmer.
end if
set laststatus = yourswitch.status