Skip to content

Instantly share code, notes, and snippets.

@Bouni
Created October 26, 2021 05:21
Show Gist options
  • Save Bouni/cf0dc2c7c53c32deeb264803ec350e5c to your computer and use it in GitHub Desktop.
Save Bouni/cf0dc2c7c53c32deeb264803ec350e5c to your computer and use it in GitHub Desktop.
Dump all readings from a Luxtronik heatpump
from luxtronik import Luxtronik
l = Luxtronik('192.168.88.11', 8889)
print("="*80)
print ('{:^80}'.format(' Parameters '))
print("="*80)
for n, p in l.parameters.parameters.items():
print(f"Number: {n:<5} Name: {p.name:<60} Type: {p.__class__.__name__:<20} Value: {p.value}")
print("="*80)
print ('{:^80}'.format(' Calculations '))
print("="*80)
for n, c in l.calculations.calculations.items():
print(f"Number: {n:<5} Name: {c.name:<60} Type: {c.__class__.__name__:<20} Value: {c.value}")
print("="*80)
print ('{:^80}'.format(' Visibilities '))
print("="*80)
for n, v in l.visibilities.visibilities.items():
print(f"Number: {n:<5} Name: {v.name:<60} Type: {v.__class__.__name__:<20} Value: {v.value}")
@Bouni
Copy link
Author

Bouni commented Oct 26, 2021

This gives you something like this:

================================================================================
                                   Parameters
================================================================================
Number: 0     Name: ID_Transfert_LuxNet                                          Type: Unknown              Value: 0
Number: 1     Name: ID_Einst_WK_akt                                              Type: Celsius              Value: 1.0
Number: 2     Name: ID_Einst_BWS_akt                                             Type: Celsius              Value: 50.0
Number: 3     Name: ID_Ba_Hz_akt                                                 Type: HeatingMode          Value: Automatic
Number: 4     Name: ID_Ba_Bw_akt                                                 Type: HotWaterMode         Value: Automatic
Number: 5     Name: ID_Ba_Al_akt                                                 Type: Unknown              Value: 4
Number: 6     Name: ID_SU_FrkdHz                                                 Type: Unknown              Value: 1167609600
Number: 7     Name: ID_SU_FrkdBw                                                 Type: Unknown              Value: 1167609600
Number: 8     Name: ID_SU_FrkdAl                                                 Type: Unknown              Value: 0
Number: 9     Name: ID_Einst_HReg_akt                                            Type: Unknown              Value: 0
Number: 10    Name: ID_Einst_HzHwMAt_akt                                         Type: Unknown              Value: -200
Number: 11    Name: ID_Einst_HzHwHKE_akt                                         Type: Celsius              Value: 33.0
Number: 12    Name: ID_Einst_HzHKRANH_akt                                        Type: Celsius              Value: 22.0
Number: 13    Name: ID_Einst_HzHKRABS_akt                                        Type: Celsius              Value: 0.0
....
Number: 1120  Name: Unknown_Parameter_1120                                       Type: Unknown              Value: None
Number: 1121  Name: Unknown_Parameter_1121                                       Type: Unknown              Value: None
Number: 1122  Name: Unknown_Parameter_1122                                       Type: Unknown              Value: None
Number: 1123  Name: Unknown_Parameter_1123                                       Type: Unknown              Value: None
Number: 1124  Name: Unknown_Parameter_1124                                       Type: Unknown              Value: None
Number: 1125  Name: Unknown_Parameter_1125                                       Type: Unknown              Value: None
================================================================================
                                  Calculations
================================================================================
Number: 0     Name: Unknown_Calculation_0                                        Type: Unknown              Value: 1077015212
Number: 1     Name: Unknown_Calculation_1                                        Type: Unknown              Value: 1077015212
Number: 2     Name: Unknown_Calculation_2                                        Type: Unknown              Value: 3054568
Number: 3     Name: Unknown_Calculation_3                                        Type: Unknown              Value: 3054568
Number: 4     Name: Unknown_Calculation_4                                        Type: Unknown              Value: 3054600
Number: 5     Name: Unknown_Calculation_5                                        Type: Unknown              Value: 3054608
Number: 6     Name: Unknown_Calculation_6                                        Type: Unknown              Value: 32
Number: 7     Name: Unknown_Calculation_7                                        Type: Unknown              Value: 16
Number: 8     Name: Unknown_Calculation_8                                        Type: Unknown              Value: 3054616
Number: 9     Name: Unknown_Calculation_9                                        Type: Unknown              Value: 3054624
Number: 10    Name: ID_WEB_Temperatur_TVL                                        Type: Celsius              Value: 30.0
Number: 11    Name: ID_WEB_Temperatur_TRL                                        Type: Celsius              Value: 28.4
Number: 12    Name: ID_WEB_Sollwert_TRL_HZ                                       Type: Celsius              Value: 30.5
Number: 13    Name: ID_WEB_Temperatur_TRL_ext                                    Type: Celsius              Value: 33.7
Number: 14    Name: ID_WEB_Temperatur_THG                                        Type: Celsius              Value: 33.7
....
Number: 257   Name: Heat_Output                                                  Type: Power                Value: 0
Number: 258   Name: Unknown_Calculation_258                                      Type: Unknown              Value: 0
Number: 259   Name: Unknown_Calculation_259                                      Type: Unknown              Value: None
================================================================================
                                  Visibilities
================================================================================
Number: 0     Name: ID_Visi_NieAnzeigen                                          Type: Unknown              Value: 1
Number: 1     Name: ID_Visi_ImmerAnzeigen                                        Type: Unknown              Value: 1
Number: 2     Name: ID_Visi_Heizung                                              Type: Unknown              Value: 0
Number: 3     Name: ID_Visi_Brauwasser                                           Type: Unknown              Value: 1
Number: 4     Name: ID_Visi_Schwimmbad                                           Type: Unknown              Value: 0
Number: 5     Name: ID_Visi_Kuhlung                                              Type: Unknown              Value: 1
Number: 6     Name: ID_Visi_Lueftung                                             Type: Unknown              Value: 0
Number: 7     Name: ID_Visi_MK1                                                  Type: Unknown              Value: 0
Number: 8     Name: ID_Visi_MK2                                                  Type: Unknown              Value: 1
Number: 9     Name: ID_Visi_ThermDesinfekt                                       Type: Unknown              Value: 1
Number: 10    Name: ID_Visi_Zirkulation                                          Type: Unknown              Value: 1
Number: 11    Name: ID_Visi_KuhlTemp_SolltempMK1                                 Type: Unknown              Value: 0
Number: 12    Name: ID_Visi_KuhlTemp_SolltempMK2                                 Type: Unknown              Value: 0
....

@dagtveit
Copy link

thx i got it . IT was parameter 1 ahahah :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment