Omit Certain Insteon Devices When Using All Off command

Posted on
Wed Feb 07, 2024 5:56 am
Midnightsun offline
Posts: 44
Joined: May 21, 2011

Omit Certain Insteon Devices When Using All Off command

Our wifi router is in a rather inaccessible area and have decided to install an insteon outlet module in order to reboot manually as required however I do not want it to switch the wifi router to off when the all off command is sent.
Is there an easy way of not sending an off command to an insteon wall plug or any other module for that matter when all off is used?

Posted on
Wed Feb 07, 2024 6:15 am
ryanbuckner offline
Posts: 1080
Joined: Oct 08, 2011
Location: Northern Virginia

Re: Omit Certain Insteon Devices When Using All Off command

The only way I know is with a python script. Cycle through all the Insteon devices and turn them off, but add a clause to skip that one by name or device id.

Here's an example of the script I use to save the on/brightness state for each of the switches and dimmers, which you'll have to modify to turn off instead

Code: Select all
##########################################################################
# Take the snapshot

import json

relList = []
dimList = []

# cycle through devices and save the state values of relays and dimmers
for device in indigo.devices.iter("indigo.relay, indigo.dimmer"):
   if device.pluginId != "com.perceptiveautomation.indigoplugin.devicecollection" and device.pluginId != "com.ryanbuckner.indigoplugin.samsungtv" and device.pluginId != "com.flyingdiver.indigoplugin.bondhome" and device.enabled:
      if (isinstance(device, indigo.DimmerDevice)):
         dimList.append({'id': device.id, 'name': device.name, 'brightness': device.brightness })
      else:
         relList.append({'id': device.id, 'name': device.name, 'state': device.onState })

# save the dimmer list to a variable
indigo.variable.updateValue(1322749870, value=json.dumps(dimList))

# save the relay list to a variable
indigo.variable.updateValue(581444171, value=json.dumps(relList))

# log success
indigo.server.log("Snapshot captured")



Posted on
Wed Feb 07, 2024 12:53 pm
jay (support) offline
Site Admin
User avatar
Posts: 18225
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Omit Certain Insteon Devices When Using All Off command

I think the easiest way of doing this is to create a Device Group (in the Virtual Devices interface) which contain all devices that you want to control all at once. Then just turn that group on/off as necessary.

FYI, the built-in all on/all off actions only work on X10 and Insteon devices so you should use this approach if you have devices using other technologies (i.e. Z-Wave, etc).

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Feb 07, 2024 4:08 pm
Midnightsun offline
Posts: 44
Joined: May 21, 2011

Re: Omit Certain Insteon Devices When Using All Off command

I have been using an "Action Group" I created called all/off and putting everything in there that I want turned off and omitting those I want to stay on. This works well but I was hoping I was overlooking something that would be easier. Thanks for the input everyone.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 6 guests