-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
127 lines (127 loc) · 2.95 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
- id: '1674830484455'
alias: Slå på taklys carport ved bevegelse
description: ''
trigger:
- type: motion
platform: device
device_id: ac5b534538069ef023e969df7cee8857
entity_id: binary_sensor.bevegelse_carport_motion
domain: binary_sensor
condition:
- condition: time
after: 06:00:00
before: '23:30:00'
weekday:
- sun
- sat
- fri
- thu
- wed
- tue
- mon
- condition: numeric_state
entity_id: sensor.bevegelse_carport_illuminance
attribute: light_level
below: 1000
action:
- service: light.turn_on
data: {}
target:
entity_id: light.fh_32_out_bin_switch
mode: single
- id: '1674830728064'
alias: Slå av taklys carport når ikke bevegelse
description: ''
trigger:
- type: no_motion
platform: device
device_id: ac5b534538069ef023e969df7cee8857
entity_id: binary_sensor.bevegelse_carport_motion
domain: binary_sensor
for:
hours: 0
minutes: 5
seconds: 0
condition: []
action:
- service: light.turn_off
data: {}
target:
entity_id: light.fh_32_out_bin_switch
mode: single
- id: '1675090922181'
alias: Slå av loddebolt etter 1 time
description: ''
trigger:
- platform: device
type: turned_on
device_id: 0bac9ed7bcfe4369fb03e636ed2ebb26
entity_id: switch.loddebolt
domain: switch
condition: []
action:
- delay:
hours: 1
minutes: 0
seconds: 0
milliseconds: 0
- type: turn_off
device_id: 0bac9ed7bcfe4369fb03e636ed2ebb26
entity_id: switch.loddebolt
domain: switch
mode: single
- id: '1675147320849'
alias: Varsel hvis Leaf lite strøm og ikke tilkoblet
description: ''
trigger:
- platform: time
at: '21:45:00'
enabled: true
condition:
- condition: and
conditions:
- condition: numeric_state
entity_id: sensor.leaf_battery_level
below: 50
- condition: state
entity_id: sensor.leaf_battery_connected
state: 'false'
action:
- service: notify.mobile_app_mobiltelefon
data:
message: "Leaf lite strøm og ikke tilkoblet. Koble til strøm i kveld så er den
klar til i morgen \U0001F642"
title: Leaf under 50% strøm
- service: notify.tibber
data:
message: "Leaf lite strøm og ikke tilkoblet. Koble til i kveld så er den klar
til i morgen \U0001F642 "
title: Leaf under 50%
mode: single
- id: '1675717405037'
alias: Automatic Backups
description: ''
use_blueprint:
path: jcwillox/automatic_backups.yaml
- id: '1675762172443'
alias: Slå på stuelys ved solnedgang
description: Hvis noen er hjemme
trigger:
- platform: sun
event: sunset
offset: 0
condition:
- condition: or
conditions:
- condition: state
entity_id: person.me
state: home
- condition: state
entity_id: device_tracker.other.person
state: home
action:
- service: scene.turn_on
target:
entity_id: scene.stuelys
metadata: {}
mode: single