Before you start
Use IAMMETER Simulator to read voltage, current, power and cumulative energy in Node-RED, build a live dashboard and try grid-power automation without a physical meter.
Start with the WEM2067 HTTP example for solar generation and grid import/export. Then try the independent public Modbus/TCP flow or receive uploads through MQTT. The examples poll every 10 seconds; screenshots, node names, flow configuration and code are in English.
You need an internet-connected Node-RED runtime. The supplied package records validation with Node-RED 5.0.9, FlowFuse Dashboard 1.36.1 and node-red-contrib-modbus 5.62.1 on 12 November 2026. These are the recorded test versions, not a requirement to install the latest release.
Open the editor, usually at http://YOUR_NODE_RED_HOST:1880/. Under Manage palette → Install, install @flowfuse/node-red-dashboard. This example uses FlowFuse Dashboard ui-template and ui-chart nodes. To match the screenshots, set the editor language to English in Settings and refresh.
The Node-RED runtime itself must be able to resolve simulator.iammeter.com and reach HTTPS port 443. Opening the simulator in your browser does not test network access from a container or remote Node-RED server.
| Purpose | Required nodes |
|---|---|
| HTTP, parsing and Debug | Built-in Node-RED nodes |
| Dashboard | @flowfuse/node-red-dashboard |
| Optional Modbus/TCP flow | node-red-contrib-modbus |
| Optional MQTT reception | Built-in mqtt in node and your own broker |
1. Open the WEM2067 simulator
Open the simulator home page, select Inverter and grid, and open WEM2067. In this default scenario, channel A represents solar generation and channel B represents the grid connection. Positive B power means grid import; negative B power means export.
WEM2067 has two channels and no C channel. Their roles here come from the simulation scenario. For a physical meter, use the actual wiring and power direction to identify each channel.
Node-RED HTTP requests do not inherit your browser cookies. A separate request to the public endpoint below uses the default Inverter and grid source; changing the browser scenario does not automatically change Node-RED readings.
WEM2067 HTTP endpoint
https://simulator.iammeter.com/WEM2067/monitorjson
2. Read data over HTTP
Download the HTTP dashboard flow below. It contains the data reader, dual-channel parser, dashboard, chart and an automation example. Save the linked JSON file locally if your browser displays it as text.
HTTP polling needs neither a broker nor a change to the simulator Run Mode. After deployment, the Inject node starts polling automatically; click its button for an immediate read.
- Open Import from the Node-RED editor menu, or press Ctrl+I (⌘+I on macOS).
- Select 01-http-dashboard.json and import it into a new flow.
- Confirm @flowfuse/node-red-dashboard is installed and there are no unknown nodes.
- Click Deploy, then open the Debug panel and inspect HTTP live readings.
| HTTP Request setting | Value |
|---|---|
| Method | GET |
| URL | https://simulator.iammeter.com/WEM2067/monitorjson |
| Return | a parsed JSON object |
| Poll interval | 10 seconds |
| Authentication | None for public simulator readings |
Flow overview
Poll every 10 seconds → Read WEM2067 → Parse dual-channel data
├→ HTTP live readings
├→ Dual-channel readings
├→ Live power trend
└→ Grid power automation → State changes only
2.1. Understand the JSON readings
WEM2067 returns two rows in Datas, one per channel. For example, msg.payload.Datas[1][2] is channel B power in watts. Do not apply Modbus register scaling to these HTTP values.
The supplied parser checks the HTTP status and the two-channel data structure, then creates named properties for the dashboard and automation nodes.
| Index | Measurement | Unit |
|---|---|---|
| 0 | Voltage | V |
| 1 | Current | A |
| 2 | Active power | W |
| 3 | Forward cumulative energy | kWh |
| 4 | Reverse cumulative energy | kWh |
| 5 | Frequency | Hz |
| 6 | Power factor | Dimensionless |
Parsed values
msg.payload.A.power_W // Channel A active power
msg.payload.B.power_W // Channel B grid power
msg.payload.B.import_kWh // Channel B forward energy
msg.payload.B.export_kWh // Channel B reverse energy2.2. View the live dashboard
Open the dashboard URL below, replacing the host and port to match your Node-RED deployment or reverse proxy.
The dashboard shows both channels, cumulative forward and reverse energy, and the last successful update time. The chart collects points only after Node-RED starts receiving data; wait for several polls to see a trend. It does not load a full day of historical readings.
The screenshots show evening readings, so solar power is zero while the grid is importing. Your readings will differ with the simulation time.
- Confirm WEM2067 and SN ZAT3LQD9 are shown, with channels A and B only.
- Check that the last successful update time keeps changing.
- When B power is negative, confirm the dashboard shows Exporting to grid.
- Keep forward and reverse energy as separate cumulative counters; do not merge power directions by taking absolute values.
Dashboard URL
http://YOUR_NODE_RED_HOST:1880/dashboard/iammeter
2.3. Test grid-power automation
Grid power automation classifies channel B power using the thresholds below. State changes only filters repeated messages, so an unchanged state does not produce the same message every 10 seconds.
The supplied example only writes text to the dashboard and Debug; it does not send notifications or switch real loads. Connect the state-change output to your own notification flow if needed. For real load control, add persistence, hysteresis and a minimum switching interval to prevent rapid switching near a threshold.
| Condition | Example message |
|---|---|
| Below 0 W | Exporting to the grid; flexible loads may be considered |
| 0–1000 W inclusive | Grid import is between 0 and 1000 W |
| Above 1000 W | Grid import exceeds 1000 W; an import alert may be triggered |
2.4. Switch to a physical meter
For a physical WEM2067, change the Read WEM2067 URL to the meter’s actual LAN address, deploy again and check the serial number and readings. Adjust the Solar generation and Grid power labels to match your wiring.
Other models need more than a URL change. WEM3080 uses Data, while a three-phase meter normally returns three Datas rows. This example deliberately accepts only the WEM2067 two-channel structure, so adapt both the parser and the dashboard for another model.
Physical WEM2067 example
http://192.168.1.100/monitorjson3. Read data over Modbus/TCP
Install node-red-contrib-modbus through Manage palette → Install, then download and import the Modbus flow below. It is independent of the HTTP example and sends parsed readings to Debug every 10 seconds.
Use a hostname only: do not include https:// or a meter page path. The Node-RED host must be able to connect to public TCP port 502.
| Setting | Value |
|---|---|
| Host | simulator.iammeter.com |
| TCP port | 502 |
| TCP type | DEFAULT (Modbus TCP) |
| Unit ID | 1 in this example |
| Function | FC03 / Holding Registers |
| Address | 0 (zero-based) |
| Quantity | 38 registers: addresses 0–37 |
| Poll interval | 10 seconds |

3.1. Check the model and register scaling
The public Modbus endpoint uses the fixed WEM3050T three-phase mapping. Selecting WEM2067 in the browser, changing the browser scenario or changing Unit ID does not turn this shared port into a two-channel WEM2067 endpoint.
In the default scenario, A is solar generation and B is the grid. C represents the WEM3050T supply at 220 V; its other readings are zero. Keep the three-phase output in the decoder rather than dropping C.
Channel blocks begin at addresses 0, 10 and 20. Decode B power as signed 32-bit data; otherwise negative export power becomes a very large positive number. These conversions are for the simulator’s legacy register map. For physical meters, check the actual model and firmware documentation.
This flow reads legacy active-power data. For reactive measurements or SunSpec, follow the full interface reference rather than mixing SunSpec scale factors into this decoder.
| Measurement | Conversion |
|---|---|
| Voltage | uint16 ÷ 100, in V |
| Current | uint16 ÷ 100, in A |
| Active power | signed int32, in W |
| Forward/reverse energy | uint32 ÷ 800, in kWh |
| Power factor | raw value ÷ 1000 |
| 32-bit word order | High word first |
4. Understand the simulation data
The default Inverter and grid source follows a daily solar-generation and household-load profile. Grid power is household demand minus solar generation, so it can change sign.
Cumulative energy follows the power direction and elapsed time. Polling more frequently does not make the simulated day pass faster or accelerate energy accumulation.
A few minutes is enough to check connectivity and updates. Observing the transition from daytime generation to nighttime grid import takes longer. To test threshold logic quickly, inject separate synthetic power values into the automation node and keep those tests distinct from live simulator readings.
5. Receive simulator uploads over MQTT
Use Node-RED’s built-in mqtt in node with your own broker. The broker must be reachable from the simulator backend; a private LAN-only address normally cannot be reached by the public simulator.
This example subscribes directly to measurement JSON with Data / Datas and does not need Home Assistant MQTT Discovery. Keep HA MQTT Discovery off when using device/ZAT3LQD9/realtime. If Discovery is enabled, inspect the actual Topic shown by the simulator and update the subscription.
By default, active uploads stop after five minutes without page activity; the administrator can change that timeout. Keep the simulator page visible and active while testing. Public HTTP polling does not depend on that browser page.
Public sessions for the same model share a serial number and topic. Use a dedicated broker and avoid multiple same-model sessions sending conflicting readings. Confirm actual messages in Node-RED: a successful save or send counter alone is not proof of receipt.
- Add an mqtt in node and configure your broker host, port and credentials.
- Subscribe to device/ZAT3LQD9/realtime and select parsed JSON output, then connect the node to Debug.
- In WEM2067 Settings, select mqtt, enter the same broker (for example mqtt://broker.example.com:1883), leave HA MQTT Discovery off, set Upload Interval to 10 seconds and save.
- Keep the simulator page active and confirm that Node-RED Debug receives continuously updated messages.
Troubleshooting
| Symptom | What to check |
|---|---|
| Unknown ui-* nodes after import | Install @flowfuse/node-red-dashboard; refresh or restart Node-RED if requested. |
| Dashboard is waiting for data | Check Debug, the HTTP URL, node status, DNS and outbound network access from the Node-RED runtime. |
| Parser receives a string | Set HTTP Request Return to a parsed JSON object. |
| Browser scenario changes do not affect readings | Independent HTTP requests do not share the browser cookie; public reads use the default source. |
| Modbus connection timeout | Check the hostname and TCP port 502. Working HTTPS does not prove port 502 is reachable. |
| Very large positive Modbus power | Use signed int32 power, high word first and zero-based register addresses. |
| MQTT settings save but no data arrives | Check broker reachability, credentials, actual topic and simulator page activity. |
| No data after changing meter model | The HTTP parser requires WEM2067 dual-channel data; adapt the parser and dashboard for other models. |