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.

Portable dé wallbox (Tuya)

Not official manufacturer information: compiled by the OpenAmpere contributors, possibly incomplete or wrong. Changing device settings can affect warranty and grid connection rules. No affiliation with dé, Tuya or EKD, not legal advice. See Device knowledge.

Applies to: the portable 11 kW wallbox sold as "dé" (three-phase, CEE plug, Tuya Wi-Fi module, local protocol 3.5) · Sold as: "dé" portable EV charger · OpenAmpere: src/openampere/tuya.py (protocol), src/openampere/wallbox/de_tuya.py (data points), src/openampere/wallbox/native.py (several wallboxes, offline behaviour, control) · Support: display and control (solar surplus, fast, off) · Confirmed on a real device: partly (reading yes, control no)

Summary

Data points

Numbers in the JSON texts are integers; "0.1 V" means 2300 is 230.0 V.

Data pointMeaningType, scaleR/WStatusSource
102 L1…L3Per phase: voltage, current, powerJSON text, list [0.1 V, 0.1 A, 0.1 kW]Rconfirmedan owner's status reads, idle and charging three-phase, matched the car's app; tuya-local, lachand/EV_charger
102 pTotal charging powerJSON text, 0.1 kWRconfirmedan owner's status read while charging (about 5 kW, matched the car's app)
102 tTemperatureJSON text, 0.1 °C (assumed)Ropenan owner's status read; the scale is a guess
102 dDuration of the running sessionJSON text, 0.1 sRderivedlachand/EV_charger (checked there against a long session); an owner's read fits
102 eEnergy of the running sessionJSON text, 0.1 kWhRderivedlachand/EV_charger
106 fvFirmware versionJSON text, textRconfirmedan owner's status read, matched the app
106 cpControl pilot voltage: about 12 V without a car, 9 V plugged in, 6 V chargingJSON text, V as textRconfirmedan owner's status reads (12.6 V idle, 6.6 V charging); IEC 61851 levels
106 eEnergy of all sessionsJSON text, 0.1 kWh as textRconfirmedan owner's status read, matched the app's total
106 rResidual current protectionJSON text, textRconfirmedan owner's status read
107Current steps the wallbox offers, e.g. 6, 8, 10, 13, 16JSON list as text, ARconfirmedan owner's status read; tuya-local
109State: SLEEP, IDLE, IDLEINS (plugged in), WORKING (charging), WAIT, ERRORPAUSE (fault), PAUSE, STOP (finished)textRpartly confirmedSLEEP and WORKING in an owner's reads; the others from tuya-local
140Start (true) or stop (false) chargingboolWderivedtuya-local, lachand/EV_charger; not reported back on reads
150Charging currentinteger, AR/Wderived (write), confirmed (read)an owner's read while charging, matched the app; tuya-local
152Maximum current set in the appinteger, AR/Wderivedtuya-local; present in an owner's reads
154What happens when a car is plugged in: 0 ask, 1 charge, 2 waitintegerR/Wderivedtuya-local (not used by OpenAmpere)
101Operating state as a number (101 idle, 300 charging seen)integerR/Wopenan owner's reads; lachand/EV_charger names 200 ready, 204 paused
151Charging schedule (m, ss, se)JSON textR/Wderivedtuya-local, lachand/EV_charger (not used)
155–157, 188, 189NFC, unearthed mode, product variant, refresh, unknownvarious–opentuya-local names most of them

Behaviour

FactStatusSource
Port 502 (Modbus) is closed; TCP 6668 is open.confirmedan owner's port check
The local key changes when the wallbox is paired again in the app.derivedTuya documentation of the developer platform; tinytuya
Only one local connection at a time; a second one is closed.derivedlachand/EV_charger, tinytuya
Some firmware keeps the last current and power after a session ends while the state is not WORKING.derivedlachand/EV_charger
Currents between the offered steps (e.g. 11 A) were accepted on one device.derivedlachand/EV_charger; OpenAmpere uses only the offered steps
Devices with protocol 3.3 and newer announce themselves by UDP broadcast on 6667 (3.5 also 7000), with their device ID and IP address.derivedtinytuya
Announcements come in two formats: prefix 6699 (AES-GCM, protocol 3.5) and the older prefix 55AA (return code, then the JSON encrypted with AES-ECB or plain); devices with protocol 3.5 also use the older one. Both with the fixed key of the announcements.derivedtinytuya (checked against its decoding)
Some devices with protocol 3.5 announce themselves only after a request (command 0x25, {"from": "app", "ip": …}) to UDP 7000, and may answer it directly to the address that asked.derivedtinytuya
The OpenAmpere search did not find an owner's wallbox in 0.30.0 (it understood only the 6699 format and did not ask).confirmedan owner's report (2026-10)
Many wallboxes start charging by themselves when a car is plugged in, with the current that is set (data point 154, "charge").derivedtuya-local (154: prompt, charge, wait)

Decisions in OpenAmpere

DecisionWhyIssue/PR
Own implementation of the protocol with cryptography instead of the tinytuya library.No new dependency, asyncio, only the few commands needed; checked against tinytuya during development.#386
One connection per request, closed right away; the read-back after a write goes over the same connection.The device allows one connection; a second one right after the first may be refused while it still closes.#386
Read in the background; after a failure again after 15 s, 30 s, … up to every 5 minutes; logged once when it goes and once when it comes back; no old values shown while it is away.A portable wallbox is unplugged most of the time.#386
With a device ID, a wallbox away for more than 2 minutes is searched by its UDP announcement (at most every 15 minutes) and its new address taken over; not in the Home Assistant app. An announcement counts only if it comes from the address it names and that address is in the home network. The search reads only the 6699 format; the older 55AA format is not read on purpose, because it needs AES-ECB (a device announcing itself only that way is found through the request or entered by its address). It asks every 3 seconds on UDP 7000 and listens for 8 seconds on 255.255.255.255, the broadcast address and the own address of each network card in the home network, never on all interfaces (checked in Linux containers with a device that only answers the request).The router may give it a new address; the app has no host network; a forged announcement must not move a wallbox elsewhere; no ECB in OpenAmpere.#386
A new address found by the search is taken only after the wallbox answers there with its stored local key (the session handshake checks it), the address is in the home network and is not the inverter's. The change goes into the control log (wallbox_relocated, shown as a warning) and is sent as a notification (with "inverter not reachable" switched on), like a new address of the inverter.The announcement is encrypted with a key every Tuya device shares and names the device ID the wallbox sends openly, so any device in the home network can forge one; only the local key proves it is the owner's wallbox. Before, a forged announcement moved the wallbox to the sender, and OpenAmpere could no longer stop a charge it had started.security fix, like #351 for the inverter
Several wallboxes (up to 4) share the place "wallbox" in the order of the solar surplus, in the order of their list.Owners may have more than one wallbox.#386
Modes: manual (only shown), off, solar, minimum + solar, fast. Default is manual. Without a car nothing is written; the mode applies once one is plugged in.Nothing is written until the owner chooses; the mode is chosen before plugging in, as in evcc.#386
Only the offered current steps, at most the owner's limit and the maximum of the app; 230 V per phase; phases from the currents while charging, otherwise from the voltages.Steps are what the device says it supports; a three-phase wallbox taken for single-phase would draw three times the power.#386
If no offered step is at or below the owner's highest current (the limit of the app, of the wallbox or of the mode), OpenAmpere starts no charge, writes no current, stops a running charge (the safe direction, also one the wallbox started by itself) and says in the app that the wallbox's lowest current is above the owner's highest current, naming which limit holds (the highest current in OpenAmpere, the current of the mode or the wallbox's own maximum, dp 152) and what to change there; the note goes as soon as a check no longer finds it, and while OpenAmpere controls nothing (a simulation says it in its own line). Never the lowest step above the limit.The owner's limit is the limit of the socket the wallbox is plugged into, so it is an upper bound. The documented steps start at 6 A, the lowest limit of the app; a device or firmware with higher steps would otherwise charge above it.#481, #483
Solar, minimum + solar and fast each have their own highest current (default: the owner's limit), chosen on the wallbox's card; a value above a lowered limit is cut to it.Owners want e.g. at most 8 A with minimum + solar and a choice of 6, 8 or 16 A for fast; the lowest step is 6 A, so 4 A is not possible.#402
Solar mode: starts after two checks with surplus for the lowest step plus 200 W and 5 minutes after the last stop; lowers at once, raises at most every 30 s. Without enough surplus a charge OpenAmpere started goes on with the lowest step (the rest from the battery or the grid) and stops only when it has stayed so for the owner's waiting time (1–60 minutes, default 10) and after at least 5 minutes of charging. A charge the wallbox started by itself (on plugging in) is stopped at the first check without enough surplus.Clouds, the car's contactor, fewer writes; on three phases the lowest step is about 4.1 kW, so a short cloud stopped the car (#402); a wallbox starting on its own would otherwise charge from the grid until the next checks.#386, #402
A wallbox reporting STOP ("complete") counts as a full car and is not started, unless OpenAmpere has stopped it since the car last charged (stored with the wallbox, so also after a restart): then it is asked to start again when there is surplus (again after 5 minutes if the start did not reach it). The note is cleared when the car charges or is unplugged. It is kept when OpenAmpere lets go of the wallbox (master switch off, address changed) until it controls it again, but not for a wallbox switched off or removed, which is not read any more, so the master switch off and on again with the car plugged in does not leave the car "full" (#456).Whether the wallbox shows STOP also after a stop by OpenAmpere is open; if it does, a cloud would otherwise end solar charging until the car is unplugged. Same rule as the charge notifications (#451).#454
Master switch and test mode as for every control; every write read back and in the control log. Before the first write the owner's current is stored (meta wallbox_owned) and put back when OpenAmpere lets go: mode "manual", master switch off, wallbox removed or switched off. A charge OpenAmpere started is then stopped too, except with "manual", where the owner takes over.No watchdog: OpenAmpere must undo what it did.#386
When OpenAmpere stops (update, restart), the wallbox keeps charging as it is.A restart for an update should not interrupt the car; the stored owner's current is still put back later.#386
The local key is stored encrypted, never sent to the app and replaced by a placeholder in reports, like the address and the device ID; the energy counters are left out.The key opens the device in the home network; counters identify an installation.#386

Open questions

Sources

View and improve this page on GitHub