Page 1 of 1

convert AppleScript to python to sync master/slave switches

PostPosted: Tue Apr 28, 2020 2:04 pm
by jwparce
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?

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

PostPosted: Tue Apr 28, 2020 2:18 pm
by matt (support)
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.

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

PostPosted: Wed Apr 29, 2020 12:10 pm
by jwparce
Thanks much Matt. That does the trick. I guess I should spend more time poking around inside Indigo.