This object is in archive! 

Rule to send out sensors values as HTTP Request

Johannes shared this question 8 years ago
Need Answer

I upgraded my system to Message Pro in order to get sensor values out of the Zipabox. Now I'm curious

if someone else is doing the same and if there is anything in particular to considered in order get it to function.


I created a rule which every 15 minutes are supposed to do a HTTP Request Put to ThingSpeak for three different sensors that have 2 values available each. There are three rules, one per sensor. https://thingspeak.com/channels/58108.


It works pretty well with the temperature value for the first and second sensors, but the third isn’t updated correctly.


The Humidity values is randomly updated for the first sensor and not all for the other two.


The rule creates the following Put URL: https://api.thingspeak.com/update?key=XXXXXXXXX&field1=${attributes.get("c0326c2e-8b5e-4008-a8cd-0efac37189d7","com.zipato.cluster.MultiLvlSensor", "value1")}.


I added some manual values to ThingSpeak by the URL and it works fine.


So, anyone else who is doing a similar thing with output of sensor values who can assist in the creation of rules that function?


Thanks,


Johannes

Replies (2)

photo
1

Did you find any solution? I have the same problem sending values to other page...

photo
1

I've chosen a different way, a shell script which requests all attributes of everything on my Zipabox through the REST API and then sends these to openhab through its REST API. This one is working fine as long as there are no generic issues like server outage or slow or whatever

Leave a Comment
 
Attach a file