Registry / devops / pymyenergi

pymyenergi

JSON →
library0.2.3pypypi✓ verified 86d ago

Python library and CLI for communicating with the myenergi API. Current version 0.2.3, released irregularly (last update Dec 2021). Targets Python >=3.6.

pip install pymyenergi
INSTALL
IMPORT
SIG · PYMYENERGI
P
pymyenergi
devopspythonv0.2.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MyenergiClient
from pymyenergi.client import MyenergiClient
Direct import from pymyenergi.myenergi_client or pymyenergi.MyenergiClient will break.
Myenergi
from pymyenergi import Myenergi
from pymyenergi.myenergi import Myenergi
Top-level module exports Myenergi class.

Initialise connection and list devices.

from pymyenergi import Myenergi import os username = os.environ.get('MYENERGI_USERNAME', '') password = os.environ.get('MYENERGI_PASSWORD', '') client = Myenergi(username, password) client.refresh() print(client.devices)
Debug
Known issues
gotchaThe library relies on undocumented myenergi API endpoints; breaking changes can occur without notice.
fix
Pin version and test after myenergi server updates.
affects: all
gotchaRate limiting: contacting the API too frequently may get your IP temporarily blocked.
fix
Implement delays between requests (e.g., at least 10 seconds).
affects: all
gotchaThe library only supports the zappi, eddi, and harvi devices; other myenergi products may not work.
fix
Check GitHub issues for new device support.
affects: 0.1.x-0.2.x
Errors
Common errors & fixes
AttributeError: module 'pymyenergi' has no attribute 'MyenergiClient'
Wrong import path; MyenergiClient is in the client submodule.
fix
Use: from pymyenergi.client import MyenergiClient
ValueError: Invalid username or password
Credentials are rejected; API may be down or library expects unhashed password.
fix
Ensure credentials are correct. Password is sent in cleartext; check myenergi server status.
ImportError: cannot import name 'Myenergi' from 'pymyenergi.myenergi'
Direct submodule import is incorrect.
fix
Use: from pymyenergi import Myenergi
Upgrade
Version history
0.2.3latest on PyPI · released Jun 10, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
pymyenergi — pip install pymyenergi · libregistry