Advice on HTTP sensor

Hi all, I want to create a sensor which I will set the state of purely via HTTP posts from another HASS instance. I should use https://home-assistant.io/components/sensor.http/ but how do I declare this sensor in my config file?

e.g.
sensor:
platform: http
name: http_sensor1

??

You don’t need to declare the sensor in your config file. When HASS receives it’s first HTTP-POST it will create the sensor for you.

1 Like