Home Assistant

Activating the Solar Cube integration in Home Assistant

This guide explains how to activate the Solar Cube HEMS integration from the Home Assistant web interface. It assumes that the integration files already exist inside the Home Assistant container. If you need to install the Solar Cube integration, please follow the steps described here: https://github.com/solarcube-io/solar-cube-integration

I. Add the Solar Cube integration in the web interface

Visit your Home Assistant web interface at https://solarcube.local. The integration should be available in the standard Home Assistant integration setup wizard.

1

Go to Devices & Services

In Home Assistant, open Settings and then select Devices & Services.

This page shows all integrations currently configured in your Home Assistant instance.

Screenshot 1 — Devices & Services in Home Assistant
Screenshot 1 — Devices & Services in Home Assistant

2

Click Add Integration

Click Add Integration to open the list of available integrations.

Screenshot 2 — Add Integration button
Screenshot 2 — Add Integration button

3

Search for Solar Cube

In the search field, type Solar Cube or Solar Cube HEMS, then select the integration from the list.

If the integration is not visible:

Screenshot 3 — searching for the Solar Cube integration
Screenshot 3 — searching for the Solar Cube integration

II. Complete the Solar Cube configuration form

The configuration form connects Home Assistant to Solar Cube data stored in InfluxDB 2.x. In most installations, you can keep the default values and provide only the InfluxDB token.

4

Enter the basic connection parameters

In the Solar Cube Configuration form, fill in the InfluxDB connection fields.

Field in Home AssistantRecommended valueDescription
NameSolar CubeThe integration instance name displayed in Home Assistant.
InfluxDB URLhttp://influxdb2:8086The InfluxDB address reachable from the Home Assistant container. If InfluxDB uses a different service name or IP address, enter the correct address.
InfluxDB tokenToken with read permissionsThe token can be left empty only if influxdb_token is configured in configuration.yaml.
InfluxDB organizationsolarcubeThe organization name configured in InfluxDB.
Data bucketdbThe bucket containing live Solar Cube measurements.
Agents bucketagentsThe bucket containing forecasts, optimizer actions and agent data.
Screenshot 4 — basic Solar Cube configuration
Screenshot 4 — basic Solar Cube configuration

5

Decide whether to run the frontend resource installer

The Run installer to download required dependencies option allows the integration to download and register the Lovelace card resources required by Solar Cube dashboards.

Important: when this option is enabled, the integration may download external Lovelace JavaScript modules and store them in /config/www/solar_cube. If your Home Assistant installation does not have internet access, or if you want to manage frontend resources manually, disable this option and add the resources in Home Assistant under Settings → Dashboards → Resources.

6

Submit the configuration

Click Submit. Home Assistant will verify the InfluxDB connection, token validity and bucket access.

Expected result: the Solar Cube integration is added to the integration list, and Home Assistant automatically creates Solar Cube sensors.

III. Optional calendar and dashboard configuration

The integration can automatically create sensors and dashboards. For selected automations, it is also recommended to prepare a local Home Assistant calendar.

7

Add Local Calendar if you use Solar Cube automations

Go to Settings → Devices & Services → Add Integration and select Local Calendar.

Create a calendar named solar_cube. This name allows Solar Cube automations to use the calendar.solar_cube entity.

Screenshot 5 — adding Local Calendar
Screenshot 5 — adding Local Calendar

8

Check dashboards in the sidebar menu

If dashboard import was enabled, Solar Cube dashboards should appear in the Home Assistant sidebar after the configuration is complete.

  • Solar Cube live dashboard,
  • Solar Cube history dashboard,
  • forecast and optimizer actions dashboard.
Screenshot 6 — Solar Cube dashboards in the Home Assistant sidebar
Screenshot 6 — Solar Cube dashboards in the Home Assistant sidebar

9

Perform a hard browser refresh

If the dashboards are visible but Lovelace cards do not load correctly, perform a hard browser refresh.

  • Windows/Linux: Ctrl + F5
  • macOS: Cmd + Shift + R

If the issue continues, restart Home Assistant and check resources under Settings → Dashboards → Resources.

Screenshot 7 — Resources for Solar Cube dashboards
Screenshot 7 — Resources for Solar Cube dashboards

IV. Verify that the integration works correctly

After adding the integration, check that the sensors were created, values are being updated and Solar Cube dashboards display data correctly.

10

Check the integration in Devices & Services

Return to Settings → Devices & Services and open the Solar Cube integration tile.

The integration should be visible as active and should not show authorization or connection errors.

Screenshot 8 — Solar Cube integration tile
Screenshot 8 — Solar Cube integration tile

11

Verify created entities

Open the integration entity list and confirm that Solar Cube sensors have been created, such as power, voltage, energy, battery state, prices, forecasts and optimizer actions.

Tip: first values may appear after a short delay because some data is read cyclically from InfluxDB.
Screenshot 9 — Solar Cube entities in Home Assistant
Screenshot 9 — Solar Cube entities in Home Assistant

12

Check data on the Solar Cube dashboard

Open the Solar Cube dashboard and check whether current PV, battery, grid and forecast data is displayed.

The integration works correctly if:

  • the integration tile does not show any error,
  • sensors have current values,
  • Solar Cube dashboards open without Lovelace card errors,
Screenshot 10 — Solar Cube dashboard in Home Assistant
Screenshot 10 — Solar Cube dashboard in Home Assistant

V. Common issues and quick fixes

If the integration does not start correctly, check the points below before repeating the configuration.

  • Solar Cube does not appear in the integration list — install the Solar Cube integration by following the steps described here: https://github.com/solarcube-io/solar-cube-integration.
  • Cannot connect — check the PV Profile in the My Account section here: https://portal.solarcube.io and update settings if required.
  • Sensors are created but have no values — check whether the current Solar Cube device is connected to the PV inverter and the inverter IP address is added to the PV Profile.
  • The dashboard shows Lovelace card errors — perform a hard browser refresh, check resources under Settings → Dashboards → Resources, or run the frontend installer again.
  • Dashboards did not appear in the sidebar — check whether Import dashboards was enabled during configuration. If needed, open the integration options and enable dashboard import again.
  • Automations do not create calendar events — add the Local Calendar integration and create a calendar named solar_cube.