JoeC3
(Joe Cotellese)
1
Hi!
I’d like to setup an automation which will
- at 10:0pm set the hallway light to 1%
- at 6am set the hallway light to 100%
I know how to do that with two separate automations. However it seems like it should be something I can do with a single automation.
Can anyone point me in the right direction?
123
(Taras)
2
alias: example
trigger:
- platform: time
at:
- '06:00:00'
- '22:00:00'
condition: []
action:
- service: light.turn_on
target:
entity_id: light.hallway
data:
brightness_pct: "{{ iif(now().hour == 6, 100, 1) }}"
4 Likes
JoeC3
(Joe Cotellese)
4
This worked great! I figured I’d have to do something directly in Yaml but wasn’t sure where to begin.
1 Like