home_assistant/automations/doorbell_frontdoor.yaml

26 lines
764 B
YAML

alias: Haustürklingel
description: "Klingel Haustür wurde ausgelöst"
id: 21901492-6a7a-4607-ac18-4fe890de1968
mode: single
trigger:
- platform: device
device_id: 1776e00221814a02feb84e9c851c74a9
domain: homekit_controller
type: button1
subtype: single_press
condition: []
action:
- variables:
param_entity: "{{trigger.to_state.entity_id}}"
- service: system_log.write
data:
level: info
message: "Automation Haustürklingel erkannt!! | Entity: {{param_entity}}"
- service: notify.dev_telegram
data:
message: >
Automation Haustürklingel erkannt
{{ trigger.entity_id }}
from {{ trigger.from_state.state }} to {{ trigger.to_state.state }}
starting "door_bell_script (TBD)"...