IAMMETER smart home integration, free and open source

IAMMETER Wi-Fi energy meters (single and three-phase), read on the local network.
Read your IAMMETER Wi-Fi energy meters in Gladys, over your local network: the single-phase WEM3080 (and the older WEM3162) and the three-phase WEM3080T, WEM3046T and WEM3050T. Power, import and export indexes, voltage and current (per phase on three-phase meters), ready for the energy tab of Gladys, with a dashboard widget, four scene triggers and a scene action. No account and no cloud: Gladys reads each meter directly, through its local API.
Developed without the hardware: feedback welcome. This integration was built and tested against the official IAMMETER simulator, the documented answers of the meters and a simulated meter, not against a real one. If something does not work as described, please say so on the Gladys forum or in the issues.
What you need
- Gladys Assistant 5.1.0 or later.
- An IAMMETER meter connected to your Wi-Fi, on the same network as Gladys, with a fixed IP address (a DHCP reservation in your router).
- The user name and password of the meter web page:
admin/adminout of the box.
Set up
- In Gladys, open Integrations, then Install from GitHub, and enter
https://github.com/guim31/gladys-iammeter. - In the Configuration tab:
- IP addresses of the meters: one or more addresses, separated by
commas (
192.168.1.50, 192.168.1.51). Add:portif your meter does not answer on port 80. - User name and Password: those of the meter web page. Leave the
password empty if you never changed it (
admin). - Refresh interval: 5 s, 10 s (default), 30 s or 1 min.
- Language of the feature names: the names are given when a meter is added, in this language.
- IP addresses of the meters: one or more addresses, separated by
commas (
- Run Test the meters: each address says whether it was read, with the power it measures, or why not (no answer, user name or password refused, not an IAMMETER meter).
- Open the Discovery tab and add your meters.
Single-phase and three-phase meters are told apart automatically. A meter is identified by its serial number: if its IP address changes, enter the new one, the device and its history stay the same.
The Gladys devices
One device per meter. Every meter has:
- Power (W): signed, positive when the house draws from the grid, negative when it sends to it (solar surplus). On a three-phase meter, the sum of the phases (or the net total when the meter gives one).
- Import index (kWh): the energy drawn from the grid. This is the index the energy tab of Gladys turns into consumption and cost.
- Export index (kWh): the energy sent to the grid, shown as a grid export index (never counted as consumption).
A single-phase meter adds Voltage (V) and Current (A). A three-phase meter adds, for phases A, B and C: Power phase A, B, C, Voltage phase A, B, C and Current phase A, B, C.
Powers are sent to Gladys at each reading when they change; indexes, voltages and currents at most once a minute; every value again after 30 min without change. A meter that does not answer three readings in a row shows the "unreachable" badge; its values stay.
The frequency and the power factor have no unit or type in Gladys: they are in the widget and in the outputs of the scene action.
Dashboard widget
IAMMETER live shows one meter: its Power as a gauge (to the right when the house draws from the grid, to the left when it sends to it), the Import and Export indexes, and a list with the voltage, current, power and power factor of each Phase, the Frequency of the grid and whether the meter answers. Settings: the meter (empty: the first one), and Hide the phase details.
Scenes
Triggers
- Meter stops answering: a meter has not answered three readings in a row (power cut, Wi-Fi lost).
- Meter answers again: it is read again.
- A phase is lost: the voltage of a phase of a three-phase meter falls under 100 V. Variables: the phase (A, B or C) and its voltage.
- A phase is back: the voltage of a lost phase is back at 180 V or more.
Each one can be limited to one meter, and the phase triggers to some phases. Nothing fires on the first reading after a start or after a loss of contact.
Actions
- Read an IAMMETER meter: reads the meter now and gives the next actions its power, import and export indexes, voltage (average of the phases), frequency and power factor. It fails if the meter does not answer.
Scene ideas
- Get a message when a phase of the house is lost, and when it is back.
- Start the dishwasher when the power has been negative (solar surplus) for a while, with the device feature trigger of Gladys on Power.
- Send yourself the frequency and power factor every evening with Read an IAMMETER meter.
Troubleshooting
- "User name or password refused": enter those of the meter web page
(open
http://<meter IP>in a browser to check them). - "No answer": check the IP address, that the meter is powered and on the same network as Gladys. The integration runs in a container with bridge networking: the meter must be reachable from the Gladys host.
- "Not an IAMMETER meter": the address answers, but not like a meter (another device, or a port that is not the meter's).
- Run Test the meters after any change, and read the integration logs
(set
LOG_LEVEL=debugfor every reading).
Limits
- Local API only (
/api/monitor, or/monitorjsonon older firmware). MQTT, Modbus TCP and the IAMMETER cloud are not used. - The meter is polled at the chosen pace; the IAMMETER documentation gives no limit for the local API, 5 s is the shortest interval offered.
- The export index is shown as a grid export: a meter that measures a solar inverter rather than the grid connection is not counted as production.
- The reactive power and energy of the three-phase meters are not read.
- Not affiliated with IAMMETER.
Configuration settings
These are the settings IAMMETER asks for in its configuration screen in Gladys.
| Setting | Type | Required | Description |
|---|---|---|---|
| Connecting your IAMMETER meters | section | No | Enter the IP address of each meter (shown in the IAMMETER app or by your router), and the user name and password of its web page. Then open the Discovery tab to add the meters. |
| IP addresses of the meters | string | Yes | Separated by commas. Add :port if the meter does not use port 80. |
| User name | string | No | The one of the meter web page (admin out of the box). |
| Password | secret | No | The one of the meter web page. Empty: admin, the factory password. |
| Refresh interval | select | No | How often each meter is read. Powers follow this pace; indexes, voltages and currents are sent to Gladys at most once a minute. |
| Language of the feature names | select | No | Names are given when a meter is added in Gladys. |
How to install IAMMETER in Gladys
- In Gladys, open Integrations: IAMMETER appears in the catalog, next to the native integrations, with a community badge.
- Click Install. Gladys pulls the Docker image (
ghcr.io/guim31/gladys-iammeter:1.0.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration). - Open the Configuration screen of the integration, fill in the settings, and save.
- You can also install it directly from its repository URL: https://github.com/guim31/gladys-iammeter.
IAMMETER requires Gladys >=5.1.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.
Not running Gladys yet? It is free and open source: follow the installation guide to get started.
About external integrations
IAMMETER is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by guim31, not by the Gladys core team.
- Browse all integrations, native and community
- Build and publish your own external integration
- Source code on GitHub — source of this documentation