I try to use the function Configuration → Automations to program the following sequence,
1 - Monday, Tuesday and Friday, 1h30 before sunset, perform an action
2 - Saturday and Sunday, 1h00 before sunset, perform an action
3 - Wednesday, 50 minutes before sunset, perform an action.
I managed to get this. It works well for sequence 1. I don’t know how to introduce the other 2.
alias: On_RC_CD
description: ‘’
trigger:
platform: sun
event: sunset
offset: ‘-01:30’
condition:
condition: time
weekday:
mon
wed
fri
action:
service: switch.turn_on
target:
entity_id:
- switch.smart_switch_6_2
mode: single
Like nickrout said, you could just simply create 3 separate automations.
Or you could also set the 3 above different triggers, give them all a unique trigger id.
The use the choose option, have 3 choosers with 3 different actions based on the trigger id and then put your day conditions under each separate choose action.