Hi there.
I'm trying to clone a HTTP Push Advanced sensor via API then push to it.
(note: username and password url parameters have been removed)
This is the clone via API:
/api/duplicateobject.htm?id=2094&name=new_sensor_name&targetid=2080
After clone I change sensor token:
/api/setobjectproperty.htm?id=2106&name=httppushtoken&value=new_token
Then resume (un-pause):
/api/pause.htm?id=2106&action=1
When I then attempt to push data to this sensor I receive:
{ "status": "Ok", "Matching Sensors": "0" }
I have noticed in my testing that if I wait for a few minutes then re-issue the push request it then succeeds. But waiting a few minutes in my code is undesirable.
What else do I need to do via API so that my new sensor can receive push?
Add comment