You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added include and exclude functionality to history component (home-assistant#1094)
* Added lgtv platform to control a LG Smart TV running NetCast 3.0
(LG Smart TV models released in 2012) and NetCast 4.0 (LG Smart TV models released in 2013).
* Update media_player.lgtv.markdown
* Rename media_player.lgtv.markdown to media_player.lg_netcast.markdown
* added description of the include/exclude entities/domains feature for history component.
* o moved configuration examples to the section where the filtering is explained
o improved configuration variables description
Copy file name to clipboardExpand all lines: source/_components/history.markdown
+51-1Lines changed: 51 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ The `history` component will track everything that is going on within Home Assis
18
18
To enable the history option in your installation, add the following to your `configuration.yaml` file:
19
19
20
20
```yaml
21
-
#Example configuration.yaml entry
21
+
#Basic configuration.yaml entry
22
22
history:
23
23
```
24
24
@@ -32,6 +32,56 @@ history:
32
32
Events are saved in a local database. Google Graphs is used to draw the graph. Drawing is happening 100% in your browser. No data is transferred to anyone at any time.
33
33
</p>
34
34
35
+
36
+
Configuration variables:
37
+
38
+
- **exclude** (*Optional*): Configure which components should **not** be displayed.
39
+
- **entities** (*Optional*): The list of entity ids to be excluded from the history.
40
+
- **domains** (*Optional*): The list of domains to be excluded from the history.
41
+
- **include** (*Optional*): Configure which components should be displayed.
42
+
- **entities** (*Optional*): The list of entity ids to be included from the history.
43
+
- **domains** (*Optional*): The list of domains to be included from the history.
44
+
45
+
Without any `include` or `exclude` configuration the history displays graphs for every entity (well that's not exactly true - for instance `hidden` entities or `scenes` are never shown) on a given date. If you are only interested in some of the entities you several options:
46
+
47
+
- Define domains and entities to `exclude` (aka. blacklist). This is convenient when you are basically happy with the information displayed, but just want to remove some entities or domains. Usually these are entities/domains which do not change (like `weblink`) or rarely change (`updater` or `automation`).
48
+
```yaml
49
+
# Example configuration.yaml entry with exclude
50
+
history:
51
+
exclude:
52
+
domains:
53
+
- automation
54
+
- weblink
55
+
- updater
56
+
entities:
57
+
- sensor.last_boot
58
+
- sensor.date
59
+
```
60
+
- Define domains and entities to display by using the `include` configuration (aka. whitelist). If you have a lot of entities in your system and your `exclude` lists possibly get very large, it might be better just to define the entities or domains to display.
61
+
```yaml
62
+
# Example configuration.yaml entry with include
63
+
history:
64
+
include:
65
+
domains:
66
+
- sensor
67
+
- switch
68
+
- media_player
69
+
```
70
+
- Use the `include` list to define the domains/entities to display, and exclude some of them with in the `exclude` list. This makes sense if you for instance include the `sensor` domain, but want to exclude some specific sensors. Instead of adding every sensor entity to the `include` `entities` list just include the `sensor` domain and exclude the sensor entities you are not interested in.
71
+
```yaml
72
+
# Example configuration.yaml entry with include and exclude
73
+
history:
74
+
include:
75
+
domains:
76
+
- sensor
77
+
- switch
78
+
- media_player
79
+
exclude:
80
+
entities:
81
+
- sensor.last_boot
82
+
- sensor.date
83
+
```
84
+
35
85
#### {% linkable_title Implementation details %}
36
86
37
87
The history is stored in a SQLite database `home-assistant.db` within your config directory.
0 commit comments