Рет қаралды 3,026
A Home Assistant automation to automatically change your battery settings based on the weather forecast for the next day.
This automation uses solar production forecasting data from the Solcast integration along with the Sunsynk/DEYE ESP32 integration to change the settings on the inverter.
If you don't have the Solcast integration installed, you can find the video on how to install it at • Solar Forecasting
The Sunsynk/DEYE Esp32&RS485 Integration video can be found at
• Setting up your ESP32 ...
This is the YAML code you can use for the automation:
alias: Forecast Tomorrow
description: ""
trigger:
- platform: time
at: "23:00:00"
condition: []
action:
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.forecast_tomorrow
below: "40"
sequence:
- service: scene.turn_on
target:
entity_id: scene.low_solar_forecast
data: {}
- conditions:
- condition: numeric_state
entity_id: sensor.forecast_tomorrow
above: "40"
sequence:
- service: scene.turn_on
target:
entity_id: scene.high_solar_forecast
data: {}
default: []
mode: single
00:00 Introduction
03:10 Automation Requirements
04:17 Setting the Scenes
14:00 Automation Setup