Skip to content

Commit

Permalink
Improved retry on Ecoflow.
Browse files Browse the repository at this point in the history
Update #94
  • Loading branch information
dannytsang committed Aug 1, 2023
1 parent 90eff28 commit a1e7b76
Showing 1 changed file with 30 additions and 11 deletions.
41 changes: 30 additions & 11 deletions packages/integrations/ecoflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,35 @@ automation:
entity_id: input_boolean.enable_ecoflow_automations
state: "on"
action:
- parallel:
- service: script.send_direct_notification
data:
message: Solar production dipped below household consumption. Setting backup to 5%.
title: Solar
people:
- person.danny
- service: script.ecoflow_set_backup_reserve
data:
reserve_amount: 5
- if:
- condition: numeric_state
entity_id: number.ecoflow_kitchen_ac_charging_power
above: input_number.ecoflow_kitchen_charge_solar_threshold
- condition: template
value_template: >-
{{ states('sensor.ecoflow_kitchen_solar_excess')|float(-1) >= states('input_number.ecoflow_kitchen_charge_solar_threshold')|float(0) }}
then:
- parallel:
- service: script.send_direct_notification
data:
message: Solar production dipped below household consumption. Setting backup to 5%.
title: Solar
people:
- person.danny
- service: script.ecoflow_set_charge_rate
data:
reserve_amount: 200
else:
- parallel:
- service: script.send_direct_notification
data:
message: Solar production dipped below household consumption. Setting backup to 5%.
title: Solar
people:
- person.danny
- service: script.ecoflow_set_backup_reserve
data:
reserve_amount: 5
mode: restart
# Unit rate related automations
- id: "1689626117476"
Expand Down Expand Up @@ -213,7 +232,7 @@ script:
- if:
- condition: template
value_template: >-
{{ repeat.index == 5 }}
{{ repeat.index % 2 == 0 }}
then:
- service: homeassistant.reload_config_entry
data: {}
Expand Down

0 comments on commit a1e7b76

Please sign in to comment.