You are offline. The tools work from the copy saved in this browser; pages you have not opened yet need a connection.
Shelly Pro 3EM Modbus register map
The registers of the Shelly Pro 3EM as listed by the manufacturer, with the 0-based address to enter in your software.
plcbytes.com/devices/shelly-pro-3em/
How to connect
The Shelly Pro 3EM answers Modbus TCP on port 502 over Ethernet or Wi-Fi. The Modbus server is off until you enable it.
- Enable the Modbus server with the RPC call Modbus.SetConfig and {"enable": true}. Modbus.GetStatus shows whether it is running.
- Read with function 04 (input registers). Shelly writes addresses as the table digit 3 followed by the address from zero: 31020 means input register address 1020, not 1019. Shelly's own example reads the L1 voltage at 1020.
- Floats and 32-bit numbers come low word first (CDAB, word swap); Shelly's example reads them in this order.
- The documentation gives no unit ID. If the meter does not answer, try unit ID 1.
This map is for the default triphase profile. Shelly calls the phases A, B and C; here they are L1, L2 and L3. Energy is in Wh. In the monophase profile the meter uses the separate EM1 and EM1Data registers, which are not listed here.
Connection
| Protocol | Modbus TCP |
|---|---|
| Default device address | depends on the installation, see “How to connect” |
| Byte order of 32-bit values | CDAB (word swap) |
| Function codes | 04 |
| Addresses in the manual | table digit + address from zero (31000 = input register, address 1000) |
| Valid for firmware | Shelly Gen2 API documentation as published on 2026-10-28, triphase profile (default) |
| Also known as | Shelly Pro 3 EM, Pro3EM, Shelly 3EM Pro, Shelly Pro 3EM Modbus TCP |
Registers
Address: as written in the manufacturer's document. Offset: the 0-based address sent in the request, which Home Assistant, pymodbus and Node-RED expect. Scale: multiply the raw value by it.
No warranty. We prepare register maps carefully, but mistakes and differences between firmware versions happen. We do not guarantee that the data is correct or complete and, to the extent permitted by law, we are not liable for damage caused by using it. Check the manufacturer's document before you write values or use them for control. Terms of use
Read values from the device? The decoder adds names and units from this map. Each group below has its own link that sets the first address.
Voltage
Open in decoder from 31020| Address | Offset | FC | Name | Type | Unit | Scale | Access | Notes |
|---|---|---|---|---|---|---|---|---|
| 31020 | 1020 | 04 | Voltage L1–N | float32 | V | R | ||
| 31040 | 1040 | 04 | Voltage L2–N | float32 | V | R | ||
| 31060 | 1060 | 04 | Voltage L3–N | float32 | V | R |
Current
Open in decoder from 31007| Address | Offset | FC | Name | Type | Unit | Scale | Access | Notes |
|---|---|---|---|---|---|---|---|---|
| 31007 | 1007 | 04 | Neutral current | float32 | A | R | ||
| 31011 | 1011 | 04 | Sum of phase currents | float32 | A | R | Sum of all available phases. | |
| 31022 | 1022 | 04 | Current L1 | float32 | A | R | ||
| 31042 | 1042 | 04 | Current L2 | float32 | A | R | ||
| 31062 | 1062 | 04 | Current L3 | float32 | A | R |
| Address | Offset | FC | Name | Type | Unit | Scale | Access | Notes |
|---|---|---|---|---|---|---|---|---|
| 31013 | 1013 | 04 | Total active power | float32 | W | R | Sum of all available phases. | |
| 31015 | 1015 | 04 | Total apparent power | float32 | VA | R | Sum of all available phases. | |
| 31024 | 1024 | 04 | Active power L1 | float32 | W | R | ||
| 31026 | 1026 | 04 | Apparent power L1 | float32 | VA | R | ||
| 31028 | 1028 | 04 | Power factor L1 | float32 | R | |||
| 31044 | 1044 | 04 | Active power L2 | float32 | W | R | ||
| 31046 | 1046 | 04 | Apparent power L2 | float32 | VA | R | ||
| 31048 | 1048 | 04 | Power factor L2 | float32 | R | |||
| 31064 | 1064 | 04 | Active power L3 | float32 | W | R | ||
| 31066 | 1066 | 04 | Apparent power L3 | float32 | VA | R | ||
| 31068 | 1068 | 04 | Power factor L3 | float32 | R |
Frequency
Open in decoder from 31033| Address | Offset | FC | Name | Type | Unit | Scale | Access | Notes |
|---|---|---|---|---|---|---|---|---|
| 31033 | 1033 | 04 | Frequency L1 | float32 | Hz | R | ||
| 31053 | 1053 | 04 | Frequency L2 | float32 | Hz | R | ||
| 31073 | 1073 | 04 | Frequency L3 | float32 | Hz | R |
| Address | Offset | FC | Name | Type | Unit | Scale | Access | Notes |
|---|---|---|---|---|---|---|---|---|
| 31162 | 1162 | 04 | Imported active energy | float32 | Wh | R | Never reset (perpetual count). | |
| 31164 | 1164 | 04 | Exported active energy | float32 | Wh | R | Never reset (perpetual count). | |
| 31170 | 1170 | 04 | Imported active energy L1 | float32 | Wh | R | Reset by EMData.ResetCounters. | |
| 31172 | 1172 | 04 | Fundamental active energy L1 | float32 | Wh | R | ||
| 31174 | 1174 | 04 | Exported active energy L1 | float32 | Wh | R | Reset by EMData.ResetCounters. | |
| 31176 | 1176 | 04 | Fundamental returned active energy L1 | float32 | Wh | R | ||
| 31178 | 1178 | 04 | Lagging reactive energy L1 | float32 | varh | R | ||
| 31180 | 1180 | 04 | Leading reactive energy L1 | float32 | varh | R | ||
| 31182 | 1182 | 04 | Imported active energy, never reset L1 | float32 | Wh | R | Never reset (perpetual count). | |
| 31184 | 1184 | 04 | Exported active energy, never reset L1 | float32 | Wh | R | Never reset (perpetual count). | |
| 31190 | 1190 | 04 | Imported active energy L2 | float32 | Wh | R | Reset by EMData.ResetCounters. | |
| 31192 | 1192 | 04 | Fundamental active energy L2 | float32 | Wh | R | ||
| 31194 | 1194 | 04 | Exported active energy L2 | float32 | Wh | R | Reset by EMData.ResetCounters. | |
| 31196 | 1196 | 04 | Fundamental returned active energy L2 | float32 | Wh | R | ||
| 31198 | 1198 | 04 | Lagging reactive energy L2 | float32 | varh | R | ||
| 31200 | 1200 | 04 | Leading reactive energy L2 | float32 | varh | R | ||
| 31202 | 1202 | 04 | Imported active energy, never reset L2 | float32 | Wh | R | Never reset (perpetual count). | |
| 31204 | 1204 | 04 | Exported active energy, never reset L2 | float32 | Wh | R | Never reset (perpetual count). | |
| 31210 | 1210 | 04 | Imported active energy L3 | float32 | Wh | R | Reset by EMData.ResetCounters. | |
| 31212 | 1212 | 04 | Fundamental active energy L3 | float32 | Wh | R | ||
| 31214 | 1214 | 04 | Exported active energy L3 | float32 | Wh | R | Reset by EMData.ResetCounters. | |
| 31216 | 1216 | 04 | Fundamental returned active energy L3 | float32 | Wh | R | ||
| 31218 | 1218 | 04 | Lagging reactive energy L3 | float32 | varh | R | ||
| 31220 | 1220 | 04 | Leading reactive energy L3 | float32 | varh | R | ||
| 31222 | 1222 | 04 | Imported active energy, never reset L3 | float32 | Wh | R | Never reset (perpetual count). | |
| 31224 | 1224 | 04 | Exported active energy, never reset L3 | float32 | Wh | R | Never reset (perpetual count). |
| Address | Offset | FC | Name | Type | Unit | Scale | Access | Notes |
|---|---|---|---|---|---|---|---|---|
| 31002 | 1002 | 04 | Meter error L1 | uint16 | R | 0 = OK, 1 = error | ||
| 31003 | 1003 | 04 | Meter error L2 | uint16 | R | 0 = OK, 1 = error | ||
| 31004 | 1004 | 04 | Meter error L3 | uint16 | R | 0 = OK, 1 = error | ||
| 31005 | 1005 | 04 | Meter error N | uint16 | R | 0 = OK, 1 = error | ||
| 31006 | 1006 | 04 | Phase sequence error | uint16 | R | Set when the zero crossings come in the order L1, L3, L2. | ||
| 31009 | 1009 | 04 | Neutral current mismatch | uint16 | R | 0 = OK, 1 = error | ||
| 31010 | 1010 | 04 | Neutral overcurrent | uint16 | R | 0 = OK, 1 = error | ||
| 31030 | 1030 | 04 | Overpower L1 | uint16 | R | 0 = OK, 1 = error | ||
| 31031 | 1031 | 04 | Overvoltage L1 | uint16 | R | 0 = OK, 1 = error | ||
| 31032 | 1032 | 04 | Overcurrent L1 | uint16 | R | 0 = OK, 1 = error | ||
| 31050 | 1050 | 04 | Overpower L2 | uint16 | R | 0 = OK, 1 = error | ||
| 31051 | 1051 | 04 | Overvoltage L2 | uint16 | R | 0 = OK, 1 = error | ||
| 31052 | 1052 | 04 | Overcurrent L2 | uint16 | R | 0 = OK, 1 = error | ||
| 31070 | 1070 | 04 | Overpower L3 | uint16 | R | 0 = OK, 1 = error | ||
| 31071 | 1071 | 04 | Overvoltage L3 | uint16 | R | 0 = OK, 1 = error | ||
| 31072 | 1072 | 04 | Overcurrent L3 | uint16 | R | 0 = OK, 1 = error |
Status and alarms
Open in decoder from 31000| Address | Offset | FC | Name | Type | Unit | Scale | Access | Notes |
|---|---|---|---|---|---|---|---|---|
| 31000 | 1000 | 04 | Time of last update (Unix time) | uint32 | R | |||
| 31160 | 1160 | 04 | Time of last energy update (Unix time) | uint32 | R |
Device information
Open in decoder from 30000| Address | Offset | FC | Name | Type | Unit | Scale | Access | Notes |
|---|---|---|---|---|---|---|---|---|
| 30000 | 0 | 04 | MAC address | string:6 | R | ASCII, 6 registers | ||
| 30006 | 6 | 04 | Device model | string:10 | R | ASCII, 10 registers | ||
| 30016 | 16 | 04 | Device name | string:32 | R | ASCII, 32 registers |
Home Assistant export for Shelly Pro 3EM
YAML for the Home Assistant modbus integration with every selected register as a sensor: address, data type, byte order, scaling and unit are filled in. Check the result against your device before you rely on it.
Several devices behind one gateway share its IP address. Home Assistant ignores a second hub with the same IP and port, so export the first device as a complete configuration and the others as “Sensors only” with their own Unit ID, pasted under the same sensors:.
Source and verification
Datasheet Based on the manufacturer’s documentation · verified 2026-10-28
Typed in from the Modbus register tables of the EM, EMData and Modbus pages. Addressing and word order follow Shelly's own modbus_cli examples (i@1020/f with -B mixed reads the L1 voltage, register 31020); per the modbus_cli documentation the address after @ is 0-based and mixed means low word first. Booleans are read as uint16 (0/1). Reserved registers are left out.
- Shelly API documentation – EM component, Modbus registers (official)
- Shelly API documentation – EMData component, Modbus registers (official)
- Shelly API documentation – Modbus component (port, device info registers, examples) (official)
- Shelly API documentation – Shelly Pro 3EM (profiles and components) (official)
Only facts are taken over; the original document belongs to the manufacturer. Check it for your firmware version before writing values.
Related devices
- Carlo Gavazzi EM24-DINEnergy meter
- Carlo Gavazzi EM340-DINEnergy meter
- Chint DTSU666 / DSSU666Energy meter
- Eastron SDM120-ModbusEnergy meter
- Eastron SDM630-Modbus V2Energy meter
- Eastron SDM72D-MEnergy meter
Related tools
- Register DecoderFloat32, Int32, UInt16 and bits in every byte order, plus Find my value.
- Address Converter40001 ↔ offset 0, 4x/3x/0x/1x notation, 5- and 6-digit addresses.
- Value EncoderTurn a value like 230.5 into registers for every byte order.
- Frame DecoderRead RTU and TCP frames from Wireshark or a serial log.