Page 1 of 1

Omit Certain Insteon Devices When Using All Off command

PostPosted: Wed Feb 07, 2024 5:56 am
by Midnightsun
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?

Re: Omit Certain Insteon Devices When Using All Off command

PostPosted: Wed Feb 07, 2024 6:15 am
by ryanbuckner
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")



Re: Omit Certain Insteon Devices When Using All Off command

PostPosted: Wed Feb 07, 2024 12:53 pm
by jay (support)
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).

Re: Omit Certain Insteon Devices When Using All Off command

PostPosted: Wed Feb 07, 2024 4:08 pm
by Midnightsun
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.