Im new to home assistant. Im trying to the get power state of my sonoff device using HTTP requests
The problem is my config yaml file is erroring and when i google the error i cant find any answers
I pasted this at the bottom of my config yaml file:
sensor:
Example configuration.yaml entry
sensor:
- platform: scrape
resource: 'http://192.168.0.160/cm?cmnd=Power'
name: 'myBedroom Light'
value_template: "{{ value.POWER }}"
The error im getting is: Invalid config for [sensor.scrape]: required key not provided @ data[‘select’]. Got None. (See ?, line ?).