Hi community,
my name is Fritz. This is my first post in this forum.
I feel that I have read my question here many times, but always in a different variation and I have never been able to implement the answer correctly so that my problem keeps unresolved.
A brief description of my situation: I have a radiator thermostat controlled by Home Assistant (current version, Raspberry 4 installation, Hass.io). I control this thermostat with a weekday and weekend automation. Very simple.
YAML code for weekday automation - just to show you. This works
alias: automation heating workday
description: ""
triggers:
- trigger: time
at: "04:00:00"
id: Trigger ID automation heating workday ON
- trigger: time
at: "06:00:00"
id: Trigger ID automation heating workday OFF
- trigger: time
at: "19:00:00"
id: Trigger ID automation heating workday evening ON
- trigger: time
at: "20:30:00"
id: Trigger ID automation heating workday evening OFF
conditions:
- condition: state
state: "on"
entity_id: binary_sensor.workday_sensor
actions:
- if:
- condition: trigger
id:
- Trigger ID automation heating workday ON
then:
- action: climate.set_temperature
metadata: {}
data:
temperature: 23
target:
entity_id: climate.thermostat1
- if:
- condition: trigger
id:
- Trigger ID automation heating workday OFF
then:
- action: climate.set_temperature
metadata: {}
data:
temperature: 19.5
target:
entity_id: climate.thermostat1
- if:
- condition: trigger
id:
- Trigger ID automation heating workday evening ON
then:
- action: climate.set_temperature
metadata: {}
data:
temperature: 23
target:
entity_id: climate.thermostat1
- if:
- condition: trigger
id:
- Trigger ID automation heating workday evening OFF
then:
- action: climate.set_temperature
metadata: {}
data:
temperature: 19.5
target:
entity_id: climate.thermostat1
mode: single
Now I would like to add another automation to extend the heating for individual days. I would like to enter these days, weekdays, in the local calendar as an all-day appointment with the designation “Free”. On these days, the automation should also trigger an additional heating period. I have created this automation separately from the weekday automation.
The following automation does not work because
- if I enter “Free” in the calendar on the next day, the calendar condition is still fulfilled.
- The same behavior occurs if I enter “Free” a few days in the future.
- If I delete “Free” from the calendar, the condition is not fulfilled
I have the impression that the condition is fulfilled as soon as there is some entry with “Free” in the calendar.
alias: automation heating workday free
description: ""
triggers:
- trigger: time
at: "07:30:00"
id: "0730"
- trigger: time
at: "09:30:00"
id: "0930"
conditions:
- condition: state
entity_id: binary_sensor.workday_sensor
state: "on"
- condition: state
entity_id: calendar.free_days
attribute: message
state: Free
actions:
- if:
- condition: trigger
id:
- "0730"
then:
- action: climate.set_temperature
metadata: {}
data:
temperature: 23
target:
entity_id: climate.thermostat1
- if:
- condition: trigger
id:
- "0930"
then:
- action: climate.set_temperature
metadata: {}
data:
temperature: 19.5
target:
entity_id: climate.thermostat1
mode: single
It would be great to find a simple solution for this as I would also like to be able to create controls with additional keywords for all-day calendar entries.
I hope for your support.
many thanks Fritz