"SonnenCharger access via ModBus"
Project description
SonnenCharger
Purpose
Read status information from a SonnenCharger type wallbox
Installation
Using pip
pip3 install sonnencharger
Manual installation
Download the archive from pypi.org and unpack where needed ;)
Usage
from sonnencharger import sonnencharger
sc_host = '192.168.1.2'
sc_port = 502 # optional, default=502
# Init class, establish connection
sc = sonnencharger(sc_host, sc_port)
print(sc.get_sysinfo()) # retrieve general wallbox information
print(sc.get_connectors()) # retrieve status of the connectors
Results (examples)
System information
{
'connectors': 1,
'hwrevision': '1.23',
'model': 'YOUR-MODEL-ID',
'serial': '1234567890',
'swrevision': '1.23.45'
}
Connector Info
{
0: {
'active_session_duration': 77127,
'active_session_imported_energy': 4.667,
'ev_max_phase_current': 14.784,
'ev_max_power': 0.0,
'ev_required_energy': 0.0,
'l1_active_power': 0.0,
'l1_current': 0.0,
'l1_ln_voltage': 234.4,
'l1_phase': 1,
'l2_active_power': 0.0,
'l2_current': 0.0,
'l2_ln_voltage': 233.96,
'l2_phase': 2,
'l3_active_power': 0.0,
'l3_current': 0.0,
'l3_ln_voltage': 235.34,
'l3_phase': 3,
'max_current': 16.0,
'net_frequency': 49.99,
'num_phases': 3,
'power_factor': 0.0,
'session_departure_time': 1673110800,
'session_id': 0,
'state': 'Vehicle has paused charging',
'state_numeric': 5,
'target_current': 16.0,
'total_active_power': 0.0,
'type': 'CableType2',
'type_numeric': 2,
'vehicle_connected_phases': 'Three phases',
'vehicle_connected_phases_code': 0,
'vehicle_connected_phases_numeric': 3
}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sonnencharger-0.1.2.tar.gz
(16.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sonnencharger-0.1.2.tar.gz.
File metadata
- Download URL: sonnencharger-0.1.2.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29cabd27defb7f1ad3c9756847f01c769011baf0f188b47a77dc32ca7b1c8e0d
|
|
| MD5 |
b4f98373e437256a1c7b587aec39260d
|
|
| BLAKE2b-256 |
0c684a66b5798bd9be3315307a69c77a453b1e516f3c1f88b8459d6bcfc4dd27
|
File details
Details for the file sonnencharger-0.1.2-py3-none-any.whl.
File metadata
- Download URL: sonnencharger-0.1.2-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7556e26f1a0766b0a4a5522728b7badbc174294bc5b8f32353a8700d0df1c74e
|
|
| MD5 |
78e359743e23b95a66ce08256a2ecd2b
|
|
| BLAKE2b-256 |
99ca594424e9ecb98ed685edf899142828b69aa2f32aeac9b85155564a307096
|