Skip to content

Commit

Permalink
Add optional discharge service (#1307)
Browse files Browse the repository at this point in the history
  • Loading branch information
springfall2008 authored Jul 14, 2024
1 parent 30bba62 commit 5203934
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/predbat/inverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1851,6 +1851,7 @@ def adjust_discharge_immediate(self, target_soc):
else:
service_data = {"device_id": self.base.get_arg("device_id", index=self.id, default="")}
self.call_service_template("charge_stop_service", service_data)
self.call_service_template("discharge_stop_service", service_data)

def adjust_charge_window(self, charge_start_time, charge_end_time, minutes_now):
"""
Expand Down

0 comments on commit 5203934

Please sign in to comment.