From c7e10c52a9cd5be57e86e4e911bd21d6380771a6 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Fri, 2 Sep 2022 13:37:49 +0300 Subject: inverter: support inverter-tools 1.5.0 --- test/test_inverter_monitor.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'test/test_inverter_monitor.py') diff --git a/test/test_inverter_monitor.py b/test/test_inverter_monitor.py index cbf1b82..3b1c6b0 100755 --- a/test/test_inverter_monitor.py +++ b/test/test_inverter_monitor.py @@ -143,8 +143,8 @@ class InverterEmulator(threading.Thread): "battery_voltage": {"unit": "V", "value": 48.4}, "battery_voltage_scc": {"unit": "V", "value": 0.0}, "battery_voltage_scc2": {"unit": "V", "value": 0.0}, - "battery_discharging_current": {"unit": "A", "value": 0}, - "battery_charging_current": {"unit": "A", "value": 0}, + "battery_discharge_current": {"unit": "A", "value": 0}, + "battery_charge_current": {"unit": "A", "value": 0}, "battery_capacity": {"unit": "%", "value": 62}, "inverter_heat_sink_temp": {"unit": "°C", "value": 8}, "mppt1_charger_temp": {"unit": "°C", "value": 0}, @@ -175,15 +175,15 @@ class InverterEmulator(threading.Thread): "battery_bulk_voltage": {"unit": "V", "value": 57.6}, "battery_float_voltage": {"unit": "V", "value": 54.0}, "battery_type": "User", - "max_charging_current": {"unit": "A", "value": 60}, - "max_ac_charging_current": {"unit": "A", "value": 10}, + "max_charge_current": {"unit": "A", "value": 60}, + "max_ac_charge_current": {"unit": "A", "value": 10}, "input_voltage_range": "Appliance", "output_source_priority": "Parallel output", "charge_source_priority": "Solar-and-Utility", "parallel_max_num": 6, "machine_type": "Off-Grid-Tie", "topology": "Transformer-less", - "output_model_setting": "Single module", + "output_mode": "Single output", "solar_power_priority": "Load-Battery-Utility", "mppt": "2"} @@ -234,13 +234,13 @@ class InverterEmulator(threading.Thread): args = command[1:] command = command[0] - if command == 'get-allowed-ac-charging-currents': + if command == 'get-allowed-ac-charge-currents': self.reply_ok(conn, [2, 10, 20, 30, 40, 50, 60]) elif command == 'get-status': self.reply_ok(conn, self._get_status()) elif command == 'get-rated': self.reply_ok(conn, self._get_rated()) - elif command == 'set-max-ac-charging-current': + elif command == 'set-max-ac-charge-current': self.set_ac_current(args[1]) self.reply_ok(conn, 1) else: @@ -307,7 +307,7 @@ class InverterEmulator(threading.Thread): def set_ac_current(self, amps): with self.lock: - self.rated['max_ac_charging_current']['value'] = amps + self.rated['max_ac_charge_current']['value'] = amps charger.current_changed(amps) def set_pd(self, pd: BatteryPowerDirection): -- cgit v1.2.3