Allows to access Sonnen Charger (or any other ETREL INCH) using TCP Modbus
Project description
Sonnen Charger Modbus API
Allows to access Sonnen Charger (or any other ETREL INCH) using TCP Modbus
Usage
from sonnen_charger_modbus import Charger, ChargerConnectorStatus
import traceback
charger = Charger('192.168.0.1', 502)
try:
if charger.readConStatus(0).value >= ChargerConnectorStatus.WaitingForVehicleToRespond.value:
carConnected = True
chargingPower = charger.readActivePowerTotal(0) * 1000
print('chargingPower', chargingPower)
except Exception as e:
print('Error in Modbus communication:')
traceback.print_exc()
print(e)
charger.close()
How to release (only for devs)
py -m build
twine check dist/*
twine upload -r sonnen-charger-modbus dist/*
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
Built Distribution
File details
Details for the file sonnen_charger_modbus-0.1.5.tar.gz
.
File metadata
- Download URL: sonnen_charger_modbus-0.1.5.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bf579b82794f5ce2ffb6b114d460f045f322678700864d39adbdb70d61e8e91 |
|
MD5 | 7e33d33d64bb41b2f199e7da71b6270b |
|
BLAKE2b-256 | b8f0b53d294d868ef88e6976d2963e8adc3c921d63427933ca5b858a3ab21509 |
File details
Details for the file sonnen_charger_modbus-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: sonnen_charger_modbus-0.1.5-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1e820dfb2cb2c796637b6061b4ebb5782bfa2942bc4c20cc6e43e9c868dd2a2 |
|
MD5 | a86a992a057b45c45916075c3607c861 |
|
BLAKE2b-256 | 104744b70cee10f952fc22b02c3c194b02d61e84b8eb6e6896cbe80d4bd94474 |