convert AppleScript to python to sync master/slave switches

Posted on
Tue Apr 28, 2020 2:04 pm
jwparce offline
Posts: 2
Joined: Apr 28, 2020

convert AppleScript to python to sync master/slave switches

I have a number of 3 and 4 way Insteon dimmer switches. Linking them makes them function properly when they are switched manually. If the master switch is turned on or off using indigo on the computer, the relevant slave switches don't change so that they indicate a different state on their brightness level LEDs from that of the master switch. I used to fix this by making a trigger that matches the slave switches state with that of the master switch. The AppleScript is "set brightness of device "name of slave switch" to brightness of device "name of switch".
Is there another way to accomplish this sync? If not, what is the equivalent Python code to achieve this action?

Posted on
Tue Apr 28, 2020 2:18 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: convert AppleScript to python to sync master/slave switc

You don't need to use scripting for this now that we've added several "Match On State" and "Match Brightness" actions to Indigo. In this case I believe you want the Match Brightness of Device action type.

Image

Posted on
Wed Apr 29, 2020 12:10 pm
jwparce offline
Posts: 2
Joined: Apr 28, 2020

Re: convert AppleScript to python to sync master/slave switc

Thanks much Matt. That does the trick. I guess I should spend more time poking around inside Indigo.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests