Skip to content

Fronius Binding ​

This binding uses the Fronius Solar API V1 to obtain data from Fronius devices.

It supports Fronius inverters, smart meters and Ohmpilot devices connected to a Fronius Datamanager 1.0 / 2.0, Fronius Datalogger or with integrated Solar API V1 support.

Inverters with integrated Solar API V1 support include:

  • Fronius Galvo
  • Fronius Primo
  • Fronius Symo
  • Fronius Symo Gen24
  • Fronius Symo Gen24 Plus

Supported Things ​

Thing TypeDescription
bridgeThe Bridge
powerinverterFronius Galvo, Symo and other Fronius inverters: You can add multiple inverters that depend on the same datalogger with different device ids. (default id = 1)
batteryFronius Battery: Battery devices that map to storage controller fields (default id = 0)
meterFronius Smart Meter: You can add multiple smart meters with different device ids. (default id = 0)
ohmpilotFronius Ohmpilot (default id = 0)

Discovery ​

There is no discovery implemented. You have to create your Things manually and specify the hostname or IP address of the Datalogger and the device id.

Binding Configuration ​

The binding has no configuration options, all configuration is done at bridge, powerinverter, meter or ohmpilot level.

Thing Configuration ​

Bridge Thing Configuration ​

ParameterDescriptionRequired
hostnameThe hostname or IP address of your Fronius Datamanager, Datalogger or inverterYes
usernameThe username to authenticate with the inverter settings for battery controlNo
passwordThe password to authenticate with the inverter settings for battery controlNo
refreshIntervalRefresh interval in secondsNo
schemeSet the protocol scheme that is used to connect to your device (default: http)No

Powerinverter Thing Configuration ​

ParameterDescription
deviceIdThe identifier of your device (Default: 1)

Battery Thing Configuration ​

ParameterDescription
deviceIdThe identifier of your battery device (Default: 0)
batterySettingsRefreshIntervalThe interval in minutes at which the battery settings channels are read from the inverter's config API. Reading them requires a login, therefore the interval should be kept high. Set to 0 to disable reading the battery settings from the inverter. (Default: 5)

Meter Thing Configuration ​

ParameterDescription
deviceIdThe identifier of your smart meter (Default: 0)

Ohmpilot Thing Configuration ​

ParameterDescription
deviceIdThe identifier of your ohmpilot (Default: 0)

Channels ​

powerinverter Thing Channels ​

Channel IDItem TypeDescription
inverterdatachannelpacNumber:PowerAC Power generated
inverterdatachannelpdcNumber:PowerDC Power calculated from DC voltage * DC current
inverterdatachannelpdc2Number:PowerDC Power generated by MPPT tracker 2
inverterdatachannelpdc3Number:PowerDC Power generated by MPPT tracker 3
inverterdatachannelfacNumber:FrequencyAC frequency
inverterdatachanneliacNumber:ElectricCurrentAC current
inverterdatachannelidcNumber:ElectricCurrentDC current
inverterdatachannelidc2Number:ElectricCurrentDC current of MPPT tracker 2
inverterdatachannelidc3Number:ElectricCurrentDC current of MPPT tracker 3
inverterdatachanneluacNumber:ElectricPotentialAC voltage
inverterdatachanneludcNumber:ElectricPotentialDC voltage
inverterdatachanneludc2Number:ElectricPotentialDC voltage of MPPT tracker 2
inverterdatachanneludc3Number:ElectricPotentialDC voltage of MPPT tracker 3
inverterdatachanneldayenergyNumber:EnergyEnergy generated on current day (GEN24/Tauro/Verto will always report null)
inverterdatachannelyearNumber:EnergyEnergy generated in current year (GEN24/Tauro/Verto will always report null)
inverterdatachanneltotalNumber:EnergyEnergy generated overall
inverterdatadevicestatuserrorcodeNumberDevice error code
inverterdatadevicestatusstatuscodeNumberDevice status code
0 - 6 Startup
7 Running
8 Standby
9 Bootloading
10 Error
powerflowchannelpgridNumber:PowerGrid Power (+ from grid, - to grid)
powerflowchannelploadNumber:PowerLoad Power (+ generator, - consumer)
powerflowchannelpakkuNumber:PowerBattery Power (+ discharge, - charge)
powerflowchannelppvNumber:PowerSolar Power (+ production)
powerflowautonomyNumber:DimensionlessThe current relative autonomy in %
powerflowselfconsumptionNumber:DimensionlessThe current relative self consumption in %
powerflowinverterpowerNumber:PowerCurrent power of the inverter, null if not running (+ produce/export, - consume/import)
powerflowinvertersocNumber:DimensionlessCurrent state of charge of the battery connected to the inverter in percent.
powerflowinverter1powerNumber:PowerCurrent power of inverter 1, null if not running (+ produce/export, - consume/import) - DEPRECATED
powerflowinverter1socNumber:DimensionlessCurrent state of charge of inverter 1 in percent - DEPRECATED
powerflowbackupmodeSwitchWhether the inverter is currently operating in backup power mode (island operation), read-only
powerflowbatterystandbySwitchWhether the battery is currently in standby, read-only

battery Thing Channels ​

Channel IDItem TypeDescription
maximumCapacityNumber:EnergyCurrent maximum battery capacity in Wh
designedCapacityNumber:EnergyDesigned battery capacity in Wh
currentDcNumber:ElectricCurrentDC current
voltageDcNumber:ElectricPotentialDC voltage
socNumber:DimensionlessState of charge in percent
statusStringBattery cell status code
enableNumberEnable flag for the battery controller
temperatureNumber:TemperatureCell temperature
timestampDateTimeTimestamp of the last measurement
socMinNumber:DimensionlessMinimum state of charge of the battery in percent (writable, requires battery control)
socMaxNumber:DimensionlessMaximum state of charge of the battery in percent (writable, requires battery control)
backupReservedCapacityNumber:DimensionlessReserved battery capacity for backup power; not discharged below in normal operation (writable, requires battery control)
backupCriticalSocNumber:DimensionlessState of charge at which the inverter warns about the battery running low in backup power mode (writable, requires battery control)
chargeFromGridSwitchWhether charging the battery from the grid is allowed (writable, requires battery control)
calibrationSwitchWhether the battery is currently performing a calibration charge (read-only, requires battery control)
nightPreservationLimitNumber:DimensionlessState of charge preserved over night to keep the battery system operational (read-only, requires battery control)

The battery settings channels (socMin, socMax, backupReservedCapacity, backupCriticalSoc, chargeFromGrid, calibration and nightPreservationLimit) require the username and password to be configured in the bridge, see Actions. They read from and write to the inverter's settings through its config API. Since reading these settings requires a login to the inverter, they are not part of the fast polling cycle, but refreshed every batterySettingsRefreshInterval minutes (and after each write), so changes made through the inverter's web UI show up with a delay. Commands sent to the writable channels are applied to the inverter immediately.

meter Thing Channels ​

Channel IDItem TypeDescription
enableNumber1 = enabled, 0 = disabled
locationNumber0 = grid interconnection point (primary meter)
1 = load (primary meter)
3 = external generator (secondary meters)(multiple)
256-511 = subloads (secondary meters)(unique). Refer to Fronius Solar API.
currentacphase1Number:ElectricCurrentAC Current on Phase 1
currentacphase2Number:ElectricCurrentAC Current on Phase 2
currentacphase3Number:ElectricCurrentAC Current on Phase 3
voltageacphase1Number:ElectricPotentialAC Voltage on Phase 1
voltageacphase2Number:ElectricPotentialAC Voltage on Phase 2
voltageacphase3Number:ElectricPotentialAC Voltage on Phase 3
powerrealphase1Number:PowerReal Power on Phase 1
powerrealphase2Number:PowerReal Power on Phase 2
powerrealphase3Number:PowerReal Power on Phase 3
powerrealsumNumber:PowerReal Power summed up
powerfactorphase1NumberPower Factor on Phase 1
powerfactorphase2NumberPower Factor on Phase 2
powerfactorphase3NumberPower Factor on Phase 3
energyrealsumconsumedNumber:EnergyReal Energy consumed
energyrealsumproducedNumber:EnergyReal Energy produced

ohmpilot Thing Channels ​

Channel IDItem TypeDescription
energyrealsumconsumedNumber:EnergyReal Energy consumed
powerrealsumNumber:PowerReal Power
temperaturechannel1Number:TemperatureTemperature
errorcodeNumberDevice error code
statecodeNumberDevice state code
0 up and running
1 keep minimum temperature
2 legionella protection
3 critical fault
4 fault
5 boost mode

Properties ​

battery Thing Properties ​

PropertyDescription
vendorThe manufacturer of the battery
modelIdThe model name of the battery
serialNumberThe serial number of the battery

meter Thing Properties ​

PropertyDescription
modelIdThe model name of the meter
serialNumberThe serial number of the meter

ohmpilot Thing Properties ​

PropertyDescription
modelIdThe model name of the ohmpilot
serialNumberThe serial number of the ohmpilot

Actions ​

WARNING

Battery control uses the battery management's time-dependent battery control settings of the inverter settings and therefore overrides user-specified time of use settings. Please note that user-specified time of use plans cannot be used together with battery control, as battery control will override the user-specified time of use settings.

The battery Thing provides actions to control the battery charging and discharging behaviour of hybrid inverters, such as Symo Gen24 Plus, if username and password are provided in the bridge configuration. The inverter must have the battery time of use plan settings available in the web interface.

For backward compatibility, the actions can also be retrieved through the powerinverter Thing, but this is deprecated - please retrieve them through the battery Thing instead.

You can retrieve the actions as follows:

rules
val froniusBatteryActions = getActions("fronius", "fronius:battery:mybridge:mybattery")

Where the first parameter must always be fronius and the second must be the full Thing UID of the inverter.

Available Actions ​

Once the actions instance has been retrieved, you can invoke the following methods:

  • resetBatteryControl(): Remove all battery control schedules from the inverter.
  • holdBatteryCharge(): Prevent the battery from discharging (removes all battery control schedules first and applies all the time).
  • addHoldBatteryChargeSchedule(LocalTime from, LocalTime until): Add a schedule to prevent the battery from discharging in the specified time range.
  • addHoldBatteryChargeSchedule(ZonedDateTime from, ZonedDateTime until): Add a schedule to prevent the battery from discharging in the specified time range.
  • forceBatteryCharging(QuantityType<Power> power): Force the battery to charge with the specified power (removes all battery control schedules first and applies all the time).
  • limitBatteryCharging(QuantityType<Power> power): Limit the battery charging power to at most the specified power (removes all battery control schedules first and applies all the time).
  • limitBatteryDischarging(QuantityType<Power> power): Limit the battery discharging power to at most the specified power (removes all battery control schedules first and applies all the time).
  • addForcedBatteryChargingSchedule(LocalTime from, LocalTime until, QuantityType<Power> power): Add a schedule to force the battery to charge with the specified power in the specified time range.
  • addForcedBatteryChargingSchedule(ZonedDateTime from, ZonedDateTime until, QuantityType<Power> power): Add a schedule to force the battery to charge with the specified power in the specified time range.
  • preventBatteryCharging(): Prevent the battery from charging (removes all battery control schedules first and applies all the time).
  • addPreventBatteryChargingSchedule(LocalTime from, LocalTime until): Add a schedule to prevent the battery from charging in the specified time range.
  • addPreventBatteryChargingSchedule(ZonedDateTime from, ZonedDateTime until): Add a schedule to prevent the battery from charging in the specified time range.
  • forceBatteryDischarging(QuantityType<Power> power): Force the battery to discharge with the specified power (removes all battery control schedules first and applies all the time).
  • addForcedBatteryDischargingSchedule(LocalTime from, LocalTime until, QuantityType<Power> power): Add a schedule to force the battery to discharge with the specified power in the specified time range.
  • addForcedBatteryDischargingSchedule(ZonedDateTime from, ZonedDateTime until, QuantityType<Power> power): Add a schedule to force the battery to discharge with the specified power in the specified time range.
  • addSchedule(LocalTime from, LocalTime until, ScheduleType scheduleType, QuantityType<Power> power): Add a custom schedule with the specified type and power in the specified time range.
  • addSchedule(ZonedDateTime from, ZonedDateTime until, ScheduleType scheduleType, QuantityType<Power> power): Add a custom schedule with the specified type and power in the specified time range.
  • addBatteryChargingLimitSchedule(LocalTime from, LocalTime until, QuantityType<Power> power): Add a schedule to limit the battery charging power to at most the specified power in the specified time range.
  • addBatteryChargingLimitSchedule(ZonedDateTime from, ZonedDateTime until, QuantityType<Power> power): Add a schedule to limit the battery charging power to at most the specified power in the specified time range.
  • addBatteryDischargingLimitSchedule(LocalTime from, LocalTime until, QuantityType<Power> power): Add a schedule to limit the battery discharging power to at most the specified power in the specified time range.
  • addBatteryDischargingLimitSchedule(ZonedDateTime from, ZonedDateTime until, QuantityType<Power> power): Add a schedule to limit the battery discharging power to at most the specified power in the specified time range.
  • setBackupReservedBatteryCapacity(int percent): Set the reserved battery capacity for backup power.
  • setBackupReservedBatteryCapacity(PercentType percent): Set the reserved battery capacity for backup power.

All add...Schedule actions accept an optional trailing weekdays string parameter to restrict the schedule to specific weekdays, e.g. addHoldBatteryChargeSchedule(from, until, "MON,TUE,SAT"). Weekdays are given as a comma-separated list of three-letter English weekday abbreviations or full names (e.g. "MON,TUE" or "MONDAY,TUESDAY"); omitting the parameter or passing null or an empty string applies the schedule to all days.

The ScheduleType enum has the following members:

  • CHARGE_MIN
  • CHARGE_MAX
  • DISCHARGE_MIN
  • DISCHARGE_MAX

Its full class name is org.openhab.binding.fronius.internal.api.dto.inverter.batterycontrol.ScheduleType. You can also provide the name of the enum member as string and the binding will parse the enum member from it.

All methods return a boolean value indicating whether the action was successful.

Examples ​

javascript
var froniusBatteryActions = actions.thingActions('fronius', 'fronius:battery:mybridge:mybattery');

froniusBatteryActions.resetBatteryControl();
froniusBatteryActions.holdBatteryCharge();
froniusBatteryActions.forceBatteryCharging(Quantity('5 kW'));

froniusBatteryActions.resetBatteryControl();
froniusBatteryActions.addHoldBatteryChargeSchedule(time.toZDT('18:00'), time.toZDT('22:00'));
froniusBatteryActions.addForcedBatteryChargingSchedule(time.toZDT('22:00'), time.toZDT('23:59'), Quantity('5 kW'));
froniusBatteryActions.addForcedBatteryChargingSchedule(time.toZDT('00:00'), time.toZDT('06:00'), Quantity('5 kW'));
froniusBatteryActions.addForcedBatteryDischargingSchedule(time.toZDT('07:00'), time.toZDT('09:00'));
froniusBatteryActions.addPreventBatteryChargingSchedule(time.toZDT('09:00'), time.toZDT('12:00'));

froniusBatteryActions.addSchedule(time.toZDT('10:00'), time.toZDT('11:00'), 'DISCHARGE_MAX', Quantity('500 W'));

froniusBatteryActions.setBackupReservedBatteryCapacity(50);

Full Example ​

demo.things:

dsl
Bridge fronius:bridge:mybridge [hostname="192.168.66.148", refreshInterval=5, username="customer", password="someSecretPassword", scheme="http"] {
    Thing powerinverter myinverter [deviceId=1]
    Thing battery mybattery [deviceId=0]
    Thing meter mymeter [deviceId=0]
    Thing ohmpilot myohmpilot [deviceId=0]
}

Please note that username and password are only required if you want to use battery control Thing actions.

demo.items:

dsl
Number:Power AC_Power { channel="fronius:powerinverter:mybridge:myinverter:inverterdatachannelpac" }
Number:Energy Day_Energy { channel="fronius:powerinverter:mybridge:myinverter:inverterdatachanneldayenergy" }
Number:Energy Total_Energy { channel="fronius:powerinverter:mybridge:myinverter:inverterdatachanneltotal" }
Number:Energy Year_Energy { channel="fronius:powerinverter:mybridge:myinverter:inverterdatachannelyear" }
Number:Frequency FAC { channel="fronius:powerinverter:mybridge:myinverter:inverterdatachannelfac" }
Number:ElectricCurrent IAC { channel="fronius:powerinverter:mybridge:myinverter:inverterdatachanneliac" }
Number:ElectricCurrent IDC { channel="fronius:powerinverter:mybridge:myinverter:inverterdatachannelidc" }
Number:ElectricPotential UAC { channel="fronius:powerinverter:mybridge:myinverter:inverterdatachanneluac" }
Number:ElectricPotential UDC { channel="fronius:powerinverter:mybridge:myinverter:inverterdatachanneludc" }
Number ErrorCode { channel="fronius:powerinverter:mybridge:myinverter:inverterdatadevicestatuserrorcode" }
Number StatusCode { channel="fronius:powerinverter:mybridge:myinverter:inverterdatadevicestatusstatuscode" }
Number:Power Grid_Power { channel="fronius:powerinverter:mybridge:myinverter:powerflowchannelpgrid" }
Number:Power Load_Power { channel="fronius:powerinverter:mybridge:myinverter:powerflowchannelpload" }
Number:Power Battery_Power { channel="fronius:powerinverter:mybridge:myinverter:powerflowchannelpakku" }
Number:Power Production_Power { channel="fronius:powerinverter:mybridge:myinverter:powerflowchannelppv" }
Number:Dimensionless Power_Autonomy { channel="fronius:powerinverter:mybridge:myinverter:powerflowautonomy" }
Number:Dimensionless Power_SelfConsumption { channel="fronius:powerinverter:mybridge:myinverter:powerflowselfconsumption" }
Number:Power Inverter1_Power { channel="fronius:powerinverter:mybridge:myinverter:powerflowinverter1power" }
Number:Dimensionless Inverter1_SOC { channel="fronius:powerinverter:mybridge:myinverter:powerflowinverter1soc" }

Number Meter_Enable { channel="fronius:meter:mybridge:mymeter:enable" }
Number Meter_Location { channel="fronius:meter:mybridge:mymeter:location" }
Number:ElectricCurrent Meter_CurrentPhase1 { channel="fronius:meter:mybridge:mymeter:currentacphase1" }
Number:ElectricCurrent Meter_CurrentPhase2 { channel="fronius:meter:mybridge:mymeter:currentacphase2" }
Number:ElectricCurrent Meter_CurrentPhase3 { channel="fronius:meter:mybridge:mymeter:currentacphase3" }
Number:Voltage Meter_VoltagePhase1 { channel="fronius:meter:mybridge:mymeter:voltageacphase1" }
Number:Voltage Meter_VoltagePhase2 { channel="fronius:meter:mybridge:mymeter:voltageacphase2" }
Number:Voltage Meter_VoltagePhase3 { channel="fronius:meter:mybridge:mymeter:voltageacphase3" }
Number:Power Meter_PowerPhase1 { channel="fronius:meter:mybridge:mymeter:powerrealphase1" }
Number:Power Meter_PowerPhase2 { channel="fronius:meter:mybridge:mymeter:powerrealphase2" }
Number:Power Meter_PowerPhase3 { channel="fronius:meter:mybridge:mymeter:powerrealphase3" }
Number:Power Meter_PowerSum    { channel="fronius:meter:mybridge:mymeter:powerrealsum" }
Number Meter_PowerFactorPhase1 { channel="fronius:meter:mybridge:mymeter:powerfactorphase1" }
Number Meter_PowerFactorPhase2 { channel="fronius:meter:mybridge:mymeter:powerfactorphase2" }
Number Meter_PowerFactorPhase3 { channel="fronius:meter:mybridge:mymeter:powerfactorphase3" }
Number:Energy Meter_EnergyConsumed { channel="fronius:meter:mybridge:mymeter:energyrealsumconsumed" }
Number:Energy Meter_EnergyProduced { channel="fronius:meter:mybridge:mymeter:energyrealsumproduced" }

Number:Energy Ohmpilot_EnergyConsumed { channel="fronius:ohmpilot:mybridge:myohmpilot:energyrealsumconsumed" }
Number:Power Ohmpilot_PowerSum { channel="fronius:ohmpilot:mybridge:myohmpilot:powerrealsum" }
Number:Temperature Ohmpilot_Temperature { channel="fronius:ohmpilot:mybridge:myohmpilot:temperaturechannel1" }
Number Ohmpilot_State { channel="fronius:ohmpilot:mybridge:myohmpilot:statecode" }
Number Ohmpilot_Errorcode { channel="fronius:ohmpilot:mybridge:myohmpilot:errorcode" }

Number:Energy Battery_MaxCapacity { channel="fronius:battery:mybridge:mybattery:maximumCapacity" }
Number:Energy Battery_DesignedCapacity { channel="fronius:battery:mybridge:mybattery:designedCapacity" }
Number:ElectricCurrent Battery_CurrentDC { channel="fronius:battery:mybridge:mybattery:currentDc" }
Number:ElectricPotential Battery_VoltageDC { channel="fronius:battery:mybridge:mybattery:voltageDc" }
Number:Dimensionless Battery_SOC { channel="fronius:battery:mybridge:mybattery:soc" }
Number:Temperature Battery_Temperature { channel="fronius:battery:mybridge:mybattery:temperature" }
DateTime Battery_Timestamp { channel="fronius:battery:mybridge:mybattery:timestamp" }

Note: Make sure to turn on the Night Mode in the Display Settings on the Fronius inverter to keep it from going offline at night.