<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Zigbee on Ulis Notes</title>
    <link>https://wolf-u.li/en/tag/zigbee/</link>
    <description>Recent content in Zigbee on Ulis Notes</description>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>Copyright 2006-CURRENTYEAR Uli Wolf - All rights reserved</copyright>
    <lastBuildDate>Fri, 26 Jul 2024 14:02:33 +2600</lastBuildDate>
    <atom:link href="https://wolf-u.li/en/tag/zigbee/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Home Assistant: ZHA OTA Updates</title>
      
      
      <link>https://wolf-u.li/homeassistant-zha-ota-updates/</link>
      <pubDate>Fri, 26 Jul 2024 14:02:33 +2600</pubDate>
      <guid>https://wolf-u.li/homeassistant-zha-ota-updates/</guid>
      <description>&lt;p&gt;Recently i stumbled across the fact that my Sonoff TRVZB (Zigbee Thermostat available via 
&lt;a href=&#34;https://www.amazon.de/s?k=Sonoff%20TRVZB&amp;tag=lebendeswolfuli-21&#34; target=&#34;_blank&#34;&gt;Amazon*&lt;/a&gt;
) had the old firmware and i had no update offering in my Home Assistant Instances. Since i&amp;rsquo;m running ZHA i started investigating why.
&lt;ins class=&#34;adsbygoogle&#34; style=&#34;display:block; text-align:center;&#34; data-ad-layout=&#34;in-article&#34; data-ad-format=&#34;fluid&#34; data-ad-client=&#34;ca-pub-2322978122735420&#34; data-ad-slot=&#34;3161252284&#34;&gt;&lt;/ins&gt;
First of all, i believe it is interesting to see that ZHA is based on &lt;link rel=dns-prefetch href=//github.com /&gt; &lt;a href=&#34;https://github.com/zigpy/zigpy&#34;
    title=&#34;zigpy&#34; 
     target=&#34;_blank&#34; rel=&#34;nofollow noopener noreferrer&#34; &gt;
  zigpy&amp;nbsp;&lt;svg xmlns=&#34;http://www.w3.org/2000/svg&#34; class=&#34;icon&#34; aria-hidden=&#34;true&#34; focusable=&#34;false&#34; viewBox=&#34;0 -128 512 640&#34;&gt;
    &lt;path d=&#34;M384 320c-17.67 0-32 14.33-32 32v96H64V160h96c17.67 0 32-14.32 32-32s-14.33-32-32-32L64 96c-35.35 0-64 28.65-64 64V448c0 35.34 28.65 64 64 64h288c35.35 0 64-28.66 64-64v-96C416 334.3 401.7 320 384 320zM488 0H352c-12.94 0-24.62 7.797-29.56 19.75c-4.969 11.97-2.219 25.72 6.938 34.88L370.8 96L169.4 297.4c-12.5 12.5-12.5 32.75 0 45.25C175.6 348.9 183.8 352 192 352s16.38-3.125 22.62-9.375L416 141.3l41.38 41.38c9.156 9.141 22.88 11.84 34.88 6.938C504.2 184.6 512 172.9 512 160V24C512 10.74 501.3 0 488 0z&#34;/&gt;
  &lt;/svg&gt;&lt;/a&gt; which implements all the ZigBee features in a handy python library. So whenever something cannot be found or is unclear in the ZHA help pages, a look into the repo of zigpy might help.&lt;/p&gt;</description>
      
         <content:encoded><![CDATA[<p>Recently i stumbled across the fact that my Sonoff TRVZB (Zigbee Thermostat available via 
<a href="https://www.amazon.de/s?k=Sonoff%20TRVZB&tag=lebendeswolfuli-21" target="_blank">Amazon*</a>
) had the old firmware and i had no update offering in my Home Assistant Instances. Since i&rsquo;m running ZHA i started investigating why.
<ins class="adsbygoogle" style="display:block; text-align:center;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-2322978122735420" data-ad-slot="3161252284"></ins>
First of all, i believe it is interesting to see that ZHA is based on <link rel=dns-prefetch href=//github.com /> <a href="https://github.com/zigpy/zigpy"
    title="zigpy" 
     target="_blank" rel="nofollow noopener noreferrer" >
  zigpy&nbsp;<svg xmlns="http://www.w3.org/2000/svg" class="icon" aria-hidden="true" focusable="false" viewBox="0 -128 512 640">
    <path d="M384 320c-17.67 0-32 14.33-32 32v96H64V160h96c17.67 0 32-14.32 32-32s-14.33-32-32-32L64 96c-35.35 0-64 28.65-64 64V448c0 35.34 28.65 64 64 64h288c35.35 0 64-28.66 64-64v-96C416 334.3 401.7 320 384 320zM488 0H352c-12.94 0-24.62 7.797-29.56 19.75c-4.969 11.97-2.219 25.72 6.938 34.88L370.8 96L169.4 297.4c-12.5 12.5-12.5 32.75 0 45.25C175.6 348.9 183.8 352 192 352s16.38-3.125 22.62-9.375L416 141.3l41.38 41.38c9.156 9.141 22.88 11.84 34.88 6.938C504.2 184.6 512 172.9 512 160V24C512 10.74 501.3 0 488 0z"/>
  </svg></a> which implements all the ZigBee features in a handy python library. So whenever something cannot be found or is unclear in the ZHA help pages, a look into the repo of zigpy might help.</p>
<h2 id="ota-configuration-for-zha-in-home-assistant">OTA configuration for ZHA in Home Assistant</h2>
<p>To enable OTA (especially for Sonoff Devices), the following section helped:</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span><span class="lnt">7
</span><span class="lnt">8
</span><span class="lnt">9
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-yaml" data-lang="yaml"><span class="line"><span class="cl"><span class="nt">zha</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">zigpy_config</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">ota</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="nt">enabled</span><span class="p">:</span><span class="w"> </span><span class="kc">true</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="nt">broadcast_enabled</span><span class="p">:</span><span class="w"> </span><span class="kc">true</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="nt">broadcast_initial_delay</span><span class="p">:</span><span class="w"> </span><span class="m">14400</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="nt">broadcast_interval</span><span class="p">:</span><span class="w"> </span><span class="m">14400</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="nt">z2m_remote_index</span><span class="p">:</span><span class="w"> </span><span class="s2">&#34;https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/index.json&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="nt">sonoff_provider</span><span class="p">:</span><span class="w"> </span><span class="kc">true</span><span class="w">
</span></span></span></code></pre></td></tr></table>
</div>
</div><p>Don&rsquo;t forget to restart Home Assistant whenever you change the config. You can enable additional Update providers <link rel=dns-prefetch href=//www.home-assistant.io /> <a href="https://www.home-assistant.io/integrations/zha#advanced-ota-configuration#advanced-ota-configuration"
    title="according to the documentation" 
     target="_blank" rel="nofollow noopener noreferrer" >
  according to the documentation&nbsp;<svg xmlns="http://www.w3.org/2000/svg" class="icon" aria-hidden="true" focusable="false" viewBox="0 -128 512 640">
    <path d="M384 320c-17.67 0-32 14.33-32 32v96H64V160h96c17.67 0 32-14.32 32-32s-14.33-32-32-32L64 96c-35.35 0-64 28.65-64 64V448c0 35.34 28.65 64 64 64h288c35.35 0 64-28.66 64-64v-96C416 334.3 401.7 320 384 320zM488 0H352c-12.94 0-24.62 7.797-29.56 19.75c-4.969 11.97-2.219 25.72 6.938 34.88L370.8 96L169.4 297.4c-12.5 12.5-12.5 32.75 0 45.25C175.6 348.9 183.8 352 192 352s16.38-3.125 22.62-9.375L416 141.3l41.38 41.38c9.156 9.141 22.88 11.84 34.88 6.938C504.2 184.6 512 172.9 512 160V24C512 10.74 501.3 0 488 0z"/>
  </svg></a>.</p>
<h2 id="update-of-devices">Update of Devices</h2>
<p><strong>Attention before proceeding</strong>: Please make sure to read the <link rel=dns-prefetch href=//www.home-assistant.io /> <a href="https://www.home-assistant.io/integrations/zha#ota-updates-of-zigbee-device-firmware#ota-updates-of-zigbee-device-firmware"
    title="corresponding" 
     target="_blank" rel="nofollow noopener noreferrer" >
  corresponding&nbsp;<svg xmlns="http://www.w3.org/2000/svg" class="icon" aria-hidden="true" focusable="false" viewBox="0 -128 512 640">
    <path d="M384 320c-17.67 0-32 14.33-32 32v96H64V160h96c17.67 0 32-14.32 32-32s-14.33-32-32-32L64 96c-35.35 0-64 28.65-64 64V448c0 35.34 28.65 64 64 64h288c35.35 0 64-28.66 64-64v-96C416 334.3 401.7 320 384 320zM488 0H352c-12.94 0-24.62 7.797-29.56 19.75c-4.969 11.97-2.219 25.72 6.938 34.88L370.8 96L169.4 297.4c-12.5 12.5-12.5 32.75 0 45.25C175.6 348.9 183.8 352 192 352s16.38-3.125 22.62-9.375L416 141.3l41.38 41.38c9.156 9.141 22.88 11.84 34.88 6.938C504.2 184.6 512 172.9 512 160V24C512 10.74 501.3 0 488 0z"/>
  </svg></a> section of the manual (especially the warnings).</p>
<p>To kickstart the update, you can go via Settings -&gt; Updates and Refresh the list of updates. THen you can run the update. In the case of the update from 1.1.0.1 to 1.1.0.5 of the Sonoff TrvZB, the update took about 40 minutes per device.</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
