I’m trying to setup multiple rest-sensors. one works fine, but when I try to add another one, I get this error
2017-06-04 12:28:38 ERROR (MainThread) [homeassistant.config] Invalid config for [sensor.rest]: required key not provided @ data['resource']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/sensor.rest/
Failed config
sensor.rest:
platform: rest
sensors: [source /home/homeassistant/.homeassistant/configuration.yaml:88]
playlist: [source /home/homeassistant/.homeassistant/configuration.yaml:92]
resource: http://192.168.1.64:8091/song.json
value_template: {{value_json.song}}
song: [source /home/homeassistant/.homeassistant/configuration.yaml:89]
resource: http://192.168.1.64:8091/song.json
value_template: {{value_json.song}}
Relevant yaml, parnthesis not in orginal file.
sensor: (line 88)
- platform: yr
monitored_conditions:
- symbol
- temperature
- cloudiness
- platform: rest
sensors:
song:
resource: http://192.168.1.64:8091/song.json
value_template: '{{value_json.song}}'
playlist:(line 92)
resource: http://192.168.1.64:8091/song2.json
value_template: '{{value_json.song}}'