Actually, his AppleScript will force all devices to update their state (thus causing tons of traffic on whatever technology he's using: Insteon, Z-Wave, etc). The equivalent Python script is:
- Code: Select all
for dev in indigo.devices:
try:
indigo.device.statusRequest(dev)
except:
pass
But, I would highly recommend that you NOT do this. Status requests can be expensive, particularly in Insteon networks, and will likely do more harm than good because of all the extra traffic that it'll generate (potentially causing even more failures). If you have specific devices that somehow get out of sync, then you can do those, but going through every device in the system is not advised.