forked from andbad/HA_PowerControl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pc.lovelace-small
224 lines (175 loc) · 7.75 KB
/
pc.lovelace-small
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
- title: PC
path: pc
icon: hass:car-cruise-control
badges: []
cards:
- type: vertical-stack
cards:
- type: history-graph
entities:
- entity: sensor.delayed_maximum_power
name: Maximum
- entity: sensor.selected_power_loads
name: In use
- entity: sensor.suspended_loads
name: Waiting
refresh_interval: 0
title: Power Graph
hours_to_show: 2
- type: entities
entities:
- entity: input_boolean.active_power_control
icon: hass:car-cruise-control
- entity: input_boolean.power_control_settings
icon: hass:car-cruise-control
- entity: sensor.selected_power_loads
name: Used Power
icon: hass:power-plug
- entity: sensor.suspended_loads
name: Waiting Power
icon: hass:power-plug-off
- entity: script.powercontrol_configuration_save
name: Save Configuration
icon: mdi:floppy
state_color: true
show_header_toggle: false
- type: conditional
conditions:
- entity: input_boolean.power_control_settings
state: 'on'
card:
type: markdown
content: >
This is the configuration currently used, editable
via the following drop-down menus.
**Power Detection Sensor**:
{{states('input_text.power_load')}}
**Load 1**:
**Power**: {{states('input_text.power_load_1')}}
**Switch**: {{states('input_text.load_switch_1')}}
**Load 2**:
**Power**: {{states('input_text.power_load_2')}}
**Switch**: {{states('input_text.load_switch_2')}}
**Load 3**:
**Power**: {{states('input_text.power_load_3')}}
**Switch**: {{states('input_text.load_switch_3')}}
**Load 4**:
**Power**: {{states('input_text.power_load_4')}}
**Switch**: {{states('input_text.load_switch_4')}}
**Load 5**:
**Power**: {{states('input_text.power_load_5')}}
**Switch**: {{states('input_text.load_switch_5')}}
title: Saved Configuration
- type: conditional
conditions:
- entity: input_boolean.power_control_settings
state: 'on'
card:
type: vertical-stack
cards:
- type: markdown
content: >
**--> CLICK SAVE CONFIGURATION AFTER CONFIGURING THE PACKAGE <--**
**Power Load Sensors**
Select the global instantaneous consumption sensor. Unless
available, you can select the sensor
"sensor.virtual_power_load" which is the sum of the power
used by loads entered in the fields below.
**Delayed Maximum Power**
If the total absorption exceeds this threshold, the system wait a few MINUTES
(see option below) then start Detach loads. (suggested 3200)
**Delayed posting minutes**
After so many MINUTES of exceeding the maximum DELAYED power,
The detachment begins. (suggested 170)
**Immediate Maximum Power**
If the total absorption exceeds this threshold, the system
wait a few SECONDS (see option below) then starts detaching loads.
(suggested 3900)
**Second immediate detachment**
After so many SECONDS of exceeding the maximum IMMEDIATE power,
detaching begins. (suggested 10)
**Reactivation minutes**
After so many MINUTES that the power used has returned to the limits,
start reactivating loads. (suggested 5)
**Seconds between Stops**
Wait a few SECONDS between one detachment and another. (suggested 20)
**Minutes between Starts**
Wait a few MINUTES between one reactivation and another to give the
time to the load to resume its normal absorption. (suggested 5)
**New Selection Mode**
By enabling this option, the load entities will be filtered and only
those that begin with "sensor.power" and "switch.switch".
title: Configuration
- type: entities
entities:
- entity: input_select.power_load
icon: hass:chart-line
- entity: input_number.delayed_maximum_power
name: Delayed Maximum Power
icon: hass:chart-bell-curve
- entity: input_number.delayed_stop_pace
name: Delayed posting minutes
icon: hass:camera-timer
- entity: input_number.immediate_maximum_power
name: Immediate Maximum Power
icon: hass:chart-bell-curve
- entity: input_number.immediate_stop_pace
name: Second immediate detachment
icon: hass:camera-timer
- entity: input_number.restart_delay
name: Reactivation minutes
icon: hass:camera-timer
- entity: input_number.pause_between_detachments
name: Seconds between stops
icon: hass:camera-timer
- entity: input_number.pause_between_restarts
name: Minutes between starts
icon: hass:camera-timer
- entity: input_boolean.python_script_selection
name: New option selection mode
state_color: true
show_header_toggle: false
- type: conditional
conditions:
- entity: input_boolean.power_control_settings
state: 'on'
card:
type: vertical-stack
cards:
- type: markdown
content: >-
**Load Sensor**
Select the power sensors (W) of the loads to be monitored,
and to be disconnected in case of excessive demand.
- type: entities
entities:
- entity: input_select.power_load_1
- entity: input_select.power_load_2
- entity: input_select.power_load_3
- entity: input_select.power_load_4
- entity: input_select.power_load_5
title: Power Load Sensors
- type: conditional
conditions:
- entity: input_boolean.power_control_settings
state: 'on'
card:
type: vertical-stack
cards:
- type: markdown
content: >-
**Load Switches**
Select the monitored load switches in the Sensor fee.
Loads will be disconnected in order reverse priority,
**from Load 20** to Load 1, only if the power they are in use.
After the request for power is within limits,
previously disconnected loads, will be progressively reconnected
**starting from Load 1** up to Load 30.
- type: entities
entities:
- entity: input_select.load_switch_1
- entity: input_select.load_switch_2
- entity: input_select.load_switch_3
- entity: input_select.load_switch_4
- entity: input_select.load_switch_5
title: Load Switches