# SunSpec

> Supported devices: generic SunSpec energy meters and the Fronius Smart Meter IP, read over Modbus TCP.

Source: https://voltmasters.io/en/docs/device-integrations/energy-meters/sunspec/

Our EMS reads energy meters that speak **SunSpec** over **Modbus TCP**. The first meter that runs on this integration is the **Fronius Smart Meter IP**.

> **Note**
>
> SunSpec energy meters are available from EMS controller version **0.0.341**.

## Supported devices

| Brand | Model | Description |
| --- | --- | --- |
| Fronius | Smart Meter IP | Fronius energy meter on the network |
| Sunspec | Generic | Any energy meter that publishes a SunSpec meter model |

The integration reads the SunSpec meter models 201 to 204 and 211 to 214: wye, delta, split phase and single phase meters, with integer or float values. The EMS finds the model the meter publishes on its own, there is nothing to choose.

## Setup

1. **Network**
   
   Connect the meter to the same network as the Voltmasters Controller and give it a fixed IP address. Make sure Modbus TCP (SunSpec) is enabled on the meter and that the controller can reach it.
2. **Add the meter in the platform**
   
   Add a device of type **Energy meter**. For a Fronius Smart Meter IP, choose brand **Fronius** and model **Smart Meter IP**; the **Slave ID** is prefilled with `1`. For another SunSpec meter, choose brand **Sunspec** and model **Generic**, and fill in the slave ID configured on the meter. Fill in the IP address and the port.
3. **Verify**
   
   Check on the device page that the power and the phase values come in, and that the sign matches the direction of the power flow.

## What the meter reports

-   Total active power, and reactive power when the meter publishes it
-   Voltage, current and active power per phase
-   Grid frequency
-   Cumulative imported and exported active energy

Positive power is import. A value the meter does not publish, such as the second and third phase of a single phase meter, shows as not measured instead of zero.

## Incidents

The event flags of the meter become incidents on the device: power failure, undervoltage, overvoltage, low power factor, missing sensor and overcurrent.
