Skip to content

Instantly share code, notes, and snippets.

@Bouni
Created October 26, 2021 05:21
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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}")
@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