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

Support for new parameters #139

Merged
merged 2 commits into from
Oct 2, 2023
Merged

Conversation

kbabioch
Copy link
Collaborator

This adds support for newly identified parameters. The datatype have already been available, so it comes down to assigning the correct datatype to the appropriate parameter. The commits in this series provide additional information about those new parameters.

This identifies and adds the according datatype to several parameters
that have been identified to be related to the operating time of the
machine. Essentially most of it is tracked in seconds, while some other
parameters keep track of the counts.

- `Zaehler` refers to the German word for counter.
- `BetrZeit` refers to the German word for "operating time"
- `WP` stands for "Wärmepumpe", the German word for heat pump.
- `ZWE` refers to `Zusätzlicher Wärmeerzeuger`, essentially heating
  rods, etc.
- `Imp` refers to `Impulse`, the German word for "impulses" and/or
  "cycles".
- `Hz` refers to the German word "Heizung", i.e. "heating"
- `BW` refers to the German word "Brauchwasser", i.e. hot water
- `SW` refers to the German word `Schwimmwasser", i.e. swimming pool
  water
- `Kue` refers to the Terman word "Kühlung", i.e. cooling.

The necessary datatypes have already been available.
This adds newly identified parameters related to the energy usage. The
appropriate parameters are currently named:

```
+            878: Energy("ID_Waermemenge_BW"),
+            879: Energy("ID_Waermemenge_SW"),
+            880: Timestamp("ID_Waermemenge_Datum"),
```

- `Waermemenge` refers to the German word for "amount of heat".
- `BW` refers to `Brauchwasser`, the German word for hot water.
- `SW` (probably) refers to `Schwimmwasser` the German word for pool water.
  This is also a mode that is supported.
- `Datum` refers to "date", which is the date when this data has been
  reset the last time.

Luckily the datatypes have already been available, so they are just
assigned to those parameters. Since it doesn't make sense to write those
parameters, safe mode is not turned on in these cases.
@github-actions
Copy link

Coverage

Coverage Report
FileStmtsMissCoverMissing
luxtronik
   __init__.py13410621%38–54, 61–66, 69–73, 79, 83, 102–113, 116–119, 122–142, 145–160, 163–180, 183–198, 202–204, 208–209, 213–214
   __main__.py21210%2–48
   datatypes.py2351295%37, 42, 47, 57, 72–75, 80–83, 92
   discover.py433421%25–77
luxtronik/scripts
   dump_changes.py44440%5–93
   dump_luxtronik.py28280%5–64
TOTAL58824558% 

Tests Skipped Failures Errors Time
110 4 💤 0 ❌ 0 🔥 0.827s ⏱️

@kbabioch kbabioch merged commit 8f18334 into Bouni:main Oct 2, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants