
* 🔥 Removes octopress.js * 🔥 Removes use of root_url var * 🔥 Removes Octopress generator reference from feed * 🔥 Removes delicious support * 🔥 Removes support for Pinboard * 🔥 Removes support for Disqus * 🔥 Removes support for Google Plus * ↩️ Migrate custom after_footer to default template * ↩️ Migrate custom footer to default template * ↩️ Migrate custom header to default template * 🔥 Removes unused template files * 🚀 Places time to read directly in post template * 🚀 Removes unneeded capture from archive_post.html template * 🔥 🚀 Removes unused, but heaving sorting call in component page * 🚀 Merged javascripts into a single file * 🔥 Removes more uses of root_url * 🚀 Removal of unneeded captures from head * 🔥 🚀 Removal of expensive liquid HTML compressor * 🔥 Removes unneeded templates * 🚀 Replaces kramdown with GitHub's CommonMark 🚀 * 💄 Adds Prism code syntax highlighting * ✨ Adds support for redirect in Netlify * ↩️ 🔥 Let Netlify handle all developer doc redirects * ✏️ Fixes typo in redirects file: Netify -> Netlify * 🔥 Removes unused .themes folder * 🔥 Removes unused aside.html template * 🔥 Removes Disqus config leftover * 🔥 Removes rouge highlighter config * 🔥 Removes Octopress 🎉 * 💄 Adjust code block font size and adds soft wraps * 💄 Adds styling for inline code blocks * 💄 Improve styling of note/warning/info boxes + div support * 🔨 Rewrites all note/warning/info boxes
2.7 KiB
title, description, logo, ha_category, ha_qa_scale, ha_release
title | description | logo | ha_category | ha_qa_scale | ha_release | |
---|---|---|---|---|---|---|
Zone | Instructions on how to set up zones within Home Assistant. | home-assistant.png |
|
internal | 0.69 |
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 or condition inside automation setups.
The zone
integration uses YAML sequences to configure multiple zones:
# Example configuration.yaml entry
zone:
- name: School
latitude: 32.8773367
longitude: -117.2494053
radius: 250
icon: mdi:school
- name: Work
latitude: 32.8753367
longitude: -117.2474053
# This will override the default home zone
- name: Home
latitude: 32.8793367
longitude: -117.2474053
radius: 100
icon: mdi:account-multiple
{% configuration %} name: description: The friendly name of the zone. required: false type: string latitude: description: The latitude of the center point of the zone. required: true type: float longitude: description: The longitude of the center point of the zone. required: true type: float radius: description: The radius of the zone in meters. required: false type: integer default: 100 icon: description: The icon to show instead of name. required: false type: string passive: description: To only use the zone for automation and hide it from the frontend and not use the zone for device tracker name. required: false type: boolean default: false {% endconfiguration %}
To find the latitude/longitude of a certain place you can use Google Maps or Bing Maps. Just right click and copy the coordinates from there (Bing) or click on the "What is here?" (Google)
Home zone
If no configuration is given, the zone
integration will create a zone for home. This zone will use location provided in the configuration.yaml
file and have a radius of 100 meters. To override this, create a zone configuration and name it 'Home'.
Devices that are in the zone 'Home' will not appear on the map in the Home Assistant UI.
Icons
It is preferred to pick an icon to use for your zone. Pick any icon that you can find on materialdesignicons.com and prefix the name with mdi:
. For example mdi:school
, mdi:worker
, mdi:home
, mdi:cart
, or mdi:castle
.
State
zoning
is the state a zone
has when it is configured. A zone
doesn't have another state; all configured zones are zoning
all the time.