OpenAmpere

Open source under the MIT License

Keep an eye on your solar system and battery, even without the manufacturer's cloud.

OpenAmpere reads the values directly from the inverter in your home network. You don't need an account or a server from the manufacturer. The app runs on a small computer in your home, for example a Raspberry Pi or an old Android tablet.

The demo shows a made-up system and runs only in your browser.

Who is OpenAmpere for?

Supported devices

  • FoxESS H3, newer firmware: monitoring and control. Monitoring and control confirmed.
  • FoxESS H3, older firmware / H3 Smart / H3 Pro: monitoring and control. Not yet confirmed.
  • SAJ H2 / HS2: monitoring and control. Monitoring confirmed and in daily use on a "3P-X E2" (older "Ampere.StoragePro"); of the control the backup reserve (taken over and kept) and grid charging confirmed so far; H2, HS2 and AS2 not yet confirmed.
  • Solarmax MAX.STORAGE ("AMPERE.Storage"): monitoring only. Monitoring confirmed (detection, live values, grid direction); battery direction derived from one report.
  • M-TEC Energy-Butler GEN3: monitoring only. Detection, monitoring and signs confirmed (in the Home Assistant app).
  • Senec.Home V3 / V2.1: monitoring only, chosen in the setup. Not yet confirmed.
  • Enphase IQ Gateway with IQ Battery: monitoring only, with an access token from Enphase. Not yet confirmed.
  • RCT Power Storage DC / AC, Power Inverter: monitoring only, chosen in the setup. Not yet confirmed.
  • Immersion heater, heat pump (SG-Ready): switched on solar surplus via a Shelly relay or web addresses. Not yet confirmed.
  • Immersion heater my-PV AC ELWA-E, AC ELWA 2, AC THOR: continuously adjusted to the solar surplus. Monitoring confirmed on one AC ELWA 2; control not yet confirmed.
  • FoxESS AC EV Charger ("Ampere.ChargePro"): monitoring, control only after you agree in the app. Monitoring confirmed on two chargers of EKD systems, on one also while charging; setting the work mode confirmed; control of charging not yet confirmed.
  • Weidmüller AC SMART ("AMPERE.Charge"): monitoring only. Not yet confirmed.
  • go-e Charger: monitoring only. Confirmed: found and shown while charging.
  • Portable dé wallbox (Tuya Wi-Fi): monitoring and control in the home network. Monitoring confirmed; control not yet confirmed.
  • Wallbox through evcc: monitoring and operation through evcc. Not yet confirmed.
  • Not yet: older batteries EKD sold before the Ampere.StoragePro. Which ones they are and what is planned is in the overview of EKD devices

The app detects which device you have during setup. It connects via Modbus TCP. “Not yet confirmed” means: built from manufacturer or community documentation and checked with tests, but not yet reported from a real system. If you have such a device, a device report with the diagnostics from the app helps. All details are in the device list.

Setup

You start OpenAmpere once with Docker. A wizard then finds the inverter, and you make all settings in the app. There are no configuration files to edit.

Your current app only works through the manufacturer's cloud? Then read the background and the frequently asked questions.

Features

Live view

What the roof is producing right now, what the house is using, whether the battery is charging and whether power is going to the grid.

Report

History per day, week, month and year with self-sufficiency, self-consumption and estimated savings.

Module strings and temperatures

Yield for each side of the roof separately, plus the temperatures of the inverter and the battery.

Battery and backup power

Set the backup reserve, charge limits and operating mode. You can try new values in test mode first.

Export limit

You state which rule applies to your system: 60 %, 70 % or a value set by your grid operator. The app does not allow more.

Electricity tariffs

Fixed price or dynamic spot-market price. With a dynamic tariff the battery can charge when power is cheapest. This feature is still experimental.

Immersion heater and heat pump

An immersion heater from my-PV takes exactly as much power as is left over. The app switches a heat pump or other devices via a Shelly relay.

Wallbox with evcc or directly

Charge your car with solar power. evcc controls most wallboxes, and you can operate them directly in OpenAmpere. For many wallboxes evcc requires a sponsor token, which costs money (list). The portable dé wallbox OpenAmpere controls itself, without evcc and without a cloud. For cars from Volkswagen, Audi, Škoda, SEAT, CUPRA, BMW and MINI, OpenAmpere can also show state of charge, range and odometer, fetched from the manufacturer (the Volkswagen group's EU Data Act portal, BMW CarData).

Home Assistant

All values live in Home Assistant, including the energy dashboard, and control of the battery from there if you want. Learn more

Alerts, diagnostics, export

A message on your phone via ntfy or by e-mail when something is wrong. A diagnostics check tests whether the app reads your device correctly. All values are available as a CSV file.

How it works

Inverterwith battery OpenAmpereDocker in your home network Phone or browserat home or via VPN Modbus TCP Web app The readings are stored on the computer in your home.

Installation

OpenAmpere runs in one of three ways. Choose one of them, because only one OpenAmpere may talk to the inverter:

What does each way offer?

All three ways are the same OpenAmpere from the same release, with the same features. They differ in what it runs on and how it updates.

Way 1: Linux computerWay 2: Home Assistant appWay 3: Android tablet
Runs onA 64-bit Linux computer on the home network, for example a Raspberry Pi 4 or 5, a NAS or ProxmoxHome Assistant OS (64-bit)A tablet with Android 7.0 or newer
FeaturesThe same on all three: live values, analysis, electricity tariff, control, wallbox, Home Assistant, push notifications
OpenIn the browser of phone and computerIn the Home Assistant sidebar, with a password also directly in the browserOn the tablet and in the browser of phone and computer
Home AssistantThrough the integration (HACS)Comes along automatically, without HACSThrough the integration (HACS)
UpdatesWith a button in the app or by itself at nightThrough Home AssistantThe app installs them itself, at night if you like
On the goTailscale, set up by the install scriptThrough the remote access of Home AssistantWith the Tailscale app on tablet and phone
Keep in mindThe computer runs around the clockHome Assistant runs around the clock. The app is new and still marked as experimentalThe app is new. The tablet always stays at home on the charger and on the Wi-Fi. While it was off, readings are missing, and the gap does not count as a power cut

Way 1: standalone with Docker

  1. Prepare a computer

    You need a Linux computer on the same network as the inverter, for example a Raspberry Pi with a 64-bit system, a NAS or a Proxmox server. Modbus TCP must be enabled on the inverter. This is already the case for the Ampere.StoragePro batteries sold by EKD; otherwise your installer can enable it.

  2. Install

    Run this command in the computer's terminal:

    curl -fsSL https://gr33ndev.github.io/OpenAmpere/install.sh | bash

    The script installs Docker if needed and asks whether you have a wallbox. If so, it sets up evcc as well. If you also want to use OpenAmpere on the go, it sets up Tailscale too. The app shows new versions and installs them at the push of a button, or automatically at night if you like.

  3. Set up in the browser

    Open the address the script shows at the end and choose a password. The wizard then looks for the inverter. You add an immersion heater under More → Connection, and connect the wallbox there step by step with evcc or directly. On an iPhone you can add the page to your home screen.

Manual installation and remote access are described in the README on GitHub.

Connect Home Assistant (optional)

Optional. With the OpenAmpere integration you see power, energy and state of charge live in Home Assistant, suitable for the Energy dashboard. If you allow it, you control the battery, charging from the grid and the immersion heater from there, for example in automations. The integration connects to the running OpenAmpere; only OpenAmpere talks to the inverter.

  1. Install via HACS

    The button opens the repository in your Home Assistant (HACS must be installed). Download it there and restart Home Assistant.

    Open in Home Assistant (HACS)

  2. Pair

    In Home Assistant, add the OpenAmpere integration and enter the address of OpenAmpere. Both show the same 6-digit code. You compare it in OpenAmpere under More → Connected apps and allow the connection, either read-only or with control.

    Set up the integration in Home Assistant

The connection is encrypted, and each app gets its own access that you can remove at any time. The main switch, test mode and export limit stay in OpenAmpere. Guide and details

Way 2: as a Home Assistant app

For Home Assistant OS, for example on a Home Assistant Green or a Raspberry Pi. You need no extra computer. The app is new and still marked as experimental.

Add the repository in Home Assistant

The button opens the dialog for adding the repository in your Home Assistant. Then install the app OpenAmpere, turn on “Show in sidebar” and start it. In the sidebar, the wizard searches for the inverter.

Without the button: in Home Assistant open Settings → Apps → Install app → ⋮ → Repositories, enter https://github.com/Gr33ndev/OpenAmpere and click Add.

Guide for the app, also for moving an existing installation.

Sensors and control in Home Assistant

The app brings the OpenAmpere integration of its version along and installs it itself; you need no HACS. With it you see power, energy and state of charge live in Home Assistant, also in the Energy dashboard, and if you like you control the battery, charging from the grid and the immersion heater. After the first start of the app, Home Assistant asks for a restart. Then Settings → Devices & services shows “Discovered: OpenAmpere”: confirm it, then both show the same 6-digit code. Compare it in OpenAmpere under More → Connected apps and allow the connection, read only or with control.

The connection is encrypted, and each app gets its own access that you can remove at any time. The main switch, test mode and export limit stay in OpenAmpere.

Way 3: on an Android tablet

  1. Prepare the tablet

    You need a tablet with Android 7.0 or newer that always stays at home in the Wi-Fi and on the charger. The screen may be off. Modbus TCP must be switched on at the inverter, as for way 1.

  2. Install the app

    Open this page on the tablet and tap the button. Under "Assets", download the file that ends in .apk, tap it and allow the browser to install apps. The app is only available here, not on Google Play. If Google Play Protect warns, the guide below says what to do.

    Download the latest version

  3. Set up

    Open OpenAmpere and allow it to show notifications and to be left out of battery optimisation. Then choose a password; the assistant looks for the inverter. Phones and computers then open OpenAmpere in the browser at the tablet's address with port 8080. New versions are downloaded and installed the same way; the app shows when one is out.

The app is signed with the project's key. SHA-256 fingerprint of the certificate: 26952e8da7f7093cf8ea99622d1576c88d075896b851e8ba4ff792f109854886

Guide for the tablet: what it needs, keeping it running, updates, moving and backup.

Security

Control is off at first

After installation, OpenAmpere only reads. If you want to change settings, you unlock control and try it out in test mode. The app checks values before writing, reads them back afterwards and records every change in the log.

Access

Anyone in your home network can view the values. Changing anything requires the password. On the go, you reach the app via Tailscale, set up with one tap in the app, or via a VPN such as the one in a FRITZ!Box. You should not set up port forwarding to the internet. Apps such as Home Assistant connect encrypted with their own access that you can remove at any time. OpenAmpere collects no usage data.

Get involved

You can help even without programming skills. A device report with the diagnostics from the app helps most, because it makes it possible to support and confirm more models. You can report bugs and ideas as an issue.