Skip to content

Commit

Permalink
Fix No time for "battery time to full" displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanm101 authored May 15, 2023
1 parent 376268a commit 70eea08
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/energy_stats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ template:
- name: "Solar Battery Time to Charge"
unique_id: battery_time_to_full
unit_of_measurement: "hours"
state: >
{% set wattsToCharge = ((states('sensor.solaredge_b1_maximum_energy') | float(0) *1000)/100)*(100 - states('sensor.solaredge_b1_state_of_energy') | float) %}
{% set totalhrs = (wattsToCharge | float / states('sensor.solaredge_b1_dc_power') | float) | round(2) %}
Expand Down

0 comments on commit 70eea08

Please sign in to comment.