Site updated at 2016-10-24 13:53:26 UTC
This commit is contained in:
parent
8b227b9263
commit
aa1cb3b3e3
23 changed files with 76 additions and 78 deletions
|
@ -127,54 +127,52 @@ Events are saved in a local database. Google Graphs is used to draw the graph. D
|
|||
|
||||
<p>Without any <code class="highlighter-rouge">include</code> or <code class="highlighter-rouge">exclude</code> configuration the history displays graphs for every entity (well that’s not exactly true - for instance <code class="highlighter-rouge">hidden</code> entities or <code class="highlighter-rouge">scenes</code> are never shown) on a given date. If you are only interested in some of the entities you several options:</p>
|
||||
|
||||
<ul>
|
||||
<li>Define domains and entities to <code class="highlighter-rouge">exclude</code> (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 <code class="highlighter-rouge">weblink</code>) or rarely change (<code class="highlighter-rouge">updater</code> or <code class="highlighter-rouge">automation</code>).
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry with exclude</span>
|
||||
<p>Define domains and entities to <code class="highlighter-rouge">exclude</code> (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 <code class="highlighter-rouge">weblink</code>) or rarely change (<code class="highlighter-rouge">updater</code> or <code class="highlighter-rouge">automation</code>).</p>
|
||||
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry with exclude</span>
|
||||
<span class="s">history</span><span class="pi">:</span>
|
||||
<span class="s">exclude</span><span class="pi">:</span>
|
||||
<span class="s">domains</span><span class="pi">:</span>
|
||||
<span class="pi">-</span> <span class="s">automation</span>
|
||||
<span class="pi">-</span> <span class="s">weblink</span>
|
||||
<span class="pi">-</span> <span class="s">updater</span>
|
||||
<span class="s">entities</span><span class="pi">:</span>
|
||||
<span class="pi">-</span> <span class="s">sensor.last_boot</span>
|
||||
<span class="pi">-</span> <span class="s">sensor.date</span>
|
||||
<span class="s">exclude</span><span class="pi">:</span>
|
||||
<span class="s">domains</span><span class="pi">:</span>
|
||||
<span class="pi">-</span> <span class="s">automation</span>
|
||||
<span class="pi">-</span> <span class="s">weblink</span>
|
||||
<span class="pi">-</span> <span class="s">updater</span>
|
||||
<span class="s">entities</span><span class="pi">:</span>
|
||||
<span class="pi">-</span> <span class="s">sensor.last_boot</span>
|
||||
<span class="pi">-</span> <span class="s">sensor.date</span>
|
||||
</code></pre>
|
||||
</div>
|
||||
</li>
|
||||
<li>Define domains and entities to display by using the <code class="highlighter-rouge">include</code> configuration (aka. whitelist). If you have a lot of entities in your system and your <code class="highlighter-rouge">exclude</code> lists possibly get very large, it might be better just to define the entities or domains to display.
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry with include</span>
|
||||
</div>
|
||||
|
||||
<p>Define domains and entities to display by using the <code class="highlighter-rouge">include</code> configuration (aka. whitelist). If you have a lot of entities in your system and your <code class="highlighter-rouge">exclude</code> lists possibly get very large, it might be better just to define the entities or domains to display.</p>
|
||||
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry with include</span>
|
||||
<span class="s">history</span><span class="pi">:</span>
|
||||
<span class="s">include</span><span class="pi">:</span>
|
||||
<span class="s">domains</span><span class="pi">:</span>
|
||||
<span class="pi">-</span> <span class="s">sensor</span>
|
||||
<span class="pi">-</span> <span class="s">switch</span>
|
||||
<span class="pi">-</span> <span class="s">media_player</span>
|
||||
<span class="s">include</span><span class="pi">:</span>
|
||||
<span class="s">domains</span><span class="pi">:</span>
|
||||
<span class="pi">-</span> <span class="s">sensor</span>
|
||||
<span class="pi">-</span> <span class="s">switch</span>
|
||||
<span class="pi">-</span> <span class="s">media_player</span>
|
||||
</code></pre>
|
||||
</div>
|
||||
</li>
|
||||
<li>Use the <code class="highlighter-rouge">include</code> list to define the domains/entities to display, and exclude some of them with in the <code class="highlighter-rouge">exclude</code> list. This makes sense if you for instance include the <code class="highlighter-rouge">sensor</code> domain, but want to exclude some specific sensors. Instead of adding every sensor entity to the <code class="highlighter-rouge">include</code> <code class="highlighter-rouge">entities</code> list just include the <code class="highlighter-rouge">sensor</code> domain and exclude the sensor entities you are not interested in.
|
||||
```yaml
|
||||
<h1>Example configuration.yaml entry with include and exclude</h1>
|
||||
<p>history:
|
||||
include:
|
||||
domains:
|
||||
- sensor
|
||||
- switch
|
||||
- media_player
|
||||
exclude:
|
||||
entities:</p>
|
||||
<ul>
|
||||
<li>sensor.last_boot</li>
|
||||
<li>sensor.date
|
||||
```</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<p>Use the <code class="highlighter-rouge">include</code> list to define the domains/entities to display, and exclude some of them with in the <code class="highlighter-rouge">exclude</code> list. This makes sense if you for instance include the <code class="highlighter-rouge">sensor</code> domain, but want to exclude some specific sensors. Instead of adding every sensor entity to the <code class="highlighter-rouge">include</code> <code class="highlighter-rouge">entities</code> list just include the <code class="highlighter-rouge">sensor</code> domain and exclude the sensor entities you are not interested in.</p>
|
||||
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry with include and exclude</span>
|
||||
<span class="s">history</span><span class="pi">:</span>
|
||||
<span class="s">include</span><span class="pi">:</span>
|
||||
<span class="s">domains</span><span class="pi">:</span>
|
||||
<span class="pi">-</span> <span class="s">sensor</span>
|
||||
<span class="pi">-</span> <span class="s">switch</span>
|
||||
<span class="pi">-</span> <span class="s">media_player</span>
|
||||
<span class="s">exclude</span><span class="pi">:</span>
|
||||
<span class="s">entities</span><span class="pi">:</span>
|
||||
<span class="pi">-</span> <span class="s">sensor.last_boot</span>
|
||||
<span class="pi">-</span> <span class="s">sensor.date</span>
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="implementation-details" href="#implementation-details"></a> Implementation details</h4>
|
||||
|
||||
<p>The history is stored in a SQLite database <code class="highlighter-rouge">home-assistant.db</code> within your config directory.</p>
|
||||
<p>The history is stored in a SQLite database <code class="highlighter-rouge">home-assistant_v2.db</code> within your configuration directory.</p>
|
||||
|
||||
<ul>
|
||||
<li>events table is all events except <code class="highlighter-rouge">time_changed</code> that happened while recorder component was running.</li>
|
||||
|
@ -191,7 +189,7 @@ exclude:
|
|||
</li>
|
||||
</ul>
|
||||
|
||||
<p>When the history component queries the states table it only selects states where the state has changed: <code class="highlighter-rouge">WHERE last_changed=last_updated</code></p>
|
||||
<p>When the <code class="highlighter-rouge">history</code> component queries the states table it only selects states where the state has changed: <code class="highlighter-rouge">WHERE last_changed=last_updated</code></p>
|
||||
|
||||
<h4><a class="title-link" name="on-dates" href="#on-dates"></a> On dates</h4>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue