Site updated at 2015-05-10 06:58:26 UTC

This commit is contained in:
Paulus Schoutsen 2015-05-09 23:58:26 -07:00
parent 74090f6d57
commit f53c01f50d
39 changed files with 1082 additions and 282 deletions

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: architecture | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/architecture/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2015-05-01T17:00:04-07:00</updated>
<updated>2015-05-09T23:58:15-07:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Paulus Schoutsen]]></name>

View file

@ -205,6 +205,12 @@
<ul class="divided">
<li class="post">
<a href="/blog/2015/05/09/utc-time-zone-awareness/">UTC & Time zone awareness</a>
</li>
<li class="post">
<a href="/blog/2015/04/25/release-notes/">Release notes for April 25, 2015</a>
</li>
@ -228,12 +234,6 @@
</li>
<li class="post">
<a href="/blog/2015/03/01/home-assistant-migrating-to-yaml/">Home Assistant moving to YAML</a>
</li>
</ul>
</section>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: branding | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/branding/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2015-05-01T17:00:04-07:00</updated>
<updated>2015-05-09T23:58:15-07:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Paulus Schoutsen]]></name>

View file

@ -205,6 +205,12 @@
<ul class="divided">
<li class="post">
<a href="/blog/2015/05/09/utc-time-zone-awareness/">UTC & Time zone awareness</a>
</li>
<li class="post">
<a href="/blog/2015/04/25/release-notes/">Release notes for April 25, 2015</a>
</li>
@ -228,12 +234,6 @@
</li>
<li class="post">
<a href="/blog/2015/03/01/home-assistant-migrating-to-yaml/">Home Assistant moving to YAML</a>
</li>
</ul>
</section>

View file

@ -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-05-01T17:00:04-07:00</updated>
<updated>2015-05-09T23:58:15-07:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Paulus Schoutsen]]></name>

View file

@ -318,6 +318,12 @@
<ul class="divided">
<li class="post">
<a href="/blog/2015/05/09/utc-time-zone-awareness/">UTC & Time zone awareness</a>
</li>
<li class="post">
<a href="/blog/2015/04/25/release-notes/">Release notes for April 25, 2015</a>
</li>
@ -341,12 +347,6 @@
</li>
<li class="post">
<a href="/blog/2015/03/01/home-assistant-migrating-to-yaml/">Home Assistant moving to YAML</a>
</li>
</ul>
</section>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: core | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/core/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2015-05-01T17:00:04-07:00</updated>
<updated>2015-05-09T23:58:15-07:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Paulus Schoutsen]]></name>
@ -13,6 +13,44 @@
<generator uri="http://octopress.org/">Octopress</generator>
<entry>
<title type="html"><![CDATA[UTC & Time zone awareness]]></title>
<link href="https://home-assistant.io/blog/2015/05/09/utc-time-zone-awareness/"/>
<updated>2015-05-09T23:08:00-07:00</updated>
<id>https://home-assistant.io/blog/2015/05/09/utc-time-zone-awareness</id>
<content type="html"><![CDATA[<p>I have recently merged code to refactor Home Assistant to use only UTC times internally. A much needed refactor. I&rsquo;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>homeassistant.util.dt.utcnow()</code>. This is a timezone aware UTC datetime object. <a href="https://github.com/balloob/home-assistant/blob/dev/homeassistant/util/dt.py"><code>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>configuration.yaml</code>. Local times should only be used for user facing information: logs, frontend and automation settings in <code>configuration.yaml</code>.</p>
<h3>Setting up your time zone</h3>
<p>Setting up a time zone happens in <code>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>
<pre><code class="yaml">homeassistant:
time_zone: America/Los_Angeles
</code></pre>
<h3>Compatibility</h3>
<p>The changes to the code are mostly backwards compatible. The old <code>hass.track_time_change</code> and <code>hass.track_point_in_time</code> use now internally two new methods: <code>hass.track_utc_time_change</code> and <code>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>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>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>hass.track_time_change</code> and <code>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>sun.next_rising(hass)</code> and <code>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>
]]></content>
</entry>
<entry>
<title type="html"><![CDATA[Home Assistant moving to YAML]]></title>
<link href="https://home-assistant.io/blog/2015/03/01/home-assistant-migrating-to-yaml/"/>

View file

@ -113,6 +113,43 @@
<article>
<div class="grid">
<div class="grid__item one-fifth palm-one-whole">
<time datetime="2015-05-09T23:08:00-07:00" pubdate>
<span class='month'>May</span> <span class='day'>09</span>
</time>
</div>
<div class="grid__item four-fifths palm-one-whole">
<h1 class="gamma"><a href="/blog/2015/05/09/utc-time-zone-awareness/">UTC & Time zone awareness</a></h1>
<footer class="meta">
<span>
<i class="icon-tags"></i>
<ul class="tags unstyled">
<li><a class='category' href='/blog/categories/core/'>core</a></li>
</ul>
</span>
</footer>
<hr class="divider">
</div>
</div>
</article>
<article>
<div class="grid">
<div class="grid__item one-fifth palm-one-whole">
@ -205,6 +242,12 @@
<ul class="divided">
<li class="post">
<a href="/blog/2015/05/09/utc-time-zone-awareness/">UTC & Time zone awareness</a>
</li>
<li class="post">
<a href="/blog/2015/04/25/release-notes/">Release notes for April 25, 2015</a>
</li>
@ -228,12 +271,6 @@
</li>
<li class="post">
<a href="/blog/2015/03/01/home-assistant-migrating-to-yaml/">Home Assistant moving to YAML</a>
</li>
</ul>
</section>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: frontend | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/frontend/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2015-05-01T17:00:04-07:00</updated>
<updated>2015-05-09T23:58:15-07:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Paulus Schoutsen]]></name>

View file

@ -244,6 +244,12 @@
<ul class="divided">
<li class="post">
<a href="/blog/2015/05/09/utc-time-zone-awareness/">UTC & Time zone awareness</a>
</li>
<li class="post">
<a href="/blog/2015/04/25/release-notes/">Release notes for April 25, 2015</a>
</li>
@ -267,12 +273,6 @@
</li>
<li class="post">
<a href="/blog/2015/03/01/home-assistant-migrating-to-yaml/">Home Assistant moving to YAML</a>
</li>
</ul>
</section>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: release-notes | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/release-notes/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2015-05-01T17:00:04-07:00</updated>
<updated>2015-05-09T23:58:15-07:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Paulus Schoutsen]]></name>
@ -109,7 +109,7 @@ switch:
<entry>
<title type="html"><![CDATA[Release notes for March 22, 2015]]></title>
<link href="https://home-assistant.io/blog/2015/03/22/release-notes/"/>
<updated>2015-03-22T01:21:00-07:00</updated>
<updated>2015-03-22T00:21:00-08:00</updated>
<id>https://home-assistant.io/blog/2015/03/22/release-notes</id>
<content type="html"><![CDATA[<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>
@ -189,7 +189,7 @@ notify:
<entry>
<title type="html"><![CDATA[Release notes for March 11, 2015]]></title>
<link href="https://home-assistant.io/blog/2015/03/11/release-notes/"/>
<updated>2015-03-11T19:36:00-07:00</updated>
<updated>2015-03-11T18:36:00-08:00</updated>
<id>https://home-assistant.io/blog/2015/03/11/release-notes</id>
<content type="html"><![CDATA[<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>

View file

@ -153,7 +153,7 @@
<div class="grid">
<div class="grid__item one-fifth palm-one-whole">
<time datetime="2015-03-22T01:21:00-07:00" pubdate>
<time datetime="2015-03-22T00:21:00-08:00" pubdate>
<span class='month'>Mar</span> <span class='day'>22</span>
</time>
</div>
@ -190,7 +190,7 @@
<div class="grid">
<div class="grid__item one-fifth palm-one-whole">
<time datetime="2015-03-11T19:36:00-07:00" pubdate>
<time datetime="2015-03-11T18:36:00-08:00" pubdate>
<span class='month'>Mar</span> <span class='day'>11</span>
</time>
</div>
@ -316,6 +316,12 @@
<ul class="divided">
<li class="post">
<a href="/blog/2015/05/09/utc-time-zone-awareness/">UTC & Time zone awareness</a>
</li>
<li class="post">
<a href="/blog/2015/04/25/release-notes/">Release notes for April 25, 2015</a>
</li>
@ -339,12 +345,6 @@
</li>
<li class="post">
<a href="/blog/2015/03/01/home-assistant-migrating-to-yaml/">Home Assistant moving to YAML</a>
</li>
</ul>
</section>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: website | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/website/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2015-05-01T17:00:04-07:00</updated>
<updated>2015-05-09T23:58:15-07:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Paulus Schoutsen]]></name>

View file

@ -205,6 +205,12 @@
<ul class="divided">
<li class="post">
<a href="/blog/2015/05/09/utc-time-zone-awareness/">UTC & Time zone awareness</a>
</li>
<li class="post">
<a href="/blog/2015/04/25/release-notes/">Release notes for April 25, 2015</a>
</li>
@ -228,12 +234,6 @@
</li>
<li class="post">
<a href="/blog/2015/03/01/home-assistant-migrating-to-yaml/">Home Assistant moving to YAML</a>
</li>
</ul>
</section>