Skip to content

Commit 2e44a0a

Browse files
committed
Debug
1 parent ccb2b39 commit 2e44a0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

solar_router/engine_regulator_with_bypass.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ switch:
1313
id: activate
1414
on_turn_on:
1515
then:
16+
- number.to_min: full_power_timer
1617
- light.turn_on: green_led
1718
- lambda: id(power_meter_activated) = 1;
1819
on_turn_off:
@@ -30,7 +31,7 @@ switch:
3031
- platform: template
3132
name: "Bypass Relay"
3233
id: energy_divertion
33-
optimistic: true
34+
optimistic: True
3435
internal: ${hide_regulators}
3536
on_turn_on:
3637
then:
@@ -105,6 +106,7 @@ number:
105106
# When counter reach bypass_timer_threshold, bypass relay is activated
106107
# Counter is reset to 0 when regulator is not at 100% or when delta is negative
107108
- platform: template
109+
name: "Full Power Timer"
108110
id: full_power_timer
109111
optimistic: True
110112
min_value: 0
@@ -161,8 +163,6 @@ script:
161163
// Safety check: Disable regulation if power readings are invalid or safety is triggered
162164
if (isnan(id(real_power).state) or id(safety_limit)){
163165
id(router_level).publish_state(0);
164-
id(regulator_opening).publish_state(0);
165-
id(energy_divertion).turn_off();
166166
id(full_power_timer).publish_state(0);
167167
return;
168168
}

0 commit comments

Comments
 (0)