-
Notifications
You must be signed in to change notification settings - Fork 185
/
doorbell.yaml
executable file
·33 lines (33 loc) · 851 Bytes
/
doorbell.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
#-
# _ _ _ _
# __| | ___ ___ _ __| |__ ___| | |
# / _` |/ _ \ / _ \| '__| '_ \ / _ \ | |
# | (_| | (_) | (_) | | | |_) | __/ | |
# \__,_|\___/ \___/|_| |_.__/ \___|_|_|
#
#
#- from github.com/basnijholt/home-assistant-config
- alias: "Doorbell: click the button"
initial_state: "on"
trigger:
platform: event
event_type: deconz_event
event_data:
id: smart_switch_doorbell
event: 1002 # Single click
action:
- service: light.turn_on
data:
flash: "short"
entity_id: all
- service: notify.all_iphones
data:
title: "Doorbell"
message: "Someone in front of the door!"
- condition: state
entity_id: media_player.tv
state: "on"
- service: notify.tv
data:
message: "Someone in front of the door!"