Having one device track the state of another - in 1 trigger

Posted on
Fri Jun 14, 2019 8:04 am
berkinet offline
User avatar
Posts: 3359
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Having one device track the state of another - in 1 trigger

I have two devices (both Z-Wave controlled lights, but that shouldn't really make a difference for this case) and I would like light 2 two track the state of light 1. That is, whenever light 1 turns on, light 2 should turn on and when light 1 turns off, light 2 should turn off. Light 1 does not need to track the state of light 2 (I.e. they do not always need to be in synch).

I can do this with two triggers, one for light 1's on-state and the other for the off-state. And, I can do it in 1 trigger (on any state change) with a few lines of scripting.

My question is: Is it possible to do this in one trigger without scripting?

Posted on
Fri Jun 14, 2019 10:49 am
jay (support) offline
Site Admin
User avatar
Posts: 15690
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Having one device track the state of another - in 1 trig

If they are both dimmers, you can use the Match Brightness action I think. Probably should have a similar "Match On State" or something for non-dimmables (that's on the list already).

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Jun 14, 2019 10:51 am
berkinet offline
User avatar
Posts: 3359
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Having one device track the state of another - in 1 trig

jay (support) wrote:
If they are both dimmers...
...Probably should have a similar "Match On State" or something for non-dimmables (that's on the list already).

They are on/off. Thanks for the response.

Posted on
Tue Jun 25, 2019 4:15 pm
mundmc offline
User avatar
Posts: 555
Joined: Sep 14, 2012

Re: Having one device track the state of another - in 1 trig

^ Just cut my triggers down by 5! Great question/ answer.

Posted on
Wed Jun 26, 2019 6:59 am
jalves offline
Posts: 528
Joined: Jun 16, 2013

Re: Having one device track the state of another - in 1 trig

jay (support) wrote:
If they are both dimmers, you can use the Match Brightness action I think. Probably should have a similar "Match On State" or something for non-dimmables (that's on the list already).

I wonder if the Match Brightness action would work for virtual 3-way switches to keep them in sync. Hmmmm....

Running Indigo 7.3.1 on a 27" iMac (mid-2017), 40G memory, 1T Fusion Drive, OS X 10.14.6
Jeff

Posted on
Mon Sep 30, 2019 4:07 pm
jay (support) offline
Site Admin
User avatar
Posts: 15690
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Having one device track the state of another - in 1 trig

berkinet wrote:
jay (support) wrote:
If they are both dimmers...
...Probably should have a similar "Match On State" or something for non-dimmables (that's on the list already).

They are on/off. Thanks for the response.


Indigo 7.4 now has Match On State to Device and Match On State to Variable actions as well as a new Match Brightness to Variable action.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest