Coreflux Templates

Modbus RTU Energy Meter Monitoring

Connect to a Modbus RTU Capable energy meter and alert on active power.

Dataflow

How it flows

Actions, models, routes and the topics that link them. Click a node to trace its flow.

How it works

This Coreflux LoT template reads an industrial energy meter over a Modbus Serial Route, scales the registers into engineering values, and publishes them to MQTT topics. A separate LoT Action watches active power events and publishes an alarm when the configured threshold is exceeded.

Key features

  • Modbus RTU polling: Reads holding registers from a serial energy meter.
  • MQTT publishing: Maps voltage, current, power, frequency, PF, and energy counters to topics.
  • Threshold alarm: Raises an alert when active power goes above 3000 W.
  • Wildcard monitoring: Uses energy/+/+/active_power for multi-meter fleets.

What this template does

  • Polls MeterReading every 1 second.
  • Decodes and scales Modbus values into V, A, W, VA, var, Hz, PF, and kWh.
  • Publishes meter data under energy/meter/01/... topics.
  • Publishes alerts/active_power status per meter and zone.

Prerequisites

  • A Modbus RTU energy meter with documented register map.
  • Serial access to the RS485 device path.
  • Correct slave ID, baud rate, parity, data bits, and stop bits.
The notebook

What’s inside

Browse the markdown and code cells before you download.

LoT Notebook:Energy-Meter-Monitoring-RS485 (1).lotnb
Related use cases

Similar templates

Templates chosen for overlap in routes, tags, and category.

View all in Energy & Utilities

Get this template

1 file