Platform not found: 'sensor.http_request'

Hello , i am struggling since weeks about this topic. someone an idea?

http_request:
  useragent: esphome/device
  timeout: 30s
  id: http_request_test

binary_sensor:
  - platform: template
    name: "Tasmota Switch Status"
    id: tasmota_switch
    lambda: |-
      return id(tasmota_status).state == "ON";

sensor:
  - platform: http_request
    name: "Tasmota Status"
    id: tasmota_status
    method: GET
    url: http://192.168.1.76/cm?cmnd=Power
    headers:
      Content-Type: application/json
    value_template: "{{ value_json.POWER }}"
    scan_interval: 10s

Compiling error is :

`INFO ESPHome 2023.10.1
INFO Reading configuration tasmota2.yaml...
Failed config

sensor.http_request: [source tasmota2.yaml:49]

  Platform not found: 'sensor.http_request'.
  platform: http_request
  name: Tasmota Status
  id: tasmota_status
  method: GET
  url: http://192.168.1.76/cm?cmnd=Power
  headers:
    Content-Type: application/json
  value_template: {{ value_json.POWER }}
  scan_interval: 10s`

http_request is not a sensor, it’s an action.

1 Like