I would like to update this Last Update timestamp each time the script runs so I know that the API is executing properly, even if the state does not change.
I saw this code in the documentation. Is there something similar to update the Last Update timestamp ?
Code: Select all
virtual_devices_interface = indigo.server.getPlugin("com.perceptiveautomation.indigoplugin.devicecollection")
if virtual_devices_interface.isEnabled():
virtual_devices_interface.executeAction('setVirtualDeviceState', deviceId=DEVICEIDHERE, props={'newValue': 'on'})