Bouni / python-luxtronik

python-luxtronik is a library that allow you to interact with a Luxtronik heatpump controller.
MIT License
37 stars 20 forks source link

SwitchoffFile value '19' seems to be 'PVmax' #89

Closed Guzz-T closed 1 year ago

Guzz-T commented 1 year ago

From dump_luxtronik.py:

Number: 106 Name: ID_WEB_Switchoff_file_Nr0 Type: SwitchoffFile Value: no request Number: 107 Name: ID_WEB_Switchoff_file_Nr1 Type: SwitchoffFile Value: evu lock Number: 108 Name: ID_WEB_Switchoff_file_Nr2 Type: SwitchoffFile Value: no request Number: 109 Name: ID_WEB_Switchoff_file_Nr3 Type: SwitchoffFile Value: no request Number: 110 Name: ID_WEB_Switchoff_file_Nr4 Type: SwitchoffFile Value: 19 Number: 111 Name: ID_WEB_Switchoff_file_Time0 Type: Timestamp Value: 2023-03-11 10:21:44 Number: 112 Name: ID_WEB_Switchoff_file_Time1 Type: Timestamp Value: 2023-03-11 13:18:20 Number: 113 Name: ID_WEB_Switchoff_file_Time2 Type: Timestamp Value: 2023-03-11 13:39:32 Number: 114 Name: ID_WEB_Switchoff_file_Time3 Type: Timestamp Value: 2023-03-11 14:46:23 Number: 115 Name: ID_WEB_Switchoff_file_Time4 Type: Timestamp Value: 2023-03-11 18:26:36

From datalog:

11.03.23 19:26 PVmax 11.03.23 15:46 keine Anf. 11.03.23 14:39 keine Anf. 11.03.23 14:18 EVU-Sperre 11.03.23 11:21 keine Anf.

Please ignore the timeshift of 1 hour.

Had to modify dump_luxtronik.py to get the value

    def from_heatpump(self, value):
        if value in self.codes:
            return self.codes.get(value)
        return None          << supress the assignment of unexpected values