Smart SolaX Automation in Home Assistant - with self learning

A fully automated energy-optimisation suite powered by ChatGPT + Home Assistant

If you’re running a SolaX inverter system, switch between Octopus Energy Flux and Cosy tariffs during Summer and Winter months, and want Home Assistant to manage it intelligently — I’ve published my full working setup on GitHub :point_down:

:link: SolaX Automation in Home Assistant


:zap: What It Does

This automation suite manages your SolaX hybrid inverter system to:

  • :white_check_mark: Minimise Grid Charging
  • :white_check_mark: Minimise PV Clipping
  • :white_check_mark: Maximise Export Revenue
  • :white_check_mark: Run a Free Energy Session Controller
  • :white_check_mark: Run an Energy Saving Controller
  • :white_check_mark: Include External Temperature Compensation
  • :white_check_mark: Automatically switch between Octopus Cosy & Flux tariffs

:mag: Learning Layer — Continuous Optimisation

At the core of the system is a robust automated learning layer that continually improves accuracy between forecasted and actual performance, learning from:

  • :sunny: PV Generation
  • :zap: Daily Demand
  • :crescent_moon: Evening Demand (especially useful for ASHPs and the Cosy Tariff)
  • :snowflake: Minimum Daily Temperature (anticipates increased heating usage)

This learning layer automatically adjusts the system’s bias over time, keeping forecasts and plans realistic while protecting battery charge levels and grid-import costs.


:house_with_garden: Tested & Proven Setup

Designed for both single and parallel inverter systems — tested live with:

  • 2 × SolaX X1 Gen4 Hybrid Inverters
  • 2 × 11.2 kWh battery banks
  • Fully compatible with any SolaX Modbus-enabled inverter (just map your entities and create the helpers).

All code is stable, production-tested, and running daily in my home.
Installation steps are included.


:speech_balloon: Linked Chat — How to Build YAML with ChatGPT

I’ve also documented how I used ChatGPT to generate and manage all my YAML automations:
:link: ChatGPT-HA-Docs on GitHub


Please Note: This isn’t a product — just sharing the result of months of development and testing to help others streamline their energy management.

Would love to hear how it works for you — feedback, tweaks, or integrations welcome! :rocket:

1 Like