Help with Rest Configuration

Hi Guys,

I’m sure someone here can help me, I have just setup a mini weather station using the following ESP board http://www.switchdoc.com/weatherplus/

The software running in the board allows rest calls as can be seen here http://www.switchdoc.com/2016/06/ourweather-rest-interface-interface-raspberry-pi/

So I can make a rest call such as https://192.168.1.118/IndoorTemperature which is display the temp from the boad in my browser in json format as below

{"IndoorTemperatur
e": 27.47, "id":
"1", "name":
"OurWeather",
"connected": true}

I’m now wondering how to get this information into hassio? I had assumed that I would use the aRest Intergration, but so far I’ve been unable to make this work. https://www.home-assistant.io/integrations/rest/

I’m sure its really simple, but I’m struggling, I’d really appreciate if someone could point me in the right direction? Do I need a value template??

Here’s an example sensor for your indoor temperature.

- platform: rest
  name: Indoor Temperature
  resource: https://192.168.1.118/IndoorTemperature
  value_template: '{{ value_json.IndoorTemperature }}'
  unit_of_measurement: °C

You should be able to adapt it to others.

Note this assumes you do not need authentication (username & password) to access the weather station.

1 Like

Thanks @tom_l

How has the SwitchDoc Weather Station worked for you?
I’m thinking of getting one, and would like some input.