UPDATE: I used a YAML validator to discover that I had used sensor: before and you can only use it once and have to have them all below that. Problem solved. IT WORKED!
So I put this in my configuration.yaml; the API key and lat/long have been changed to protect the guilty. I should be able to go into Developer Tools, States and see the state of this sensor, but it’s not there. I have rebooted and reloaded and it’s not that. I have a registered API key that will reply correctly if I just paste the API request in my browser as a URL. Any idea what I am doing wrong?
sensor:
- platform: rest
name: “hamlineweather”
resource: “http://api.openweathermap.org/data/2.5/weather?lat=45.00&lon=-93.00&appid=ca223fd3df23de548c8b5c3beec9e4&units=imperial”
value_template: “{{ value_json.main.temp }}”
unit_of_measurement: ‘°F’
method: GET
headers:
Content-Type: application/json