IF window close then.......

Posted on
Thu Aug 09, 2018 10:20 am
koburg offline
Posts: 167
Joined: Jul 27, 2017

IF window close then.......

Hi

since I never done a photon script before and I thing I need it here.
because else I need more triggers and the super condition plugin is no use in this example,
because it is not supporting the rfxcom plugin 100%

Device Window sensor
Device Somfy roller blind controlled from rfxcom.plugin

when I hit the down command for the roller blind I want to:

IF window is closed use the Somfy down command from rfxcom for the rollerblind all the way down.
But IF the window is open the I want the roller blind to execute the Somfy stop/my command from rfxcom.plugin instead.

anyone who can help me make a script to use in a trigger ?

Posted on
Thu Aug 09, 2018 12:08 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: IF window close then.......

Doesn't sound like you actually need a script for this at all. But one question first - when you say "hit the down command", what are you actually doing? Pressing a button on a remote? Touching a button on a control page? Something else?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Aug 09, 2018 2:24 pm
koburg offline
Posts: 167
Joined: Jul 27, 2017

Re: IF window close then.......

Yes I hit a button

Posted on
Thu Aug 09, 2018 2:28 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: IF window close then.......

koburg wrote:
Yes I hit a button


Control page or physical remote?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Aug 09, 2018 2:33 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: IF window close then.......

In any case, if you already have a trigger that fires when you push this button (whatever kind it is), then duplicate that trigger. In the first one, put a condition for the window being closed, then send the down command. In the second, put a condition for the window now closed, then send the My command.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest