Skip to content

Commit 978c118

Browse files
committed
Fix samples
1 parent b343ac3 commit 978c118

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

source/_components/history.markdown

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ comments: false
88
sharing: true
99
footer: true
1010
logo: home-assistant.png
11-
ha_category: "History"
11+
ha_category: History
1212
ha_release: pre 0.7
1313
---
1414

@@ -44,7 +44,8 @@ Configuration variables:
4444
4545
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:
4646

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`).
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+
4849
```yaml
4950
# Example configuration.yaml entry with exclude
5051
history:
@@ -57,7 +58,9 @@ history:
5758
- sensor.last_boot
5859
- sensor.date
5960
```
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+
62+
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.
63+
6164
```yaml
6265
# Example configuration.yaml entry with include
6366
history:
@@ -67,7 +70,9 @@ history:
6770
- switch
6871
- media_player
6972
```
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.
73+
74+
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.
75+
7176
```yaml
7277
# Example configuration.yaml entry with include and exclude
7378
history:
@@ -84,7 +89,7 @@ history:
8489

8590
#### {% linkable_title Implementation details %}
8691

87-
The history is stored in a SQLite database `home-assistant.db` within your config directory.
92+
The history is stored in a SQLite database `home-assistant_v2.db` within your configuration directory.
8893

8994
- events table is all events except `time_changed` that happened while recorder component was running.
9095
- states table contains all the `new_state` values of `state_changed` events.
@@ -96,7 +101,7 @@ The history is stored in a SQLite database `home-assistant.db` within your confi
96101
- `last_updated`: timestamp anything has changed (state, attributes)
97102
- `created`: timestamp this entry was inserted into the database
98103

99-
When the history component queries the states table it only selects states where the state has changed: `WHERE last_changed=last_updated`
104+
When the `history` component queries the states table it only selects states where the state has changed: `WHERE last_changed=last_updated`
100105

101106
#### {% linkable_title On dates %}
102107

0 commit comments

Comments
 (0)