Skip to content

Commit

Permalink
Fix 1 hour charge time check not using rounded hours.
Browse files Browse the repository at this point in the history
Update #102
  • Loading branch information
dannytsang committed Apr 30, 2024
1 parent 317f67c commit a308b7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/integrations/energy/solar_assistant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ script:
- or:
- and:
- condition: template
value_template: "{{ solar_forecast_data.charge_hours == 1 }}"
value_template: "{{ solar_forecast_data.charge_hours_rounded == 1 }}"
- condition: state
entity_id: binary_sensor.octopus_energy_target_overnight_home_battery_charge_1_hour
state: "on"
Expand Down Expand Up @@ -850,7 +850,7 @@ script:
- or:
- and:
- condition: template
value_template: "{{ solar_forecast_data.charge_hours == 1 }}"
value_template: "{{ solar_forecast_data.charge_hours_rounded == 1 }}"
- condition: state
entity_id: binary_sensor.octopus_energy_target_overnight_home_battery_charge_1_hour
state: "on"
Expand Down

0 comments on commit a308b7c

Please sign in to comment.