SunSynk/Deye Integration using API

Hi all,

I’ve developed a native Home Assistant integration for SunSynk / Deye hybrid inverters and I’m currently looking for beta testers :grinning_face_with_smiling_eyes:

The integration currently uses the SunSynk Cloud API (not local logger polling).

Current features:

  • PV generation
  • Battery SOC
  • Grid import/export
  • Home Assistant Energy Dashboard support

Planned features:

  • SolarForecast integration for automatic charge/discharge optimisation
  • Octopus UK integration for automatic charging/discharging based on tariffs

Looking for users with different inverter/logger setups to help test compatibility and stability.

Inspired by the original SolarSynkV3 add-on by martinville.

Rewritten as a native Home Assistant integration with async support, proper entity model, config flow UI, token caching and writable settings entities.

[UPDATE] Solar Forecast sensors added, Open-Meteo integration, no API key needed

Quick update on the integration, new feature landed today.

What's new: Solar Forecast

Six new sensor entities powered by Open-Meteo (free, no account, no API key):

Sensor Unit
Solar Forecast Today kWh
Solar Forecast Tomorrow kWh
Cloud Cover %
Precipitation mm
Solar Irradiance GHI W/m²
Solar Irradiance DNI W/m²

The kWh forecast is calculated as Σ(GHI per hour) / 1000 × panel_kWp × performance_ratio - so it accounts for your actual installed capacity and system losses, not just raw irradiance.

Setup

Go to Settings → Devices & Services → Sunsynk → Configure and fill in one field:

  • Panel Peak Power (kWp) - your total installed panel capacity

That's it. Latitude and longitude are pulled automatically from your HA home location. You can override them if your panels are somewhere else (e.g. farm/remote install).

Data refreshes every 30 minutes.

Example automation - boost charge when tomorrow looks cloudy

automation:
  - alias: "High charge when forecast is poor"
    trigger:
      - platform: numeric_state
        entity_id: sensor.solar_forecast_tomorrow
        below: 5
    action:
      - service: number.set_value
        target:
          entity_id: number.sunsynk_YOURSERIAL_setting_charge_current
        data:
          value: 100

Install / update

  • HACS: update as usual
  • Manual: pull latest from GitHub and restart HA

[Integration] Sunsynk / Deye v1.6.0 — Tariff-aware battery charging & discharging

Hey everyone,

v1.6.0 of the Sunsynk / Deye integration is out with the most requested 
feature yet — automatic battery charging and discharging based on your 
electricity tariff.

---

🔋 What's new

Cheap-rate charging
The integration watches any HA price sensor. When the price drops below 
your threshold and your battery isn't full yet, it automatically raises 
the charge current. When the price rises or the battery hits your target 
SOC, it restores normal current. No automations needed.

Expensive-rate discharging
When the price spikes above a second threshold and your battery is above 
a minimum SOC, discharge current is raised to sell energy back to the grid. 
Works great with Octopus Agile dispatch windows.

Works with any operator
Octopus Agile · NordPool · Tibber · G12 · any HA sensor or input_number.

New entities
- Tariff Manager switch — starts OFF, you enable it manually
- Tariff Mode sensor — idle / charging / discharging / disabled
- Tariff Price Quality diagnostic sensor — ok / stale / unavailable / invalid

Safety
If your price feed goes down, any active mode stops automatically and 
normal currents are restored. Configurable max age (default 90 min).

Schedule
Optional active hours — e.g. only run between 00:00 and 06:00.

HA persistent notifications on every mode change.

---

⚙️ Setup

Settings → Devices & Services → Sunsynk → Configure
Scroll to the Tariff section, pick your price sensor, set thresholds and 
currents, save, then flip the Tariff Manager switch to ON.

---

📦 Install

The integration is not yet in the default HACS store — HACS approval is 
in progress. In the meantime add it as a custom repository:

1. HACS → Custom repositories
2. URL: https://github.com/MarcinG81/SunSynk_HA_Integration
3. Category: Integration
4. Install and restart HA

Or manually copy custom_components/sunsynk/ into your config folder.

GitHub: https://github.com/MarcinG81/SunSynk_HA_Integration
Wiki: https://github.com/MarcinG81/SunSynk_HA_Integration/wiki

Questions welcome in the thread or in GitHub Discussions!