I have a code by which when they ring the doorbell, I receive a message in Telegram, which lines I need to add to my code so that I receive such messages, say, no more than once a minute. Because now, every time someone presses the doorbell button 10 times, I receive 10 notifications, and I want the notification to come one during the time I set.
I present my code below.
- id: door_bell
alias: start_message
initial_state: true
trigger:
- platform: state
entity_id: binary_sensor.door_window_sensor_xxxxxxxxxxxxx
to: 'off'
action:
- service: notify.telegram_all
data:
message: |
{{"\U0001F514"}}{{"\U0001F514"}} "Someone is ringing the doorbell - {{ states('sensor.time') }}"