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.

The license covers only the code in this repository. It does not cover the Grohm cloud service and its API, the my-Grohm apps, the firmware of the chargers, or any other software of Emme Esse S.p.A., and it grants no right to use the Grohm trademarks. Access to the Grohm cloud is provided by Emme Esse S.p.A., and may be changed, limited or discontinued at any time.

Grohm is a registered trademark of Emme Esse S.p.A.

Metadata

Release files for grohm 0.1.1

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.1
File Size Uploaded Provenance Actions
grohm-0.1.1.tar.gz 16.8 kB With provenance Details for grohm-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 31.6 kB

Release files / grohm-0.1.1.tar.gz

Download URL grohm-0.1.1.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c72d552a2f6ba3e49ae14f18357e8258ed7f984c2505245938de97787da27a69
BLAKE2b-256 checksum
How to use checksums
2e01fdf7e9d9a25744391e44f7603ea2e83c6a6e837051ed2e9c0d1ac232a2dc
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.1-py3-none-any.whl

Download URL grohm-0.1.1-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a097ca5aa7f401f71eaf816c9ff8ed1be5a29a6886442b1b51f15294f7ee589
BLAKE2b-256 checksum
How to use checksums
64de53303980102a0b4dfe888a438bb384578bbfbe4eaaf7739228a340d2b0d5
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.1

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.1.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.1 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