A custom Home Assistant integration to communicate with Anker Solix X1 energy storage systems via Modbus TCP.
This integration was built to replace manual modbus.yaml configurations, allowing you to easily set up your inverter from the Home Assistant UI while automatically retaining all your historical Energy Dashboard data!
- 100% UI Configurable: No more editing massive YAML files.
- Data Continuity: Designed to use the exact same Entity IDs as standard community YAML configurations. Your historical energy statistics will transition seamlessly.
- Comprehensive: Maps all 141 known sensors, including PV generation, grid power, battery status, and internal temperatures.
This integration exposes all critical metrics across various categories, including but not limited to:
- Summary Information: Plant Status, Battery Status, SOC, SOH
- Power Flow: PV Power, Grid Power, Load Power, Battery Charge/Discharge Power
- Energy Counters: Daily/Total PV Generation, Battery Charge, Feed-in, Purchased Energy
- PCS Status & Alarms: Rated Power, MPPT strings, System Alarms (1-8), Internal Temperature
- Voltage & Current: PV1-PV4 Voltage and Current, Grid Voltage
- Open Home Assistant and navigate to HACS.
- Go to Integrations, click the three dots in the top right, and select Custom repositories.
- Add
https://github.com/cbource/anker-solix-x1-modbusas an Integration. - Click "Install" on the Anker Solix X1 Modbus repository.
- Restart Home Assistant.
- Download the latest release from this repository.
- Copy the
custom_components/anker_solix_x1folder into your Home Assistantconfig/custom_componentsdirectory. - Restart Home Assistant.
- Go to Settings > Devices & Services > Integrations.
- Click Add Integration and search for "Anker Solix X1".
- Enter your Inverter's IP Address (e.g.,
192.168.0.139), Port (default502), and Scan Interval.- Scan Interval (Polling Frequency): Defines how often the integration queries the inverter for updates. The unit is in seconds.
- Recommendation: A value of
30seconds is recommended. Setting this too low (e.g.,< 10) may overwhelm the inverter's Modbus TCP interface and cause connection timeouts, while setting it too high will result in sluggish dashboard updates.
- Click Submit. All 141 sensors will be automatically created!
If you are currently using a modbus.yaml configuration for your Anker Solix X1, follow these steps to migrate without losing your Energy Dashboard history:
- Comment out your existing modbus configuration. In your
configuration.yaml, comment out or remove themodbus: !include modbus.yamlline. - Restart Home Assistant. Your old entities will show as "Unavailable" — this is expected.
- Install the HACS integration using the steps in the Installation section above, then restart again.
- Add the integration via the UI (Settings > Devices & Services > Add Integration > "Anker Solix X1").
- Verify your Energy Dashboard. If your previous YAML used the standard community
unique_idvalues (e.g.,solix_x1_pv_power,solix_x1_daily_pv_generation), the new integration will create entities with the exact same IDs. Your Energy Dashboard and long-term statistics will continue seamlessly — no data loss.
Note: If your previous YAML used custom
unique_idvalues that differ from the standard ones listed above, the new entity IDs won't match automatically. In that case, go to each entity in the UI (Settings > Devices & Services > Entities), click the gear icon, and manually rename the Entity ID to match your old one.
- Connection Refused / Timeout: Modbus TCP typically only allows one connection at a time. Make sure you don't have another tool, Node-RED flow, or a residual
modbus.yamlconfiguration trying to poll the inverter at the same time. - Unavailable Entities: If your entities show up as unavailable, verify the inverter is online and connected to the same local network as your Home Assistant instance. Check the Home Assistant logs for specific Modbus exceptions.
- Energy Dashboard Not Updating: If you transitioned from YAML and the dashboard stopped updating, verify that the new Entity IDs exactly match the old ones (e.g.,
sensor.solix_x1_daily_pv_generation). See the migration section above. - Duplicate Integration Error: The integration prevents adding the same inverter IP twice. If you see an "already configured" error, check your existing integrations.
This integration is community-supported and not officially affiliated with Anker. Use at your own risk.