mirror of
https://github.com/suaveolent/hoymiles-wifi.git
synced 2024-09-20 03:10:11 +00:00
support for HMT-2250-6T
This commit is contained in:
parent
d7d9e4ed6c
commit
4846173a42
@ -280,6 +280,11 @@ async def async_identify_inverters(dtu: DTU) -> list[str]:
|
||||
inverter_model = get_inverter_model_name(serial_number)
|
||||
inverter_models.append(inverter_model)
|
||||
|
||||
for tgs_data in real_data.tgs_data:
|
||||
serial_number = generate_inverter_serial_number(tgs_data.serial_number)
|
||||
inverter_model = get_inverter_model_name(serial_number)
|
||||
inverter_models.append(inverter_model)
|
||||
|
||||
return inverter_models
|
||||
|
||||
|
||||
@ -294,7 +299,6 @@ def print_invalid_command(command: str) -> None:
|
||||
|
||||
print(f"Invalid command: {command}") # noqa: T201
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
|
||||
async def main() -> None:
|
||||
|
@ -39,6 +39,7 @@ class InverterPower(Enum):
|
||||
P_1200_1500 = "1200/1500"
|
||||
P_1600 = "1600"
|
||||
P_2000 = "2000"
|
||||
P_2250 = "2250"
|
||||
|
||||
|
||||
power_mapping = {
|
||||
@ -57,6 +58,7 @@ power_mapping = {
|
||||
0x1164: InverterPower.P_1600,
|
||||
0x141292: InverterPower.P_800W,
|
||||
0x141293: InverterPower.P_1000W,
|
||||
0x1382: InverterPower.P_2250,
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user