mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Move description of how filtering works to an include (#22974)
This commit is contained in:
parent
36b68f1087
commit
0ff5142c84
22
source/_includes/common-tasks/filters.md
Normal file
22
source/_includes/common-tasks/filters.md
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
Filters are applied as follows:
|
||||||
|
|
||||||
|
1. No includes or excludes - pass all entities
|
||||||
|
2. Includes, no excludes - only include specified entities
|
||||||
|
3. Excludes, no includes - only exclude specified entities
|
||||||
|
4. Both includes and excludes:
|
||||||
|
- Include domain and/or glob patterns specified
|
||||||
|
- If domain is included, and entity not excluded or match exclude glob pattern, accept
|
||||||
|
- If entity matches include glob pattern, and entity does not match any exclude criteria (domain, glob pattern or listed), accept
|
||||||
|
- If domain is not included, glob pattern does not match, and entity not included, reject
|
||||||
|
- Exclude domain and/or glob patterns specified and include does not list domains or glob patterns
|
||||||
|
- If domain is excluded and entity not included, reject
|
||||||
|
- If entity matches exclude glob pattern and entity not included, reject
|
||||||
|
- If entity does not match any exclude criteria (domain, glob pattern or listed), accept
|
||||||
|
- Neither include or exclude specifies domains or glob patterns
|
||||||
|
- If entity is included, accept (as #2 above)
|
||||||
|
- If entity include and exclude, the entity exclude is ignored
|
||||||
|
|
||||||
|
The following characters can be used in entity globs:
|
||||||
|
|
||||||
|
`*` - The asterisk represents zero, one, or multiple characters
|
||||||
|
`?` - The question mark represents a single character
|
@ -385,23 +385,7 @@ alexa:
|
|||||||
- light.kitchen_light
|
- light.kitchen_light
|
||||||
```
|
```
|
||||||
|
|
||||||
Filters are applied as follows:
|
{% include common-tasks/filters.md %}
|
||||||
|
|
||||||
1. No includes or excludes - pass all entities
|
|
||||||
2. Includes, no excludes - only include specified entities
|
|
||||||
3. Excludes, no includes - only exclude specified entities
|
|
||||||
4. Both includes and excludes:
|
|
||||||
- Include domain and/or glob patterns specified
|
|
||||||
- If domain is included, and entity not excluded or match exclude glob pattern, pass
|
|
||||||
- If entity matches include glob pattern, and entity does not match any exclude criteria (domain, glob pattern or listed), pass
|
|
||||||
- If domain is not included, glob pattern does not match, and entity not included, fail
|
|
||||||
- Exclude domain and/or glob patterns specified and include does not list domains or glob patterns
|
|
||||||
- If domain is excluded and entity not included, fail
|
|
||||||
- If entity matches exclude glob pattern and entity not included, fail
|
|
||||||
- If entity does not match any exclude criteria (domain, glob pattern or listed), pass
|
|
||||||
- Neither include or exclude specifies domains or glob patterns
|
|
||||||
- If entity is included, pass (as #2 above)
|
|
||||||
- If entity include and exclude, the entity exclude is ignored
|
|
||||||
|
|
||||||
See the [troubleshooting](#troubleshooting) if for issues setting up the integration.
|
See the [troubleshooting](#troubleshooting) if for issues setting up the integration.
|
||||||
|
|
||||||
|
@ -104,20 +104,4 @@ apache_kafka:
|
|||||||
- light.kitchen_light
|
- light.kitchen_light
|
||||||
```
|
```
|
||||||
|
|
||||||
Filters are applied as follows:
|
{% include common-tasks/filters.md %}
|
||||||
|
|
||||||
1. No includes or excludes - pass all entities
|
|
||||||
2. Includes, no excludes - only include specified entities
|
|
||||||
3. Excludes, no includes - only exclude specified entities
|
|
||||||
4. Both includes and excludes:
|
|
||||||
- Include domain and/or glob patterns specified
|
|
||||||
- If domain is included, and entity not excluded or match exclude glob pattern, pass
|
|
||||||
- If entity matches include glob pattern, and entity does not match any exclude criteria (domain, glob pattern or listed), pass
|
|
||||||
- If domain is not included, glob pattern does not match, and entity not included, fail
|
|
||||||
- Exclude domain and/or glob patterns specified and include does not list domains or glob patterns
|
|
||||||
- If domain is excluded and entity not included, fail
|
|
||||||
- If entity matches exclude glob pattern and entity not included, fail
|
|
||||||
- If entity does not match any exclude criteria (domain, glob pattern or listed), pass
|
|
||||||
- Neither include or exclude specifies domains or glob patterns
|
|
||||||
- If entity is included, pass (as #2 above)
|
|
||||||
- If entity include and exclude, the entity exclude is ignored
|
|
@ -57,23 +57,7 @@ azure_event_hub:
|
|||||||
- light.kitchen_light
|
- light.kitchen_light
|
||||||
```
|
```
|
||||||
|
|
||||||
Filters are applied as follows:
|
{% include common-tasks/filters.md %}
|
||||||
|
|
||||||
1. No includes or excludes - pass all entities
|
|
||||||
2. Includes, no excludes - only include specified entities
|
|
||||||
3. Excludes, no includes - only exclude specified entities
|
|
||||||
4. Both includes and excludes:
|
|
||||||
- Include domain and/or glob patterns specified
|
|
||||||
- If domain is included, and entity not excluded or match exclude glob pattern, pass
|
|
||||||
- If entity matches include glob pattern, and entity does not match any exclude criteria (domain, glob pattern or listed), pass
|
|
||||||
- If domain is not included, glob pattern does not match, and entity not included, fail
|
|
||||||
- Exclude domain and/or glob patterns specified and include does not list domains or glob patterns
|
|
||||||
- If domain is excluded and entity not included, fail
|
|
||||||
- If entity matches exclude glob pattern and entity not included, fail
|
|
||||||
- If entity does not match any exclude criteria (domain, glob pattern or listed), pass
|
|
||||||
- Neither include or exclude specifies domains or glob patterns
|
|
||||||
- If entity is included, pass (as #2 above)
|
|
||||||
- If entity include and exclude, the entity exclude is ignored
|
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
filter:
|
filter:
|
||||||
|
@ -104,23 +104,7 @@ google_pubsub:
|
|||||||
- light.kitchen_light
|
- light.kitchen_light
|
||||||
```
|
```
|
||||||
|
|
||||||
Filters are applied as follows:
|
{% include common-tasks/filters.md %}
|
||||||
|
|
||||||
1. No includes or excludes - pass all entities
|
|
||||||
2. Includes, no excludes - only include specified entities
|
|
||||||
3. Excludes, no includes - only exclude specified entities
|
|
||||||
4. Both includes and excludes:
|
|
||||||
- Include domain and/or glob patterns specified
|
|
||||||
- If domain is included, and entity not excluded or match exclude glob pattern, pass
|
|
||||||
- If entity matches include glob pattern, and entity does not match any exclude criteria (domain, glob pattern or listed), pass
|
|
||||||
- If domain is not included, glob pattern does not match, and entity not included, fail
|
|
||||||
- Exclude domain and/or glob patterns specified and include does not list domains or glob patterns
|
|
||||||
- If domain is excluded and entity not included, fail
|
|
||||||
- If entity matches exclude glob pattern and entity not included, fail
|
|
||||||
- If entity does not match any exclude criteria (domain, glob pattern or listed), pass
|
|
||||||
- Neither include or exclude specifies domains or glob patterns
|
|
||||||
- If entity is included, pass (as #2 above)
|
|
||||||
- If entity include and exclude, the entity exclude is ignored
|
|
||||||
|
|
||||||
### Saving the data using a Google Cloud Function
|
### Saving the data using a Google Cloud Function
|
||||||
|
|
||||||
|
@ -147,17 +147,7 @@ history:
|
|||||||
- light.front_porch
|
- light.front_porch
|
||||||
```
|
```
|
||||||
|
|
||||||
Filters are applied as follows:
|
{% include common-tasks/filters.md %}
|
||||||
|
|
||||||
1. No includes or excludes - pass all entities
|
|
||||||
2. Includes, no excludes - only include specified entities
|
|
||||||
3. Excludes, no includes - only exclude specified entities
|
|
||||||
4. Both includes and excludes - include specified entities and exclude specified entities from the remaining.
|
|
||||||
|
|
||||||
The following characters can be used in entity globs:
|
|
||||||
|
|
||||||
`*` - The asterisk represents zero, one, or multiple characters
|
|
||||||
`.` - The period represents a single character
|
|
||||||
|
|
||||||
#### Implementation details
|
#### Implementation details
|
||||||
|
|
||||||
|
@ -356,23 +356,7 @@ homekit:
|
|||||||
- light.kitchen_light
|
- light.kitchen_light
|
||||||
```
|
```
|
||||||
|
|
||||||
Filters are applied as follows:
|
{% include common-tasks/filters.md %}
|
||||||
|
|
||||||
1. No includes or excludes - pass all entities
|
|
||||||
2. Includes, no excludes - only include specified entities
|
|
||||||
3. Excludes, no includes - only exclude specified entities
|
|
||||||
4. Both includes and excludes:
|
|
||||||
- Include domain and/or glob patterns specified
|
|
||||||
- If domain is included, and entity not excluded or match exclude glob pattern, pass
|
|
||||||
- If entity matches include glob pattern, and entity does not match any exclude criteria (domain, glob pattern or listed), pass
|
|
||||||
- If domain is not included, glob pattern does not match, and entity not included, fail
|
|
||||||
- Exclude domain and/or glob patterns specified and include does not list domains or glob patterns
|
|
||||||
- If domain is excluded and entity not included, fail
|
|
||||||
- If entity matches exclude glob pattern and entity not included, fail
|
|
||||||
- If entity does not match any exclude criteria (domain, glob pattern or listed), pass
|
|
||||||
- Neither include or exclude specifies domains or glob patterns
|
|
||||||
- If entity is included, pass (as #2 above)
|
|
||||||
- If entity include and exclude, the entity exclude is ignored
|
|
||||||
|
|
||||||
Categorized entities are not included (config, diagnostic, and system entities) unless they are explicitly matched by `include_entity_globs` or `include_entities` or selected in the UI in include mode.
|
Categorized entities are not included (config, diagnostic, and system entities) unless they are explicitly matched by `include_entity_globs` or `include_entities` or selected in the UI in include mode.
|
||||||
|
|
||||||
|
@ -229,23 +229,7 @@ influxdb:
|
|||||||
- light.kitchen_light
|
- light.kitchen_light
|
||||||
```
|
```
|
||||||
|
|
||||||
Filters are applied as follows:
|
{% include common-tasks/filters.md %}
|
||||||
|
|
||||||
1. No includes or excludes - pass all entities
|
|
||||||
2. Includes, no excludes - only include specified entities
|
|
||||||
3. Excludes, no includes - only exclude specified entities
|
|
||||||
4. Both includes and excludes:
|
|
||||||
- Include domain and/or glob patterns specified
|
|
||||||
- If domain is included, and entity not excluded or match exclude glob pattern, pass
|
|
||||||
- If entity matches include glob pattern, and entity does not match any exclude criteria (domain, glob pattern or listed), pass
|
|
||||||
- If domain is not included, glob pattern does not match, and entity not included, fail
|
|
||||||
- Exclude domain and/or glob patterns specified and include does not list domains or glob patterns
|
|
||||||
- If domain is excluded and entity not included, fail
|
|
||||||
- If entity matches exclude glob pattern and entity not included, fail
|
|
||||||
- If entity does not match any exclude criteria (domain, glob pattern or listed), pass
|
|
||||||
- Neither include or exclude specifies domains or glob patterns
|
|
||||||
- If entity is included, pass (as #2 above)
|
|
||||||
- If entity include and exclude, the entity exclude is ignored
|
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
|
@ -83,17 +83,7 @@ logbook:
|
|||||||
- light.kitchen_light
|
- light.kitchen_light
|
||||||
```
|
```
|
||||||
|
|
||||||
Filters are applied as follows:
|
{% include common-tasks/filters.md %}
|
||||||
|
|
||||||
1. No includes or excludes - pass all entities
|
|
||||||
2. Includes, no excludes - only include specified entities
|
|
||||||
3. Excludes, no includes - only exclude specified entities
|
|
||||||
4. Both includes and excludes - include specified entities and exclude specified entities from the remaining.
|
|
||||||
|
|
||||||
The following characters can be used in entity globs:
|
|
||||||
|
|
||||||
- `*` - The asterisk represents zero, one, or multiple characters
|
|
||||||
- `.` - The period represents a single character
|
|
||||||
|
|
||||||
### Common filtering examples
|
### Common filtering examples
|
||||||
|
|
||||||
|
@ -93,23 +93,7 @@ mqtt_statestream:
|
|||||||
- light.kitchen_light
|
- light.kitchen_light
|
||||||
```
|
```
|
||||||
|
|
||||||
Filters are applied as follows:
|
{% include common-tasks/filters.md %}
|
||||||
|
|
||||||
1. No includes or excludes - pass all entities
|
|
||||||
2. Includes, no excludes - only include specified entities
|
|
||||||
3. Excludes, no includes - only exclude specified entities
|
|
||||||
4. Both includes and excludes:
|
|
||||||
- Include domain and/or glob patterns specified
|
|
||||||
- If domain is included, and entity not excluded or match exclude glob pattern, pass
|
|
||||||
- If entity matches include glob pattern, and entity does not match any exclude criteria (domain, glob pattern or listed), pass
|
|
||||||
- If domain is not included, glob pattern does not match, and entity not included, fail
|
|
||||||
- Exclude domain and/or glob patterns specified and include does not list domains or glob patterns
|
|
||||||
- If domain is excluded and entity not included, fail
|
|
||||||
- If entity matches exclude glob pattern and entity not included, fail
|
|
||||||
- If entity does not match any exclude criteria (domain, glob pattern or listed), pass
|
|
||||||
- Neither include or exclude specifies domains or glob patterns
|
|
||||||
- If entity is included, pass (as #2 above)
|
|
||||||
- If entity include and exclude, the entity exclude is ignored
|
|
||||||
|
|
||||||
### Common filtering examples
|
### Common filtering examples
|
||||||
|
|
||||||
|
@ -112,23 +112,7 @@ prometheus:
|
|||||||
- light.kitchen_light
|
- light.kitchen_light
|
||||||
```
|
```
|
||||||
|
|
||||||
Filters are applied as follows:
|
{% include common-tasks/filters.md %}
|
||||||
|
|
||||||
1. No includes or excludes - pass all entities
|
|
||||||
2. Includes, no excludes - only include specified entities
|
|
||||||
3. Excludes, no includes - only exclude specified entities
|
|
||||||
4. Both includes and excludes:
|
|
||||||
- Include domain and/or glob patterns specified
|
|
||||||
- If domain is included, and entity not excluded or match exclude glob pattern, pass
|
|
||||||
- If entity matches include glob pattern, and entity does not match any exclude criteria (domain, glob pattern or listed), pass
|
|
||||||
- If domain is not included, glob pattern does not match, and entity not included, fail
|
|
||||||
- Exclude domain and/or glob patterns specified and include does not list domains or glob patterns
|
|
||||||
- If domain is excluded and entity not included, fail
|
|
||||||
- If entity matches exclude glob pattern and entity not included, fail
|
|
||||||
- If entity does not match any exclude criteria (domain, glob pattern or listed), pass
|
|
||||||
- Neither include or exclude specifies domains or glob patterns
|
|
||||||
- If entity is included, pass (as #2 above)
|
|
||||||
- If entity include and exclude, the entity exclude is ignored
|
|
||||||
|
|
||||||
## Full Example
|
## Full Example
|
||||||
|
|
||||||
|
@ -137,23 +137,7 @@ recorder:
|
|||||||
- light.kitchen_light
|
- light.kitchen_light
|
||||||
```
|
```
|
||||||
|
|
||||||
Filters are applied as follows:
|
{% include common-tasks/filters.md %}
|
||||||
|
|
||||||
1. No includes or excludes - pass all entities
|
|
||||||
2. Includes, no excludes - only include specified entities
|
|
||||||
3. Excludes, no includes - only exclude specified entities
|
|
||||||
4. Both includes and excludes:
|
|
||||||
- Include domain and/or glob patterns specified
|
|
||||||
- If domain is included, and entity not excluded or match exclude glob pattern, pass
|
|
||||||
- If entity matches include glob pattern, and entity does not match any exclude criteria (domain, glob pattern or listed), pass
|
|
||||||
- If domain is not included, glob pattern does not match, and entity not included, fail
|
|
||||||
- Exclude domain and/or glob patterns specified and include does not list domains or glob patterns
|
|
||||||
- If domain is excluded and entity not included, fail
|
|
||||||
- If entity matches exclude glob pattern and entity not included, fail
|
|
||||||
- If entity does not match any exclude criteria (domain, glob pattern or listed), pass
|
|
||||||
- Neither include or exclude specifies domains or glob patterns
|
|
||||||
- If entity is included, pass (as #2 above)
|
|
||||||
- If entity include and exclude, the entity exclude is ignored
|
|
||||||
|
|
||||||
If you only want to hide events from your history, take a look at the [`history` integration](/integrations/history/). The same goes for the [logbook](/integrations/logbook/). But if you have privacy concerns about certain events or want them in neither the history or logbook, you should use the `exclude`/`include` options of the `recorder` integration. That way they aren't even in your database, you can reduce storage and keep the database small by excluding certain often-logged events (like `sensor.last_boot`).
|
If you only want to hide events from your history, take a look at the [`history` integration](/integrations/history/). The same goes for the [logbook](/integrations/logbook/). But if you have privacy concerns about certain events or want them in neither the history or logbook, you should use the `exclude`/`include` options of the `recorder` integration. That way they aren't even in your database, you can reduce storage and keep the database small by excluding certain often-logged events (like `sensor.last_boot`).
|
||||||
|
|
||||||
|
@ -102,20 +102,4 @@ splunk:
|
|||||||
- light.kitchen_light
|
- light.kitchen_light
|
||||||
```
|
```
|
||||||
|
|
||||||
Filters are applied as follows:
|
{% include common-tasks/filters.md %}
|
||||||
|
|
||||||
1. No includes or excludes - pass all entities
|
|
||||||
2. Includes, no excludes - only include specified entities
|
|
||||||
3. Excludes, no includes - only exclude specified entities
|
|
||||||
4. Both includes and excludes:
|
|
||||||
- Include domain and/or glob patterns specified
|
|
||||||
- If domain is included, and entity not excluded or match exclude glob pattern, pass
|
|
||||||
- If entity matches include glob pattern, and entity does not match any exclude criteria (domain, glob pattern or listed), pass
|
|
||||||
- If domain is not included, glob pattern does not match, and entity not included, fail
|
|
||||||
- Exclude domain and/or glob patterns specified and include does not list domains or glob patterns
|
|
||||||
- If domain is excluded and entity not included, fail
|
|
||||||
- If entity matches exclude glob pattern and entity not included, fail
|
|
||||||
- If entity does not match any exclude criteria (domain, glob pattern or listed), pass
|
|
||||||
- Neither include or exclude specifies domains or glob patterns
|
|
||||||
- If entity is included, pass (as #2 above)
|
|
||||||
- If entity include and exclude, the entity exclude is ignored
|
|
@ -134,23 +134,7 @@ zabbix:
|
|||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
|
||||||
Filters are applied as follows:
|
{% include common-tasks/filters.md %}
|
||||||
|
|
||||||
1. No includes or excludes - pass all entities
|
|
||||||
2. Includes, no excludes - only include specified entities
|
|
||||||
3. Excludes, no includes - only exclude specified entities
|
|
||||||
4. Both includes and excludes:
|
|
||||||
- Include domain and/or glob patterns specified
|
|
||||||
- If domain is included, and entity not excluded or match exclude glob pattern, pass
|
|
||||||
- If entity matches include glob pattern, and entity does not match any exclude criteria (domain, glob pattern or listed), pass
|
|
||||||
- If domain is not included, glob pattern does not match, and entity not included, fail
|
|
||||||
- Exclude domain and/or glob patterns specified and include does not list domains or glob patterns
|
|
||||||
- If domain is excluded and entity not included, fail
|
|
||||||
- If entity matches exclude glob pattern and entity not included, fail
|
|
||||||
- If entity does not match any exclude criteria (domain, glob pattern or listed), pass
|
|
||||||
- Neither include or exclude specifies domains or glob patterns
|
|
||||||
- If entity is included, pass (as #2 above)
|
|
||||||
- If entity include and exclude, the entity exclude is ignored
|
|
||||||
|
|
||||||
## Sensor
|
## Sensor
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user