YAML error "Unable to find action with the name 'http_request.post'"

This YAML keeps giving me an error saying “Unable to find action with the name ‘http_request.post’”

I am trying to send an http post request when I get an updated temperature reading.

I think it might have something to do with my JSON but I’m not sure.

Can someone please help.

sensor:
  - platform: dht
    model: DHT11
    pin: D1
    temperature:
      id: temp
      name: "Bedroom Temperature"
      on_value:
        then:
          - http_request.post:
              url: http://192.168.0.195:8080/temp
              headers:
                Content-Type: application/json
              json: |-
                root["temp"] = id(temp).state;
    humidity:
      name: "Bedroom Humidity"
    update_interval: 60s

Welcome!

Have you remembered to set up the component, as stated at top of the http_request page?

http_request:
  useragent: esphome/device
  timeout: 10s

No I did not.
Thank You!