Skip to content

Commit

Permalink
Fix6
Browse files Browse the repository at this point in the history
  • Loading branch information
ghisch committed Feb 2, 2025
1 parent 9ee0217 commit 1eb683a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions solar_router/engine_regulator_with_bypass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ switch:
internal: ${hide_regulators}
on_turn_on:
then:
- lambda: id(energy_divertion).publish_state(True);
- lambda: id(energy_divertion).publish_state(true);
on_turn_off:
then:
- lambda: id(energy_divertion).publish_state(False);
- lambda: id(energy_divertion).publish_state(false);

number:
# Router level from 0 to 100
Expand All @@ -96,9 +96,9 @@ number:
then:
- lambda: |-
if (id(router_level).state >= 100.0 && id(bypass_tempo_counter).state <= 0) {
id(energy_divertion).publish_state(True);
id(energy_divertion).publish_state(true);
} else {
id(energy_divertion).publish_state(True);
id(energy_divertion).publish_state(true);
id(regulator_opening).publish_state(id(router_level).state);
}
- if:
Expand Down

0 comments on commit 1eb683a

Please sign in to comment.