Hi All, I am trying to set up an automation that would control my heating in a hybrid manner (gas + electric vs electric only)
This is what I have so far - the morning selector works fine, however when the gas boiler is engaged, the quota trigger does not seem to work properly. What am I doing wrong? Should I change the mode to Parallel
perhaps?
Automation code
alias: "Heating: Daily schedule"
description: >-
Gas-electric hybrid schedule for the entire day
Checks the outside temperature at 6:30 every morning and depending on the
measurement, it triggers either full electric heating or Gas-electric hybrid
schedule. When Gas heating is engaged, it should switch to full electric after consuming 3.5 m3 (daily quota)
trigger:
- platform: time
at: "06:30:00"
id: Morning
- platform: state
entity_id:
- sensor.daily_gas_consumption
to: "3.5"
id: Gas quota reached
enabled: true
- platform: time
at: "19:00:00"
id: Evening
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- Morning
sequence:
- alias: >-
Turn on Gas heating if outside temp is below 3 Celsius, else
switch on A/C
if:
- condition: numeric_state
entity_id: sensor.home_temperature
below: 3
then:
- service: climate.set_temperature
data:
temperature: 22.5
target:
entity_id:
- climate.gaz_futes
enabled: true
else:
- service: climate.set_temperature
target:
entity_id:
- climate.nappali_ac
- climate.nobo_heater
data:
hvac_mode: heat
temperature: 22.5
- conditions:
- condition: and
conditions:
- condition: trigger
id:
- Gas quota reached
enabled: true
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
before: "10:00:00"
sequence:
- service: climate.set_hvac_mode
data:
hvac_mode: heat
target:
entity_id: climate.nappali_ac
- service: climate.set_temperature
data:
temperature: 10
target:
entity_id: climate.gaz_futes
- service: climate.set_temperature
data:
temperature: 22.5
target:
entity_id: climate.nobo_heater
- conditions:
- condition: trigger
id:
- Evening
sequence:
- service: climate.set_temperature
data:
temperature: 17
target:
entity_id: climate.nobo_heater
mode: single