I have the following simple automation to turn on my office light whilst I’m at work (in my home office) once the sun sets, but I’d like to add a condition that it only turns on the light if there’s no all day calendar entry containing the word “holiday”.
I’ve had a look at Calendar Triggers but I think this would probably need to be a condition (along the lines of if title does not contain "holiday"
) but I’ve not been able to figure out how to go about setting that condition up.
I’m not too sure how to do this or if it’s possible, so I’m wondering if anybody has some suggestions?
alias: Turn on Office Big Light
description: ""
trigger:
- platform: sun
event: sunset
offset: "-00:10:00"
condition:
- condition: time
after: "09:00:00"
before: "17:30:00"
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- service: light.turn_on
metadata: {}
data: {}
target:
entity_id: light.office_big_light
mode: single