Custom Home Assistant integration for the Emonio P3 three-phase power measuring device using Modbus TCP.
- Automatic device discovery via config flow (UI-based setup)
- 32 sensors: 4 phases (A, B, C, Total) x 8 measurements each:
- Voltage, Current, Power, Reactive Power, Apparent Power, Frequency, Energy, Power Factor
- Efficient batched Modbus polling via
DataUpdateCoordinator
- Open HACS in your Home Assistant instance.
- Go to Integrations and click the three-dot menu.
- Select Custom repositories and add this repository URL with category Integration.
- Search for "Emonio P3" and install it.
- Restart Home Assistant.
- Copy the
custom_components/emoniodirectory into your Home Assistantconfig/custom_components/directory. - Restart Home Assistant.
- Go to Settings > Devices & Services > Add Integration.
- Search for "Emonio P3".
- Enter the IP address of your Emonio device and the Modbus port (default: 502).
- The integration will test the connection and set up all sensors automatically.
After setup, 32 sensor entities are created under a single Emonio P3 device. You can add them to dashboards or use them in automations:
automation:
- alias: Alert on high power consumption
trigger:
platform: numeric_state
entity_id: sensor.emonio_xxxxxx_total_power
above: 5000
action:
service: notify.notify
data:
message: "Power consumption exceeded 5000W"- Home Assistant 2024.1 or later
- Emonio P3 device with Modbus TCP enabled
- Network connectivity between Home Assistant and Emonio device