The automation state trigger has deprecated its state alias (#2758)
The "state" used to be an alias for "to" but this was deprecated to make the meaning more clear. This commit updates the examples to no longer use the deprecated name.
This commit is contained in:
parent
8c13dcfe99
commit
476449131c
10 changed files with 23 additions and 25 deletions
|
@ -26,7 +26,7 @@ automation:
|
|||
offset: '-01:00:00'
|
||||
- platform: state
|
||||
entity_id: group.all_devices
|
||||
state: 'home'
|
||||
to: 'home'
|
||||
condition:
|
||||
# Prefix the first line of each condition configuration
|
||||
# with a '-'' to enter multiple
|
||||
|
@ -45,7 +45,7 @@ automation:
|
|||
trigger:
|
||||
platform: state
|
||||
entity_id: group.all_devices
|
||||
state: 'not_home'
|
||||
to: 'not_home'
|
||||
action:
|
||||
service: light.turn_off
|
||||
entity_id: group.all_lights
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue