Skip to content

Commit

Permalink
Merge pull request #80 from BenPru/BenPru-patch-solar-detect
Browse files Browse the repository at this point in the history
Fix solar detection
  • Loading branch information
BenPru authored Jan 29, 2023
2 parents 058c31e + d5d8fc4 commit e972f5a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions custom_components/luxtronik/luxtronik_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
2 changes: 1 addition & 1 deletion custom_components/luxtronik/translations/sensor.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e972f5a

Please sign in to comment.