From 57241631c9a2d99323f8bd2ba0ee0ba9eb281e46 Mon Sep 17 00:00:00 2001 From: BenPru <32298537+BenPru@users.noreply.github.com> Date: Sun, 29 Jan 2023 15:39:56 +0100 Subject: [PATCH 1/2] Fix solar detection --- custom_components/luxtronik/luxtronik_device.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/custom_components/luxtronik/luxtronik_device.py b/custom_components/luxtronik/luxtronik_device.py index ca29c8a..46e8bc5 100644 --- a/custom_components/luxtronik/luxtronik_device.py +++ b/custom_components/luxtronik/luxtronik_device.py @@ -154,13 +154,13 @@ def detect_cooling_Mk(self): def detect_solar_present(self) -> bool: """Detect and returns True if solar is present.""" return ( - bool(self.get_value(LuxVisibility.V0250_SOLAR)) - or self.get_value(LuxParameter.P0882_SOLAR_OPERATION_HOURS) > 0.01 - or bool(self.get_value(LuxVisibility.V0038_SOLAR_COLLECTOR)) - or float(self.get_value(LuxCalculation.C0026_SOLAR_COLLECTOR_TEMPERATURE)) + bool(self.get_value(LUX_DETECT_SOLAR_SENSOR)) + or self.get_value("parameters.ID_BSTD_Solar") > 0.01 + or bool(self.get_value("visibilities.ID_Visi_Temp_Solarkoll")) + or float(self.get_value("calculations.ID_WEB_Temperatur_TSK")) != 5.0 - or bool(self.get_value(LuxVisibility.V0039_SOLAR_BUFFER)) - or float(self.get_value(LuxCalculation.C0027_SOLAR_BUFFER_TEMPERATURE)) + or bool(self.get_value("visibilities.ID_Visi_Temp_Solarsp")) + or float(self.get_value("calculations.ID_WEB_Temperatur_TSS")) != 150.0 ) From d5d8fc4847c0773fb7498582bc8e5f4aa5ae2756 Mon Sep 17 00:00:00 2001 From: BenPru <32298537+BenPru@users.noreply.github.com> Date: Sun, 29 Jan 2023 15:48:37 +0100 Subject: [PATCH 2/2] Fix wrong closing content --- custom_components/luxtronik/translations/sensor.en.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/luxtronik/translations/sensor.en.json b/custom_components/luxtronik/translations/sensor.en.json index f3384bf..00fadcf 100644 --- a/custom_components/luxtronik/translations/sensor.en.json +++ b/custom_components/luxtronik/translations/sensor.en.json @@ -117,7 +117,7 @@ "790": "Major VSS fault", "791": "Lost ModBus communication", "792": "LIN-connection lost", - "793": "Major VSS fault" } + "793": "Major VSS fault" }, "luxtronik2__switchoff_reason": { "9": "no request",