support for HMT-2250-6T

This commit is contained in:
suaveolent 2024-06-13 08:58:56 +02:00
parent d7d9e4ed6c
commit 4846173a42
2 changed files with 7 additions and 1 deletions

View File

@ -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:

View File

@ -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,
}