This automation I did doesn’t work, is there a typo or something here? I’ve looked at the cookbook and similar automations on the forum but can’t sort it out.
The automation I have without the weekdays works.
# Tänd lamporna kl 06.00
- alias: Tänd lamporna vid 06.00
initial_state: 'on'
trigger:
- platform: time
at: "06:00:00"
condition:
- condition: state
entity_id: group.devices_adults
state: 'home'
action:
- service: light.turn_on
entity_id: group.light_vardagsrum
- service: light.turn_on
entity_id: group.light_hallen
# Tänd lamporna kl 06.00
- alias: Tänd lamporna vid 06.00
initial_state: 'on'
trigger:
- platform: time
at: "06:00:00"
condition:
condition:
conditions:
- condition: state
entity_id: group.devices_adults
state: 'home'
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- service: light.turn_on
entity_id: group.light_vardagsrum
- service: light.turn_on
entity_id: group.light_hallen