-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomations.yaml
64 lines (64 loc) · 1.58 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
- id: '1622659605970'
alias: Demofunktion 01
description: https://forum.garage-lab.de/t/smarthome-automatisierung-fuer-zuhause/8281/4
trigger:
- platform: state
entity_id: binary_sensor.bewegungsmelder_occupancy
from: 'off'
to: 'on'
condition: []
action:
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.openweathermap_temperature
above: '25'
sequence:
- service: light.turn_on
target:
entity_id: light.0x5c0272fffe51f377
data:
color_name: red
brightness_pct: 100
- delay:
hours: 0
minutes: 3
seconds: 0
milliseconds: 0
- service: light.turn_off
target:
entity_id: light.0x5c0272fffe51f377
- conditions:
- condition: numeric_state
entity_id: sensor.openweathermap_temperature
above: '15'
below: '25'
sequence:
- service: light.turn_on
target:
entity_id: light.0x5c0272fffe51f377
data:
color_name: yellow
brightness_pct: 100
- delay:
hours: 0
minutes: 3
seconds: 0
milliseconds: 0
- service: light.turn_off
target:
entity_id: light.0x5c0272fffe51f377
default:
- service: light.turn_on
target:
entity_id: light.0x5c0272fffe51f377
data:
color_name: blue
brightness_pct: 100
- delay:
hours: 0
minutes: 3
seconds: 0
milliseconds: 0
- service: light.turn_off
mode: single