Hi all
This used to work. Over the past while it’s gotten more and more unreliable and I don’t know what’s wrong with it.
Could someone take pity and point out my error? I’m the first to admit that I don’t even understand HASS syntax.
thanks
automation:
alias: "Set dim level dusk"
trigger:
- platform: time
after: "19:15" #instantaneously at 8pm only, not 'after'
- platform: state #implicit OR betwen the two conditions
entity_id: light.kitchen
from: 'off'
to: 'on'
condition:
- platform: state
entity_id: light.kitchen
state: 'on'
- platform: time #implicit AND
after: "19:15"
before: "21:59"
action:
service: light.turn_on
entity_id: light.kitchen
data:
brightness: 50
automation 2:
alias: "Set dim level 10pm"
trigger:
- platform: time
after: "22:00" #instantaneously at 10pm only, not 'after'
- platform: state #implicit OR betwen the two conditions
entity_id: light.kitchen
from: 'off'
to: 'on'
condition:
- platform: state
entity_id: light.kitchen
state: 'on'
- platform: time #implicit AND
after: "22:00"
before: "23:59"
action:
service: light.turn_on
entity_id: light.kitchen
data:
brightness: 25
automation 3:
alias: "Set dim level overnight"
trigger:
- platform: time
after: "00:00" #instantaneously at midnight only, not 'after'
- platform: state #implicit OR betwen the two conditions
entity_id: light.kitchen
from: 'off'
to: 'on'
condition:
- platform: state
entity_id: light.kitchen
state: 'on'
- platform: time #implicit AND
after: "00:00"
before: "05:45"
action:
service: light.turn_on
entity_id: light.kitchen
data:
brightness: 15
automation 4:
alias: "Set dim level daytime"
trigger:
- platform: time
after: "07:00" #instantaneously at 7am only, not 'after'
- platform: state #implicit OR betwen the two conditions
entity_id: light.kitchen
from: 'off'
to: 'on'
condition:
- platform: state
entity_id: light.kitchen
state: 'on'
- platform: time #implicit AND
after: "07:00"
before: "18:59"
action:
service: light.turn_on
entity_id: light.kitchen
data:
brightness: 254