Site updated at 2015-10-29 07:09:11 UTC
This commit is contained in:
parent
7412a60701
commit
b260f2881e
362 changed files with 42053 additions and 256343 deletions
|
@ -4,7 +4,7 @@
|
|||
<title><![CDATA[Category: component | Home Assistant]]></title>
|
||||
<link href="https://home-assistant.io/blog/categories/component/atom.xml" rel="self"/>
|
||||
<link href="https://home-assistant.io/"/>
|
||||
<updated>2015-10-27T12:45:27-07:00</updated>
|
||||
<updated>2015-10-29T00:08:34-07:00</updated>
|
||||
<id>https://home-assistant.io/</id>
|
||||
<author>
|
||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||
|
@ -21,44 +21,35 @@
|
|||
<content type="html"><![CDATA[<p>Ever since the launch of Home Assistant you have been able to track the state of your house. But the view has always been limited to what the current state is. Not what it was. Today we are going to change that by introducing two brand new components:</p>
|
||||
|
||||
<ul>
|
||||
<li>Recorder component that will record every event to a SQLite database</li>
|
||||
<li>History component that will query and aggregate the recorded events</li>
|
||||
<li>Recorder component that will record every event to a SQLite database</li>
|
||||
<li>History component that will query and aggregate the recorded events</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<p>By adding this view into the past, we are adding an extra dimension into the state of your house. This brings great new possibilities for future features. The focus of todays release is on getting the recording component to you to start recording and getting some data. To show what is being recorded a view has been added that shows the last 24 hours of your house. Expect more extensive tools to explore your history in the future.</p>
|
||||
|
||||
<p>Adding history to the UI was a challenge on itself because the old UI did not support easy navigation. So to add to the awesomeness of this release, Home Assistant also got a face lift.</p>
|
||||
|
||||
<p>The history component will be enabled for new users by default. For current users, run <code>scripts/update</code> to upgrade to the latest version and add <code>[history]</code> to your <code>home-assistant.conf</code> file.</p>
|
||||
|
||||
<p class='img'>
|
||||
<a href='/images/screenshots/component_history_24h.png'>
|
||||
<img src='/images/screenshots/component_history_24h.png' />
|
||||
<p class="img">
|
||||
<a href="/images/screenshots/component_history_24h.png">
|
||||
<img src="/images/screenshots/component_history_24h.png" />
|
||||
</a>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
|
||||
<p class='note'>
|
||||
<p class="note">
|
||||
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 transfered to anyone at any time.
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
|
||||
<!--more-->
|
||||
|
||||
|
||||
<p>Tracking history is an exciting next step for Home Assistant and will power the next generation of features. Here a list of some of the cool things that can now be build:</p>
|
||||
|
||||
<ul>
|
||||
<li>Time Machine: explore the state of your house at any point in the past</li>
|
||||
<li>Smart Home: analyze behavior and use it to automate your house</li>
|
||||
<li>Summarize usage of the different components of your house</li>
|
||||
<li>Time Machine: explore the state of your house at any point in the past</li>
|
||||
<li>Smart Home: analyze behavior and use it to automate your house</li>
|
||||
<li>Summarize usage of the different components of your house</li>
|
||||
</ul>
|
||||
|
||||
]]></content>
|
||||
</entry>
|
||||
|
||||
|
@ -67,22 +58,24 @@ Events are saved in a local database. Google Graphs is used to draw the graph. D
|
|||
<link href="https://home-assistant.io/blog/2015/01/13/nest-in-da-house/"/>
|
||||
<updated>2015-01-13T08:29:04-08:00</updated>
|
||||
<id>https://home-assistant.io/blog/2015/01/13/nest-in-da-house</id>
|
||||
<content type="html"><![CDATA[<p>For thet majority of its existence, Home Assistant primary focus was on presence detection, lights and switches. But not anymore as we’re expanding the supported devices. Today, we’re proud to introduce Nest Thermostat integration for Home Assistant contributed by <a href="https://github.com/sfiorini">Stefano Fiorini</a>!</p>
|
||||
<content type="html"><![CDATA[<p>For thet majority of its existence, Home Assistant primary focus was on presence detection, lights and switches. But not anymore as we’re expanding the supported devices. Today, we’re proud to introduce Nest Thermostat integration for Home Assistant contributed by <a href="https://github.com/sfiorini">Stefano Fiorini</a>!</p>
|
||||
|
||||
<p class='img'>
|
||||
<img src='/images/screenshots/nest-thermostat-card.png' />
|
||||
<p class="img">
|
||||
<img src="/images/screenshots/nest-thermostat-card.png" />
|
||||
</p>
|
||||
|
||||
|
||||
<p>The new integration exists out of two parts: a generic thermostat component and a Nest platform implementation. The initial version implements provides a read-only card and services to control it. The plan is in the future to add temperature and away mode controls from the thermostat card and more info dialog. Internally, we are using the Python package <a href="https://github.com/jkoelker/python-nest">python-nest by jkoelker</a> to talk to the Nest.</p>
|
||||
|
||||
<p>If you own a Nest thermostat, add the following lines to your <code>home-assistant.conf</code>:</p>
|
||||
|
||||
<pre><code>[thermostat]
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre>[thermostat]
|
||||
platform=nest
|
||||
username=YOUR_USERNAME
|
||||
password=YOUR_PASSWORD
|
||||
</code></pre>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
]]></content>
|
||||
</entry>
|
||||
|
||||
|
@ -99,10 +92,13 @@ password=YOUR_PASSWORD
|
|||
|
||||
<p>To enable the discovery component, add the following to your <code>home-assistant.conf</code>:</p>
|
||||
|
||||
<pre><code>[discovery]
|
||||
</code></pre>
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre>[discovery]
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>A new <a href="/developers/add_new_platform.html#discovery">discovery section</a> has been added to the Adding a new platform page with instructions how to make your platform discoverable.</p>
|
||||
<p>A new <a href="/developers/add_new_platform/#discovery">discovery section</a> has been added to the Adding a new platform page with instructions how to make your platform discoverable.</p>
|
||||
]]></content>
|
||||
</entry>
|
||||
|
||||
|
@ -111,29 +107,30 @@ password=YOUR_PASSWORD
|
|||
<link href="https://home-assistant.io/blog/2015/01/04/hey-pushbullet-nice-talking-to-you/"/>
|
||||
<updated>2015-01-04T13:29:07-08:00</updated>
|
||||
<id>https://home-assistant.io/blog/2015/01/04/hey-pushbullet-nice-talking-to-you</id>
|
||||
<content type="html"><![CDATA[<p>One of the things that was missing in Home Assistant for a while was a way to communicate with users. Wouldn’t it be nice to get a message when important events happen like the lights being turned on while no one is home? Since the Home Assistant frontend runs as a web application on the phone, we have no way to bring ourselves to the front. This is where the new notify component comes in, powered by PushBullet.</p>
|
||||
<content type="html"><![CDATA[<p>One of the things that was missing in Home Assistant for a while was a way to communicate with users. Wouldn’t it be nice to get a message when important events happen like the lights being turned on while no one is home? Since the Home Assistant frontend runs as a web application on the phone, we have no way to bring ourselves to the front. This is where the new notify component comes in, powered by PushBullet.</p>
|
||||
|
||||
<p>The new notify component will take in messages and tells them to the user. For now this will be powered by the very awesome <a href="https://www.pushbullet.com/">PushBullet</a> but any other messaging platform can be easily added.</p>
|
||||
|
||||
<p class='img'>
|
||||
<img src='/images/screenshots/pushbullet_moto360.png' />
|
||||
<p class="img">
|
||||
<img src="/images/screenshots/pushbullet_moto360.png" />
|
||||
A message triggered by the simple_alarm component is shown by PushBullet on the Moto360.
|
||||
</p>
|
||||
|
||||
|
||||
<p>Read on to learn how to enable the notify component and integrate it with other components.</p>
|
||||
|
||||
<!--more-->
|
||||
|
||||
|
||||
<h3>Enabling the notify component</h3>
|
||||
|
||||
<p>To enable the new notify component, add the following to your <code>home-assistant.conf</code>:</p>
|
||||
|
||||
<pre><code>[notify]
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre>[notify]
|
||||
platform=pushbullet
|
||||
api_key=ABCDEFGHJKLMNOPQRSTUVXYZ
|
||||
</code></pre>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>You can get your api key from <a href="https://www.pushbullet.com/account">your account page on PushBullet.com</a>.</p>
|
||||
|
||||
|
@ -141,12 +138,15 @@ api_key=ABCDEFGHJKLMNOPQRSTUVXYZ
|
|||
|
||||
<p>To be able to send messages, the notify component has to be loaded and initialized successfully.</p>
|
||||
|
||||
<pre><code class="python">import homeassistant.loader as loader
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="keyword">import</span> <span class="include">homeassistant.loader</span> <span class="keyword">as</span> loader
|
||||
|
||||
def setup(hass, config):
|
||||
notify = loader.get_component('notify')
|
||||
notify.send_message(hass, "Hello from my component!")
|
||||
</code></pre>
|
||||
<span class="keyword">def</span> <span class="function">setup</span>(hass, config):
|
||||
notify = loader.get_component(<span class="string"><span class="delimiter">'</span><span class="content">notify</span><span class="delimiter">'</span></span>)
|
||||
notify.send_message(hass, <span class="string"><span class="delimiter">"</span><span class="content">Hello from my component!</span><span class="delimiter">"</span></span>)
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
]]></content>
|
||||
</entry>
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->
|
||||
|
||||
|
||||
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
|
@ -32,7 +30,6 @@
|
|||
<link rel='icon' type='image/png' href='/images/favicon-192x192.png' sizes='192x192' />
|
||||
</head>
|
||||
|
||||
|
||||
<body >
|
||||
|
||||
<header>
|
||||
|
@ -54,10 +51,10 @@
|
|||
<a href="/getting-started/">Getting started</a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/'>Installing Home Assistant</a></li>
|
||||
<li><a href='/getting-started/configuration.html'>Configuration basics</a></li>
|
||||
<li><a href='/getting-started/devices.html'>Adding devices</a></li>
|
||||
<li><a href='/getting-started/presence-detection.html'>Presence detection</a></li>
|
||||
<li><a href='/getting-started/automation.html'>Automation</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>
|
||||
|
@ -65,26 +62,24 @@
|
|||
<li>
|
||||
<a href="/developers/">Developers</a>
|
||||
<ul>
|
||||
<li><a href="/developers/architecture.html">Architecture</a></li>
|
||||
<li><a href="/developers/frontend.html">Frontend development</a></li>
|
||||
<li><a href="/developers/creating_components.html">
|
||||
<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.html">
|
||||
<li><a href="/developers/add_new_platform/">
|
||||
Adding platform support
|
||||
</a></li>
|
||||
<li><a href="/developers/api.html">API</a></li>
|
||||
<li><a href="/developers/credits.html">Credits</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>
|
||||
|
@ -116,9 +111,7 @@
|
|||
<h2>2015</h2>
|
||||
|
||||
<article>
|
||||
|
||||
|
||||
<div class="grid">
|
||||
<div class="grid">
|
||||
|
||||
<div class="grid__item one-fifth palm-one-whole">
|
||||
<time datetime="2015-02-08T09:01:23-08:00" pubdate>
|
||||
|
@ -129,9 +122,7 @@
|
|||
<h1 class="gamma"><a href="/blog/2015/02/08/looking-at-the-past/">Looking at the past</a></h1>
|
||||
|
||||
<footer class="meta">
|
||||
|
||||
|
||||
<span>
|
||||
<span>
|
||||
<i class="icon-tags"></i>
|
||||
<ul class="tags unstyled">
|
||||
|
||||
|
@ -143,7 +134,6 @@
|
|||
|
||||
</ul>
|
||||
</span>
|
||||
|
||||
</footer>
|
||||
|
||||
<hr class="divider">
|
||||
|
@ -155,9 +145,7 @@
|
|||
|
||||
|
||||
<article>
|
||||
|
||||
|
||||
<div class="grid">
|
||||
<div class="grid">
|
||||
|
||||
<div class="grid__item one-fifth palm-one-whole">
|
||||
<time datetime="2015-01-13T08:29:04-08:00" pubdate>
|
||||
|
@ -168,9 +156,7 @@
|
|||
<h1 class="gamma"><a href="/blog/2015/01/13/nest-in-da-house/">Nest in the house!</a></h1>
|
||||
|
||||
<footer class="meta">
|
||||
|
||||
|
||||
<span>
|
||||
<span>
|
||||
<i class="icon-tags"></i>
|
||||
<ul class="tags unstyled">
|
||||
|
||||
|
@ -180,7 +166,6 @@
|
|||
|
||||
</ul>
|
||||
</span>
|
||||
|
||||
</footer>
|
||||
|
||||
<hr class="divider">
|
||||
|
@ -192,9 +177,7 @@
|
|||
|
||||
|
||||
<article>
|
||||
|
||||
|
||||
<div class="grid">
|
||||
<div class="grid">
|
||||
|
||||
<div class="grid__item one-fifth palm-one-whole">
|
||||
<time datetime="2015-01-11T21:49:08-08:00" pubdate>
|
||||
|
@ -205,9 +188,7 @@
|
|||
<h1 class="gamma"><a href="/blog/2015/01/11/bootstrapping-your-setup-with-discovery/">Bootstrapping your setup with Discovery</a></h1>
|
||||
|
||||
<footer class="meta">
|
||||
|
||||
|
||||
<span>
|
||||
<span>
|
||||
<i class="icon-tags"></i>
|
||||
<ul class="tags unstyled">
|
||||
|
||||
|
@ -217,7 +198,6 @@
|
|||
|
||||
</ul>
|
||||
</span>
|
||||
|
||||
</footer>
|
||||
|
||||
<hr class="divider">
|
||||
|
@ -229,9 +209,7 @@
|
|||
|
||||
|
||||
<article>
|
||||
|
||||
|
||||
<div class="grid">
|
||||
<div class="grid">
|
||||
|
||||
<div class="grid__item one-fifth palm-one-whole">
|
||||
<time datetime="2015-01-04T13:29:07-08:00" pubdate>
|
||||
|
@ -242,9 +220,7 @@
|
|||
<h1 class="gamma"><a href="/blog/2015/01/04/hey-pushbullet-nice-talking-to-you/">Hello PushBullet, nice talking to you</a></h1>
|
||||
|
||||
<footer class="meta">
|
||||
|
||||
|
||||
<span>
|
||||
<span>
|
||||
<i class="icon-tags"></i>
|
||||
<ul class="tags unstyled">
|
||||
|
||||
|
@ -254,7 +230,6 @@
|
|||
|
||||
</ul>
|
||||
</span>
|
||||
|
||||
</footer>
|
||||
|
||||
<hr class="divider">
|
||||
|
@ -277,21 +252,20 @@
|
|||
|
||||
|
||||
|
||||
|
||||
<section class="sharing aside-module grid__item one-whole lap-one-half">
|
||||
<h1 class="title delta">Share this post</h1>
|
||||
|
||||
<a href="//twitter.com/share"
|
||||
class="twitter-share-button"
|
||||
data-url="https://home-assistant.io/blog/categories/component/index.html"
|
||||
data-counturl="https://home-assistant.io/blog/categories/component/index.html" >Tweet</a>
|
||||
data-url="https://home-assistant.io/blog/categories/component/"
|
||||
data-counturl="https://home-assistant.io/blog/categories/component/" >Tweet</a>
|
||||
|
||||
|
||||
<div class="g-plusone" data-size="standard"></div>
|
||||
|
||||
|
||||
<div class="fb-share-button" style='top: -6px;'
|
||||
data-href="https://home-assistant.io/blog/categories/component/index.html"
|
||||
data-href="https://home-assistant.io/blog/categories/component/"
|
||||
data-layout="button_count">
|
||||
</div>
|
||||
|
||||
|
@ -359,7 +333,6 @@
|
|||
|
||||
|
||||
</div>
|
||||
|
||||
</aside>
|
||||
|
||||
</div>
|
||||
|
@ -370,30 +343,23 @@
|
|||
<div class="grid">
|
||||
<div class="grid__item">
|
||||
<p class="copyright">
|
||||
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a>, <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>
|
||||
<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>
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
var disqus_shortname = 'home-assistant';
|
||||
|
||||
|
@ -407,13 +373,5 @@
|
|||
}());
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue