-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTemp_automation.yaml
134 lines (134 loc) · 3.8 KB
/
Temp_automation.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
128
129
130
131
132
133
134
alias: Ovo ev plan - Charge During Charge Window and SOC < Target
description: Charges between 12am and 6am uptown the SOC limit.
trigger:
- platform: time
at: "00:00:00"
- platform: time
at: "06:00:00"
- platform: time
at: "11:00:00"
- platform: time
at: "14:00:00"
- platform: time_pattern
seconds: /30
hours: "*"
minutes: "*"
- platform: state
entity_id:
- input_boolean.ovo_ev_plan
condition:
- condition: state
entity_id: input_boolean.ovo_ev_plan
state: "on"
action:
- choose:
- conditions:
- condition: and
conditions:
- condition: numeric_state
entity_id: sensor.victron_battery_state_of_charge
above: 0
below: input_number.ovo_ev_plan_soc_target
- condition: time
after: "23:59:59"
before: "05:59:59"
weekday:
- sun
- mon
- tue
- wed
- thu
- fri
- sat
alias: SOC < Target AND time is in EV window
sequence:
- service: input_button.press
data: {}
target:
entity_id: input_button.import
alias: EV Window - Charge
- conditions:
- alias: SOC Check inside EV window
condition: and
conditions:
- condition: numeric_state
entity_id: sensor.victron_battery_state_of_charge
below: 101
above: input_number.ovo_ev_plan_soc_target
- condition: time
before: "05:59:59"
after: "23:59:59"
weekday:
- sat
- fri
- thu
- wed
- tue
- mon
- sun
sequence:
- service: input_button.press
data: {}
target:
entity_id: input_button.self_service
enabled: false
- service: input_number.set_value
target:
entity_id: input_number.input_current_slider
data:
value: "{{ states('sensor.victron_ac_l1') | float(0) | round(-1) }}"
alias: EV Window - Stop Charge, Power from Grid
- conditions:
- alias: SOC Check inside FREE window
condition: and
conditions:
- condition: time
before: "13:59:59"
after: "11:00:00"
weekday:
- sat
- fri
- thu
- wed
- tue
- mon
- sun
sequence:
- service: input_button.press
data: {}
target:
entity_id: input_button.import
alias: Free Lunch - Charge
- conditions:
- alias: Check in peak window
condition: or
conditions:
- condition: time
before: "10:59:59"
after: "06:00:00"
weekday:
- sat
- fri
- thu
- wed
- tue
- mon
- sun
- condition: time
before: "23:59:59"
after: "14:00:00"
weekday:
- sat
- fri
- thu
- wed
- tue
- mon
- sun
sequence:
- service: input_button.press
data: {}
target:
entity_id: input_button.self_service
alias: Peak Period - Stop Charge
mode: single