Appearance
Energy meters, CT clamps and smart plugs
This page is about the hardware side of measuring electricity: what to buy, how to fit it, how its readings reach Omaya, and how to tell Omaya which meter feeds which. What the readings look like afterwards, and who uses them, is the Energy Monitoring app.
Three kinds of hardware
| Kind | Measures | Typical use |
|---|---|---|
| Metering at the board: a DIN-rail meter with CT clamps on each circuit, read by an edge gateway | kWh, kW, voltage, current per circuit or per phase | The main incomer, each floor's board, the chiller, a server-room board |
| A CT clamp energy monitor paired with a hub (for example a Wi-Fi or Zigbee clamp monitor in Home Assistant) | Current, and with a voltage reference, power and kWh | One circuit you want to watch without a full meter: an aircon, a water heater |
| A smart plug | Power, kWh, often current and voltage, of one appliance | A fridge, a coffee machine, a printer, an EV charger on a plug |
How the readings reach Omaya
A device becomes an energy meter in Omaya as soon as one of its readings carries energy (kWh) or power (W) (or, for a LoRaWAN CT clamp, current (A)). It then writes one reading a minute and appears in the Energy app after its first one. Four routes deliver that today:
| Route | Use it for | Fields Omaya keeps |
|---|---|---|
| An edge or metering gateway over MQTT that reads your meters (often over Modbus) and publishes the values | Board meters, PDUs, anything on Modbus | energy_kwh, power_w, voltage_v, current_a, from names such as kwh, kw, watts, voltage, current. See MQTT gateways |
| Home Assistant | Smart plugs and clamp monitors that Home Assistant already knows | energy_kwh, power_w, current_a, voltage_v (units converted: Wh to kWh, kW to W, mA to A) |
| A LoRaWAN network server (for example a Milesight gateway) | Milesight CT clamps (CT101, CT103, CT105, CT303, CT305, CT310 and their -V2) and smart sockets (WS523, WS525, WS513, WS515, WS558) | energy_kwh, power_w, voltage_v, current_a, power factor. See Milesight CT clamps and sockets below |
| Your own decoder in New sensor types | A Bluetooth meter that broadcasts its readings | the reading names energy_kwh, power_w, voltage_v, current_a |
The same four fields are what a rule sees with Sensor reading (any field), and the Power Draw Now and Energy Used Today rule measures add them up per zone or floor.
Milesight CT clamps and sockets over LoRaWAN
What each one gives the Energy app:
| Device | Current | Power | kWh | Voltage |
|---|---|---|---|---|
| WS523, WS525 portable sockets, WS513, WS515 wall sockets | Yes | Yes | Yes | Yes |
| WS513-V3, WS515-V3 | Only in an over-current alarm | Yes | Yes | Yes |
| WS558 light controller | No | Yes | Yes | Yes |
| CT101, CT103, CT105 (one clamp) | Yes | No | No | No |
| CT303, CT305, CT310 (three clamps) | Yes: the three added together, and each clamp on its own for rules | No | No | No |
| CT101-V2 … CT310-V2 | Yes | No | Yes | No |
A CT clamp measures current only. It has no connection to the supply voltage, so it cannot know the power, and Omaya does not guess it: a clamp gives the Energy app its amps, and its Today kWh stays a dash. The -V2 clamps work out kWh themselves from a supply voltage and power factor you set on the clamp with Milesight's ToolBox app; Omaya records that kWh as the clamp reports it, so set them to match the circuit before relying on it. If you need power and kWh from a circuit, use a -V2 clamp, a socket, or a meter.
On a three-clamp CT303, CT305 or CT310, the current is the three clamps added together. That is the circuit's total when the clamps are on the three phases of one supply, or on three circuits you want counted as one; register one device for the three.
The temperature these devices report is their own electronics, so it is kept with the energy reading and not shown in the Environment report as the room's temperature. A socket's supply voltage is never shown as a battery.
Register each one with its own model (for example WS523 Smart Portable Socket, CT101-V2 Smart Current Transformer): the -V3 sockets report kWh where the older ones report Wh, and the model is one of the ways Omaya tells them apart.
Plan the meters before you fit anything
Draw the electrical single-line diagram (or ask the building's electrician for it) and mark which meter sits where. Omaya adds up energy the same way: each unit of electricity counted once.
| Meter | What it is in Omaya | Counted in the total? |
|---|---|---|
| Main incomer | A top-level meter (no parent) | Yes |
| A floor or plant board fed by the incomer | A sub-meter, Fed by the incomer | No: it is already inside the incomer. It is listed under its parent |
| A circuit on that board | A sub-meter of the board | No |
| Solar, a generator | Generates power | Subtracted, so totals are net |
| A meter on a supply nothing else measures (a separate landlord supply) | Top-level | Yes |
Fitting a CT clamp
A CT (current transformer) clamp measures the current in the conductor that passes through its jaw.
Electrical work
Fitting CTs inside a distribution board is work for a licensed electrician, following local wiring rules and the meter vendor's manual. The steps below are what to ask for and check, not instructions for working live.
- Pick the CT for the circuit. Its rated current must cover the circuit's breaker rating; a 100 A CT on a 16 A circuit reads coarsely, a 50 A CT on a 100 A feeder saturates. Check the jaw opening fits the cable.
- One conductor through the jaw. Clamp the live (phase) conductor only. Around a whole cable, live and neutral cancel and the CT reads close to zero. On a three-phase circuit, one CT per phase.
- Arrow towards the load. Most CTs are marked with an arrow or with K→L / P1→P2. Point it from the supply side to the load side, as the vendor's manual says. A CT the wrong way round reads negative power, or (on a meter that cannot show negative) the wrong value.
- Close the jaw fully, until it clicks. A gap in the core reads low.
- Match each CT to its voltage reference. Power is current × voltage; a meter computes it from the voltage of the phase the CT is on. A CT on L2 paired with the L1 voltage input reads nonsense power.
- Label both ends: the CT, and the meter input it goes to, with the circuit name you will use in Omaya.
- Note the CT ratio (e.g. 100/5 A) and set it in the meter.
Fitting a smart plug
- Use a plug rated for the appliance's current: a kettle or heater can exceed a 10 A plug.
- Pair it with your Home Assistant, and name it after the appliance, not the socket.
- Check in Home Assistant that it shows power and energy entities. A plug with only power gives a live draw but no daily kWh.
A Milesight LoRaWAN socket (WS523, WS525) needs no Home Assistant: add it to the LoRaWAN gateway like any other sensor and register it in Omaya, as below.
Register the meter in Omaya
Through an MQTT edge gateway
- Connect the gateway: MQTT gateways. The gateway itself is registered under Device → Gateway.
- Give every meter a stable identifier in the gateway (MAC form, six pairs, or a 16-character EUI).
- Device → Sensor → Add Sensor for each meter: Sensor Name (the circuit, e.g. HVAC — chiller & AHUs), MAC Address (the identifier from step 2), Brand / Vendor External, Sensor Model Power meter / PDU (edge telemetry), then Location, Venue and Zone (the room or floor the meter serves), Save.
Through a LoRaWAN gateway
- Add the clamp or socket to the gateway's network server with Milesight's codec for its model: Milesight gateways, step 7.
- Device → Sensor → Add Sensor: MAC Address is the DevEUI, Sensor Model its own Milesight model, then Location, Venue and Zone (the room or floor the circuit serves), Save.
Through Home Assistant
- Connectors → Smart Home Bridge → Entity mappings → Fetch entities from Home Assistant.
- Group the plug's or monitor's entities: energy, power and, where it has them, current and voltage. Activate as device…, name it, Create device.
- Device → Sensor: edit the new device and set Location, Venue and Zone. The zone is what the Energy app shows as the meter's place, and what a zone or floor rule adds up.
Tell Omaya how the meters connect
- Turn on the app: Your Apps → Energy Monitoring.
- Your Apps → Energy → Meter hierarchy: for each sub-meter, choose Fed by (parent meter); leave top-level meters as none (top-level).
- Tick Generates power for solar or a generator. A generating meter cannot have a parent or feed another meter.
- Set Rate per kWh and Currency if you want costs.
Until the hierarchy is set, the total is the sum of every meter, and the app says so.
Check it works
- View the meter under Device → Sensor. Latest reading shows
power_wand (if the meter has a counter)energy_kwhwithin a minute of the gateway or the bridge's next poll. - Switch the load on and off (or ask the electrician to):
power_wfollows. Negative power on a consumption circuit means a CT is reversed. - Energy Monitoring → Meters lists the meter after its first reading, under its parent if you set one. Today kWh is a dash until it has a kWh counter.
- Check the arithmetic once: the sub-meters of a board should add up to a little less than the board (the difference is circuits nobody metered), never more.
First rules
| Goal | Measure | Recipe |
|---|---|---|
| Switch off a room when it empties | a presence sensor, then a Home Assistant switch | Switch off a room when it empties |
| Power left on out of hours | Power Draw Now after closing | Power left on out of hours |
| A floor using more than usual | Energy Used Today | A floor using more than usual |
| A cold room's circuit drops to zero | Power Draw Now below 100 W, held for 10 minutes | Keeping the building running |
Questions and problems
The meter is registered but not in the Energy app. It has sent no reading with energy or power yet. Check Latest reading. For Home Assistant, check that the plug's power or energy entity is in the device's group.
Power is negative on a circuit that only consumes. A CT is the wrong way round, or on the wrong phase for its voltage input.
Power looks right, Today kWh is a dash. The meter sends power but no counter. Omaya does not integrate power into kWh. Add the energy entity (Home Assistant) or the kwh value (MQTT).
The total is about double what the bill says. The hierarchy is not set, so a main meter and its sub-meters are both added. Set Fed by on the sub-meters.
The sub-meters add up to more than their parent. One of them is on the wrong parent, a CT is on the wrong circuit, or two CTs are on the same cable.
A Milesight CT clamp shows current but no power or kWh. That is all a clamp measures; see Milesight CT clamps and sockets. A -V2 clamp's kWh appears once it reports its first kWh total.
A Milesight socket shows online but no energy. Check that the gateway runs Milesight's codec for that model: without it there are only raw bytes.