Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add conversion for error codes #170

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading