Skip to content

martinknechtel/sungrow-tibber-home-assistant

Repository files navigation

Sungrow + Tibber to save money 💴 (and the planet) 🌍

Goal

Charge your home battery in cheap Tibber hours, consume from the grid in average price times, consume from home battery in expensive hours.

Diagram with Tibber price over time and charging your home battery at the right time

In this example, the result we want to achieve would look like this. The battery has been charged during the cheapest hours 2:00-4:00, consumed in the expensive hours 8:00-21:00, and the rest of the day battery was bypassed and the grid powered the house at a relatively low price where a charge-discharge battery cycle would not pay off. Animation showing successful battery and grid use times

Manual Alternative

At first I used the Sungrow app iSolarCloud. I manually scheduled time windows to charge and discharge. Look for Forced Charging, Battery Use Time, Weekend Discharging in the app

Screenshot of iSolarCloud

Prerequisites

Simulate first

Create the automation automation-simulate.yaml. Have no fear since for now it only posts notifications to your Home Assistant UI, we will extend this simulation mode with real action in next section. To install, create a new Automation in the UI, switch to yaml view, and copy&paste. If you want to learn more about creating Automations, read the documentation.

Notifications only, no action yet

Action!

Make your automation do something by calling the scripts that come with the Sungrow modbus integration from the Prerequisites section: automation-productive.yaml. If you want to debug it, you can check the Traces of your Automation.

Traces of the Automation

Add further conditions to refine

Here is automation-extended.yaml with the following extensions:

  • I realized, the battery is not charged while in bypass mode, so I use the already existing sensor exporting_power as trigger.
  • And I realized in some weeks I do not want to charge my battery from the grid, the sun delivers enough if I consume from the battery only in expensive hours, so I added a toggle battery_recharge_when_cheap_tibber_price. Creating a plain new toggle is easily done as https://www.home-assistant.io/integrations/input_boolean/, remember to use the same name as I did or change it in your automation yaml.

Sensor for Exporting Power existed and I added a toggle to control Forced Charge

You don't have Tibber yet? [affiliate links]

  • English short version:
  • German long version:
    • Strom ist immer dann billig, wenn besonders viel Solar und Windstrom im Netz ist. Doppelter Nutzen also! Du kannst Geld sparen, die Umwelt schonen und gleichzeitig unnötigen Energieverbrauch vermeiden. Wie das geht? Mit den stundenaktuellen Strompreisen von Tibber kannst du deinen Verbrauch einfach auf die günstigsten Stunden verlagern und teure Stunden vermeiden. Probiere es aus, und wir bekommen beide 50 € als Bonus, den wir im Tibber Store einlösen können. ⚡ Lies hier mehr dazu: https://invite.tibber.com/r664wqgc
    • Und falls bei dir wie bei mir keine Wärmepumpe geht, dann gibt es 100% Ökogas. Polarstern ist ein unabhängiger Ökoenergieversorger, den ich dir ans Herz legen möchte. Die bieten nur saubere Energie, fördern die Energiewende weltweit und sind von der Gemeinwohl-Ökonomie zertifiziert. Ich find's super. Und der Wechsel ist in wenigen Minuten erledigt - wirklich! Mit meinem Empfehlungscode BC3578BV bekommst du außerdem einen Willkommensbonus von 20 Euro auf deine erste Jahresrechnung. Schau sie dir gerne mal an. https://www.polarstern-energie.de/entdecke-polarstern/?rc=6H5ZZZN4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published