Integrating your solar panels

Gain insight into your energy production by integrating your solar panels into Home Assistant.

If you also set up the Solar Forecast integration, you will be able to see expected solar production and automate based on planned production.

Graphic showing energy flowing from the solar panels to Home Assistant and back to the grid.

Hardware

Home Assistant will need to know the amount of energy that is being produced. This can be done in various ways.

Using a CT clamp sensor

Current transformer (CT) clamp sensors measure your energy usage by looking at the current passing through an electrical wire. This makes it possible to calculate the energy usage. In Home Assistant we have support for off-the-shelf CT clamp sensors or you can build your own.

  • The off-the-shelf solution that we advise is the Shelly EM. The device has a local API, updates are pushed to Home Assistant and it has a high quality integration.
  • You can build your own using ESPHome’s CT Clamp Current sensor or energy meter sensors like the ATM90E32. For the DIY route, check out this video by digiblur to get started.
  • Using a Raspberry Pi, you can use a CT clamp HAT from LeChacal called RPICT hats. They can be stacked to expand the number of lines to monitor. They also provide Active, Apparent, and Reactive power and power factor for single-phase and three-phase installations. They integrate with Home Assistant using MQTT.

Attention! Installing CT clamp sensor devices requires opening your electrical cabinet. This work should be done by someone familiar with electrical wiring and may require a licensed professional in some regions. Your qualified installer will know how to do this.

Disclaimer: Some links in this section are affiliate links.

Connecting to your inverter

Some solar inverters have APIs that can be read by Home Assistant.

Energy integrations