From 638861361a236a318cfd3fdb2056dd874041257d Mon Sep 17 00:00:00 2001 From: maslyankov Date: Sun, 29 Dec 2024 10:51:30 +0200 Subject: [PATCH] Update battery temperature sensor offset to 0 for Deye single phase inverter compatibility --- src/sunsynk/definitions/single_phase.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sunsynk/definitions/single_phase.py b/src/sunsynk/definitions/single_phase.py index b436a2ad..65d5e790 100644 --- a/src/sunsynk/definitions/single_phase.py +++ b/src/sunsynk/definitions/single_phase.py @@ -27,7 +27,9 @@ # Battery ########## SENSORS += ( - TempSensor(182, "Battery temperature", CELSIUS, 0.1, offset=1000), + # Changed offset to 0 to match the temperature of the Deye inverter, regardless of + # the offset in the docs as per https://github.com/kellerza/sunsynk/issues/353 + TempSensor(182, "Battery temperature", CELSIUS, 0.1, offset=0), Sensor(183, "Battery voltage", VOLT, 0.01), Sensor(184, "Battery SOC", "%"), Sensor(190, "Battery power", WATT, -1),