The only option you have to use is “all_day” when it’s true.
And you can’t combine the conditions the way I created it. You have to keep them separate in order for the logic to work. There may be other ways of doing it but this does in fact work.
alias: Turn on light at 05:15 on weekdays (excluding holidays)
description: ""
triggers:
- at: "05:15:00"
trigger: time
conditions: []
actions:
- choose:
- conditions:
- condition: state
entity_id: calendar.gtfalmi_gmail_com
attribute: all_day
state: true
enabled: true
sequence:
- stop: It's a holiday!!
enabled: true
- conditions:
- condition: time
weekday:
- sun
- sat
sequence:
- stop: Because it's the weekend!
- data: {}
action: scene.turn_on
target:
entity_id: scene.godmorgon
mode: single
Hallelujah! Good to hear! Now that it’s working, you can create a duplicate and edit the duplicate to clean up the code a bit more if you want. At least you have a working one as the backup.
@gtfalmi, sorry! I didn’t know this existed, nor did I think to even search for something like this. But hey, the way I see it, you still learned from doing what we did. It could prove useful for something else later. So not really a waste of time entirely!