Skip to main content

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/*

Metadata

Release files for sonnen-charger-modbus 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sonnen-charger-modbus 0.1.5
File Size Uploaded
sonnen_charger_modbus-0.1.5.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sonnen-charger-modbus 0.1.5
File Interpreter ABI Platform
sonnen_charger_modbus-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 13.1 kB

Release files / sonnen_charger_modbus-0.1.5.tar.gz

Download URL sonnen_charger_modbus-0.1.5.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7bf579b82794f5ce2ffb6b114d460f045f322678700864d39adbdb70d61e8e91
BLAKE2b-256 checksum
How to use checksums
b8f0b53d294d868ef88e6976d2963e8adc3c921d63427933ca5b858a3ab21509
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / sonnen_charger_modbus-0.1.5-py3-none-any.whl

Download URL sonnen_charger_modbus-0.1.5-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1e820dfb2cb2c796637b6061b4ebb5782bfa2942bc4c20cc6e43e9c868dd2a2
BLAKE2b-256 checksum
How to use checksums
104744b70cee10f952fc22b02c3c194b02d61e84b8eb6e6896cbe80d4bd94474
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page