Sorry, your browser does not support JavaScript!

How to Integrate IAMMETER with Home Assistant for Real-Time Energy Monitoring

Integrating IAMMETER Wi-Fi Energy Meters with Home Assistant for Enhanced Energy Monitoring

Integrating IAMMETER Wi-Fi energy meters with Home Assistant enables real-time insights into your energy usage, solar generation, and overall power flow. This integration helps optimize energy consumption, automate smart devices, and support sustainable energy practices.

Why Integrate IAMMETER with Home Assistant

  • Real-time electricity monitoring
  • Custom energy dashboards with Lovelace UI
  • Automations triggered by energy events (e.g., solar surplus)
  • Long-term data logging for cost analysis
  • Flexible integration methods: MQTT, Modbus/TCP, Local API

Integration Methods

IAMMETER supports several methods for integrating with Home Assistant, based on your technical preference and desired features.

A brief comparison of the different methods is as follows:

Mode Interface IAMMETER-Cloud available
1 MQTT discovery MQTT No
2 MQTT MQTT No
3 modbus/tcp Modbus/TCP Yes
4 core integration HTTP GET Yes
5 HACS HTTP GET Yes

IAMMETER meters with firmware version i.76.058.8+ support Home Assistant MQTT Discovery.

Benefits:

  • Fully auto-discovered in Home Assistant
  • Minimal setup effort
  • Near real-time data updates

Steps:

  1. Upgrade to latest firmware
  2. Enable MQTT Discovery in IAMMETER web UI
  3. Connect IAMMETER to your MQTT broker (used in Home Assistant)
  4. Devices and sensors appear automatically

Fore more details, please refer to Enable MQTT discovery in Home Assistant

image-20250113102936682

2. MQTT (Manual Configuration)

This method uses standard MQTT publishing without Home Assistant’s auto-discovery feature. It is useful for users who prefer manual control or want to customize sensor configurations in YAML.

Benefits:

  • Manual control over sensor naming and configuration
  • Works on older firmware versions that do not support discovery
  • Lightweight and flexible

Steps:

  1. Enable MQTT in IAMMETER’s web interface.
  2. Set the MQTT broker address, username, and password.
  3. IAMMETER will publish topics like iammeter/SN/Power and iammeter/SN/Energy.
  4. In Home Assistant, add MQTT sensors manually in configuration.yaml, for example:

Fore more details, please refer to Home assistant mqtt sensor-IAMMETER

3. Modbus/TCP sensor

Use Case: If you need data every second, Modbus/TCP is ideal.

Benefits:

  • Fast polling (1s interval)
  • Reliable industrial-grade protocol

Steps:

  1. Enable Modbus/TCP in IAMMETER configuration
  2. Set up modbus: integration in configuration.yaml
  3. Define sensor: entities using register addresses

Fore more details, please refer to request the data of IAMMETER`s energy meter from modbus/tcp in Home assistant

3. Native Home Assistant Integration

IAMMETER is officially supported in Home Assistant's core integrations.

Steps:

  1. Go to Settings > Devices & Services
  2. Click + Add Integration > Search for "IAMMETER"
  3. Enter meter IP address and connect

Integrate IAMMETER`s energy meter into Home assistant by Native Home Assistant Integration

4. Home Assistant Community Store (HACS)

IAMMETER also maintains a custom component for deeper customization.

Steps:

  1. Install HACS in Home Assistant
  2. Add IAMMETER repo from HACS
  3. Configure YAML or use UI for setup

https://www.iammeter.com/docs/summary-home-assistant#hacs-custom_integrations

Real-World Use Cases

Here are some practical applications that IAMMETER users have implemented via Home Assistant:

A. Solar PV System Monitoring

image-20210809121528604

  • Monitor real-time solar production, grid import/export, and household consumption.
  • Visualize energy flow and optimize self-consumption to reduce reliance on the grid.
  • Track daily, monthly, and yearly solar performance using Lovelace dashboards.

Monitor your solar PV system in Home Assistant

B. Control Water Heater with Solar Surplus

  • Automatically turn on the electric water heater when solar generation exceeds home consumption.
  • Prevents grid export and increases self-consumption.

Heat the water heater using solar surplus

C. Charge EV from Solar Energy

  • Use IAMMETER + Home Assistant + OCPP-compatible charger to initiate EV charging when solar export reaches a threshold.

  • Example: Only charge EV if export power > 3 kW for 10 minutes.

Control the EV charging power with regard to the solar PV output and grid power reading

D. Smart Appliance Scheduling

  • Delay washing machine or dishwasher operation until solar generation peaks.
  • Combine with time-of-use tariffs for maximum savings.

Request the data of the Wi-Fi energy meter from the Modbus/TCP sensor , and control the sonoff relay in realtime

Summary

IAMMETER’s integration with Home Assistant offers:

  • Real-time solar and grid monitoring
  • Advanced automation based on energy flow
  • Multiple flexible methods: MQTT, Modbus, native, or HACS
  • Practical applications in EV charging, smart heating, and load control

For complete instructions, please visit

Summary: how to use IAMMETER`s Wi-Fi energy meter in the Home assistant

IAMMETER’s Home Assistant Integration Docs.

About IAMMETER

IAMMETER is a company focused on energy management products and services, offering smart energy meters, management apps, and cloud platforms.

Our goal is to help customers manage, utilize, and save energy effectively, reducing electricity bills through smart monitoring and analysis.

Solutions

Products

System

Top