Skip to content

Modbus Anker SOLIX Binding ​

This binding adds Anker SOLIX device support as a Modbus sub-binding. It currently supports Anker SOLIX devices with officially exposed Modbus profiles.

Prerequisites ​

This add-on is a Modbus sub-binding and requires the base Modbus binding to be installed and active. It is not a standalone binding.

When installed via the normal openHAB add-on workflow, dependencies are handled by openHAB. When manually side-loading a jar from addons/, make sure a matching Modbus binding version is present in the runtime.

Supported Things ​

  • ankersolix-solarbank4: Anker SOLIX Solarbank 4 E5000 Pro.
  • ankersolix-solarbank: Anker SOLIX Solarbank Max AC / XE / XE AC.
  • ankersolix-smartmeter-gen2: Anker SOLIX Smart Meter Gen 2.
  • ankersolix-smartplug: Anker SOLIX Smart Plug.
  • ankersolix-ev-charger: Anker SOLIX V1 Smart EV Charger.

The thing is attached to an existing Modbus tcp or serial bridge. Only devices with officially published Modbus profiles are supported; reserved and undocumented endpoints are intentionally excluded.

Discovery ​

Discovery is available for all supported Anker SOLIX thing types.

Discovery runs on an existing Modbus tcp or serial bridge and probes the configured endpoint using read-only register requests.

The bridge itself is still configured manually. Discovery then adds the matching child thing in the Inbox.

Thing Configuration ​

NameTypeDescriptionDefaultRequiredAdvanced
pollIntervalintegerPoll interval in milliseconds (ms)5000yesno
maxTriesintegerMaximum tries for read/write requests3noyes
writeProtectionDurationSecondsintegerShadow-state duration after successful write5noyes
autoThirdPartyControlbooleanSwitch Solarbank into third party control on connecttruenoyes
  • The minimum value for pollInterval is 500 (0.5 seconds).
  • When autoThirdPartyControl is enabled (default), Solarbank things automatically switch into third_party_control operating mode on connect. This is required for battery-power-setpoint and battery-power-direction writes to take effect. Set it to false if you want to manage the operating mode yourself. The setting is ignored for Smart Meter and Smart Plug and EV Charger things.

Bridge Configuration ​

The Anker SOLIX thing inherits connection settings from that bridge and only provides device-specific parameters.

This still allows one endpoint per device: create one Modbus bridge per device (or gateway endpoint), each with its own host/port settings.

Example With Multiple Devices ​

dsl
Bridge modbus:tcp:solixA [ host="192.168.1.41", port=502, id=1 ] {
    Thing ankersolix-solarbank4 deviceA [ pollInterval=5000 ]
}

Bridge modbus:tcp:solixB [ host="192.168.1.42", port=502, id=1 ] {
    Thing ankersolix-solarbank4 deviceB [ pollInterval=5000 ]
}

In other words, connection parameters are bridge-level and can still be unique per device.

UI Setup (Short Version) ​

  1. Add a Modbus tcp (or serial) bridge and set host/port for one device endpoint.
  2. Run discovery from Inbox and add the detected Anker SOLIX child thing.
  3. If discovery does not detect your device, add the Anker SOLIX thing (ankersolix-*) manually as child of that bridge.
  4. Repeat with a second bridge if you want to connect a second device endpoint.

Channels ​

Device metadata is exposed as thing properties, not channels. Depending on device type and firmware, this includes model, serialNumber, softwareVersion, hardwareVersion, and productNumber.

Solarbank Channels ​

The ankersolix-solarbank4 and ankersolix-solarbank (Solarbank Max AC, XE, and XE AC) things expose the following channels:

Channel IDItem TypeAccessDescription
battery-socNumber:Dimensionlessread-onlyBattery state of charge in percent.
pv-powerNumber:Powerread-onlyTotal PV input power.
battery-charging-powerNumber:Powerread-onlyBattery charging power (non-negative).
battery-discharging-powerNumber:Powerread-onlyBattery discharging power (non-negative).
load-powerNumber:Powerread-onlyCurrent load power.
grid-import-powerNumber:Powerread-onlyGrid import power (non-negative).
grid-export-powerNumber:Powerread-onlyGrid export power (non-negative).
ac-grid-output-powerNumber:Powerread-onlyAC grid output power.
pv-total-generationNumber:Energyread-onlyTotal PV generation (kWh).
cumulative-charge-energyNumber:Energyread-onlyCumulative charge energy (kWh).
cumulative-discharge-energyNumber:Energyread-onlyCumulative discharge energy (kWh).
operating-modeStringread-writeOperating mode. Supported command values: self_consumption, tou_mode, third_party_control, custom_mode, socket_overlay_mode, smart_mode, dynamic_pricing.
battery-power-directionStringread-writeDirection for setpoint control. Supported values: charge, discharge.
backup-soc-enable*Switchread-write*Enables backup SOC constraints (ON/OFF).
charging-limit-soc*Number:Dimensionlessread-write*Charging limit SOC in percent (80-100).
discharge-limit-soc*Number:Dimensionlessread-write*Discharge limit SOC in percent (0-20).
backup-reserve-soc*Number:Dimensionlessread-write*Backup reserve SOC in percent (0-100).
battery-power-setpointNumber:Powerread-writeBattery power setpoint in W (absolute value, 0-10000). Sign sent to device is derived from battery-power-direction.
  • * marks capability-dependent channels. Availability and write support depend on the optional capability mask, so depending on firmware/device these channels can be unsupported (UNDEF) or reported as read-only.
  • Devices that do not provide the capability mask register are handled with fail-open defaults, and openHAB may log a small number of expected startup WARN/ERROR entries for that single register before polling of that register is stopped; see Troubleshooting for details.

EV Charger Channels ​

Channel IDItem TypeAccessDescription
rated-powerNumber:Powerread-onlyRated power (Pn).
minimum-output-currentNumber:ElectricCurrentread-onlyMinimum output current.
maximum-output-currentNumber:ElectricCurrentread-onlyMaximum output current.
alarm-information-1 ... alarm-information-12Numberread-onlyRaw alarm words (each bit represents an alarm).
l1-n-voltageNumber:ElectricPotentialread-onlyL1-N voltage.
l2-n-voltageNumber:ElectricPotentialread-onlyL2-N voltage.
l3-n-voltageNumber:ElectricPotentialread-onlyL3-N voltage.
l1-l2-voltageNumber:ElectricPotentialread-onlyL1-L2 voltage.
l2-l3-voltageNumber:ElectricPotentialread-onlyL2-L3 voltage.
l3-l1-voltageNumber:ElectricPotentialread-onlyL3-L1 voltage.
l1-currentNumber:ElectricCurrentread-onlyL1 current.
l2-currentNumber:ElectricCurrentread-onlyL2 current.
l3-currentNumber:ElectricCurrentread-onlyL3 current.
l1-active-powerNumber:Powerread-onlyL1 active power.
l2-active-powerNumber:Powerread-onlyL2 active power.
l3-active-powerNumber:Powerread-onlyL3 active power.
total-charging-active-powerNumber:Powerread-onlyTotal charging active power.
l1-reactive-powerNumber:Powerread-onlyL1 reactive power.
l2-reactive-powerNumber:Powerread-onlyL2 reactive power.
l3-reactive-powerNumber:Powerread-onlyL3 reactive power.
l1-apparent-powerNumber:Powerread-onlyL1 apparent power.
l2-apparent-powerNumber:Powerread-onlyL2 apparent power.
l3-apparent-powerNumber:Powerread-onlyL3 apparent power.
current-charging-session-durationNumber:Timeread-onlyCurrent charging session duration (s).
current-charging-capacityNumber:Energyread-onlyCurrent charging capacity (Wh).
pwm-enabled-statusStringread-onlyPWM enabled status (disabled, enabled).
single-three-phase-operating-modeStringread-onlySingle/three-phase operating mode (single_phase, three_phase).
charging-modeStringread-onlyCharging mode (solar_plus_grid, only_solar).
load-balancing-enabled-statusStringread-onlyLoad balancing enabled status (disabled, enabled).
solar-power-balancing-enabled-statusStringread-onlySolar power balancing enabled status (disabled, enabled).
cp-acquisition-voltageNumberread-onlyCP acquisition voltage raw value.
cp-signal-statusStringread-onlyCP signal status enum value.
relay-1-temperatureNumber:Temperatureread-onlyRelay 1 temperature.
relay-2-temperatureNumber:Temperatureread-onlyRelay 2 temperature.
boost-modeStringread-onlyBoost mode status (disabled, enabled).
led-light-brightnessNumber:Dimensionlessread-onlyLED light brightness (%).
charging-statusStringread-onlyCharging status enum value.
ocpp-connection-statusStringread-onlyOCPP connection status (not_connected, connecting, connected).
mqtt-connection-statusStringread-onlyMQTT connection status (not_connected, connected).
charging-commandStringread-writeCharging command values: start_charging, stop_charging.
maximum-current-settingNumber:ElectricCurrentread-writeMaximum current setting (scaled from Modbus gain 10).
boost-mode-commandSwitchread-writeOne-shot boost mode command.
set-timeoutNumber:Timeread-writeTimeout setting, must be > 5 s.
set-number-of-charging-phasesStringread-writePhase mode values: default, fixed_single_phase, fixed_three_phase.

The Modbus PDF references an external alarm list for bit-level alarm decoding, but this list is currently not published. Therefore the binding exposes the 12 alarm registers as raw values for now.

Registers marked as Reserved for Future Use are intentionally not bound:

  1. 20098 (RO)
  2. 21004 (RW)

Smart Meter Gen 2 Channels ​

Channel IDItem TypeAccessDescription
meter-typeStringread-onlyMeter type (single_phase or three_phase).
primary-total-active-powerNumber:Powerread-onlyPrimary CT total active power.
primary-phase-1-active-powerNumber:Powerread-onlyPrimary CT phase 1 active power.
primary-phase-1-currentNumber:ElectricCurrentread-onlyPrimary CT phase 1 current.
primary-phase-1-voltageNumber:ElectricPotentialread-onlyPrimary CT phase 1 voltage.
primary-phase-2-active-powerNumber:Powerread-onlyPrimary CT phase 2 active power.
primary-phase-2-currentNumber:ElectricCurrentread-onlyPrimary CT phase 2 current.
primary-phase-2-voltageNumber:ElectricPotentialread-onlyPrimary CT phase 2 voltage.
primary-phase-3-active-powerNumber:Powerread-onlyPrimary CT phase 3 active power.
primary-phase-3-currentNumber:ElectricCurrentread-onlyPrimary CT phase 3 current.
primary-phase-3-voltageNumber:ElectricPotentialread-onlyPrimary CT phase 3 voltage.
primary-total-reactive-powerNumber:Powerread-onlyPrimary CT total reactive power.
primary-total-power-factorNumber:Dimensionlessread-onlyPrimary CT total power factor.
primary-phase-1-forward-active-energyNumber:Energyread-onlyPrimary CT phase 1 import active energy (kWh).
primary-phase-2-forward-active-energyNumber:Energyread-onlyPrimary CT phase 2 import active energy (kWh).
primary-phase-3-forward-active-energyNumber:Energyread-onlyPrimary CT phase 3 import active energy (kWh).
primary-total-forward-active-energyNumber:Energyread-onlyPrimary CT total import active energy (kWh).
primary-phase-1-reverse-active-energyNumber:Energyread-onlyPrimary CT phase 1 export active energy (kWh).
primary-phase-2-reverse-active-energyNumber:Energyread-onlyPrimary CT phase 2 export active energy (kWh).
primary-phase-3-reverse-active-energyNumber:Energyread-onlyPrimary CT phase 3 export active energy (kWh).
primary-total-reverse-active-energyNumber:Energyread-onlyPrimary CT total export active energy (kWh).
secondary-total-active-powerNumber:Powerread-onlySecondary CT total active power.
secondary-phase-1-active-powerNumber:Powerread-onlySecondary CT phase 1 active power.
secondary-phase-1-currentNumber:ElectricCurrentread-onlySecondary CT phase 1 current.
secondary-phase-1-voltageNumber:ElectricPotentialread-onlySecondary CT phase 1 voltage.
secondary-phase-2-active-powerNumber:Powerread-onlySecondary CT phase 2 active power.
secondary-phase-2-currentNumber:ElectricCurrentread-onlySecondary CT phase 2 current.
secondary-phase-2-voltageNumber:ElectricPotentialread-onlySecondary CT phase 2 voltage.
secondary-phase-3-active-powerNumber:Powerread-onlySecondary CT phase 3 active power.
secondary-phase-3-currentNumber:ElectricCurrentread-onlySecondary CT phase 3 current.
secondary-phase-3-voltageNumber:ElectricPotentialread-onlySecondary CT phase 3 voltage.
secondary-total-reactive-powerNumber:Powerread-onlySecondary CT total reactive power.
secondary-total-power-factorNumber:Dimensionlessread-onlySecondary CT total power factor.
secondary-phase-1-forward-active-energyNumber:Energyread-onlySecondary CT phase 1 import active energy (kWh).
secondary-phase-2-forward-active-energyNumber:Energyread-onlySecondary CT phase 2 import active energy (kWh).
secondary-phase-3-forward-active-energyNumber:Energyread-onlySecondary CT phase 3 import active energy (kWh).
secondary-total-forward-active-energyNumber:Energyread-onlySecondary CT total import active energy (kWh).
secondary-phase-1-reverse-active-energyNumber:Energyread-onlySecondary CT phase 1 export active energy (kWh).
secondary-phase-2-reverse-active-energyNumber:Energyread-onlySecondary CT phase 2 export active energy (kWh).
secondary-phase-3-reverse-active-energyNumber:Energyread-onlySecondary CT phase 3 export active energy (kWh).
secondary-total-reverse-active-energyNumber:Energyread-onlySecondary CT total export active energy (kWh).

The secondary-phase-*-voltage channels intentionally report the same per-phase voltage as the primary-phase-*-voltage channels. Both CT groups are connected to the same mains, so the line-to-neutral voltage per phase is physically identical, and the meter only exposes a single voltage measurement per phase. This mirrors the upstream Home Assistant register map and is not a binding defect.

Smart Plug Channels ​

Channel IDItem TypeAccessDescription
real-time-powerNumber:Powerread-onlyReal-time power.
voltageNumber:ElectricPotentialread-onlyVoltage.
currentNumber:ElectricCurrentread-onlyCurrent.
cumulative-energyNumber:Energyread-onlyCumulative active energy (kWh).
temperatureNumber:Temperatureread-onlyDevice temperature (°C) when exposed by device firmware.
power-switchSwitchread-writeSwitch command/state channel for socket power (ON/OFF).

Item Linking Examples ​

dsl
Number:Dimensionless Solarbank_SoC "Solarbank SoC [%d %%]" { channel="modbus:ankersolix-solarbank4:solixA:deviceA:battery-soc" }
Number:Power Solarbank_PvPower "PV Power [%.0f %unit%]" { channel="modbus:ankersolix-solarbank4:solixA:deviceA:pv-power" }
String Solarbank_Mode "Operating Mode [%s]" { channel="modbus:ankersolix-solarbank4:solixA:deviceA:operating-mode" }
String Solarbank_Direction "Battery Direction [%s]" { channel="modbus:ankersolix-solarbank4:solixA:deviceA:battery-power-direction" }
Number:Power Solarbank_Setpoint "Battery Setpoint [%.0f %unit%]" { channel="modbus:ankersolix-solarbank4:solixA:deviceA:battery-power-setpoint" }

Troubleshooting ​

  1. Thing stays OFFLINE: Check that the parent Modbus bridge is ONLINE and that host, port, and slave id are correct.
  2. No device appears in discovery inbox: Discovery requires an ONLINE parent Modbus bridge and valid endpoint/slave settings. Discovery only probes the currently configured endpoint and does not scan arbitrary hosts.
  3. No values are updating: Verify network reachability to the bridge endpoint and increase pollInterval if the device cannot handle fast polling.
  4. Commands appear to be ignored: Check that you are writing to supported write channels (operating-mode, battery-power-direction, battery-power-setpoint, power-switch, charging-command, maximum-current-setting, boost-mode-command, set-timeout, set-number-of-charging-phases).
  5. Setpoint direction seems wrong: Set battery-power-direction first, then write battery-power-setpoint.
  6. Setpoint or direction writes are ignored: Solarbank requires third_party_control operating mode. Keep autoThirdPartyControl enabled, or set operating-mode to third_party_control manually before writing.
  7. Temporary UI value jumps: Tune writeProtectionDurationSeconds to keep write shadow values long enough until the next stable readback.
  8. Log shows a single ModbusManagerImpl ERROR entry for the capability mask register once, then nothing: This is expected, not an error. The device (or its firmware) does not implement the optional capability mask register (openHAB Core reports the rejected read as Illegal Data Access); the binding does not retry this specific register (so only one log entry appears instead of several) and then stops polling it regularly (all channels keep working normally with fail-open defaults). Polling resumes automatically if the device firmware version changes, or when another Anker SOLIX thing is added to the binding (the register is also used for parallel-machine capability negotiation, so it may only start answering once a second unit is paired). A general communication problem (e.g. network outage, timeout) does not trigger this, since only an explicit protocol-level rejection from the device is treated as "not supported".