Greetings,
Recently I’ve been in battle with my automations. There’s one automation that tries to turn OFF all my lamps (group.allanatt) every hour after midnight if my bedlight (switch.undersangenlampa) is turned OFF
- alias: VardagTurnOFF
trigger:
- platform: time
at: '00:00:00'
- platform: time
at: '01:00:00'
- platform: time
at: '02:00:00'
- platform: time
at: '03:00:00'
- platform: time
at: '04:00:00'
- platform: time
at: '05:00:00'
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
- condition: state
entity_id: switch.undersangenlampa
state: 'off'
action:
service: homeassistant.turn_off
entity_id: group.allanatt
I dont understand why it doesn’t work. It doesn’t give me any errors when I check config
EDIT: The weekday condition is important as I want to develop this further to have different times for different days, but I want this one to work first
Kind regards,