This is a direct port:
- Code: Select all
import time
ignore_list = [
"RemoteLinc 2 Wireless Keypad",
"Guest Bedroom Remote Control",
"003 - Downstairs Hall Motion Sensor",
"004 - Entry Hall Motion Sensor",
"005 - Upstairs Hall Motion Sensor",
"006 - Inside Garage Motion Sensor"
]
for device in indigo.devices:
if device.name not in ignore_list and device.supportsStatusRequest:
indigo.device.statusRequest(device)
time.sleep(.75)
Be sure to run this as an external script (not embedded). One obvious improvement would be to make ignore_list a list of device ids rather than names so you could change the name and it would still work as expected.
I have to ask though: why are you running this daily? If you're having device out of sync issues wouldn't it be better to get to the bottom of that problem? I'm pretty sure if you have a lot of Insteon devices that this script is going to cause tons of problems because it's flooding the network with lots of traffic. And Insteon is terrible when it comes to network collisions.