Skip to content

Commit

Permalink
Add conversion for error codes
Browse files Browse the repository at this point in the history
Adresses #27 (partially)
  • Loading branch information
gerw authored and Bouni committed Sep 20, 2024
1 parent c4a51ff commit 0166614
Showing 1 changed file with 99 additions and 1 deletion.
100 changes: 99 additions & 1 deletion luxtronik/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,109 @@ def to_heatpump(cls, value):
return datetime.datetime.timestamp(value)


class Errorcode(Base):
class Errorcode(SelectionBase):
"""Errorcode datatype, converts from and to Errorcode."""

datatype_class = "errorcode"

codes = {
700: "sensor external return",
701: "error low pressure",
702: "low pressure blockade",
703: "frost protection",
704: "error hot gas",
705: "motor protection",
706: "motor protection BSUP",
707: "encoding heat pump",
708: "sensor return",
709: "sensor flow",
710: "sensor hot gas",
711: "sensor outdoor temp.",
712: "sensor DHW",
713: "sensor heat source in",
714: "hot gas DHW",
715: "high pressure switch-off",
716: "error high pressure",
717: "flow rate",
718: "max. outdoor temp.",
719: "min. outdoor temp.",
720: "min. heat source temp.",
721: "low pressure switch-off",
722: "temp. difference heating",
723: "temp. difference DHW",
724: "temp. difference defrosting",
725: "error DHW",
726: "sensor mixing circuit 1",
727: "brine pressure",
728: "sensor heat source out",
729: "error phase sequence",
730: "capacity screed heating",
731: "interruption TDI",
732: "error cooling",
733: "error electrical anode",
734: "electrical anode DHW",
735: "sensor external energy",
736: "sensor solar panel",
737: "sensor solar tank",
738: "sensor mixing circuit 2",
739: "sensor mixing circuit 3",
750: "sensor return external",
751: "phase sequence monitoring",
752: "power supply / flow",
755: "connection to slave lost",
756: "connection to master lost",
757: "low pressure block",
758: "error defrosting",
759: "fault TDI",
760: "error defrosting",
761: "LIN-connection lost",
762: "suction compressor",
763: "suction evaporator",
764: "compressor oil sump",
765: "overheating",
766: "operating limits-compressor",
767: "STL immersion heater",
768: "flow rate control",
769: "pump control",
770: "low overheat",
771: "high overheat",
772: "OL too low condensation",
773: "OL too high condensation",
774: "OL too low evaporation",
775: "expansion valve EVI",
776: "operating limits-compressor",
777: "expansion valve",
778: "sensor low pressure",
779: "sensor high pressure",
780: "sensor EVI",
781: "sensor liquid ahead exp. valve",
782: "sensor EVi suction gas",
783: "communication SEC - Inverter",
784: "inverter blocked",
785: "SEC-Board defect",
786: "communication SEC - Inverter",
787: "VD alert",
788: "serious inverter error",
789: "LIN/encoding not found",
790: "serious inverter error",
791: "Modbus inverter",
792: "LIN-connection lost",
793: "serious inverter error",
794: "overvoltage",
795: "undervoltage",
796: "safety shutdown",
797: "MLRH is not supported",
798: "Modbus fan",
799: "Modbus ASB",
800: "safety stop desuperheater",
802: "switch box fan",
803: "switch box fan",
804: "sensor switch box",
805: "sensor desuperheater",
806: "Modbus SEC",
807: "Lost modbus connection",
}


class Kelvin(ScalingBase):
"""Kelvin datatype, converts from and to Kelvin."""
Expand Down

0 comments on commit 0166614

Please sign in to comment.