Enable MQTT discovery in Home Assistant with the latest IAMMETER firmware (i.76.058.8)
This article explains how to enable MQTT discovery in Home Assistant with the latest IAMMETER firmware (i.76.058.8).
1. Set up the Meter
Access the meter’s local IP and go to the "Settings" tab. Configure the following parameters:
Run Mode: Select "mqtt".
Address: Enter the MQTT broker address used by Home Assistant.
Username/Password: Enter the MQTT broker's username and password used by Home Assistant.
HA MQTT Discovery: Enable the MQTT discovery feature for Home Assistant.
Upload Inverter: Set the MQTT publish upload interval (default is 60 seconds). It is recommended to set this value to at least 10 seconds.
After completing the settings, click "Save" to save the configuration.
2. Set up Home Assistant
Go to Settings -> Devices & Services.
Under Configured, click MQTT.
You will see that the meter has been automatically discovered by Home Assistant through MQTT discovery.
Click on “Device” to view all the sensors associated with the meter. You can display and use these sensor data in Home Assistant according to your needs.
Comparison of "MQTT Discovery" Mode with Other Integration Modes
In addition to "MQTT discovery," IAMMETER meters also support the following Home Assistant integration modes: "core integration," "modbus/tcp," "mqtt," and "HACS."
For more details, refer to 7.9 IAMMETER@Home Assistant.
A brief comparison of the different methods is as follows:
Mode | Interface | IAMMETER-Cloud available | |
---|---|---|---|
1 | core integration | HTTP GET | Yes |
2 | HACS | HTTP GET | Yes |
3 | modbus/tcp | Modbus/TCP | Yes |
4 | MQTT | MQTT | No |
5 | MQTT discovery | MQTT | No |
If you need to use both Home Assistant and IAMMETER-Cloud simultaneously, choose one of the first three modes (these are poll-based modes where HA fetches data from the meter).
Core Integration was the earliest supported method in Home Assistant. However, due to difficulties integrating new code into HA, it has not been upgraded, and it is not recommended for use.
If you require fast data updates, it is recommended to use the modbus/tcp mode, which can achieve update intervals as short as 1 second.