I am using a Fibaro Binary Sensor (Z-Wave) that i wired to my doorbell.
This works great, although i have one thing that i would like to change:
My packet delivery guy (and people that come over for a visit) often press the doorbell multiple times, which ends up in me receiving multiple notifications.
When i was using Domoticz i made a script for this, that stored the timestamp in a uservariable when the doorbell was pressed. When the doorbell was pressed again, it would check if the stored timestamp was more than 30s ago. If yes: send message, if not: do nothing.
But i am new to Home Assistant and have no idea how to realize this. Someone here with a good example?
Set a boolean to true when it rings. Send a notification when the boolean goes from false to true. Set the boolean to false when it has been true for x minutes.
platform: state
entity_id: binary_sensor.fibaro_system_fgbs001_universal_binary_sensor_sensor_15_2
to: βonβ
condition:
condition: state
entity_id: input_boolean.doorbell_pressed
state: βoffβ
action: