Site updated at 2015-12-06 21:32:51 UTC

This commit is contained in:
Paulus Schoutsen 2015-12-06 13:32:52 -08:00
parent ba22ea3d06
commit a9c9fe76ea
86 changed files with 3171 additions and 2567 deletions

View file

@ -100,11 +100,12 @@
</header>
<hr class="divider">
<p>Binary sensors are gathering information about state of switches, contacts, pins, and alike. The return value of those sensors is usually digital (1/0). This means that those sensors knows only two states: <strong>off/low/open</strong>* and <strong>*on/high/closed</strong>.</p>
<p>Binary sensors are gathering information about state of switches, contacts, pins, and alike. The return value of those sensors is usually digital (1/0). This means that those sensors knows only two states: <strong>off/low/open</strong> and <strong>on/high/closed</strong>.</p>
<p>Knowing that there are only two states allows Home Assistant to represent the sensor better in the frontend.</p>
<p>For analog sensors please check the <a href="https://home-assistant.io/components/#sensor">component overview</a>.</p>
</article>

View file

@ -161,6 +161,9 @@
<li>
<a href='/components/downloader/'>Downloader</a>
</li>
<li>
<a href='/components/influxdb/'>InfluxDB</a>
</li>
<li>
<a href='/components/introduction/'>Introduction</a>
</li>

View file

@ -147,6 +147,9 @@ This component is intended for developers.
<li>
<a href='/components/downloader/'>Downloader</a>
</li>
<li>
<a href='/components/influxdb/'>InfluxDB</a>
</li>
<li>
<a href='/components/introduction/'>Introduction</a>
</li>

View file

@ -148,6 +148,9 @@
<li>
<a href='/components/downloader/'>Downloader</a>
</li>
<li>
<a href='/components/influxdb/'>InfluxDB</a>
</li>
<li>
<a href='/components/introduction/'>Introduction</a>
</li>

View file

@ -158,6 +158,9 @@ There is currently a <a href="https://bitbucket.org/al45tair/netifaces/issues/17
<li>
<a href='/components/downloader/'>Downloader</a>
</li>
<li>
<a href='/components/influxdb/'>InfluxDB</a>
</li>
<li>
<a href='/components/introduction/'>Introduction</a>
</li>

View file

@ -179,6 +179,9 @@
<li>
Downloader
</li>
<li>
<a href='/components/influxdb/'>InfluxDB</a>
</li>
<li>
<a href='/components/introduction/'>Introduction</a>
</li>

View file

@ -706,6 +706,18 @@ Support for these components is provided by the Home Assistant community.
<a href='/components/influxdb/' class='other'>
<div class='img-container'>
<img src='/images/supported_brands/influxdb.png'>
</div>
<div class='title'>InfluxDB</div>
<div class='category'>Other</div>
</a>
<a href='/components/notify.instapush/' class='notifications'>
<div class='img-container'>

View file

@ -0,0 +1,202 @@
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>InfluxDB - Home Assistant</title>
<meta name="author" content="Paulus Schoutsen">
<meta name="description" content="Record events in InfluxDB.">
<meta name="viewport" content="width=device-width">
<link rel="canonical" href="https://home-assistant.io/components/influxdb/">
<meta property="fb:app_id" content="338291289691179">
<meta property="og:title" content="InfluxDB">
<meta property="og:site_name" content="Home Assistant">
<meta property="og:url" content="https://home-assistant.io/components/influxdb/">
<meta property="og:type" content="article">
<meta property="og:description" content="Record events in InfluxDB.">
<meta property="og:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet">
<link href="/atom.xml" rel="alternate" title="Home Assistant" type="application/atom+xml">
<link rel='shortcut icon' href='/images/favicon.ico' />
<link rel='icon' type='image/png' href='/images/favicon-192x192.png' sizes='192x192' />
</head>
<body >
<header>
<div class="grid-wrapper">
<div class="grid">
<div class="grid__item three-tenths lap-two-sixths palm-one-whole ha-title">
<a href="/" class="site-title">
<img width='40' src='/images/favicon-192x192.png'> Home Assistant
</a>
</div>
<div class="grid__item seven-tenths lap-four-sixths palm-one-whole">
<nav>
<input type="checkbox" id="toggle">
<label for="toggle" class="toggle" data-open="Main Menu" data-close="Close Menu"></label>
<ul class="menu pull-right">
<li>
<a href="/getting-started/">Getting started</a>
<ul>
<li><a href='/getting-started/'>Installing Home Assistant</a></li>
<li><a href='/getting-started/configuration/'>Configuration basics</a></li>
<li><a href='/getting-started/devices/'>Adding devices</a></li>
<li><a href='/getting-started/presence-detection/'>Presence detection</a></li>
<li><a href='/getting-started/automation/'>Automation</a></li>
<li><a href='/cookbook'>Configuration cookbook</a></li>
</ul>
</li>
<li><a href='/components/'>Components</a></li>
<li>
<a href="/developers/">Developers</a>
<ul>
<li><a href="/developers/architecture/">Architecture</a></li>
<li><a href="/developers/frontend/">Frontend development</a></li>
<li><a href="/developers/creating_components/">
Creating components
</a></li>
<li><a href="/developers/add_new_platform/">
Adding platform support
</a></li>
<li><a href="/developers/api/">API</a></li>
<li><a href="/developers/credits/">Credits</a></li>
</ul>
</li>
<li><a href="/blog/">Blog</a></li>
<li><a href="/help/">Need help?</a></li>
</ul>
</nav>
</div>
</div>
</div>
</header>
<div class="grid-wrapper">
<div class="grid grid-center">
<div class="grid__item two-thirds lap-one-whole palm-one-whole">
<article class="page">
<header>
<h1 class="title indent">
InfluxDB
</h1>
</header>
<hr class="divider">
<p>This component will allow you to record events to an InfluxDB database.</p>
<p class="note warning">
If you use Home Assistant 0.9, load this component as <code>influx</code>.
</p>
<div class="highlighter-coderay"><div class="CodeRay">
<div class="code"><pre><span class="comment"># Example configuration.yaml entry</span>
<span class="key">influxdb</span>:
<span class="key">host</span>: <span class="string"><span class="content">DB_HOST_IP_ADDRESS</span></span>
<span class="comment"># Optional, default: 8086</span>
<span class="key">port</span>: <span class="string"><span class="content">20000</span></span>
<span class="comment"># Optional, default: home_assistant</span>
<span class="key">database</span>: <span class="string"><span class="content">DB_TO_STORE_EVENTS</span></span>
<span class="comment"># Optional</span>
<span class="key">username</span>: <span class="string"><span class="content">MY_USER</span></span>
<span class="key">password</span>: <span class="string"><span class="content">MY_PASS</span></span>
</pre></div>
</div>
</div>
</article>
</div>
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">
<div class="grid">
<section class="aside-module grid__item one-whole lap-one-half">
<div class='brand-logo-container section'>
<img src='/images/supported_brands/influxdb.png' />
</div>
<div class='section'>
<h1 class="title delta">Category Other</h1>
<ul class='divided'>
<li>
<a href='/components/browser/'>Browser</a>
</li>
<li>
<a href='/components/configurator/'>Configurator</a>
</li>
<li>
<a href='/components/conversation/'>Conversation</a>
</li>
<li>
<a href='/components/discovery/'>Discovery</a>
</li>
<li>
<a href='/components/downloader/'>Downloader</a>
</li>
<li>
InfluxDB
</li>
<li>
<a href='/components/introduction/'>Introduction</a>
</li>
<li>
<a href='/components/logger/'>Logger</a>
</li>
<li>
<a href='/components/updater/'>Updater</a>
</li>
</ul>
</div>
</section>
</div>
</aside>
</div>
</div>
<footer>
<div class="grid-wrapper">
<div class="grid">
<div class="grid__item">
<p class="copyright">
<span class="credit">Powered by <a href='http://jekyllrb.com/'>Jekyll</a> and the <a href='https://github.com/coogie/oscailte'>Oscalite theme</a>. Hosted by <a href='https://pages.github.com/'>GitHub</a> and served by <a href='https://cloudflare.com'>CloudFlare</a>.</span>
</p>
</div>
</div>
</div>
</footer>
<!--[if lt IE 7]>
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
<![endif]-->
<script>
var _gaq=[['_setAccount','UA-57927901-1'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
</body>
</html>

View file

@ -145,6 +145,9 @@ print the same message to the console when starting up.</p>
<li>
<a href='/components/downloader/'>Downloader</a>
</li>
<li>
<a href='/components/influxdb/'>InfluxDB</a>
</li>
<li>
Introduction
</li>

View file

@ -177,6 +177,9 @@
<li>
<a href='/components/downloader/'>Downloader</a>
</li>
<li>
<a href='/components/influxdb/'>InfluxDB</a>
</li>
<li>
<a href='/components/introduction/'>Introduction</a>
</li>

View file

@ -252,6 +252,46 @@ Home Assistant will automatically load the correct certificate if you connect to
</div>
</div>
<h2><a class="title-link" name="processing-json" href="#processing-json"></a> Processing JSON</h2>
<p>The MQTT switch and sensor platforms support processing JSON over MQTT messages and parse them using JSONPath. JSONPath allows you to specify where in the JSON the value resides that you want to use. The following examples will always return the value <code>100</code>.</p>
<table>
<thead>
<tr>
<th>JSONPath query</th>
<th>JSON</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>somekey</code></td>
<td><code>{ 'somekey': 100 }</code></td>
</tr>
<tr>
<td><code>somekey[0]</code></td>
<td><code>{ 'somekey': [100] }</code></td>
</tr>
<tr>
<td><code>somekey[0].value</code></td>
<td><code>{ 'somekey': [ { value: 100 } ] }</code></td>
</tr>
</tbody>
</table>
<p>To use this, add the following key to your <code>configuration.yaml</code>:</p>
<div class="highlighter-coderay"><div class="CodeRay">
<div class="code"><pre><span class="key">switch</span>:
<span class="key">platform</span>: <span class="string"><span class="content">mqtt</span></span>
<span class="key">state_format</span>: <span class="string"><span class="content">'json:somekey[0].value'</span></span>
</pre></div>
</div>
</div>
<p>More information about the full JSONPath syntax can be found <a href="https://github.com/kennknowles/python-jsonpath-rw#jsonpath-syntax">here</a>.</p>
</article>

View file

@ -110,7 +110,7 @@
<span class="key">address</span>: <span class="string"><span class="content">HOMEGEAR/CCU_ADDRESS</span></span>
<span class="key">devices</span>:
<span class="key">Livingroom 1</span>:
<span class="key">id</span>: <span class="string"><span class="content">DEVICE_SERIAL_NO </span></span>
<span class="key">id</span>: <span class="string"><span class="content">DEVICE_SERIAL_NO</span></span>
<span class="key">Livingroom 2</span>:
<span class="key">id</span>: <span class="string"><span class="content">DEVICE_SERIAL_NO</span></span>
</pre></div>

View file

@ -150,6 +150,9 @@
<li>
<a href='/components/downloader/'>Downloader</a>
</li>
<li>
<a href='/components/influxdb/'>InfluxDB</a>
</li>
<li>
<a href='/components/introduction/'>Introduction</a>
</li>