-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for auto-detected additional powermeters (#57)
As discussed in [Issue 23](#23), here's a PR to add additional powermeters. What it does: 1. creates an ``e3dc``object as before 2. calls ``e3dc.get_powermeters()`` to identify the powermeters. 3. deletes the ``e3dc``object 4. creates a new object with the config parameter for the additional powermeters. Currently, per additional powermeter two entities for power and energy are created. Ideally, I'd like to give the entities nicer names based on the powermeter type (which is known to python-e3dc) but I didn't manage to name entities dynamically when working with ``strings.json``and ``en.json``. I tested the implementation with my additional powermeter (Type LM3p80hhc) for my heat pump which identifies as ``PM_TYPE_ADDITIONAL_CONSUMPTION`` in the python-e3dc lib: <img width="528" alt="image" src="https://github.com/torbennehmer/hacs-e3dc/assets/24450990/00f42740-67b0-4e40-ba16-617639fba5f1">
- Loading branch information
Showing
3 changed files
with
182 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters