Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Berger committed Jan 30, 2025
1 parent d313eee commit 1c51ac8
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions blueprints/priority_to_ev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,7 @@ trigger:

action:
- choose:
# Condition 1: Activate solar router when EV disconnected
- conditions:
- condition: state
entity_id: !input ev_connected
state: "off"
sequence:
- service: switch.turn_on
target:
entity_id: !input solar_router
# Condition 2: Deactivate solar router when EV need to be recharged
# Condition 1: Deactivate solar router when EV need to be recharged
- conditions:
- condition: state
entity_id: !input ev_connected
Expand All @@ -118,7 +109,7 @@ action:
- service: switch.turn_off
target:
entity_id: !input solar_router
# Condition 3: Reactivate solar router when EV battery is full
# Condition 2: Reactivate solar router when EV battery is full
- conditions:
- condition: state
entity_id: !input ev_connected
Expand All @@ -133,3 +124,13 @@ action:
- service: switch.turn_on
target:
entity_id: !input solar_router
# Condition 3: Activate solar router when EV disconnected
- conditions:
- condition: state
entity_id: !input ev_connected
state: "off"
sequence:
- service: switch.turn_on
target:
entity_id: !input solar_router

0 comments on commit 1c51ac8

Please sign in to comment.