A Home Assistant custom integration for Sol-Ark inverter systems that connects to the SolArk Cloud API. Monitor your solar system with real-time data and track long-term energy production with full Energy Dashboard support.
- Energy Dashboard Compatible - Native support for Home Assistant's Energy dashboard
- Real-time Monitoring - Live power flow tracking (PV, Battery, Grid, Load)
- Cloud-based - No physical connections required
- 9 Comprehensive Sensors - All critical solar system metrics
- Beautiful Dashboards - Pre-built power flow visualizations
- Long-term Statistics - Automatic energy tracking and historical data
- Easy Setup - Simple configuration through Home Assistant UI
| Entity ID | Description | Unit | Energy Dashboard |
|---|---|---|---|
sensor.solark_pv_power |
Solar panel power | W | Use with Riemann Sum |
sensor.solark_battery_power |
Battery charge/discharge | W | Use with Riemann Sum |
sensor.solark_battery_soc |
Battery state of charge | % | Battery level |
sensor.solark_grid_power |
Net grid power | W | Use with Riemann Sum |
sensor.solark_load_power |
Home consumption | W | Use with Riemann Sum |
sensor.solark_grid_import_power |
Grid import | W | Use with Riemann Sum |
sensor.solark_grid_export_power |
Grid export | W | Use with Riemann Sum |
sensor.solark_energy_today |
Daily production | kWh | โ Direct use |
sensor.solark_energy_total |
Lifetime production | kWh | โ Solar production |
Note: Battery power: positive = discharging, negative = charging
- Home Assistant 2023.5.0 or newer
- Sol-Ark inverter (12K, 15K, 8K, 5K models)
- Active Sol-Ark Cloud account
- Your Plant ID from Sol-Ark portal
- Open HACS โ Integrations
- Click โฎ โ Custom repositories
- Add:
https://github.com/HammondAutomationHub/HomeAssistant_SolArk - Category: Integration
- Find "SolArk Cloud" and click Download
- Restart Home Assistant
- Download latest release
- Copy
custom_components/solarkto your/config/custom_components/directory - Restart Home Assistant
- Log into mysolark.com
- Navigate to your system
- Check the URL:
https://www.mysolark.com/plant/12345 - Your Plant ID is
12345
- Settings โ Devices & Services โ + ADD INTEGRATION
- Search "SolArk Cloud"
- Enter:
- Username: Your Sol-Ark email
- Password: Your Sol-Ark password
- Plant ID: From step 1
- Scan Interval: 30 (seconds)
- Click SUBMIT
- Go to Developer Tools โ States
- Search
solark - Verify 9 sensors with live data
Your integration is fully compatible with Home Assistant's Energy dashboard!
- Settings โ Dashboards โ Energy
- Solar Production โ Add Production
- Select:
sensor.solark_energy_total
- Select:
- Grid Consumption (requires helpers):
- Create Riemann Sum helper from
sensor.solark_grid_import_power - Add to Energy dashboard
- Create Riemann Sum helper from
- Grid Return (if you export):
- Create Riemann Sum helper from
sensor.solark_grid_export_power - Add to Energy dashboard
- Create Riemann Sum helper from
๐ Full Guide: See ENERGY_DASHBOARD_SETUP.md for complete instructions including battery tracking.
Beautiful real-time monitoring with dynamic power flow indicators:
Features:
- Live power values with color coding
- Battery status with dynamic icons
- 24-hour historical charts
- Energy production statistics
Requirements:
- Mushroom Cards (HACS)
- ApexCharts Card (HACS)
Installation:
Option A - UI Method:
- Copy
dashboards/solark_flow.yamlcontent - Settings โ Dashboards โ + ADD DASHBOARD
- โฎ โ Edit Dashboard โ โฎ โ Raw configuration editor
- Paste and save
Option B - YAML File:
- Copy
solark_flow.yamlto/config/dashboards/ - Add to
configuration.yaml:
lovelace:
mode: storage
dashboards:
solark-power:
mode: yaml
title: SolArk Power Flow
icon: mdi:solar-power
show_in_sidebar: true
filename: dashboards/solark_flow.yaml- Restart Home Assistant
automation:
- alias: "Low Battery Warning"
trigger:
platform: numeric_state
entity_id: sensor.solark_battery_soc
below: 20
action:
service: notify.mobile_app
data:
title: "Low Battery"
message: "Battery at {{ states('sensor.solark_battery_soc') }}%"automation:
- alias: "Exporting to Grid"
trigger:
platform: numeric_state
entity_id: sensor.solark_grid_export_power
above: 2000
for: "00:05:00"
action:
service: notify.mobile_app
data:
message: "Exporting {{ states('sensor.solark_grid_export_power') }}W"automation:
- alias: "Battery Fully Charged"
trigger:
platform: numeric_state
entity_id: sensor.solark_battery_soc
above: 95
condition:
condition: numeric_state
entity_id: sensor.solark_battery_power
below: 100
action:
service: notify.mobile_app
data:
message: "Battery full at {{ states('sensor.solark_battery_soc') }}%"template:
- sensor:
- name: "Solar Self-Consumption"
unit_of_measurement: "%"
state: >
{% set pv = states('sensor.solark_pv_power') | float(0) %}
{% set export = states('sensor.solark_grid_export_power') | float(0) %}
{% if pv > 0 %}
{{ ((pv - export) / pv * 100) | round(1) }}
{% else %}
0
{% endif %}template:
- sensor:
- name: "Battery Status"
state: >
{% set power = states('sensor.solark_battery_power') | float(0) %}
{% if power > 100 %}
Discharging
{% elif power < -100 %}
Charging
{% else %}
Idle
{% endif %}- Verify credentials at mysolark.com
- Confirm Plant ID is correct
- Check logs: Settings โ System โ Logs
- Check SolArk Cloud service status
- Increase scan interval to 60 seconds
- Reload integration
- Check debug log:
/config/custom_components/solark/solark_debug.log
- Verify sensors exist: Developer Tools โ States
- Install Mushroom Cards and ApexCharts Card
- Restart Home Assistant
- Clear browser cache (Ctrl+Shift+R)
- Wait 1-2 hours for statistics to build
- Verify
sensor.solark_energy_totalhas data - Check sensor has
state_class: total_increasing - See ENERGY_DASHBOARD_SETUP.md
# configuration.yaml
logger:
logs:
custom_components.solark: debugThen check Settings โ System โ Logs
- Uses
DataUpdateCoordinatorfor efficient polling - OAuth 2.0 authentication with auto-refresh
- Combines data from two API endpoints:
- Energy flow:
/api/v1/plant/energy/{plant_id}/flow - Live data:
/api/v1/dy/store/{sn}/read
- Energy flow:
- Power sensors:
state_class: measurement - Energy sensors:
state_class: total_increasing - Long-term statistics automatically recorded
- Compatible with Energy dashboard
Contributions welcome! Please:
- Fork the repository
- Create feature branch
- Make changes with tests
- Submit Pull Request
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Community: Home Assistant Forums
Provided as-is with no warranty. Use at your own risk.
- Home Assistant community
- Sol-Ark for API access
- All contributors
See CHANGELOG.md for version history.
Note: Not officially affiliated with Sol-Ark. Community-developed integration.
Version: 5.0.0 | Supports: Sol-Ark 5K/8K/12K/15K | HA: 2023.5.0+