Automations: The state trigger keyword state and the time trigger keyword after were deprecated in 0.46. They have now been removed. Use to and at instead. (@amelchio - #8510) (automation.state docs) (automation.time docs) (breaking change)
- alias: "Hasee in"
trigger:
platform: state
entity_id: input_boolean.chen_home
to: 'on'
from: 'off'
condition:
condition: time
after: '08:00:00'
before: '18:00:00'
action:
service: light.turn_on
entity_id: light.sonoff_gongzuo_2,light.sonoff_hou8
So is the state: 'below_horizon' under the condition part still ok like I have in my config file here? Is my understanding that it would only be an issue if the to: 'idle' part was state: 'idle' correct?
trigger:
- platform: state
entity_id: media_player.playstation_4
from: 'playing'
to: 'idle'
condition:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
Automations: The state trigger keyword state and the time trigger keyword after were deprecated in 0.46. They have now been removed. Use to and at instead. (@amelchio - #8510) (automation.state docs) (automation.time docs) (breaking change)