summaryrefslogtreecommitdiff
path: root/src/home/inverter
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-09-02 13:37:49 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-09-02 13:38:02 +0300
commitc7e10c52a9cd5be57e86e4e911bd21d6380771a6 (patch)
treee1115e551d9fdb64048fa7ba1a2561d96c7eadb8 /src/home/inverter
parent06ca251b94e06b8fe58437704a7ada716d3056b0 (diff)
inverter: support inverter-tools 1.5.0
Diffstat (limited to 'src/home/inverter')
-rw-r--r--src/home/inverter/monitor.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/home/inverter/monitor.py b/src/home/inverter/monitor.py
index 444d3bc..87e07be 100644
--- a/src/home/inverter/monitor.py
+++ b/src/home/inverter/monitor.py
@@ -131,7 +131,7 @@ class InverterMonitor(Thread):
def run(self):
# Check allowed currents and validate the config.
- allowed_currents = list(inverter.exec('get-allowed-ac-charging-currents')['data'])
+ allowed_currents = list(inverter.exec('get-allowed-ac-charge-currents')['data'])
allowed_currents.sort()
for a in self.currents:
@@ -397,10 +397,10 @@ class InverterMonitor(Thread):
def set_hw_charging_current(self, current: int):
try:
- response = inverter.exec('set-max-ac-charging-current', (0, current))
+ response = inverter.exec('set-max-ac-charge-current', (0, current))
if response['result'] != 'ok':
logger.error(f'failed to change AC charging current to {current} A')
- raise InverterError('set-max-ac-charging-current: inverterd reported error')
+ raise InverterError('set-max-ac-charge-current: inverterd reported error')
else:
self.charging_event_handler(ChargingEvent.AC_CURRENT_CHANGED, current=current)
logger.info(f'changed AC charging current to {current} A')