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