Hi.
I have this multistate device for changing state on my mobile phone:
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.
IF multistate-device change to value?
Moderator: leecollings
-
- Posts: 140
- Joined: Wednesday 17 December 2014 17:30
- Target OS: Linux
- Domoticz version: V3.8650
- Location: Jyväskylä, Finland
- Contact:
Re: IF multistate-device change to value?
Store the changed status to some user variable for example and compare also to that
pseudo code:

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
LXC(x64 Ubuntu Xenial), RFXtrx433E, MySensors
Who is online
Users browsing this forum: No registered users and 1 guest