Skip to main content

python-grohm

Async Python client for Grohm EV chargers, through the Grohm cloud API. It is the library behind the Grohm integration of Home Assistant, and is maintained by Emme Esse S.p.A., the maker of Grohm.

Install

pip install grohm

Usage

The API authenticates with a session cookie. Give the client an aiohttp.ClientSession with a cookie jar of its own, so the session of one account is never shared. The client logs in again by itself when the session expires.

import asyncio

import aiohttp

from grohm import GrohmClient


async def main() -> None:
    async with aiohttp.ClientSession(cookie_jar=aiohttp.CookieJar()) as session:
        client = GrohmClient(session, "user@example.com", "password")
        user = await client.login()
        print(user.account_type)

        devices = await client.get_devices(await client.get_device_ids())
        for device in devices.values():
            session_data = device.session
            print(
                device.name,
                device.status,
                device.nominal_power_kw,
                session_data.power if session_data else None,
            )

        await client.logout()


asyncio.run(main())

What it covers

  • Log in, log out, and the current user, with its account type: private, manager or installer.
  • The chargers of the account. For a manager, the chargers of all its networks, plus the ones outside a network. For an installer, the chargers it maintains.
  • The state of many chargers in one request: status, power, current, voltage, energy of the session, total energy, Wi-Fi signal.
  • Commands: pause and resume charging (ChargingSession.command_to picks the right command), lock and unlock, forced charge (manager accounts only).

Notes on the data

  • ChargingSession.power is 0 when the charger is not charging: the charger keeps reporting a stale residual power otherwise.
  • Device.nominal_power_kw is the commercial rating: 7.4, 11 or 22 kW.
  • Device.charging_phases is the number of phases the car uses, on three phase chargers while charging.

Development

python -m venv .venv
.venv/bin/pip install -e '.[test]'
.venv/bin/pytest
.venv/bin/ruff check . && .venv/bin/mypy src

A release on GitHub publishes the package to PyPI, from the release.yml workflow, with PyPI trusted publishing. The tag must match the version in pyproject.toml.

License

Apache License 2.0, see LICENSE. Grohm is a registered trademark of Emme Esse S.p.A.

Metadata

Release files for grohm 0.1.0

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

Source distribution (sdist)

Source distribution for grohm 0.1.0
File Size Uploaded Provenance Actions
grohm-0.1.0.tar.gz 16.6 kB With provenance Details for grohm-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for grohm 0.1.0
File Interpreter ABI Platform Actions
grohm-0.1.0-py3-none-any.whl Python 3 none any Details for grohm-0.1.0-py3-none-any.whl

Total release size: 31.0 kB

Release files / grohm-0.1.0.tar.gz

Download URL grohm-0.1.0.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
08b045b0ae32f74c910b599114699530c74e587857597f5c4062ebce254dd346
BLAKE2b-256 checksum
How to use checksums
1258887d88176c13d6c2e5c36b532a9ea9b95a862acdf6cd4dcfa7448e4e29f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / grohm-0.1.0-py3-none-any.whl

Download URL grohm-0.1.0-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1733db10faa8d33d94077626684513ca1738063a8d44cff43425fc07c399f34f
BLAKE2b-256 checksum
How to use checksums
54cef83a496f90726ca46ad58dcd945a1ca9e1bba03e3f80ec9e477d152464f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for grohm 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for grohm-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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