Hi,
I am looking for a way to create an Sensor which receive http events, like a http command.
the Background is, I have an doorbird and my doorbird send http events if motion is detected, now i want to create an motion sensor for using it in homekit, is this possible?
If it can send POST requests then you can use a webhook trigger. HA doesn’t support GET though, so you’d need something that could intercept and rewrite that.
but webhook trigger is for automation isnt it?
I want to set an fake sensor device state.
for example,
create an fake sensor device called “Doorbell”.
if doorbell by doorbird is pressed, doorbird fire an http request to HA, now I want to set the “Doorbell” state to true,
is this possbile with webhook trigger?
Sure. That automation can turn on an input boolean, and then off again. You can use that boolean in your other automations, or wrap it in a template binary sensor.
Sorry Tinkerer, really really sorry, but I cant find any example or I don’t understand the How to, how can I realize it. could you help me maybe, it was me a pleasure…
What @Tinkerer showed is the definition of a (template) binary sensor.
That syntax (with a trigger) makes so that the value of the binary _sensor will change based upon an event (here,a webhook)
It’s not a “template” in the sense that you can use it in the developer tools, though.
thank you for this information, this information I never read in the documentation I am sorry. I will now try, I will create an binary_sensor in the configuration.yml thanks