diff --git a/_deploy b/_deploy index 1f74908bdf1..7b44ce4deeb 160000 --- a/_deploy +++ b/_deploy @@ -1 +1 @@ -Subproject commit 1f74908bdf147629f9b317058316714e2ffd1ec2 +Subproject commit 7b44ce4deebc812e4fb978358d04cb0af15c44cd diff --git a/source/components/automation.markdown b/source/components/automation.markdown index 54fdefc8c70..74ac93b01bb 100644 --- a/source/components/automation.markdown +++ b/source/components/automation.markdown @@ -21,8 +21,8 @@ automation: # Type of trigger and information for the trigger platform: state state_entity_id: sun.sun - state_from: above_horizon - state_to: below_horizon + state_from: 'above_horizon' + state_to: 'below_horizon' # Action to be done when trigger activated execute_service: notify.notify @@ -53,25 +53,29 @@ Here are some example values: This allows you to trigger actions based on state changes of any entity within Home Assistant. You can omit the `state_from` and `state_to` to match all. ``` -# Match when the sun sets + # Match when the sun sets platform: state state_entity_id: sun.sun - state_from: above_horizon - state_to: below_horizon + state_from: 'above_horizon' + state_to: 'below_horizon' # Match when a person comes home platform: state state_entity_id: device_tracker.Paulus_OnePlus_One - state_from: not_home - state_to: home + state_from: 'not_home' + state_to: 'home' # Match when a light turns on platform: state state_entity_id: light.Ceiling - state_from: off - state_to: on + state_from: 'off' + state_to: 'on' ``` +
+ Use quotes around your values for state_from
and state_to
to avoid the YAML parser interpreting some values as booleans.
+