Skip to content

Commit

Permalink
Updated calculation to incorporate ecoflow office ac in.
Browse files Browse the repository at this point in the history
  • Loading branch information
dannytsang committed Jan 26, 2025
1 parent 03f54ad commit 6ba4822
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/integrations/energy/ecoflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -603,16 +603,17 @@ script:
stored_traces: 30
sequence:
- variables:
excess_solar: "{{ states('sensor.ecoflow_solar_excess')|float(0) * 1000 }}"
kitchen_target_charge_rate: >-
{%- from 'calculate_ecoflow_delta2_charge_rate.jinja' import calculate_ecoflow_delta2_charge_rate -%}
{{ calculate_ecoflow_delta2_charge_rate(
((states('sensor.ecoflow_solar_excess')|float(0) * 1000) + states('sensor.ecoflow_ac_in_power')|float(0)),
(excess_solar + states('sensor.ecoflow_ac_in_power')|float(0) + states('sensor.ecoflow_office_ac_in_power')|float(0)),
200,
1200)|int(0) }}
office_target_charge_rate: >-
{%- from 'calculate_ecoflow_delta2_charge_rate.jinja' import calculate_ecoflow_delta2_charge_rate -%}
{{ calculate_ecoflow_delta2_charge_rate(
((states('sensor.ecoflow_solar_excess')|float(0) * 1000) - kitchen_target_charge_rate|float(0)),
(excess_solar - kitchen_target_charge_rate|float(0)),
200,
1200)|int(0) }}
- parallel:
Expand Down

0 comments on commit 6ba4822

Please sign in to comment.