-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
110 lines (110 loc) · 3.11 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
- id: '1642020647440'
alias: Turn off all lights when the alarm is armed
description: ''
trigger:
- platform: device
device_id: 991bdd0224936d6bb9b0cde219570c6e
domain: alarm_control_panel
entity_id: alarm_control_panel.sector_alarmpanel_02751485
type: armed_away
condition: []
action:
- service: script.slack_alla_lampor
mode: single
- id: '1642021220097'
alias: Turn on lights when arriving home
description: ''
trigger:
- platform: device
device_id: 991bdd0224936d6bb9b0cde219570c6e
domain: alarm_control_panel
entity_id: alarm_control_panel.sector_alarmpanel_02751485
type: disarmed
- platform: state
entity_id: group.family
to: home
condition: []
action:
- service: script.turn_on_lights_when_arriving_home
mode: single
- id: '1642498985323'
alias: Ändra temperatur baserat på högt elpris
description: ''
trigger:
- platform: state
entity_id: sensor.electricity_price_high
- platform: state
entity_id: sensor.electricity_price_skogsvagen_15
attribute: price_level
to: EXPENSIVE
- platform: state
entity_id: sensor.electricity_price_skogsvagen_15
to: VERY_EXPENSIVE
condition:
- condition: state
entity_id: binary_sensor.huset_sover
state: 'off'
action:
- service: script.change_temperature
target:
entity_id:
- climate.luftvarmepump_overvaning
- climate.luftvarmepump_gillestuga
data:
temperature: "{% if states(\"sensor.electricity_price_high\") == \"True\" %}\n\
\ {% if state_attr('sensor.electricity_price_skogsvagen_15', 'price_level')\
\ == \"EXPENSIVE\" %}\n 20\n {% else %}\n 19\n {% endif %}\n{% else\
\ %}\n 21\n{% endif %}\n"
mode: heat
mode: single
- id: '1642511540733'
alias: Ändra temperatur baserat på lågt elpris
description: ''
trigger:
- platform: state
entity_id: sensor.electricity_price_low
- platform: state
entity_id: sensor.electricity_price_skogsvagen_15
to: CHEAP
attribute: price_level
- platform: state
entity_id: sensor.electricity_price_skogsvagen_15
attribute: price_level
to: VERY_CHEAP
- platform: time
at: 05:00
condition:
- condition: state
entity_id: binary_sensor.huset_sover
state: 'off'
action:
- service: script.change_temperature
target:
entity_id:
- climate.luftvarmepump_overvaning
- climate.luftvarmepump_gillestuga
data:
temperature: "{% if states(\"sensor.electricity_price_low\") == \"True\" %}\n\
\ {% if state_attr('sensor.electricity_price_skogsvagen_15', 'price_level')\
\ == \"CHEAP\" %}\n 22\n {% else %}\n 23\n {% endif %}\n{% else %}\n\
\ 21\n{% endif %}\n"
mode: heat
mode: single
- id: '1643038808068'
alias: Nattsänkning av temperatur
description: ''
trigger:
- platform: state
entity_id: binary_sensor.huset_sover
to: 'on'
condition: []
action:
- service: script.change_temperature
target:
entity_id:
- climate.luftvarmepump_overvaning
- climate.luftvarmepump_gillestuga
data:
temperature: 19
mode: heat
mode: single