From a23e34bc2ff0a447f2dc6786bd195e7d83e3a97a Mon Sep 17 00:00:00 2001 From: Robert Svensson Date: Tue, 29 Jan 2019 00:37:28 +0100 Subject: [PATCH] Area registry (#172) * Add documentation for area registry Update device attributes with area id * If not saving stuff can't be commited Second try at adding area id info to device registry --- docs/area_registry_index.md | 11 +++++++++++ docs/device_registry_index.md | 1 + website/sidebars.json | 3 +++ 3 files changed, 15 insertions(+) create mode 100644 docs/area_registry_index.md diff --git a/docs/area_registry_index.md b/docs/area_registry_index.md new file mode 100644 index 00000000..5629441b --- /dev/null +++ b/docs/area_registry_index.md @@ -0,0 +1,11 @@ +--- +title: Area Registry +sidebar_label: Introduction +--- + +The area registry is a registry where Home Assistant keeps track of areas. An area represents a physical location for Home Assistant. It can be used to place devices in different areas. + +| Attribute | Description | +| --------- | ----------- | +| id | Unique ID of area (generated by Home Assistant) +| name | Name of this area diff --git a/docs/device_registry_index.md b/docs/device_registry_index.md index d709566a..6aaf09d7 100644 --- a/docs/device_registry_index.md +++ b/docs/device_registry_index.md @@ -21,6 +21,7 @@ The device registry is a registry where Home Assistant keeps track of devices. A | config_entries | Config entries that are linked to this device. | sw_version | The firmware version of the device. | via_hub | Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs. This is used to show device topology in Home Assistant. +| area_id | The Area which the device is placed in. ## Defining devices diff --git a/website/sidebars.json b/website/sidebars.json index 9d4b4d38..b19152a6 100644 --- a/website/sidebars.json +++ b/website/sidebars.json @@ -46,6 +46,9 @@ ], "Device Registry": [ "device_registry_index" + ], + "Area Registry": [ + "area_registry_index" ] }, "Extending Frontend": {