I'm using the API with setdeviceproperty to update Status on a handful of devices. I'm using setdeviceproperty because the device status in question are either Status only values or Status only devices, so you can't update them using controlbydevicelabel.
After much splunking through the board, and trial and error, I ended up with the following:
This works to update the Status value and Status string, and HS3Touch appropriately updates and picks up the status change.
HOWEVER, I have events that need to trigger off of the status change, and they aren't triggering. I also notice that the Last Change time for the device isn't getting updated with the above code - I don't know if that's a symptom or a cause, but thought I'd raise it in case it is relevant.
So basically, does anyone know how to get the above to also trigger event's that trigger off that status, or if Last Changed time is the issue anyone know how to force the API to update the last Changed time for the device?
regards,
Paul
After much splunking through the board, and trial and error, I ended up with the following:
Code:
2018-07-07 10:00:27,364 DEBUG: http://home.myhsserver.ca/JSON?&request=setdeviceproperty&ref=569&property=NewDevValue&value=0 2018-07-07 10:00:28,384 DEBUG: http://home.myhsserver.ca/JSON?&request=setdeviceproperty&ref=569&property=ChangedValueORString&value=TRUE
HOWEVER, I have events that need to trigger off of the status change, and they aren't triggering. I also notice that the Last Change time for the device isn't getting updated with the above code - I don't know if that's a symptom or a cause, but thought I'd raise it in case it is relevant.
So basically, does anyone know how to get the above to also trigger event's that trigger off that status, or if Last Changed time is the issue anyone know how to force the API to update the last Changed time for the device?
regards,
Paul
Comment