From f74237f5824abec226ec49d1f1f3e943645be408 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 24 Apr 2016 09:00:24 +0200 Subject: [PATCH] Automation docs moved to getting started and split up --- sass/custom/_paulus.scss | 1 + source/_components/automation.markdown | 352 +----------------- source/_components/mqtt.markdown | 2 +- .../_components/notify.command_line.markdown | 2 +- source/_components/notify.file.markdown | 2 +- source/_components/notify.instapush.markdown | 2 +- source/_components/notify.markdown | 2 +- source/_components/notify.nma.markdown | 2 +- source/_components/notify.pushetta.markdown | 2 +- source/_components/notify.rest.markdown | 2 +- source/_components/notify.sendgrid.markdown | 2 +- source/_components/notify.slack.markdown | 2 +- source/_components/notify.smtp.markdown | 2 +- source/_components/notify.syslog.markdown | 2 +- source/_components/notify.telegram.markdown | 2 +- source/_components/notify.twitter.markdown | 2 +- source/_components/notify.xmpp.markdown | 2 +- source/_components/proximity.markdown | 2 +- source/_components/sun.markdown | 2 +- source/_components/zone.markdown | 2 +- .../asides/getting_started_navigation.html | 10 +- ...rry-pi-squeezebox-asuswrt-support.markdown | 2 +- ...h-moteino-mqtt-and-home-assistant.markdown | 2 +- ...assistant-goes-geo-with-owntracks.markdown | 2 +- ...retv-and-radiotherm-now-supported.markdown | 2 +- .../2015-11-22-survey-november-2015.markdown | 2 +- ...-amazon-echo-icloud-and-templates.markdown | 2 +- ...xtended-support-for-diy-solutions.markdown | 2 +- ...9-insteon-lifx-twitter-and-zigbee.markdown | 2 +- ...t-plugs-and-neurio-energy-sensors.markdown | 4 +- source/cookbook/index.markdown | 2 +- .../automation-action.markdown | 36 ++ .../automation-condition.markdown | 121 ++++++ .../automation-create-first.markdown | 100 +++++ .../automation-examples.markdown | 64 ++++ .../automation-trigger.markdown | 140 +++++++ .../automation-troubleshooting.markdown | 25 ++ source/getting-started/automation.markdown | 96 +---- .../presence-detection.markdown | 4 +- 39 files changed, 532 insertions(+), 475 deletions(-) create mode 100644 source/getting-started/automation-action.markdown create mode 100644 source/getting-started/automation-condition.markdown create mode 100644 source/getting-started/automation-create-first.markdown create mode 100644 source/getting-started/automation-examples.markdown create mode 100644 source/getting-started/automation-trigger.markdown create mode 100644 source/getting-started/automation-troubleshooting.markdown diff --git a/sass/custom/_paulus.scss b/sass/custom/_paulus.scss index e5824460b2c..0d34fb833b0 100644 --- a/sass/custom/_paulus.scss +++ b/sass/custom/_paulus.scss @@ -264,6 +264,7 @@ p.note { box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); padding: 8px; text-align: center; + text-decoration: none; .img-container { height: 50px; diff --git a/source/_components/automation.markdown b/source/_components/automation.markdown index 85550695486..99e2c26329d 100644 --- a/source/_components/automation.markdown +++ b/source/_components/automation.markdown @@ -11,354 +11,6 @@ logo: home-assistant.png ha_category: Automation --- -This page will go into more detail about the various options the `automation` component offers. If you haven't yet, read the [getting started page on automation](/getting-started/automation/). +Please see the [getting started section] for in-depth documentation on how to use the automation compnoent. -A configuration section of an automation requires a `trigger` and an `action` section. `condition` and `condition_type` are optional. To keep this page compact, all following sections will not show the full configuration but only the relevant part. - - - [Jump to conditions](#conditions) - - [Jump to actions](#actions) - - [Jump to troubleshooting](#troubleshooting) - -```yaml -# Example of entry in configuration.yaml -automation: -# Turns on lights 1 hour before sunset if people are home -# and if people get home between 16:00-23:00 -- alias: 'Rule 1 Light on in the evening' - trigger: - # Prefix the first line of each trigger configuration - # with a '-' to enter multiple - - platform: sun - event: sunset - offset: '-01:00:00' - - platform: state - entity_id: group.all_devices - state: 'home' - condition: - # Prefix the first line of each condition configuration - # with a '-'' to enter multiple - - platform: state - entity_id: group.all_devices - state: 'home' - - platform: time - after: '16:00:00' - before: '23:00:00' - action: - service: homeassistant.turn_on - entity_id: group.living_room - -# Turn off lights when everybody leaves the house -- alias: 'Rule 2 - Away Mode' - trigger: - platform: state - entity_id: group.all_devices - state: 'not_home' - action: - service: light.turn_off - entity_id: group.all_lights - -# Notify when Paulus leaves the house in the evening -- alias: 'Leave Home notification' - trigger: - platform: zone - event: leave - zone: zone.home - entity_id: device_tracker.paulus - condition: - platform: time - after: '20:00' - action: - service: notify.notify - data: - message: 'Paulus left the house' -``` - -## {% linkable_title Triggers %} - -Triggers are what starts the processing of an automation rule. It is possible to specify multiple triggers for the same rule. Once a trigger starts, Home Assistant will validate the conditions, if any, and call the action. - -#### {% linkable_title Event trigger %} -Triggers when an event is being processed. Events are the raw building blocks of Home Assistant. You can match events on just the event name or also require specific event data to be present. - -```yaml -automation: - trigger: - platform: event - event_type: MY_CUSTOM_EVENT - # optional - event_data: - mood: happy -``` - -#### {% linkable_title MQTT trigger %} -Triggers when a specific message is received on given topic. Optionally can match on the payload being sent over the topic. - -```yaml -automation: - trigger: - platform: mqtt - topic: living_room/switch/ac - # Optional - payload: 'on' -``` - -#### {% linkable_title Numeric state trigger %} -On state change of a specified entity, attempts to parse the state as a number and triggers if value is above and/or below a threshold. - -```yaml -automation: - trigger: - platform: numeric_state - entity_id: sensor.temperature - # Optional - value_template: '{% raw %}{{ state.attributes.battery }}{% endraw %}' - # At least one of the following required - above: 17 - below: 25 -``` - -#### {% linkable_title State trigger %} - -Triggers when the state of an entity changes. If only entity_id given will match all state changes. - -```yaml -automation: - trigger: - platform: state - entity_id: device_tracker.paulus - # Optional - from: 'not_home' - to: 'home' - # If given, will trigger when state has been the to state for X time. - for: - hours: 1 - minutes: 10 - seconds: 5 -``` - -

- Use quotes around your values for `from` and `to` to avoid the YAML parser interpreting values as booleans. -

- -#### {% linkable_title Sun trigger %} -Trigger when the sun is setting or rising. An optional time offset can be given to have it trigger for example 45 minutes before sunset, when dusk is setting in. - -```yaml -automation: - trigger: - platform: sun - # Possible values: sunset, sunrise - event: sunset - # Optional time offset. This example is 45 minutes. - offset: '-00:45:00' -``` - -#### {% linkable_title Template trigger %} - -Template triggers work by evaluating a [template] on each state change. The trigger will fire if the state change caused the template to render 'true'. This is achieved by having the template result in a true boolean expression (`{% raw %}{{ is_state('device_tracker.paulus', 'home') }}{% endraw %}`) or by having the template render 'true' (example below). - -```yaml -automation: - trigger: - platform: template - value_template: '{% raw %}{% if is_state('device_tracker.paulus', 'home') %}true{% endif %}{% endraw %}' -``` - -#### {% linkable_title Time trigger %} - -Time can be triggered in many ways. The most common is to specify `after` and trigger at a specific point in time each day. Alternatively, you can also match if the hour, minute or second of the current time has a specific value. You can prefix the value with a `/` to match whenever the value is divisible by that number. You cannot use `after` together with hour, minute or second. - -```yaml -automation: - trigger: - platform: time - # Matches every hour at 5 minutes past whole - minutes: 5 - seconds: 0 - -automation 2: - trigger: - platform: time - # When 'after' is used, you cannot also match on hour, minute, seconds. - # Military time format. - after: '15:32:00' - -automation 3: - trigger: - platform: time - # You can also match on interval. This will match every 5 minutes - minutes: '/5' - seconds: 0 -``` - -#### {% linkable_title Zone trigger %} - -Zone triggers can trigger when an entity is entering or leaving the zone. For zone automation to work, you need to have setup a device tracker platform that supports reporting GPS coordinates. Currently this is limited to the [OwnTracks platform](/components/device_tracker.owntracks/) as well as the [iCloud platform](/components/device_tracker.icloud/). - -```yaml -automation: - trigger: - platform: zone - entity_id: device_tracker.paulus - zone: zone.home - # Event is either enter or leave - event: enter -``` - -## {% linkable_title Conditions %} - -Conditions are an optional part of an automation rule and be used to prevent an action from happening when triggered. Conditions look very similar to triggers but are very different. A trigger will look at events happening in the system while a condition only looks at how the system looks right now. A trigger can observe that a switch is being turned on. A condition can only see if a switch is currently on or off. - -An automation rule can have multiple conditions. By default the action will only fire if all conditions pass. An optional key `condition_type: 'or'` can be set on the automation rule to fire action if any condition matches. In the example below, the automation would trigger if the time is before 05:00 _OR_ after 20:00. - -```yaml -automation: - condition_type: or - condition: - - platform: time - before: '05:00' - - platform: time - after: '20:00' -``` - -If your triggers and conditions are exactly the same, you can use a shortcut to specify conditions. In this case, triggers that are not valid conditions will be ignored. - -```yaml -automation: - condition: use_trigger_values -``` - -#### {% linkable_title Numeric state condition %} - -This type of condition attempts to parse the state of specified entity as a number and triggers if the value matches all of the above or below thresholds. -Either `above` or `below`, or both need to be specified. If both are used, the condition is true when the value is >= `before` *and** < `after`. -You can optionally use a `value_template` to make the value of the entity the same type of value as the condition. - -```yaml -automation: - condition: - platform: numeric_state - entity_id: sensor.temperature - above: 17 - below: 25 -``` - -#### {% linkable_title State condition %} - -Tests if an entity is a specified state. - -```yaml -automation: - condition: - platform: state - entity_id: device_tracker.paulus - state: not_home - # optional: trigger only if state was this for last X time. - for: - hours: 1 - minutes: 10 - seconds: 5 -``` - -#### {% linkable_title Sun condition %} - -The sun condition can test if the sun has already set or risen when a trigger occurs. The `before` and `after` keys can only be set to `sunset` or `sunrise`. They have a corresponding optional offset value (`before_offset`, `after_offset`) that can be added, similar to the [sun trigger](#sun-trigger). - -```yaml -automation: - condition: - platform: sun - after: sunset - # Optional offset value - after_offset: "-1:00:00" -``` - -#### {% linkable_title Template condition %} - -The template condition will test if the [given template][template] renders a value equal to true. This is achieved by having the template result in a true boolean expression or by having the template render 'true'. - - -```yaml -automation: - condition: - platform: template - value_template: '{% raw %}{{ state.attributes.battery > 50 }}{% endraw %}' - # Or value_template could be: - # {% raw %}{% if state.attributes.battery > 50 %}true{% else %}false{% endif %}{% endraw %} -``` - -#### {% linkable_title Time condition %} - -The time condition can test if it is after a specified time, before a specified time or if it is a certain day of the week - -```yaml -automation: - condition: - platform: time - # At least one of the following is required. - after: '15:00:00' - before: '23:00:00' - weekday: - - mon - - wed - - fri -``` - -Valid values for `weekday` are (`sun`, `mon`, `tue`, `wed`, `thu`, `fri` & `sat`) - -#### {% linkable_title Zone condition %} - -Zone conditions test if an entity is in a certain zone. For zone automation to work, you need to have setup a device tracker platform that supports reporting GPS coordinates. Currently this is limited to the [OwnTracks platform](/components/device_tracker.owntracks/) as well as the [iCloud platform](/components/device_tracker.icloud/). - -```yaml -automation: - condition: - platform: zone - entity_id: device_tracker.paulus - zone: zone.home -``` - -## {% linkable_title Actions %} - -When an automation rule fires, it calls a service. For this service you can specify the entity_id that it should apply to and optional service parameters (to specify for example the brightness). - -```yaml -automation: - # Change the light in the kitchen and living room to 150 brightness and color red. - action: - service: homeassistant.turn_on - entity_id: - - light.kitchen - - light.living_room - data: - brightness: 150 - rgb_color: [255, 0, 0] -``` - -```yaml -automation: - # Notify me on my mobile phone of an event - action: - service: notify.notify - data: - message: Something just happened, better take a look! -``` - -If you want to specify multiple services to be called, or to include a delay, have a look at the [script component](/components/script/). If you want to describe the desired state of certain entities, check out the [scene component](/components/scene/). - -## {% linkable_title Troubleshooting %} - -You can verify that your automation rules are being initialized correctly by watching both the realtime logs (`homeassistant.log` in the configuration directory) and also the [Logbook](/components/logbook/). The realtime logs will show the rules being initialized (once for each trigger), example: - -```plain -INFO [homeassistant.components.automation] Initialized rule Rainy Day -INFO [homeassistant.components.automation] Initialized rule Rainy Day -INFO [homeassistant.components.automation] Initialized rule Rainy Day -INFO [homeassistant.components.automation] Initialized rule Rain is over -``` - -The Logbook component will show a line entry when an automation is triggered. You can look at the previous entry to determine which trigger in the rule triggered the event. - -![Logbook example](/images/components/automation/logbook.png) - -[template]: /topics/templating/ +[getting started section]: /getting-started/automation/ diff --git a/source/_components/mqtt.markdown b/source/_components/mqtt.markdown index 46209c35540..4a2a9a68d58 100644 --- a/source/_components/mqtt.markdown +++ b/source/_components/mqtt.markdown @@ -146,7 +146,7 @@ Home Assistant will automatically load the correct certificate if you connect to - [MQTT Lock](/components/lock.mqtt/) - [MQTT Device Tracker](/components/device_tracker.mqtt/) - [OwnTracks Device Tracker](/components/device_tracker.owntracks/) - - [MQTT automation rule](/components/automation/#mqtt-based-automation) + - [MQTT automation rule](/getting-started/automation-trigger/#mqtt-trigger) - Integrating it into own component. See the [MQTT example component](/cookbook/python_component_mqtt_basic/) how to do this. diff --git a/source/_components/notify.command_line.markdown b/source/_components/notify.command_line.markdown index a0da1befd31..e00b8402880 100644 --- a/source/_components/notify.command_line.markdown +++ b/source/_components/notify.command_line.markdown @@ -28,4 +28,4 @@ Configuration variables: - **name** (*Optional*): Setting the optional parameter `name` allows multiple notifiers to be created. The default value is `notify`. The notifier will bind to the service `notify.NOTIFIER_NAME`. - **command** (*Required*): The action to take. -To use notifications, please see the [getting started with automation page]({{site_root}}/components/automation/). +To use notifications, please see the [getting started with automation page](/getting-started/automation/). diff --git a/source/_components/notify.file.markdown b/source/_components/notify.file.markdown index afb14df7b83..20311364022 100644 --- a/source/_components/notify.file.markdown +++ b/source/_components/notify.file.markdown @@ -30,4 +30,4 @@ Configuration variables: - **filename** (*Required*): Name of the file to use. The file will be created if it doesn't exist and saved in your `config/` folder. - **timestamp** (*Optional*): Setting `timestamp` to 1 adds a timestamp to every entry. -To use notifications, please see the [getting started with automation page]({{site_root}}/components/automation/). +To use notifications, please see the [getting started with automation page](/getting-started/automation/). diff --git a/source/_components/notify.instapush.markdown b/source/_components/notify.instapush.markdown index 5fc49341bfd..7fba31285d6 100644 --- a/source/_components/notify.instapush.markdown +++ b/source/_components/notify.instapush.markdown @@ -49,4 +49,4 @@ curl -X POST \ ``` For further details, please check the [API](https://instapush.im/developer/rest). -To use notifications, please see the [getting started with automation page]({{site_root}}/components/automation/). +To use notifications, please see the [getting started with automation page](/getting-started/automation/). diff --git a/source/_components/notify.markdown b/source/_components/notify.markdown index 2cd525cb2b7..39ba50c756e 100644 --- a/source/_components/notify.markdown +++ b/source/_components/notify.markdown @@ -37,7 +37,7 @@ Once loaded, the `notify` platform will expose a service that can be called to s The notification component supports specifying [templates](/topics/templating/) for both the `message` and the `title`. This will allow you to use the current state of Home Assistant in your notifications. -In an [action](https://home-assistant.io/components/automation/#actions) of your [automation setup](/components/automation/) it could look like this with a customized subject. +In an [action](https://home-assistant.io/getting-started/automation-action/) of your [automation setup](/getting-started/automation/) it could look like this with a customized subject. ```yaml action: diff --git a/source/_components/notify.nma.markdown b/source/_components/notify.nma.markdown index 4545d619e59..9f22a757c59 100644 --- a/source/_components/notify.nma.markdown +++ b/source/_components/notify.nma.markdown @@ -31,4 +31,4 @@ Configuration variables: Details for the API : https://www.notifymyandroid.com/api.jsp -To use notifications, please see the [getting started with automation page]({{site_root}}/components/automation/). +To use notifications, please see the [getting started with automation page](/getting-started/automation/). diff --git a/source/_components/notify.pushetta.markdown b/source/_components/notify.pushetta.markdown index e3a6f049d9b..9374e7e0409 100644 --- a/source/_components/notify.pushetta.markdown +++ b/source/_components/notify.pushetta.markdown @@ -45,4 +45,4 @@ curl -X POST \ For further details, please check the [API](http://pushetta.com/pushetta-api/). -To use notifications, please see the [getting started with automation page]({{site_root}}/components/automation/). +To use notifications, please see the [getting started with automation page](/getting-started/automation/). diff --git a/source/_components/notify.rest.markdown b/source/_components/notify.rest.markdown index 27752b6bbe6..0d10da00b33 100644 --- a/source/_components/notify.rest.markdown +++ b/source/_components/notify.rest.markdown @@ -36,5 +36,5 @@ Configuration variables: - **title_param_name** (*Optional*): Parameter name for the title. Defaults to none. - **target_param_name** (*Optional*): Parameter name for the target. Defaults to none. -To use notifications, please see the [getting started with automation page]({{site_root}}/components/automation/). +To use notifications, please see the [getting started with automation page](/getting-started/automation/). diff --git a/source/_components/notify.sendgrid.markdown b/source/_components/notify.sendgrid.markdown index 966943d9b1b..1ba53da012a 100644 --- a/source/_components/notify.sendgrid.markdown +++ b/source/_components/notify.sendgrid.markdown @@ -32,4 +32,4 @@ Configuration variables: - **sender** (*Required*): E-mail address of the sender. - **recipient** (*Required*): Recipient of the notification. -To use notifications, please see the [getting started with automation page]({{site_root}}/components/automation/). +To use notifications, please see the [getting started with automation page](/getting-started/automation/). diff --git a/source/_components/notify.slack.markdown b/source/_components/notify.slack.markdown index 5f3c21735e6..7cb5219a744 100644 --- a/source/_components/notify.slack.markdown +++ b/source/_components/notify.slack.markdown @@ -33,5 +33,5 @@ Configuration variables: - **api_key** (*Required*): The slack API token to use for sending slack messages. You can get your slack API token here https://api.slack.com/web?sudo=1 - **default_channel** (*Required*): The default channel to post to if no channel is explicitly specified when sending the notification message. -To use notifications, please see the [getting started with automation page]({{site_root}}/components/automation/). +To use notifications, please see the [getting started with automation page](/getting-started/automation/). diff --git a/source/_components/notify.smtp.markdown b/source/_components/notify.smtp.markdown index 92cddbb6e12..41b269159da 100644 --- a/source/_components/notify.smtp.markdown +++ b/source/_components/notify.smtp.markdown @@ -50,4 +50,4 @@ Keep in mind that if the password contains a colon, it needs to be wrapped in ap For Google Mail (smtp.gmail.com) an additional step in the setup process is needed. Google has some extra layers of protection which need special attention. By default, the usage by external applications, especially scripts, is limited. Visit the [Less secure apps](https://www.google.com/settings/security/lesssecureapps) page and enable it. -To use notifications, please see the [getting started with automation page]({{site_root}}/components/automation/). +To use notifications, please see the [getting started with automation page](/getting-started/automation/). diff --git a/source/_components/notify.syslog.markdown b/source/_components/notify.syslog.markdown index e556f6d108c..b6ed6338f3f 100644 --- a/source/_components/notify.syslog.markdown +++ b/source/_components/notify.syslog.markdown @@ -57,4 +57,4 @@ The table contains values to use in your `configuration.yaml` file. For details about facility, option, and priority please consult the [wikpedia article](http://en.wikipedia.org/wiki/Syslog) and [RFC 3164](http://tools.ietf.org/html/rfc3164). -To use notifications, please see the [getting started with automation page]({{site_root}}/components/automation/). +To use notifications, please see the [getting started with automation page](/getting-started/automation/). diff --git a/source/_components/notify.telegram.markdown b/source/_components/notify.telegram.markdown index b1d27f759fb..bf8b2b8f8ba 100644 --- a/source/_components/notify.telegram.markdown +++ b/source/_components/notify.telegram.markdown @@ -64,4 +64,4 @@ Configuration variables: - **api_key** (*Required*): The API token of your bot. - **chat_id** (*Required*: The chat ID of your user. -To use notifications, please see the [getting started with automation page]({{site_root}}/components/automation/). +To use notifications, please see the [getting started with automation page](/getting-started/automation/). diff --git a/source/_components/notify.twitter.markdown b/source/_components/notify.twitter.markdown index 49247e4cc51..2b4a4ea740b 100644 --- a/source/_components/notify.twitter.markdown +++ b/source/_components/notify.twitter.markdown @@ -35,4 +35,4 @@ Configuration variables: - **consumer_secret** (*Required*): Your "Consumer Secret" (API Secret) for the application. - **access_token_secret** (*Required*): Your "Access Token Secret" for the application. -To use notifications, please see the [getting started with automation page]({{site_root}}/components/automation/). +To use notifications, please see the [getting started with automation page](/getting-started/automation/). diff --git a/source/_components/notify.xmpp.markdown b/source/_components/notify.xmpp.markdown index 0f51aa9ca88..5fe7a01c4f6 100644 --- a/source/_components/notify.xmpp.markdown +++ b/source/_components/notify.xmpp.markdown @@ -36,4 +36,4 @@ Configuration variables: All Jabber IDs (JID) must include the domain. Make sure that the password matches the account provided as sender. -To use notifications, please see the [getting started with automation page]({{site_root}}/components/automation/). +To use notifications, please see the [getting started with automation page](/getting-started/automation/). diff --git a/source/_components/proximity.markdown b/source/_components/proximity.markdown index 8e6c6d2aeee..04a0c0fc2cf 100644 --- a/source/_components/proximity.markdown +++ b/source/_components/proximity.markdown @@ -13,7 +13,7 @@ ha_category: Organization The `proximity` component allows you to monitor the proximity of devices to a particular [zone](/components/zone/) and the direction of travel. The result is an entity created in Home Assistant which maintains the proximity data. -This component is useful to reduce the number of automation rules required when wanting to perform automations based on locations outside a particular zone. The [zone](/components/automation/#zone-trigger) and [state](/components/automation/#state-trigger) based triggers allow similar control but the number of rules grows exponentially when factors such as direction of travel need to be taken into account. +This component is useful to reduce the number of automation rules required when wanting to perform automations based on locations outside a particular zone. The [zone](/getting-started/automation-trigger/#zone-trigger) and [state](/getting-started/automation-trigger/#state-trigger) based triggers allow similar control but the number of rules grows exponentially when factors such as direction of travel need to be taken into account. Some examples of its use include: diff --git a/source/_components/sun.markdown b/source/_components/sun.markdown index e5538d3a9e7..08bcf3e25a8 100644 --- a/source/_components/sun.markdown +++ b/source/_components/sun.markdown @@ -13,7 +13,7 @@ ha_category: Weather The sun component will use your current location to track if the sun is above or below the horizon.The sun can be used within automation as [a trigger with an optional offset to simulate dawn/dusk][automation-trigger]. -[automation-trigger]: /components/automation/#sun-trigger +[automation-trigger]: /getting-started/automation-trigger/#sun-trigger ```yaml # Example configuration.yaml entry diff --git a/source/_components/zone.markdown b/source/_components/zone.markdown index 58dbe35a517..db1de8acfe7 100644 --- a/source/_components/zone.markdown +++ b/source/_components/zone.markdown @@ -11,7 +11,7 @@ logo: home-assistant.png ha_category: Organization --- -Zones allow you to specify certain regions on earth (for now). When a device tracker sees a device to be within a zone, the state will take the name from the zone. Zones can also be used as a [trigger](/components/automation/#zone-trigger) or [condition](/components/automation/#zone-condition) inside automation setups. +Zones allow you to specify certain regions on earth (for now). When a device tracker sees a device to be within a zone, the state will take the name from the zone. Zones can also be used as a [trigger](/getting-started/automation-trigger/#zone-trigger) or [condition](/getting-started/automation-condition/#zone-condition) inside automation setups. Zones support the usual method to specify multiple zones, use keys `zone:`, `zone 2:` etc. diff --git a/source/_includes/asides/getting_started_navigation.html b/source/_includes/asides/getting_started_navigation.html index efb6823b99c..51192cc7998 100644 --- a/source/_includes/asides/getting_started_navigation.html +++ b/source/_includes/asides/getting_started_navigation.html @@ -21,10 +21,18 @@
  • {% active_link /getting-started/devices/ Setting up devices %}
  • {% active_link /getting-started/customizing-devices/ Customizing devices and services %}
  • {% active_link /getting-started/presence-detection/ Presence Detection %}
  • -
  • {% active_link /getting-started/automation/ Automation %}
  • {% active_link /getting-started/troubleshooting-configuration/ Troubleshooting configuration.yaml %}
  • +
  • + {% active_link /getting-started/automation/ Automation %} + +
  • {% active_link /getting-started/autostart/ Auto-start Home Assistant %}