-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
95 lines (95 loc) · 2.6 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
- id: '1674449658193'
alias: 'Utility: Electricity TOU tariff changes'
description: 'Utility: Electricity TOU tariff changes'
trigger:
- platform: time
at: input_datetime.utility_electricity_tou_am_shoulder_on
id: '1'
- platform: time
at: input_datetime.utility_electricity_tou_pm_peak_on
id: '2'
- platform: time
at: input_datetime.utility_electricity_tou_pm_shoulder_on
id: '3'
- platform: time
at: input_datetime.utility_electricity_tou_pm_offpeak_on
id: '4'
action:
- choose:
- conditions:
- condition: trigger
id: '1'
sequence:
- service: input_text.set_value
target:
entity_id: input_text.utility_current_electricity_tou_band
data:
value: shoulder
- service: select.select_option
target:
entity_id:
- select.grid_consumption_tou_energy_daily
- select.grid_consumption_tou_energy_monthly
data:
option: shoulder_am
- conditions:
- condition: trigger
id: '2'
sequence:
- service: input_text.set_value
target:
entity_id: input_text.utility_current_electricity_tou_band
data:
value: peak
- service: select.select_option
target:
entity_id:
- select.grid_consumption_tou_energy_daily
- select.grid_consumption_tou_energy_monthly
data:
option: peak
- conditions:
- condition: trigger
id: '3'
sequence:
- service: input_text.set_value
target:
entity_id: input_text.utility_current_electricity_tou_band
data:
value: shoulder
- service: select.select_option
target:
entity_id:
- select.grid_consumption_tou_energy_daily
- select.grid_consumption_tou_energy_monthly
data:
option: shoulder_pm
- conditions:
- condition: trigger
id: '4'
sequence:
- service: input_text.set_value
target:
entity_id: input_text.utility_current_electricity_tou_band
data:
value: offpeak
- service: select.select_option
target:
entity_id:
- select.grid_consumption_tou_energy_daily
- select.grid_consumption_tou_energy_monthly
data:
option: offpeak
mode: single
- id: '1641518032821'
alias: 'Energy: Increment Supply Charge'
description: ''
trigger:
- platform: time
at: 00:01:00
condition: []
action:
- service: input_number.increment
target:
entity_id: input_number.supply_charge
mode: single