ioBroker¶
In ioBroker the smartmeter adapter reads the WattWächter USB. It understands SML and D0 meters and creates a separate data point for every code the meter sends.
Prerequisites¶
- WattWächter USB is set up and plugged into the computer that runs ioBroker
- You know the head's path under
/dev/serial/by-id/
Step 1 — Install the adapter¶
In the ioBroker interface, open Adapters, search for smartmeter and install it. Then create an instance; its settings open automatically.
Step 2 — Configure the instance¶
The settings depend on how your meter sends:
| Setting | SML meters (most) | D0 meters that need a request (footnote ⁴) |
|---|---|---|
| Protocol | SML | D0 |
| Transport | Serial Receiving (meter sends on its own) | Serial Bi-Directional Communication (adapter sends a request) |
| Serial port | path under /dev/serial/by-id/… |
path under /dev/serial/by-id/… |
| Baud rate | 9600 |
leave empty (default 300, the adapter switches by itself afterwards) |
| Data request interval | e.g. 10 seconds |
e.g. 60 seconds |
Meters that send D0 text on their own (e.g. eBZ DD3, EasyMeter Q3D; the test in the setup then reports D0 telegram detected) are set to protocol D0 with Serial Receiving and baud rate 9600.
Which meters need a request is shown in the Supported meters table (footnote ⁴).
Data request interval
By default the adapter only reads every 300 seconds. For the current power that is usually too rare. With SML meters a short interval costs nothing because the meter sends anyway; D0 meters need a few seconds per request, so 30–60 seconds makes sense there.
Save the settings. The instance restarts and opens the port.
Step 3 — Check the values¶
After the first successful read, the data points appear under Objects → smartmeter.0. Their names contain the OBIS code. The most important ones:
| Code | Meaning |
|---|---|
1-0:1.8.0 |
Total import |
1-0:2.8.0 |
Total export |
1-0:16.7.0 |
Current active power, negative when feeding in |
The Readings page explains more codes.
Troubleshooting¶
| Problem | Solution |
|---|---|
| Instance stays yellow or red | Check the instance log. Permission denied: the iobroker user must be in the dialout group. Resource busy: another program has the port open. |
| No data points, green LED flashing | The protocol does not match the meter (SML instead of D0 or vice versa), or the baud rate is wrong |
| D0 meter does not answer | The transport must be Serial Bi-Directional Communication. If the yellow LED does not flash briefly during the request, the adapter is not sending one. |
| Meter readings only, no power | Unlock the meter (PIN, Inf to On), see Meter preparation |
Further reading: ioBroker.smartmeter on GitHub