mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 14:26:51 +00:00
modified an error on the config syntax (#1446)
* modified an error on the config syntax as stated here https://home-assistant.io/getting-started/scripts-conditions/ under condition: can't set platform: time but condition: time * Update automation-examples.markdown Address feedback from @fabaff
This commit is contained in:
parent
e05b408b9d
commit
1dd95ed15f
@ -27,10 +27,10 @@ automation:
|
|||||||
condition:
|
condition:
|
||||||
# Prefix the first line of each condition configuration
|
# Prefix the first line of each condition configuration
|
||||||
# with a '-'' to enter multiple
|
# with a '-'' to enter multiple
|
||||||
- platform: state
|
- condition: state
|
||||||
entity_id: group.all_devices
|
entity_id: group.all_devices
|
||||||
state: 'home'
|
state: 'home'
|
||||||
- platform: time
|
- condition: time
|
||||||
after: '16:00:00'
|
after: '16:00:00'
|
||||||
before: '23:00:00'
|
before: '23:00:00'
|
||||||
action:
|
action:
|
||||||
@ -55,7 +55,7 @@ automation:
|
|||||||
zone: zone.home
|
zone: zone.home
|
||||||
entity_id: device_tracker.paulus
|
entity_id: device_tracker.paulus
|
||||||
condition:
|
condition:
|
||||||
platform: time
|
condition: time
|
||||||
after: '20:00'
|
after: '20:00'
|
||||||
action:
|
action:
|
||||||
service: notify.notify
|
service: notify.notify
|
||||||
|
Loading…
x
Reference in New Issue
Block a user