Commit 2e44a0a 1 parent ccb2b39 commit 2e44a0a Copy full SHA for 2e44a0a
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ switch:
13
13
id : activate
14
14
on_turn_on :
15
15
then :
16
+ - number.to_min : full_power_timer
16
17
- light.turn_on : green_led
17
18
- lambda : id(power_meter_activated) = 1;
18
19
on_turn_off :
@@ -30,7 +31,7 @@ switch:
30
31
- platform : template
31
32
name : " Bypass Relay"
32
33
id : energy_divertion
33
- optimistic : true
34
+ optimistic : True
34
35
internal : ${hide_regulators}
35
36
on_turn_on :
36
37
then :
@@ -105,6 +106,7 @@ number:
105
106
# When counter reach bypass_timer_threshold, bypass relay is activated
106
107
# Counter is reset to 0 when regulator is not at 100% or when delta is negative
107
108
- platform : template
109
+ name : " Full Power Timer"
108
110
id : full_power_timer
109
111
optimistic : True
110
112
min_value : 0
@@ -161,8 +163,6 @@ script:
161
163
// Safety check: Disable regulation if power readings are invalid or safety is triggered
162
164
if (isnan(id(real_power).state) or id(safety_limit)){
163
165
id(router_level).publish_state(0);
164
- id(regulator_opening).publish_state(0);
165
- id(energy_divertion).turn_off();
166
166
id(full_power_timer).publish_state(0);
167
167
return;
168
168
}
You can’t perform that action at this time.
0 commit comments