Skip to main content

A Python library for controlling Alfen EV chargers

Project description

Alfen Charge station Reader And Controller

A charge station reader and controller for Alfen NG9xx chargers

This code was used in a home built Home Energy Management System (HEMS), to include an Alfen NG9xx charge station into a smart home. You can read more about it in my blog post: How I built a HEMS with solar, a battery and a charge station (in Python)

How to use the code

Import the class and connect to an Alfen Chargestation

from alfenchargestation import AlfenCharger
chargestation = AlfenCharger('ICU-00001', '192.168.1.X', 0, 20)

Show a single value

chargestation.readMeasurements()
print(chargestation.voltage_l1n)

Control the charge station (single)

# Sets the current to 10 amps
chargestation.changeCurrent(10)

Control a set of chargers in a Smart Charging Network (SCN)

# Set the current of the entire charging plaza to 42 amps
chargestation.changeCurrentSCN(42,42,42)

Change charge using 1 or 3 phases

# Set the number of phases to charge on
# !! Please verify that your car is capable of phase switching during charging !!
changeChargeNumberOfPhases(3)

Disclaimer

The code within this repository comes with no guarantee, the use of this code is your responsibility.

I take NO responsibility and/or liability for how you choose to use any of the source code available here. By using any of the files available in this repository, you understand that you are AGREEING TO USE AT YOUR OWN RISK.

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

alfencharger-5.42.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

alfencharger-5.42-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file alfencharger-5.42.tar.gz.

File metadata

  • Download URL: alfencharger-5.42.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.5

File hashes

Hashes for alfencharger-5.42.tar.gz
Algorithm Hash digest
SHA256 3bb18004b82bf0e5108f295c4aaa48e7f7bc86773237ed360138a0fc81c4d114
MD5 ad3b9a572d0bca51f07a6e03f352c354
BLAKE2b-256 b909df46ed25e97241e1f7f71efff39ae40516274c66fd53b665235b2bb501c6

See more details on using hashes here.

File details

Details for the file alfencharger-5.42-py3-none-any.whl.

File metadata

  • Download URL: alfencharger-5.42-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.5

File hashes

Hashes for alfencharger-5.42-py3-none-any.whl
Algorithm Hash digest
SHA256 e7ee4fd03059abcc2b5b107a3fd62498f89f6450ff1a67bbd427063d3ab516e4
MD5 b02065019bf87286686909370a4cf6e0
BLAKE2b-256 a6f310259567814b10ab170217a697f84233459c2eb2461f7d07bcbe1813f32e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page