OpenAmpere

Device knowledge

These pages are technical. They collect what the OpenAmpere contributors have found out about the devices, each fact with its source and how sure it is. They show the latest state of development, which can be ahead of the version you have installed. They are not official manufacturer information. You don't need them to set up OpenAmpere; the app explains everything you need.

Previous EKD smartbox ("IQ box") and the EKD cloud

Not official information. Compiled by the OpenAmpere contributors; can be incomplete or wrong. No affiliation with EKD or the manufacturers named here, not legal advice. See Device knowledge.

Applies to: the energy manager ("smartbox", "IQ box") installed with the storage systems sold by EKD, the EKD cloud behind it, its customer API and the previous app · Sold as: part of "Ampere.StoragePro" and "Ampere.StoragePro E3" systems · OpenAmpere: no driver, OpenAmpere never talks to the box; it detects the box's effects (control.py, diagnostics.py, drivers/modbus.py) and imports the cloud history (cloud_import.py) · Support: – · Confirmed on a real device: partly

The name "IQ box" or "smartbox" is used here only to describe the device. App texts call it the "former smartbox" without a manufacturer name.

Summary

Registers

Registers the box writes, as far as known. OpenAmpere does not use the box's patterns.

RegisterMeaningType, scale, signR/WStatusSource
FoxESS 46001Remote control, a bit field: bit 0 on, bits 3:2 target (00 AC, 01 battery, 10 grid, 11 AC with grid first); the box writes 5 = on with the battery as targetU16 bit fieldW (by the box)confirmed (values an owner read); that the box writes them: derived; bit field: documented#141, #142; FoxESS Modbus interface definition V1.05.04.00, table 3-8
FoxESS 46002Remote control timeout (watchdog); the box writes 30U16, sW (by the box)confirmed, as above#141, #142
FoxESS 46003–46004Remote control active power; the box puts its charge power hereI32, WW (by the box)confirmed, as above#141, #142
FoxESS 20162Unknown; the box writes 1–W (by the box)open (meaning unknown)#141, registers.md
SAJ 0x3644On-grid discharge depth (backup reserve), % SoC; set to 100 while charging, put back afterwardsU16, %W (by the box)derivedstanus74/home-assistant-saj-h2-modbus#18; registers.md; #382
SAJ 0x3647Work mode (AppMode); set to 0 at the end of charging; also changes when 0x8300 is writtenU16W (by the box)derivedstanus74/home-assistant-saj-h2-modbus#18; #382, #383
SAJ 0x8300–0x8306Undocumented charge block, written with FC16 while charging (see Behaviour); 0x8300 = 0 at the endU16 eachW (by the box)derivedstanus74/home-assistant-saj-h2-modbus#18 (recorded traffic); not in SAJ's H2 protocol (#377)

Behaviour

The box and the inverter

FactStatusSource
The box fetches its target settings from the EKD cloud about every 100 s and writes them to the inverter, overwriting changes made by OpenAmpere (backup reserve, work mode, grid charging, export limit). Seen repeatedly in owners' questions.confirmed#25, #53, #373, #374
Blocking the box's internet access in the router stops the resets: an owner kept a changed backup reserve and a switch to price-based grid charging.confirmed#25, #53
The box is also a Modbus TCP client of a my-PV heating rod: on an SAJ system it held the rod's connection, and OpenAmpere could read the rod only after the box was taken off the network and the rod restarted; since then the box no longer reaches the rod.confirmed (one AC ELWA 2)owner report, #660; mypv/elwa.md
On one FoxESS H3 system, with the box's internet access blocked by the router's parental control, settings made in OpenAmpere were kept, but the backup reserve still jumped back to the value of the EKD app after about 100 s (OpenAmpere reported the overwrite). Which device writes it is open: the box's cycle fits; whether the block really covers all of the box's traffic is not known.derived (one system)owner report, discussion #621
With its internet access blocked, the box keeps reading along but gets no targets and no updates, and the manufacturer's app shows no current data.derived#25, #53
On a FoxESS H3 the box keeps its own Modbus TCP connection open all the time and does not release it, so it can take one of the inverter's very few connection slots. OpenAmpere's "per poll" connection mode does not help against it.confirmed#311, #312
The box is also configured as a Modbus TCP client of the FoxESS AC EV Charger ("Ampere.ChargePro Bridge", host EVC-<serial>.local, unit id 1, port 502, not configurable on the settings page of one box; on another box the port could be changed, see below). While the box is powered and on the network, OpenAmpere and evcc cannot read the charger; with the box cut from power the wallbox check reads it at once, and on a second system evcc read it with only the box's LAN cable pulled. Whether the charger allows only one client or mishandles concurrent clients, and whether the box also controls the charger, is open; see ac-charger.md.configured as a client: derived; blocks access: confirmed (two devices)an owner's screenshot of the box's settings page, #427; owner's diagnostics report, #431; owner report, discussion #621
On another box the Modbus target port for the charger could be changed in its web interface: set to 503, the box no longer reached the charger (it reports errors for it) and port 502 was free for OpenAmpere and evcc while the box stayed on the network. What the box no longer does for the charger then (possibly § 14a dimming, if it goes through the box) is open. Setting it back to 502 should undo it (not tried).derived (one system)owner report, discussion #621, #647
On a SAJ 0x005E OpenAmpere ("Nur ansehen", connection mode "per poll") read live values over Modbus TCP for days while the box stayed connected and controlled the system, also while the box had no cloud connection for about two hours. On another 0x005E the box blocked OpenAmpere (#469); why the two differ is open.confirmed (one SAJ)owner report in #576
Disconnecting the box from the network (its LAN cable or its power, not the inverter's) frees the slot.confirmed#311
At one installation that routed everything through a Modbus proxy, the box set itself back to the inverter's own address after a while and took a slot again. A proxy is no lasting way to share the inverter with the box.confirmed#311, #312
After the box is disconnected, the inverter keeps working with the settings stored last. SAJ: owners report the system running on with the box switched off (the battery went on discharging) or never having had a box. FoxESS H3: only reports of the first hours after cutting the box off, no long-term report.confirmed (SAJ, owner reports), open (FoxESS long-term)owner reports in a Photovoltaikforum thread on bursts of discharge, page 11 of a Photovoltaikforum thread on the storage and a Home Assistant community thread; #311, #312, #469
Neither inverter has a documented function that stops or limits it when an external controller such as the box falls silent. Kiwigrid's installation guide for the Energy Manager RailX (version 014, 2025) mentions no watchdog, fallback or loss of communication for connected inverters or batteries. FoxESS's only mechanism is the timeout of the remote control (see below); SAJ has none (see h2-family.md).documented (none in the documents named)Kiwigrid, installation guide Energy Manager RailX, version 014; FoxESS Modbus interface definition V1.05.04.00; SAJ H2 protocol
The grid meter is read by the inverter (its values are in the inverter's registers), not by the box, so self-consumption and the export limit do not depend on the box. FoxESS reports a lost meter as an alarm ("Meter Lost"); on the FoxESS H1 a lost CT switches the inverter off, for the H3 this is not documented. Whether any EKD installation wires the meter through the box is open.deriveda Home Assistant community thread (SAJ meter registers); FoxESS Modbus interface definition V1.05.04.00; FoxESS H1/AC1 G100 declaration
The export limit stays in force without the box: it is stored in the inverter and works with the meter the inverter reads itself (row above). No owner report shows it from a device.derivedfoxess/h3.md, saj/h2-family.md; #311, #312
FoxESS: per FoxESS's Modbus definition 46001 is a bit field (bit 0 on, bits 3:2 target: 00 AC, 01 battery, 10 grid, 11 AC with grid first). The box's 5 therefore means remote control on with the battery as target. The FoxESS definition does not say what happens when the timeout ends; foxess_modbus expects the remote control to end and the inverter to go back to its own work mode, so the box's 30 s timeout would end it soon after the box falls silent. If it stays on as in #141, the battery would stay at the box's last power (0 W or charging) while PV and the house supply go on. Not seen on a device.documented (bit field), derived (behaviour)FoxESS Modbus interface definition V1.05.04.00, table 3-8 (bit field); nathanmarlor/foxess_modbus (behaviour after the timeout); foxess/h3.md
SAJ: when the box writes 0x8300 at the start of a charge, the work mode 0x3647 changes to 3 (passive mode) by itself; the box ends a charge with 0x8300 = 0 and 0x3647 = 0 written back to back. Cut off in the middle of a charge, the inverter may therefore keep passive mode and the reserve 0x3644 at 100 %, and the battery would not discharge until someone changes them.derivedstanus74/home-assistant-saj-h2-modbus#18 (recorded traffic); #377
The box may be needed for something else, for example control by the grid operator (§ 14a EnWG for a controllable device such as a wallbox or heat pump, § 9 EEG for feed-in). It can only do that where a smart meter gateway with a control box at the meter exists and is connected to the box (a cable on its inputs, or EEBus in the home network). No installation has confirmed it either way; owners check it with the steps in the README before disconnecting the box.open (depends on the installation)#25, #311, #452
FoxESS: the box drives the remote control with 46001 = 5, 46002 = 30 s, its charge power in 46003–46004, and also writes 20162 = 1.confirmed (owner's report)#141, #142
FoxESS: a remote control that is on with values other than OpenAmpere's usually means the box is following targets from its cloud; it can overwrite grid charging and battery settings.derived#126, #127, #136, #142
SAJ: the box writes the work mode 0x3647 and the on-grid reserve 0x3644. It can switch an SAJ away from time-of-use mode while OpenAmpere charges through a charge slot.derivedstanus74/home-assistant-saj-h2-modbus#18; #382, #383
SAJ, grid charging by the box: it sets 0x3644 to 100, then writes 0x8300–0x8306 with FC16. From the grid only, every 3 s, with values in the pattern 3, 2, about the charge power, …, 600, 10000, 10000. With PV, 0x8300–0x8304 every second. At the end it writes 0x8300 = 0 and 0x3647 = 0 and puts 0x3644 back.derivedstanus74/home-assistant-saj-h2-modbus#18 (recorded traffic); research in #377

The EKD cloud and the previous app

FactStatusSource
The EKD cloud (behind the Ampere.IQ app) has a customer API that EKD documented for customers at developer.ekd-solar.de; access uses a personal key from the owner's app.documentedEKD's customer API documentation; README
The customer API blocks clients that poll too often. Requests carry a fixed client type value (de.ekd.customer.apiclient) that the API requires.documentedEKD's customer API documentation; cloud_import.py
The history can be fetched in two steps: energy values in quarter hours, then the battery state of charge per day.confirmed#17, #42
The previous app apparently calculated house consumption as the balance of the other energy flows, so its value differed from the inverter's own consumption counter.derived#15, #36; see Open questions
The previous app offered three grid charging levels at 50, 75 and 100 % of the charge power the battery's datasheet permits.derived#23, #49
In September 2025 EKD switched off the storage function of the older "AMPERE.Storage" (SolarMax-based, neither SAJ nor FoxESS) remotely, announced one day before and citing a regulatory component to be retrofitted. EKD released it again after a fuse was fitted on site in the following weeks. This has nothing to do with switching the box off, but may be where the story "the system stops by itself" comes from.confirmed (owner reports), derived (link to the rumour)owner reports in a Photovoltaikforum thread on the shutdown
The box is a Kiwigrid energy manager. In the LAN it offers a REST interface (items named after the inverter, e.g. sajhybrid_… or foxesshybrid_…); it has no Modbus server of its own, but is a Modbus TCP client of the inverter, the charger and the my-PV heating rod (see above and mypv/elwa.md).derivedevcc-io/evcc discussion 8394; Photovoltaikforum on the Ampere Storage Pro; names.md

Decisions in OpenAmpere

DecisionWhyIssue/PR
Re-read written battery settings and the export limit 45 s and again 150 s after a write (VERIFY_AFTER_S). An overwrite is logged, the app shows a dialog on every page that names the old smartbox as the usual cause with the remedies, and a notification "Einstellung überschrieben" can be sent.The box's cycle is about 100 s, so the last check comes after more than one round.#53, #373, #374
Remedies offered: block the box's internet access in the router, or disconnect it (LAN cable or power) only if nothing else needs it, then check the export limit shown in OpenAmpere. OpenAmpere only gives the hint; it writes nothing for this.The inverter keeps the values stored last; the box may serve the grid operator.#53, #311, #312
Texts say "former smartbox" without the manufacturer's name.Names only descriptively.#53
When the inverter is busy, the message names other programs first and the IQ box second; a Modbus proxy is mentioned only as an option for advanced users.Several reported cases were other programs, not the box; the box can undo a proxy setup.#311, #312
FoxESS: any remote control values other than OpenAmpere's own (1 or 5 with 180 s) count as another device; OpenAmpere never writes to or releases them.Release only what OpenAmpere started.#141, #142, #509
FoxESS: the diagnostics show a warning when another device holds the remote control, explain the usual cause (the box) and what the owner can do.OpenAmpere cannot change this state itself; the owner can.#126, #127
SAJ: while charging, OpenAmpere sets its own work mode and charge slot again with every command and keeps the owner's values from the start of the session.Another device such as the box may change them meanwhile.#382, #383
SAJ: the undocumented block 0x8300–0x8306 is not used; grid charging uses a charge slot that ends by itself.Not in SAJ's protocol; nobody has tested whether the block ends by itself.#377, #378
Cloud import: at most one request per 65 s, in the background, surviving restarts and resuming where it stopped. Imported rows never overwrite quarter hours OpenAmpere recorded itself.The API blocks clients that poll too often; local measurements are better.#17, #42
Import of an exported ZIP of the cloud data: entries that are a list instead of an object, days with missing fields, damaged entries, non-finite values, negative energy and SoC outside 0–100 % are skipped; uploads up to 500 MB, streamed to disk.Found in reviews, to keep a broken file from breaking the import.#223, #230, #287, #288
Texts never claim that the EKD cloud will be switched off; they say OpenAmpere keeps working without it.It is not known; OpenAmpere does not depend on the cloud.#84, #85

Open questions

Sources

View and improve this page on GitHub