-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathautomations.yaml
79 lines (79 loc) · 2.04 KB
/
automations.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
- id: '1010'
alias: Notifica avvio di Hassio
trigger:
- platform: homeassistant
event: start
action:
- service: notify.notify
data:
message: Hassio avviato con ip esterno {{ states.sensor.fritz_box_7530_external_ip.state
}}
initial_state: 'on'
mode: single
- id: '3000'
alias: Accendi TVCC e attiva motion detection quando non rimane nessuno
initial_state: 'on'
trigger:
- platform: state
entity_id: group.people
from: home
to: not_home
action:
- service: notify.notify
data_template:
message: Attivo motion detection
- service: input_boolean.turn_on
entity_id: input_boolean.m5cam_motion_detection
- service: input_boolean.turn_on
entity_id: input_boolean.soggiorno_motion_detection
- service: switch.turn_on
entity_id: switch.smart_usb_relay_2
- id: '3500'
alias: Notifica quando vengono accese luci con nessuno in casa
initial_state: 'on'
trigger:
- platform: state
entity_id: group.all_lights
to: 'on'
condition:
- condition: state
entity_id: group.people
state: not_home
action:
- service: notify.notify
data_template:
message: Lights ON with everyone outside!
- id: '3510'
alias: Notifica luci accese quando non rimane nessuno
initial_state: 'on'
trigger:
- platform: state
entity_id: group.people
from: home
to: not_home
condition:
- condition: state
entity_id: group.all_lights
state: 'on'
action:
- service: notify.notify
data_template:
message: You left with lights ON!
- id: '4000'
alias: Spegni TVCC e motion detection quando rientra qualcuno
initial_state: 'on'
trigger:
- platform: state
entity_id: group.people
from: not_home
to: home
action:
- service: notify.notify
data_template:
message: Disattivo motion detection
- service: input_boolean.turn_off
entity_id: input_boolean.m5cam_motion_detection
- service: input_boolean.turn_off
entity_id: input_boolean.soggiorno_motion_detection
- service: switch.turn_off
entity_id: switch.smart_usb_relay_2