Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96121

RESTful sensor to read data from Thingspeak

$
0
0

@Albertowue wrote:

Hi everyone, I need your help for a configuration.
I have a device that sends some data to Thingspeak and I would like to read this data and display it on Home Assistant.

The best way to do this is to create a sensor on the REST platform.

Through the request

https://api.thingspeak.com/channels/xxxxxx/feeds/last.json?api_key=myapikey

I get this result:

{"created_at":"2020-02-17T15:50:54Z","entry_id":71344,"field1":"16.45000","field2":"63.05078","field3":"986.28571","field4":"3.94000"}

field1 temperature, field2 humidity, field3 pressure and field4 battery.

How can I create the sensor? I would like to optimize the process, one request to populate 4 different sensors.

Posts: 10

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>