From d7d9e4ed6cabda16579eb94ae083c7f7596fb78b Mon Sep 17 00:00:00 2001 From: suaveolent Date: Mon, 10 Jun 2024 09:57:36 +0200 Subject: [PATCH] fix naming of 1000W --- hoymiles_wifi/dtu.py | 2 ++ hoymiles_wifi/hoymiles.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hoymiles_wifi/dtu.py b/hoymiles_wifi/dtu.py index 024eb12..7c6213c 100644 --- a/hoymiles_wifi/dtu.py +++ b/hoymiles_wifi/dtu.py @@ -164,8 +164,10 @@ class DTU: """Get historical power.""" request = AppGetHistPower_pb2.AppGetHistPowerResDTO() + request.control_point = 0 request.offset = OFFSET request.requested_time = int(time.time()) + request.requested_day = 0 command = CMD_APP_GET_HIST_POWER_RES return await self.async_send_request( command, diff --git a/hoymiles_wifi/hoymiles.py b/hoymiles_wifi/hoymiles.py index 14c36a0..a50b9f4 100644 --- a/hoymiles_wifi/hoymiles.py +++ b/hoymiles_wifi/hoymiles.py @@ -34,7 +34,7 @@ class InverterPower(Enum): P_600_700_800 = "600/700/800" P_800W = "800W" P_1000 = "1000" - P_10000W = "10000W" + P_1000W = "1000W" P_1000_1200_1500 = "1000/1200/1500" P_1200_1500 = "1200/1500" P_1600 = "1600" @@ -56,7 +56,7 @@ power_mapping = { 0x1161: InverterPower.P_1000_1200_1500, 0x1164: InverterPower.P_1600, 0x141292: InverterPower.P_800W, - 0x141293: InverterPower.P_10000W, + 0x141293: InverterPower.P_1000W, }