mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-29 12:17:01 +00:00
Add include configuration to logbook (#1157)
This commit is contained in:
parent
baccb84791
commit
983cb9cbab
@ -22,13 +22,17 @@ logbook:
|
|||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
|
|
||||||
- **exclude** (*Optional*): Configure which components should **not** create logbook enties.
|
- **exclude** (*Optional*): Configure which components should **not** create logbook entries.
|
||||||
- **entities** (*Optional*): The list of entity ids to be excluded from creating logbook entries.
|
- **entities** (*Optional*): The list of entity ids to be excluded from creating logbook entries.
|
||||||
- **domains** (*Optional*): The list of domains to be excluded from creating logbook entries.
|
- **domains** (*Optional*): The list of domains to be excluded from creating logbook entries.
|
||||||
|
- **include** (*Optional*): Configure which components should create logbook entries.
|
||||||
|
- **entities** (*Optional*): The list of entity ids to be included from creating logbook entries.
|
||||||
|
- **domains** (*Optional*): The list of domains to be included from creating logbook entries.
|
||||||
|
|
||||||
If you want to exclude messages of some entities or domains from the logbook just add the `exclude` parameter like:
|
If you want to exclude messages of some entities or domains from the logbook just add the `exclude` parameter like:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
# Example of excluding domains and entities from the logbook
|
||||||
logbook:
|
logbook:
|
||||||
exclude:
|
exclude:
|
||||||
entities:
|
entities:
|
||||||
@ -39,6 +43,34 @@ logbook:
|
|||||||
- weblink
|
- weblink
|
||||||
```
|
```
|
||||||
|
|
||||||
|
In case you just want to see messages from some specific entities or domains use the `include` configuration:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Example to show how to include only the listed domains and entities in the logbook
|
||||||
|
logbook:
|
||||||
|
include:
|
||||||
|
domains:
|
||||||
|
- sensor
|
||||||
|
- switch
|
||||||
|
- media_player
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also use the `include` list and filter out some entities or domains with an `exclude` list. Usually this makes sense if you define domains on the include side and filter out some specific entities.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Example of combining include and exclude configurations
|
||||||
|
logbook:
|
||||||
|
include:
|
||||||
|
domains:
|
||||||
|
- sensor
|
||||||
|
- switch
|
||||||
|
- media_player
|
||||||
|
exclude:
|
||||||
|
entities:
|
||||||
|
- sensor.last_boot
|
||||||
|
- sensor.date
|
||||||
|
```
|
||||||
|
|
||||||
### {% linkable_title Exclude Events %}
|
### {% linkable_title Exclude Events %}
|
||||||
|
|
||||||
Entities customized as hidden are excluded from the logbook by default, but sometimes you want to show the entity in the UI and not in the logbook. For instance you use the `sensor.date`to show the current date in the UI, but you do not want an logbook entry for that sensor every day.
|
Entities customized as hidden are excluded from the logbook by default, but sometimes you want to show the entity in the UI and not in the logbook. For instance you use the `sensor.date`to show the current date in the UI, but you do not want an logbook entry for that sensor every day.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user