Hi there.
I am attempting the following:
- On the dashboard is a toggle switch and an input datetime card.
- If the toggle switch is ON, at the set time, a light group will automatically turn on.
- If the toggle switch is OFF, nothing happens.
The first part works, but somehow when I switch the toggle to OFF, the automation still runs at the specified time. My code is like this:
- id: '1654766877467'
alias: 'Light group on at specific time'
description: ''
trigger:
- platform: time
at: input_datetime.xxxxx_wakeup
condition:
- condition: state
entity_id: input_boolean.xxxxx_wakeup_toggle
state: 'on'
action:
- type: turn_on
device_id: 9dddvc2915202b8e7ea77ea3e18ba1556cb
entity_id: light.group.bedroom
domain: light
mode: single
Obvisously I am overlooking something, but for the life of me I can’t figure it out.
Any help is much appreciated.