Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions source/_docs/configuration/templating.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ The same thing can also be expressed as a test:

### Areas

- `areas()` returns the full list of area IDs
- `area_id(lookup_value)` returns the area ID for a given device ID, entity ID, or area name. Can also be used as a filter.
- `area_name(lookup_value)` returns the area name for a given device ID, entity ID, or area ID. Can also be used as a filter.
- `area_entities(area_name_or_id)` returns the list of entity IDs tied to a given area ID or name. Can also be used as a filter.
Expand All @@ -318,6 +319,10 @@ The same thing can also be expressed as a test:

{% raw %}

```text
{{ areas() }} # ['area_id']
```

```text
{{ area_id('Living Room') }} # 'deadbeefdeadbeefdeadbeefdeadbeef'
```
Expand Down