-
-
Notifications
You must be signed in to change notification settings - Fork 134
Automations
David Rapaň edited this page Jul 18, 2024
·
40 revisions
Change 'entity_ids' in following automations accordingly 😉
Description: At start of every day reset Program 1 SOC
alias: Inverter Grid Charging Reset
description: ""
trigger:
- platform: time
at: "00:00:00"
condition: []
action:
- service: number.set_value
metadata: {}
data:
value: "40"
target:
entity_id: number.inverter_program_1_soc
mode: single
Description: On Solar forecast change and During T2 set Program 1 SOC
Requirements: Program 1 Time set to match T2
alias: Inverter Grid Charging Program
description: Charge battery during T2 on bad solar forecast
trigger:
- platform: template
value_template: >-
{% if states('sensor.solcast_pv_forecast_forecast_today') > 0 %}true{%
endif %}
condition:
- condition: time
after: "03:00:00"
before: "06:00:00"
- condition: state
entity_id: input_select.grid_metrics_tariff
state: T2
action:
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.solcast_pv_forecast_forecast_today
below: 25
sequence:
- service: number.set_value
metadata: {}
data:
value: "90"
target:
entity_id: number.inverter_program_1_soc
- conditions:
- condition: numeric_state
entity_id: sensor.solcast_pv_forecast_forecast_today
above: 45
sequence:
- service: number.set_value
metadata: {}
data:
value: "25"
target:
entity_id: number.inverter_program_1_soc
mode: single