https://github.com/matrixcrawler/python-e3dc-module
A Python library for querying E3/DC systems trough an RSCP connection.
https://github.com/matrixcrawler/python-e3dc-module
e3dc home python3 smart smarthome
Last synced: 5 months ago
JSON representation
A Python library for querying E3/DC systems trough an RSCP connection.
- Host: GitHub
- URL: https://github.com/matrixcrawler/python-e3dc-module
- Owner: MatrixCrawler
- License: mit
- Created: 2019-08-05T13:49:12.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-30T19:30:13.000Z (about 6 years ago)
- Last Synced: 2025-05-07T23:08:42.279Z (5 months ago)
- Topics: e3dc, home, python3, smart, smarthome
- Language: Python
- Homepage:
- Size: 73.2 KB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-e3dc [](https://travis-ci.com/MatrixCrawler/python-e3dc-module)
A Python library for querying [E3/DC](https://www.e3dc.com/en/) systems trough an RSCP connection.
This library aims to provide an interface to query an [E3/DC](https://www.e3dc.com/en/) solar power management system through the RSCP connection provided by the system.## What do i need?
You'll need:
- Your username
- Your password
- The IP address of the E3/DC system
- The encryption key as set in the system preferences## Usage
### Request single stat
e3dc = E3DC('username', 'password', 192.168.1.123, 'my_secret_key')
# request the current power that is produced by the pv system
response = e3dc.send_request(RSCPTag.EMS_REQ_POWER_PV)
print("Current power "+str(response.data))### Send multiple requests at once
e3dc = E3DC('username', 'password', 192.168.1.123, 'my_secret_key')
responses = e3dc.send_requests(
[RSCPTag.EMS_REQ_BAT_SOC, RSCPTag.EMS_REQ_POWER_PV, RSCPTag.EMS_REQ_POWER_BAT,
RSCPTag.EMS_REQ_POWER_GRID, RSCPTag.EMS_REQ_POWER_WB_ALL])
for response in responses:
print("Response Tag: "+str(response.tag)+", response type: "+str(response.type)+",
response data: "+str(response.data))## Copyright notice
This module is based on https://github.com/fsantini/python-e3dc and distributed under a MIT License