830 lines
No EOL
35 KiB
HTML
830 lines
No EOL
35 KiB
HTML
<!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>Home Assistant</title>
|
||
<meta name="author" content="Home Assistant">
|
||
<meta name="description" content="Home Assistant is an open-source home automation platform running on Python 3.">
|
||
|
||
<meta name="viewport" content="width=device-width">
|
||
<link rel="canonical" href="https://home-assistant.io/blog/posts/10/">
|
||
|
||
<meta property="fb:app_id" content="338291289691179">
|
||
<meta property="og:title" content="Home Assistant">
|
||
<meta property="og:site_name" content="Home Assistant">
|
||
<meta property="og:url" content="https://home-assistant.io/blog/posts/10/">
|
||
<meta property="og:type" content="website">
|
||
<meta property="og:description" content="">
|
||
<meta property="og:image" content="https://home-assistant.io/images/default-social.png">
|
||
|
||
<meta name="twitter:card" content="summary_large_image">
|
||
<meta name="twitter:site" content="@home_assistant">
|
||
|
||
<meta name="twitter:title" content="Home Assistant">
|
||
<meta name="twitter:description" content="">
|
||
<meta name="twitter:image" content="https://home-assistant.io/images/default-social.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='/demo/favicon-192x192.png'>
|
||
<span>Home Assistant</span>
|
||
</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></li>
|
||
<li><a href="/components/">Components</a></li>
|
||
<li><a href="/ecosystem/">Ecosystem</a></li>
|
||
<li><a href="/cookbook/">Examples</a></li>
|
||
<li><a href="/developers/">Developers</a></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="listing">
|
||
<header>
|
||
|
||
<h1 class="beta">
|
||
<a href="/blog/2015/05/09/utc-time-zone-awareness/">UTC & Time zone awareness</a>
|
||
</h1>
|
||
|
||
|
||
|
||
<div class="meta clearfix">
|
||
<time datetime="2015-05-09T23:08:00+00:00" pubdate data-updated="true"><i class="icon-calendar"></i> May 9, 2015</time>
|
||
<span class="byline author vcard"><i class='icon-user'></i> Paulus Schoutsen</span>
|
||
<span><i class='icon-time'></i> two minutes reading time</span>
|
||
<span>
|
||
<i class="icon-tags"></i>
|
||
<ul class="tags unstyled">
|
||
|
||
|
||
<li>Release-Notes</li>
|
||
|
||
|
||
</ul>
|
||
</span>
|
||
|
||
<a class='comments'
|
||
href="/blog/2015/05/09/utc-time-zone-awareness/#disqus_thread"
|
||
>Comments</a>
|
||
|
||
</div>
|
||
|
||
</header>
|
||
|
||
|
||
<div class="entry-content clearfix">
|
||
<p>I have recently merged code to refactor Home Assistant to use only UTC times internally. A much needed refactor. I’ve added some extra test coverage to time sensitive parts to ensure stability. The code has been live in the dev branch for the last 9 days and will be soon released to the master branch.</p>
|
||
|
||
<p>From now on all internal communication will be done in UTC: time changed events, datetime attributes of states, etc. To get the current time in UTC you can call <code class="highlighter-rouge">homeassistant.util.dt.utcnow()</code>. This is a timezone aware UTC datetime object. <a href="https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/util/dt.py"><code class="highlighter-rouge">homeassistant.util.dt</code></a> is a new util package with date helpers.</p>
|
||
|
||
<p>There is also such a thing as local time. Local time is based on the time zone that you have setup in your <code class="highlighter-rouge">configuration.yaml</code>. Local times should only be used for user facing information: logs, frontend and automation settings in <code class="highlighter-rouge">configuration.yaml</code>.</p>
|
||
|
||
<h3>Setting up your time zone</h3>
|
||
<p>Setting up a time zone happens in <code class="highlighter-rouge">configuration.yaml</code>. If you have no time zone setup, it will be auto detected using the existing detection code using <a href="https://freegeoip.net">freegeoip.net</a>. You can find a list of compatible time zones on <a href="http://en.wikipedia.org/wiki/List_of_tz_database_time_zones">Wikipedia</a>.</p>
|
||
|
||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">homeassistant</span><span class="pi">:</span>
|
||
<span class="s">time_zone</span><span class="pi">:</span> <span class="s">America/Los_Angeles</span>
|
||
</code></pre>
|
||
</div>
|
||
|
||
<h3>Compatibility</h3>
|
||
<p>The changes to the code are mostly backwards compatible. The old <code class="highlighter-rouge">hass.track_time_change</code> and <code class="highlighter-rouge">hass.track_point_in_time</code> use now internally two new methods: <code class="highlighter-rouge">hass.track_utc_time_change</code> and <code class="highlighter-rouge">hass.track_point_in_utc_time</code>. The usage of the old methods have not changed and should be backwards compatible.</p>
|
||
|
||
<p>This refactor adds a new migration for the database adding a <code class="highlighter-rouge">utc_offset</code> column to events and states. This information is currently not used but can prove useful in the future when we start analyzing the historical data.</p>
|
||
|
||
<h3><a class="title-link" name="backwards-incompatible-stuff" href="#backwards-incompatible-stuff"></a> Backwards incompatible stuff</h3>
|
||
|
||
<p>All built-in components have been upgraded. The following list is only for people that run custom components:</p>
|
||
|
||
<ul>
|
||
<li><code class="highlighter-rouge">hass.track_time_change</code> and <code class="highlighter-rouge">hass.track_point_in_time</code> will now return a time zone aware datetime object. Python does not allow comparing a naive with an aware datetime object.</li>
|
||
<li>the sun attributes for rising and setting are now in UTC. The methods <code class="highlighter-rouge">sun.next_rising(hass)</code> and <code class="highlighter-rouge">sun.next_setting(hass)</code> are backwards compatible, just be careful if you used to read the raw attributes.</li>
|
||
<li>the API sends all times in UTC. If you use anything else besides the frontend to talk to HA, make sure it handles it differently.</li>
|
||
</ul>
|
||
|
||
|
||
</div>
|
||
</article>
|
||
<hr>
|
||
|
||
<article class="listing">
|
||
<header>
|
||
|
||
<h1 class="beta">
|
||
<a href="/blog/2015/04/25/release-notes/">Release notes for April 25, 2015</a>
|
||
</h1>
|
||
|
||
|
||
|
||
<div class="meta clearfix">
|
||
<time datetime="2015-04-25T13:57:00+00:00" pubdate data-updated="true"><i class="icon-calendar"></i> April 25, 2015</time>
|
||
<span class="byline author vcard"><i class='icon-user'></i> Paulus Schoutsen</span>
|
||
<span><i class='icon-time'></i> two minutes reading time</span>
|
||
<span>
|
||
<i class="icon-tags"></i>
|
||
<ul class="tags unstyled">
|
||
|
||
|
||
<li>Release-Notes</li>
|
||
|
||
|
||
</ul>
|
||
</span>
|
||
|
||
<a class='comments'
|
||
href="/blog/2015/04/25/release-notes/#disqus_thread"
|
||
>Comments</a>
|
||
|
||
</div>
|
||
|
||
</header>
|
||
|
||
|
||
<div class="entry-content clearfix">
|
||
<p>It’s been a month since the latest update and a lot has happened again. Here a quick overview of the new things.</p>
|
||
|
||
<p><strong>Line Charts</strong>
|
||
<a href="https://github.com/jamespcole">James</a> has upgraded the history in the frontend to support line graphs. Line graphs will be shown for any entity that has a unit of measurement. The line graphs will also be shown in the more info card of an entity. <a href="/demo/">See the demo for a live example.</a></p>
|
||
|
||
<p class="img">
|
||
<img src="/images/screenshots/history-line-graphs.png" />
|
||
</p>
|
||
|
||
<p><strong>ISY994 hub support</strong>
|
||
<img src="/images/supported_brands/universal_devices.png" style="border:none; box-shadow: none; float: right;" height="50" /> <a href="https://github.com/rmkraus">Ryan</a> has contributed support to integrate the ISY994 hub by Universal Devices. This allows you to integrate your X10/Insteon sensors, switches and lights.</p>
|
||
|
||
<p>He has created an extensive getting started guide which can be found on <a href="/components/isy994/">the ISY994 component page</a>.</p>
|
||
|
||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
|
||
<span class="s">isy994</span><span class="pi">:</span>
|
||
</code></pre>
|
||
</div>
|
||
|
||
<p><strong>Logbook</strong>
|
||
<img src="/images/screenshots/logbook.png" style="margin-left:10px; float: right;" height="100" /> I (Paulus) have added a logbook component. The logbook component provides a different perspective on the history of your house by showing all the changes that happened to your house in chronological order. <a href="/demo/">See the demo for a live example.</a>
|
||
<span class="clearfix"></span></p>
|
||
|
||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
|
||
<span class="s">logbook</span><span class="pi">:</span>
|
||
</code></pre>
|
||
</div>
|
||
|
||
|
||
|
||
<a class="btn pull-right" href="/blog/2015/04/25/release-notes/#read-more">Read on →</a>
|
||
|
||
</div>
|
||
</article>
|
||
<hr>
|
||
|
||
<article class="listing">
|
||
<header>
|
||
|
||
<h1 class="beta">
|
||
<a href="/blog/2015/03/22/release-notes/">Release notes for March 22, 2015</a>
|
||
</h1>
|
||
|
||
|
||
|
||
<div class="meta clearfix">
|
||
<time datetime="2015-03-22T08:21:00+00:00" pubdate data-updated="true"><i class="icon-calendar"></i> March 22, 2015</time>
|
||
<span class="byline author vcard"><i class='icon-user'></i> Paulus Schoutsen</span>
|
||
<span><i class='icon-time'></i> two minutes reading time</span>
|
||
<span>
|
||
<i class="icon-tags"></i>
|
||
<ul class="tags unstyled">
|
||
|
||
|
||
<li>Release-Notes</li>
|
||
|
||
|
||
</ul>
|
||
</span>
|
||
|
||
<a class='comments'
|
||
href="/blog/2015/03/22/release-notes/#disqus_thread"
|
||
>Comments</a>
|
||
|
||
</div>
|
||
|
||
</header>
|
||
|
||
|
||
<div class="entry-content clearfix">
|
||
<p>A new version of Home Assistant has just been pushed out. It contains bugfixes contributed by <a href="https://github.com/jamespcole">jamespcole</a>, <a href="https://github.com/andythigpen">andythigpen</a>, <a href="https://github.com/trainman419">trainman419</a> and <a href="https://github.com/balloob">me</a>. It also adds a bunch of great new features:</p>
|
||
|
||
<p><strong>Script</strong>
|
||
Andythigpen has contributed a script component. This allows users to create a sequence of service calls and delays. Scripts can be started using the service <code class="highlighter-rouge">script/turn_on</code> and interrupted using the service <code class="highlighter-rouge">script/turn_off</code>. A separate page has been added to the frontend to see the status of your scripts.</p>
|
||
|
||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
|
||
<span class="s">script</span><span class="pi">:</span>
|
||
<span class="c1"># Turns on the bedroom lights and then the living room lights 1 minute later</span>
|
||
<span class="s">wakeup</span><span class="pi">:</span>
|
||
<span class="s">alias</span><span class="pi">:</span> <span class="s">Wake Up</span>
|
||
<span class="s">sequence</span><span class="pi">:</span>
|
||
<span class="pi">-</span> <span class="s">alias</span><span class="pi">:</span> <span class="s">Bedroom lights on</span>
|
||
<span class="s">execute_service</span><span class="pi">:</span> <span class="s">light.turn_on</span>
|
||
<span class="s">service_data</span><span class="pi">:</span>
|
||
<span class="s">entity_id</span><span class="pi">:</span> <span class="s">group.bedroom</span>
|
||
<span class="pi">-</span> <span class="s">delay</span><span class="pi">:</span>
|
||
<span class="c1"># supports seconds, milliseconds, minutes, hours, etc.</span>
|
||
<span class="s">minutes</span><span class="pi">:</span> <span class="s">1</span>
|
||
<span class="pi">-</span> <span class="s">alias</span><span class="pi">:</span> <span class="s">Living room lights on</span>
|
||
<span class="s">execute_service</span><span class="pi">:</span> <span class="s">light.turn_on</span>
|
||
<span class="s">service_data</span><span class="pi">:</span>
|
||
<span class="s">entity_id</span><span class="pi">:</span> <span class="s">group.living_room</span>
|
||
</code></pre>
|
||
</div>
|
||
|
||
|
||
|
||
<a class="btn pull-right" href="/blog/2015/03/22/release-notes/#read-more">Read on →</a>
|
||
|
||
</div>
|
||
</article>
|
||
<hr>
|
||
|
||
<article class="listing">
|
||
<header>
|
||
|
||
<h1 class="beta">
|
||
<a href="/blog/2015/03/11/release-notes/">Release notes for March 11, 2015</a>
|
||
</h1>
|
||
|
||
|
||
|
||
<div class="meta clearfix">
|
||
<time datetime="2015-03-11T18:36:00+00:00" pubdate data-updated="true"><i class="icon-calendar"></i> March 11, 2015</time>
|
||
<span class="byline author vcard"><i class='icon-user'></i> Paulus Schoutsen</span>
|
||
<span><i class='icon-time'></i> two minutes reading time</span>
|
||
<span>
|
||
<i class="icon-tags"></i>
|
||
<ul class="tags unstyled">
|
||
|
||
|
||
<li>Release-Notes</li>
|
||
|
||
|
||
</ul>
|
||
</span>
|
||
|
||
<a class='comments'
|
||
href="/blog/2015/03/11/release-notes/#disqus_thread"
|
||
>Comments</a>
|
||
|
||
</div>
|
||
|
||
</header>
|
||
|
||
|
||
<div class="entry-content clearfix">
|
||
<p>It has only been a little over a week since Theodor introduced YAML support for Home Assistant but so much has already happened that it is time for a summary of recent changes. Before mentioning the highlights I want to thank <a href="https://github.com/andythigpen">andythigpen</a>, <a href="https://github.com/jamespcole">jamespcole</a> and <a href="https://github.com/theolind">theolind</a> for numerous bug fixes, enhancements and new contributions. Thanks!</p>
|
||
|
||
<p><strong>Monitor local resources.</strong><br />
|
||
Theodor has contributed a new sensor platform to allow you to monitor disk usage, memory usage, CPU usage and running processes. This platform has superseded the process component which is now considered deprecated.</p>
|
||
|
||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
|
||
<span class="s">sensor</span><span class="pi">:</span>
|
||
<span class="pi">-</span> <span class="s">platform</span><span class="pi">:</span> <span class="s">systemmonitor</span>
|
||
<span class="s">resources</span><span class="pi">:</span>
|
||
<span class="pi">-</span> <span class="s">type</span><span class="pi">:</span> <span class="s">disk_use_percent</span>
|
||
<span class="s">arg</span><span class="pi">:</span> <span class="s">/home</span>
|
||
<span class="pi">-</span> <span class="s">type</span><span class="pi">:</span> <span class="s">memory_free</span>
|
||
<span class="pi">-</span> <span class="s">type</span><span class="pi">:</span> <span class="s">process</span>
|
||
<span class="s">arg</span><span class="pi">:</span> <span class="s">kodi</span>
|
||
</code></pre>
|
||
</div>
|
||
|
||
<p><strong>Experimental Z-Wave support</strong><br />
|
||
There is now experimental support for connecting Z-Wave networks using a Z-Wave USB stick. Right now it only integrates Z-Wave sensors into Home Assistant. Our goal is to get this tested by more people before adding support for other Z-Wave devices.</p>
|
||
|
||
<p>The new component is built on top of <a href="https://code.google.com/p/python-openzwave/">python-openzwave</a>. This package is currently not distributed on PyPi so we’ve added a script <code class="highlighter-rouge">scripts/build_python_openzwave</code> to install it on your machine. Alternatively you can use the Docker image which is ready to go.</p>
|
||
|
||
<p>The development was done using an AEON Z-Wave USB stick and an AEON Z-Wave MultiSensor.</p>
|
||
|
||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
|
||
<span class="s">zwave</span><span class="pi">:</span>
|
||
<span class="s">usb_path</span><span class="pi">:</span> <span class="s">/dev/ttyUSB0</span>
|
||
</code></pre>
|
||
</div>
|
||
|
||
<p><strong>Voice control</strong><br />
|
||
An initial version of voice control for Home Assistant has landed. The current implementation consists of two parts.</p>
|
||
|
||
<p>The first part is a component called <code class="highlighter-rouge">conversation</code> that exposes the service <code class="highlighter-rouge">conversation/process</code>. This service is capable of processing text and translating them into commands for devices. For now it will only support commands in the format of <code class="highlighter-rouge">Turn <Friendly Name> <on/off></code>.</p>
|
||
|
||
<p>The second part is an upgrade to the frontend to use the speech-to-text in Chrome to allow users to speak commands. If you’re using Chrome, you can test this out in <a href="/demo/">the demo</a>.</p>
|
||
|
||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
|
||
<span class="s">conversation</span><span class="pi">:</span>
|
||
</code></pre>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
</article>
|
||
<hr>
|
||
|
||
<article class="listing">
|
||
<header>
|
||
|
||
<h1 class="beta">
|
||
<a href="/blog/2015/03/08/new-logo/">New logo for Home Assistant</a>
|
||
</h1>
|
||
|
||
|
||
|
||
<div class="meta clearfix">
|
||
<time datetime="2015-03-08T22:16:10+00:00" pubdate data-updated="true"><i class="icon-calendar"></i> March 8, 2015</time>
|
||
<span class="byline author vcard"><i class='icon-user'></i> Paulus Schoutsen</span>
|
||
<span><i class='icon-time'></i> Less than one minute reading time</span>
|
||
<span>
|
||
<i class="icon-tags"></i>
|
||
<ul class="tags unstyled">
|
||
|
||
|
||
<li>Organisation</li>
|
||
|
||
|
||
</ul>
|
||
</span>
|
||
|
||
<a class='comments'
|
||
href="/blog/2015/03/08/new-logo/#disqus_thread"
|
||
>Comments</a>
|
||
|
||
</div>
|
||
|
||
</header>
|
||
|
||
|
||
<div class="entry-content clearfix">
|
||
<p>It is well known that you are either a good programmer or a good designer. It’s rare you’ll meet someone that is both. That’s why it wasn’t surprising to anyone that the logo that I made was mediocre — at best. Luckily, <a href="http://jeremygeltman.com/">Jeremy Geltman</a> has come to the rescue and contributed a brand new logo for Home Assistant.</p>
|
||
|
||
<p>The new logo follows Googles material design spec. It uses the blue color that Home Assistant uses in the interface and it comes in two versions: a high detailed version (for homescreen icon etc) and a simple version (for favicon etc).</p>
|
||
|
||
<p class="img">
|
||
<img src="/images/blog/ha-logo-history.png" />
|
||
The old logo, the new detailed logo and the new simple logo.
|
||
</p>
|
||
|
||
|
||
</div>
|
||
</article>
|
||
<hr>
|
||
|
||
<article class="listing">
|
||
<header>
|
||
|
||
<h1 class="beta">
|
||
<a href="/blog/2015/03/01/home-assistant-migrating-to-yaml/">Home Assistant moving to YAML</a>
|
||
</h1>
|
||
|
||
|
||
|
||
<div class="meta clearfix">
|
||
<time datetime="2015-03-01T19:38:00+00:00" pubdate data-updated="true"><i class="icon-calendar"></i> March 1, 2015</time>
|
||
<span class="byline author vcard"><i class='icon-user'></i> Theodor Lindquist</span>
|
||
<span><i class='icon-time'></i> Less than one minute reading time</span>
|
||
<span>
|
||
<i class="icon-tags"></i>
|
||
<ul class="tags unstyled">
|
||
|
||
|
||
<li>Release-Notes</li>
|
||
|
||
|
||
</ul>
|
||
</span>
|
||
|
||
<a class='comments'
|
||
href="/blog/2015/03/01/home-assistant-migrating-to-yaml/#disqus_thread"
|
||
>Comments</a>
|
||
|
||
</div>
|
||
|
||
</header>
|
||
|
||
|
||
<div class="entry-content clearfix">
|
||
<p>Home Assistant is now using <a href="http://yaml.org/">YAML</a> for it’s configuration file. YAML allows the use of lists, which should make the configuration file a bit more flexible and useful. The new configuration file format is backwards compatible with existing components. Because of this, there is no need for component developers to update their components.</p>
|
||
|
||
<p>The new file is named configuration.yaml and if it can’t be found in your config directory, Home Assistant will instead try to find the old configuration file, home-assistant.conf.</p>
|
||
|
||
<p>The home-assistant.conf.example has been replaced with an updated <a href="https://github.com/home-assistant/home-assistant/blob/dev/config/configuration.yaml.example">configuration.yaml.example</a>.</p>
|
||
|
||
<p>Users of Home Assistant should migrate as the old configuration format is deprecated.</p>
|
||
|
||
|
||
</div>
|
||
</article>
|
||
<hr>
|
||
|
||
<article class="listing">
|
||
<header>
|
||
|
||
<h1 class="beta">
|
||
<a href="/blog/2015/02/24/streaming-updates/">Streaming updates</a>
|
||
</h1>
|
||
|
||
|
||
|
||
<div class="meta clearfix">
|
||
<time datetime="2015-02-24T22:41:27+00:00" pubdate data-updated="true"><i class="icon-calendar"></i> February 24, 2015</time>
|
||
<span class="byline author vcard"><i class='icon-user'></i> Paulus Schoutsen</span>
|
||
<span><i class='icon-time'></i> 1 minute reading time</span>
|
||
<span>
|
||
<i class="icon-tags"></i>
|
||
<ul class="tags unstyled">
|
||
|
||
|
||
<li>Release-Notes</li>
|
||
|
||
|
||
</ul>
|
||
</span>
|
||
|
||
<a class='comments'
|
||
href="/blog/2015/02/24/streaming-updates/#disqus_thread"
|
||
>Comments</a>
|
||
|
||
</div>
|
||
|
||
</header>
|
||
|
||
|
||
<div class="entry-content clearfix">
|
||
<p>Home Assistant has learned a new trick to get the latest information from the server: streaming updates. No longer will the frontend poll every 30 seconds for updates but instead it will keep a connection open and get the latest changes pushed as soon as they happen.</p>
|
||
|
||
<p>A new toggle has been added ot the sidebar to turn streaming updates on and off. This preference will be saved on a per-browser basis using local storage. The toggle will also indicate when there is an error setting up a stream after which it will fall back to use polling.</p>
|
||
|
||
<p class="img"><img src="/images/screenshots/streaming-updates.png" /></p>
|
||
|
||
|
||
|
||
<a class="btn pull-right" href="/blog/2015/02/24/streaming-updates/#read-more">Read on →</a>
|
||
|
||
</div>
|
||
</article>
|
||
<hr>
|
||
|
||
<article class="listing">
|
||
<header>
|
||
|
||
<h1 class="beta">
|
||
<a href="/blog/2015/02/08/looking-at-the-past/">Looking at the past</a>
|
||
</h1>
|
||
|
||
|
||
|
||
<div class="meta clearfix">
|
||
<time datetime="2015-02-08T17:01:23+00:00" pubdate data-updated="true"><i class="icon-calendar"></i> February 8, 2015</time>
|
||
<span class="byline author vcard"><i class='icon-user'></i> Paulus Schoutsen</span>
|
||
<span><i class='icon-time'></i> 1 minute reading time</span>
|
||
<span>
|
||
<i class="icon-tags"></i>
|
||
<ul class="tags unstyled">
|
||
|
||
|
||
<li>Release-Notes</li>
|
||
|
||
|
||
</ul>
|
||
</span>
|
||
|
||
<a class='comments'
|
||
href="/blog/2015/02/08/looking-at-the-past/#disqus_thread"
|
||
>Comments</a>
|
||
|
||
</div>
|
||
|
||
</header>
|
||
|
||
|
||
<div class="entry-content clearfix">
|
||
<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>
|
||
</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 class="highlighter-rouge">scripts/update</code> to upgrade to the latest version and add <code class="highlighter-rouge">[history]</code> to your <code class="highlighter-rouge">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" />
|
||
</a>
|
||
</p>
|
||
|
||
<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>
|
||
|
||
|
||
|
||
<a class="btn pull-right" href="/blog/2015/02/08/looking-at-the-past/#read-more">Read on →</a>
|
||
|
||
</div>
|
||
</article>
|
||
<hr>
|
||
|
||
<article class="listing">
|
||
<header>
|
||
|
||
<h1 class="beta">
|
||
<a href="/blog/2015/01/24/release-notes/">Release notes for January 24, 2015</a>
|
||
</h1>
|
||
|
||
|
||
|
||
<div class="meta clearfix">
|
||
<time datetime="2015-01-24T18:36:00+00:00" pubdate data-updated="true"><i class="icon-calendar"></i> January 24, 2015</time>
|
||
<span class="byline author vcard"><i class='icon-user'></i> Paulus Schoutsen</span>
|
||
<span><i class='icon-time'></i> 1 minute reading time</span>
|
||
<span>
|
||
<i class="icon-tags"></i>
|
||
<ul class="tags unstyled">
|
||
|
||
|
||
<li>Release-Notes</li>
|
||
|
||
|
||
</ul>
|
||
</span>
|
||
|
||
<a class='comments'
|
||
href="/blog/2015/01/24/release-notes/#disqus_thread"
|
||
>Comments</a>
|
||
|
||
</div>
|
||
|
||
</header>
|
||
|
||
|
||
<div class="entry-content clearfix">
|
||
<p>I have just merged the latest version of the development branch into master. Here are some of the highlights of this release:</p>
|
||
|
||
<p><strong>Configuration via the frontend</strong><br />
|
||
Phliips Hue will now be auto discovered and uses the new <code class="highlighter-rouge">configurator</code> component to interact with the user to finish the setup process.</p>
|
||
|
||
<p><strong>Wink Hub support</strong><br />
|
||
Thanks to the work done by John McLaughlin and Geoff Norton we now support the lights, switches and sensors that are connected to the Wink hub.</p>
|
||
|
||
<p><strong>The getting started guide and component page have been reorganized</strong><br />
|
||
The getting started instructions have been split into separate pages per component and a general overview page. The goal is to have a page per component that describes:</p>
|
||
|
||
<ul>
|
||
<li>What it does</li>
|
||
<li>How to set it up</li>
|
||
<li>Which states it maintains</li>
|
||
<li>Which services it provides</li>
|
||
<li>Additional development tips</li>
|
||
</ul>
|
||
|
||
<p><strong>More reasonable errors</strong><br />
|
||
Home Assistant should now throw better errors and offer solutions if you do not have the right version of Python 3, forgot to clone the git submodules or install the dependencies.</p>
|
||
|
||
<p><strong>Streamlined first launch</strong><br />
|
||
Home Assistant now supports <code class="highlighter-rouge">--open-ui</code> and <code class="highlighter-rouge">--demo-mode</code> command line properties to open the browser automatically and have something to show. Home Assistant now supports to be run without a password, allowing the interface to login automatically on launch.</p>
|
||
|
||
|
||
</div>
|
||
</article>
|
||
<hr>
|
||
|
||
<article class="listing">
|
||
<header>
|
||
|
||
<h1 class="beta">
|
||
<a href="/blog/2015/01/13/nest-in-da-house/">Nest in the house!</a>
|
||
</h1>
|
||
|
||
|
||
|
||
<div class="meta clearfix">
|
||
<time datetime="2015-01-13T16:29:04+00:00" pubdate data-updated="true"><i class="icon-calendar"></i> January 13, 2015</time>
|
||
<span class="byline author vcard"><i class='icon-user'></i> Paulus Schoutsen</span>
|
||
<span><i class='icon-time'></i> Less than one minute reading time</span>
|
||
<span>
|
||
<i class="icon-tags"></i>
|
||
<ul class="tags unstyled">
|
||
|
||
|
||
<li>Release-Notes</li>
|
||
|
||
|
||
</ul>
|
||
</span>
|
||
|
||
<a class='comments'
|
||
href="/blog/2015/01/13/nest-in-da-house/#disqus_thread"
|
||
>Comments</a>
|
||
|
||
</div>
|
||
|
||
</header>
|
||
|
||
|
||
<div class="entry-content clearfix">
|
||
<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>
|
||
|
||
<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 class="highlighter-rouge">home-assistant.conf</code>:</p>
|
||
|
||
<div class="language-conf highlighter-rouge"><pre class="highlight"><code>[<span class="n">thermostat</span>]
|
||
<span class="n">platform</span>=<span class="n">nest</span>
|
||
<span class="n">username</span>=<span class="n">YOUR_USERNAME</span>
|
||
<span class="n">password</span>=<span class="n">YOUR_PASSWORD</span>
|
||
</code></pre>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
</article>
|
||
<hr>
|
||
|
||
|
||
<div class="pagination">
|
||
|
||
<a class="btn pull-left" href="/blog/posts/11">← Older</a>
|
||
|
||
|
||
|
||
<a class="btn pull-right" href="/blog/posts/9">Newer →</a>
|
||
|
||
</div>
|
||
|
||
|
||
</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">
|
||
<h1 class="title delta">About Home Assistant</h1>
|
||
<ul class="divided">
|
||
<li>
|
||
Home Assistant is an open-source home automation platform running on Python 3. Track and control all devices at home and automate control.
|
||
</li>
|
||
<li><a href='/getting-started/'>Get started with Home Assistant</a></li>
|
||
<li><a href='/demo/'>Try the online demo</a></li>
|
||
<li><a class="twitter-follow-button" href="https://twitter.com/Home_Assistant">Follow Home Assistant on Twitter</a></li>
|
||
<li><div class="fb-like" data-href="https://www.facebook.com/homeassistantio/" data-layout="standard" data-action="like" data-size="small" data-show-faces="true" data-share="false"></div></li>
|
||
</ul>
|
||
</section>
|
||
<div id="fb-root"></div>
|
||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.async=true;js.src='//platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
|
||
<script>(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id)){return;}js=d.createElement(s);js.id=id;js.async=true;js.src="//connect.facebook.net/en_US/all.js#appId=338291289691179&xfbml=1";fjs.parentNode.insertBefore(js,fjs);}(document,'script','facebook-jssdk'));</script>
|
||
|
||
|
||
<section class="aside-module grid__item one-whole lap-one-half">
|
||
<h1 class="title delta">Categories</h1>
|
||
<ul class="divided">
|
||
|
||
|
||
<li><a href="/blog/categories/community/">Community</a></li>
|
||
|
||
<li><a href="/blog/categories/device-tracking/">Device Tracking</a></li>
|
||
|
||
<li><a href="/blog/categories/esp8266/">ESP8266</a></li>
|
||
|
||
<li><a href="/blog/categories/how-to/">How To</a></li>
|
||
|
||
<li><a href="/blog/categories/internet-of-things/">Internet of Things</a></li>
|
||
|
||
<li><a href="/blog/categories/iot-data/">IoT Data</a></li>
|
||
|
||
<li><a href="/blog/categories/mqtt/">MQTT</a></li>
|
||
|
||
<li><a href="/blog/categories/merchandise/">Merchandise</a></li>
|
||
|
||
<li><a href="/blog/categories/micropython/">Micropython</a></li>
|
||
|
||
<li><a href="/blog/categories/organisation/">Organisation</a></li>
|
||
|
||
<li><a href="/blog/categories/owntracks/">OwnTracks</a></li>
|
||
|
||
<li><a href="/blog/categories/presence-detection/">Presence Detection</a></li>
|
||
|
||
<li><a href="/blog/categories/public-service-announcement/">Public Service Announcement</a></li>
|
||
|
||
<li><a href="/blog/categories/release-notes/">Release Notes</a></li>
|
||
|
||
<li><a href="/blog/categories/survey/">Survey</a></li>
|
||
|
||
<li><a href="/blog/categories/talks/">Talks</a></li>
|
||
|
||
<li><a href="/blog/categories/technology/">Technology</a></li>
|
||
|
||
<li><a href="/blog/categories/user-stories/">User Stories</a></li>
|
||
|
||
<li><a href="/blog/categories/video/">Video</a></li>
|
||
|
||
<li><a href="/blog/categories/website/">Website</a></li>
|
||
|
||
<li><a href="/blog/categories/ibeacons/">iBeacons</a></li>
|
||
|
||
</ul>
|
||
</section>
|
||
|
||
|
||
</div>
|
||
</aside>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<footer>
|
||
<div class="grid-wrapper">
|
||
<div class="grid">
|
||
<div class="grid__item">
|
||
<div class="copyright">
|
||
<a rel="me" href='https://twitter.com/home_assistant'><i class="icon-twitter"></i></a>
|
||
<a rel="me" href='https://facebook.com/homeassistantio'><i class="icon-facebook"></i></a>
|
||
<a rel="me" href='https://plus.google.com/110560654828510104551'><i class="icon-google-plus"></i></a>
|
||
<a rel="me" href='https://github.com/home-assistant/home-assistant'><i class="icon-github"></i></a>
|
||
|
||
<div class="credit">
|
||
Contact us at <a href='mailto:hello@home-assistant.io'>hello@home-assistant.io</a>.<br>
|
||
Website powered by <a href='http://jekyllrb.com/'>Jekyll</a> and the <a href='https://github.com/coogie/oscailte'>Oscalite theme</a>.<br />
|
||
Hosted by <a href='https://pages.github.com/'>GitHub</a> and served by <a href='https://cloudflare.com'>CloudFlare</a>.
|
||
</div>
|
||
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">home-assistant.io</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</footer>
|
||
|
||
<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';
|
||
|
||
|
||
var disqus_script = 'count.js';
|
||
|
||
(function () {
|
||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||
dsq.src = '//' + disqus_shortname + '.disqus.com/' + disqus_script;
|
||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||
}());
|
||
</script>
|
||
</body>
|
||
</html> |