Configuration.yaml not validating

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:


Example configuration.yaml entry

  - platform: scrape
    resource: ''
    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 ?).

Because the select key is required.

If you are looking to do a http request and not scrape a website, you should use a rest sensor instead.

select is required Scrape - Home Assistant