<?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>ESP8266 on Making Clean Tech</title><link>https://nunrg.eu/tags/esp8266/</link><description>Recent content in ESP8266 on Making Clean Tech</description><generator>Hugo -- 0.136.5</generator><language>en-us</language><copyright>2024 Franci Kopač</copyright><lastBuildDate>Thu, 19 Sep 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://nunrg.eu/tags/esp8266/index.xml" rel="self" type="application/rss+xml"/><item><title>A Very Simple Low Cost Filament Dryer</title><link>https://nunrg.eu/posts/filamentdryer/</link><pubDate>Thu, 19 Sep 2024 00:00:00 +0000</pubDate><guid>https://nunrg.eu/posts/filamentdryer/</guid><description>A cheap, simple DIY filament dryer for 3D printing, built from a peltier dehumidifier, an ESP8266 and ESPHome for humidity control.</description><content:encoded><![CDATA[<p>You can support me by <a href="https://medium.com/@francikopa/a-simple-and-efficient-low-cost-filament-dryer-70985a44214a">reading this article on Medium</a></p>
<h2 id="the-problem">The problem</h2>
<p>A 3D printer is the most versatile tool any maker can have, but it has possible pitfalls and one of the more insidious ones is damp filament.</p>
<p>What happens: You have the printer dialled-in perfectly, everything works perfectly, a couple of weeks pass and then you try to print something again. It comes out looking terrible: blobs, stringing, ugly surfaces.</p>
<p>This is due to humidity absorbed by the filament. Once the filament enters the hot extruder, humidity expands into steam and plays havoc with the flow of molten material in the nozzle. In really bad cases you can actually hear the pops from the tiny steam bubbles during printing.</p>
<p>Some materials are more sensitive than others—you will be able to leave ABS or PLA out longer than, say Nylon, the worst of them. But one month outside in summer heat will make any filament unusable.</p>
<p>You can delay these problems a lot by storing filaments in an enclosed container and adding some desiccant helps even more. But eventually, any filament will get humid enough to need drying.</p>
<h2 id="the-most-common-solution">The Most Common Solution</h2>
<figure>
    <img src="/images/dryer/sunlu.png" alt="Sunlu Filadryer">
    <figcaption>SUNLU S2 Filament Dryer, credit: Sunlu</figcaption>
  </figure>
  
<p>On the surface, this looks like a solved problem: e.g. Sunlu dryer boxes work well and are not that expensive. But this kind of dryer box is not without problems:</p>
<ul>
<li>They are not  cheap, a two-roll box will cost you about ~90€.  If you are serious about printing, you will need at least two of those.</li>
<li>They have 150-200W heaters. If you are paying German electricity prices, each day you use one will cost ~1-2€. And each year has 365 days&hellip;</li>
</ul>
<p>So is there a different way?</p>
<h2 id="how-does-drying-even-work">How Does Drying Even Work?</h2>
<h3 id="the-usual-dryer-boxes">The Usual Dryer Boxes</h3>
<p>The dryer boxes I mention above work by heating up the air. Hotter air can carry more moisture (relative humidity is reduced) and this &ldquo;sucks&rdquo; moisture from the filament due to osmosis (which happens faster due do higher temperature as well). The hot and humid air is then blown out of the enclosure automatically or you need to do it manually after the end of each cycle. Some will take advantage of moisture condensing on the cooler walls, which you must then wipe down.</p>
<p><a href="https://www.printdry.com/the-science-behind-it/">See this explanation for extra info.</a></p>
<h3 id="the-proper-way-to-dry-things">The Proper Way To Dry Things</h3>
<p>If you look at industrial dryers or modern clothes dryers, these work differently.</p>
<p>The first step of the process is the same: Blow hot air into the chamber to capture the humidity. The next step is very different, though: The hot humid air is cooled, which causes the excess moisture to condense away, leaving you with dry cool air that you can then heat up again to dry the filament, in an endless circle.</p>
<p>At first glance, this seems like a very wasteful process: instead of simply heating the air, you need to cool it too. But here comes the magic part: You can use a heat-pump to transfer the heat from cooling to the heating part of the cycle. A modern heat-pump is extremely efficient and will only consume about 25% of energy it is able to transfer. So if you need 200W of heating power, you will only need about 40W of electricity for the same effect. What is more, because you are cooling the return air, the return air is very dry and the drying effect is even stronger.</p>
<figure>
    <img src="/images/dryer/hpdryer.jpg" alt="Heat-pump dryer schematic">
    <figcaption>A schematic of a heat-pump clothes-dryer, credit Massachusets Clean Energy Center</figcaption>
  </figure>
  
<h2 id="my-solution">My Solution</h2>
<h3 id="the-parameters">The parameters</h3>
<p>I wanted a solution that does the following:</p>
<ul>
<li>There should be enough space for at least 10 rolls of filament.</li>
<li>It should be able to work continuously, no wiping down etc.</li>
<li>It should consume no more than 50W of electricity (a quarter of the consumption of a normal dryer)</li>
<li>Some monitoring would be nice</li>
</ul>
<h3 id="the-hardware">The hardware</h3>
<p>There are many possibilities:</p>
<p>I could possibly build a really big dryer out of a second-hand clothes-dryer. My neighbor and I actually converted one into a big fruit dryer so his apples and plums don&rsquo;t spoil after the harvest. But while this is a good way to dry out large amounts of moisture, filaments only contain a few grams of moisture each at most and the dryer will consume 700W of electricity. So this would be a really wasteful way of doing it and it would take up a lot of space.</p>
<p>Maybe a mini fridge? I could use an air duct to heat up the air at the rear heat-exchanger, blow it into a box, and then return it to the cold side of the mini fridge. But this would take extra space and I&rsquo;m not sure how to cool the air effectively.</p>
<p>In the end I decided to buy a very simple and very cheap room air-dryer on Aliexpress. These small units will consume about 15W and dry out a couple of tens of grams of moisture a day from the surrounding air.</p>
<figure>
    <img src="/images/dryer/airdryer.png" alt="The Little Air-Dryer">
    <figcaption>It Looks Like This</figcaption>
  </figure>
  
<p>They use a <a href="https://en.wikipedia.org/wiki/Thermoelectric_cooling">Peltier element</a> instead of a proper heat-pump, but since we need so little drying capacity, this is good enough. The Peltier element, the two heat-sinks and the fan are combined into one compact unit like this:</p>
<figure>
    <img src="/images/dryer/peltier.jpg" alt="The Peltier Block">
    <figcaption>Connect it to 12 V and it freezes in a minute or two</figcaption>
  </figure>
  
<p>There is also a power-supply, so you only need some more fans, a control board and a new housing.</p>
<h3 id="the-box">The Box</h3>
<p>I decided to use a simple plastic storage box I kept the filaments in already. IKEA is a good place to find one that is large enough for your needs. Mine is about 40 x 50 x 60 cm, enough for about 12 rolls.</p>
<h3 id="the-housing">The Housing</h3>
<p>My idea was to put the entire Peltier block along with two temperature sensors (DS1820, hot and cold side), a humidity sensor (AHT20, for monitoring) and two fans (hot and cold side) inside the box as a drying unit.</p>
<p>A small hole in the side of the box connects this drying unt with the control box outside. The control box contains the power supply, an ESP8266 controller and a couple of relays for control.</p>
<p>There is also a small outlet for the condensed water on the bottom of the cold side housing. This is connected to a small tube and routed outside the box.</p>
<figure>
    <img src="/images/dryer/housing.png" alt="The Housing">
    <figcaption>A render of the housing design. The side with the fans is inside the box, the side with the grid is outside.</figcaption>
  </figure>
  
<p><em>Here is the <a href="https://a360.co/4e8Qa8P">Fusion project</a>, if you want to play with it.</em></p>
<h3 id="the-first-prototype">The First Prototype</h3>
<figure>
    <img src="/images/dryer/dryer.jpg" alt="The whole thing">
    <figcaption>The whole thing. It&#39;s the first prototype and therefore ugly, but it works, so it may take a while before I work on it again. The small fan is for the power supply, but it&#39;s not really needed, I should have put that inside, near the hot side fan.</figcaption>
  </figure>
  
<h3 id="control">Control</h3>
<p>I decided to use ESPHome and integrate it into my Home Assistant system to control the whole thing.</p>
<p>The first version was over-engineered, with PWM control of both fans and measurements on hot and cold side. It turns out you only need to monitor humidity and control two relays, one for the Peltier element and the hot side fan, the other for the cold side fan. You could even do without the cold side fan at the expense of a slightly lower drying power.</p>
<figure>
    <img src="/images/dryer/esphome1.png" alt="The Home Assistant dashboard">
    <figcaption>The peaks happen when I turn the whole thing off to save power</figcaption>
  </figure>
  
<h4 id="the-algorithm">The Algorithm</h4>
<p>The algorithm is simple:</p>
<ol>
<li>Turn on the Peltier and the hot side fan.</li>
<li>Wait for a while for the water to condense on the cold side. (The hot side fan is strong enough to ensure the circulation on the cold side too.)</li>
<li>Turn off the Peltier and turn on cold side fan to blow the water off the heat sink ribs down into the water outlet. A minute is enough. This is optional, water will drip down on it&rsquo;s own until there is very little moisture left.</li>
<li>Repeat.</li>
</ol>
<p>It also needs a safety feature to turn off the whole thing if the hot side heats up above 45 °C (i.e. fan problems).</p>
<p>I also added an automation that only turns the dryer on when there is extra power available from the solar plant I have installed. This is optional, but it does keep the whole thing from taking energy from the grid.</p>
<h2 id="final-thoughts">Final Thoughts</h2>
<p>The whole thing cost me about 70€ at most and it works. There is one drawback: It takes a few days to dry a moist filament roll, but it keeps everything nice and dry afterwards. It seems that putting in a moist roll does not affect the rest of the stored rolls at all.</p>
<h2 id="the-esphome-code-and-planned-improvements">The ESPHome Code and Planned Improvements</h2>
<h3 id="planned-improvements">Planned improvements</h3>
<p>The code is for the current over-engineered system. The next version will have no PWM, no cold side fan, and no cold side temperature sensor. The hot side fan power will be fixed using a resistor. There will be only one relay that controls both the Peltier and hot side fan. The power supply will be next to the hot side fan to use the wasted energy to heat the box.</p>
<h3 id="the-code">The Code</h3>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-yaml" data-lang="yaml"><span style="display:flex;"><span><span style="color:#f92672">esphome</span>:
</span></span><span style="display:flex;"><span>  <span style="color:#f92672">name</span>: <span style="color:#ae81ff">susilnik</span>
</span></span><span style="display:flex;"><span>  <span style="color:#f92672">friendly_name</span>: <span style="color:#ae81ff">susilnik</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#f92672">esp8266</span>:
</span></span><span style="display:flex;"><span>  <span style="color:#f92672">board</span>: <span style="color:#ae81ff">esp01_1m</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># Enable logging</span>
</span></span><span style="display:flex;"><span><span style="color:#f92672">logger</span>:
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># Enable Home Assistant API</span>
</span></span><span style="display:flex;"><span><span style="color:#f92672">api</span>:
</span></span><span style="display:flex;"><span>  <span style="color:#f92672">encryption</span>:
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">key</span>: <span style="color:#e6db74">&#34;secret&#34;</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#f92672">ota</span>:
</span></span><span style="display:flex;"><span> <span style="color:#f92672">—platform</span>: <span style="color:#ae81ff">esphome</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">password</span>: <span style="color:#e6db74">&#34;secret&#34;</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#f92672">wifi</span>:
</span></span><span style="display:flex;"><span>  <span style="color:#f92672">ssid</span>: !<span style="color:#ae81ff">secret wifi_ssid</span>
</span></span><span style="display:flex;"><span>  <span style="color:#f92672">password</span>: !<span style="color:#ae81ff">secret wifi_password</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>  <span style="color:#f92672">use_address</span>: <span style="color:#ae81ff">secret</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#f92672">one_wire</span>:
</span></span><span style="display:flex;"><span> <span style="color:#f92672">—platform</span>: <span style="color:#ae81ff">gpio</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">pin</span>: <span style="color:#ae81ff">13</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#f92672">sensor</span>:
</span></span><span style="display:flex;"><span> <span style="color:#f92672">—platform</span>: <span style="color:#ae81ff">aht10</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">temperature</span>:
</span></span><span style="display:flex;"><span>      <span style="color:#f92672">id</span>: <span style="color:#ae81ff">temperatura</span>
</span></span><span style="display:flex;"><span>      <span style="color:#f92672">name</span>: <span style="color:#e6db74">&#34;Temperatura&#34;</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">humidity</span>:
</span></span><span style="display:flex;"><span>      <span style="color:#f92672">id</span>: <span style="color:#ae81ff">vlaznost</span>
</span></span><span style="display:flex;"><span>      <span style="color:#f92672">name</span>: <span style="color:#e6db74">&#34;Vlaznost&#34;</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">update_interval</span>: <span style="color:#ae81ff">60s</span>
</span></span><span style="display:flex;"><span> <span style="color:#f92672">—platform</span>: <span style="color:#ae81ff">dallas_temp</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">address</span>: <span style="color:#ae81ff">0x090417b10b0cff28</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">name</span>: <span style="color:#e6db74">&#34;Temperatura topla stran&#34;</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">id</span>: <span style="color:#ae81ff">temperatura_topla_stran</span>
</span></span><span style="display:flex;"><span> <span style="color:#f92672">—platform</span>: <span style="color:#ae81ff">dallas_temp</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">address</span>: <span style="color:#ae81ff">0x690517a0c505ff28</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">name</span>: <span style="color:#e6db74">&#34;Temperatura hladna stran&#34;</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">id</span>: <span style="color:#ae81ff">temperatura_hladna_stran</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#f92672">i2c</span>:
</span></span><span style="display:flex;"><span>  <span style="color:#f92672">sda</span>: <span style="color:#ae81ff">4</span>
</span></span><span style="display:flex;"><span>  <span style="color:#f92672">scl</span>: <span style="color:#ae81ff">5</span>
</span></span><span style="display:flex;"><span>  <span style="color:#f92672">frequency</span>: <span style="color:#ae81ff">10kHz</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#f92672">switch</span>:
</span></span><span style="display:flex;"><span> <span style="color:#f92672">—platform</span>: <span style="color:#ae81ff">gpio</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">pin</span>: <span style="color:#ae81ff">16</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">name</span>: <span style="color:#e6db74">&#34;Vklop 12V&#34;</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">id</span>: <span style="color:#ae81ff">vklop_12v</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">restore_mode</span>: <span style="color:#ae81ff">ALWAYS_ON</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#f92672">output</span>:
</span></span><span style="display:flex;"><span> <span style="color:#f92672">—platform</span>: <span style="color:#ae81ff">esp8266_pwm</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">pin</span>: <span style="color:#ae81ff">12</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">frequency</span>: <span style="color:#ae81ff">10</span> <span style="color:#ae81ff">Hz</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">id</span>: <span style="color:#ae81ff">pwm_hladni_ventilator</span>
</span></span><span style="display:flex;"><span> <span style="color:#f92672">—platform</span>: <span style="color:#ae81ff">esp8266_pwm</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">pin</span>: <span style="color:#ae81ff">14</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">frequency</span>: <span style="color:#ae81ff">10</span> <span style="color:#ae81ff">Hz</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">id</span>: <span style="color:#ae81ff">pwm_hladilni_ventilator</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#f92672">fan</span>:
</span></span><span style="display:flex;"><span> <span style="color:#f92672">—platform</span>: <span style="color:#ae81ff">speed</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">output</span>: <span style="color:#ae81ff">pwm_hladni_ventilator</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">name</span>: <span style="color:#e6db74">&#34;Hladni ventilator&#34;</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">id</span>: <span style="color:#ae81ff">hladni_ventilator</span>
</span></span><span style="display:flex;"><span> <span style="color:#f92672">—platform</span>: <span style="color:#ae81ff">speed</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">output</span>: <span style="color:#ae81ff">pwm_hladilni_ventilator</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">name</span>: <span style="color:#e6db74">&#34;Hladilni ventilator&#34;</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">id</span>: <span style="color:#ae81ff">hladilni_ventilator</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#f92672">time</span>:
</span></span><span style="display:flex;"><span> <span style="color:#f92672">—platform</span>: <span style="color:#ae81ff">homeassistant</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">id</span>: <span style="color:#ae81ff">homeassistant_time</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">on_time</span>:
</span></span><span style="display:flex;"><span>      <span style="color:#75715e">#Safety functions</span>
</span></span><span style="display:flex;"><span>     <span style="color:#f92672">—minutes</span>: <span style="color:#ae81ff">/1</span>
</span></span><span style="display:flex;"><span>        <span style="color:#f92672">seconds</span>: <span style="color:#ae81ff">0</span>
</span></span><span style="display:flex;"><span>        <span style="color:#f92672">then</span>:
</span></span><span style="display:flex;"><span>          <span style="color:#f92672">if</span>:
</span></span><span style="display:flex;"><span>            <span style="color:#f92672">condition</span>:
</span></span><span style="display:flex;"><span>              <span style="color:#f92672">switch.is_on</span>: <span style="color:#ae81ff">vklop_12v</span>
</span></span><span style="display:flex;"><span>            <span style="color:#f92672">then</span>:
</span></span><span style="display:flex;"><span>             <span style="color:#f92672">—if</span>:
</span></span><span style="display:flex;"><span>                  <span style="color:#f92672">condition</span>:
</span></span><span style="display:flex;"><span>                    <span style="color:#f92672">or</span>:
</span></span><span style="display:flex;"><span>                     <span style="color:#f92672">—sensor.in_range</span>:
</span></span><span style="display:flex;"><span>                          <span style="color:#f92672">id</span>: <span style="color:#ae81ff">temperatura_topla_stran</span>
</span></span><span style="display:flex;"><span>                          <span style="color:#f92672">above</span>: <span style="color:#ae81ff">45</span>
</span></span><span style="display:flex;"><span>                     <span style="color:#f92672">—sensor.in_range</span>:
</span></span><span style="display:flex;"><span>                          <span style="color:#f92672">id</span>: <span style="color:#ae81ff">temperatura</span>
</span></span><span style="display:flex;"><span>                          <span style="color:#f92672">above</span>: <span style="color:#ae81ff">40</span>
</span></span><span style="display:flex;"><span>                  <span style="color:#f92672">then</span>:
</span></span><span style="display:flex;"><span>                    <span style="color:#f92672">switch.turn_off</span>: <span style="color:#ae81ff">vklop_12v</span>
</span></span><span style="display:flex;"><span>     <span style="color:#f92672">—minutes</span>: <span style="color:#ae81ff">55</span>
</span></span><span style="display:flex;"><span>        <span style="color:#f92672">seconds</span>: <span style="color:#ae81ff">0</span>
</span></span><span style="display:flex;"><span>        <span style="color:#f92672">then</span>:
</span></span><span style="display:flex;"><span>          <span style="color:#f92672">if</span>:
</span></span><span style="display:flex;"><span>            <span style="color:#f92672">condition</span>:
</span></span><span style="display:flex;"><span>              <span style="color:#f92672">switch.is_on</span>: <span style="color:#ae81ff">vklop_12v</span>
</span></span><span style="display:flex;"><span>            <span style="color:#f92672">then</span>:
</span></span><span style="display:flex;"><span>              <span style="color:#f92672">fan.turn_on</span>:
</span></span><span style="display:flex;"><span>                <span style="color:#f92672">id</span>: <span style="color:#ae81ff">hladni_ventilator</span>
</span></span><span style="display:flex;"><span>                <span style="color:#f92672">speed</span>: <span style="color:#ae81ff">50</span>
</span></span><span style="display:flex;"><span>     <span style="color:#f92672">—minutes</span>: <span style="color:#ae81ff">57</span>
</span></span><span style="display:flex;"><span>        <span style="color:#f92672">seconds</span>: <span style="color:#ae81ff">0</span>
</span></span><span style="display:flex;"><span>        <span style="color:#f92672">then</span>:
</span></span><span style="display:flex;"><span>          <span style="color:#f92672">fan.turn_off</span>: <span style="color:#ae81ff">hladni_ventilator</span>
</span></span><span style="display:flex;"><span>      <span style="color:#75715e">#Start cooling fan for PSU</span>
</span></span><span style="display:flex;"><span>     <span style="color:#f92672">—minutes</span>: <span style="color:#ae81ff">/1</span>
</span></span><span style="display:flex;"><span>        <span style="color:#f92672">seconds</span>: <span style="color:#ae81ff">0</span>
</span></span><span style="display:flex;"><span>        <span style="color:#f92672">then</span>:
</span></span><span style="display:flex;"><span>          <span style="color:#f92672">if</span>:
</span></span><span style="display:flex;"><span>            <span style="color:#f92672">condition</span>:
</span></span><span style="display:flex;"><span>              <span style="color:#f92672">switch.is_on</span>: <span style="color:#ae81ff">vklop_12v</span>
</span></span><span style="display:flex;"><span>            <span style="color:#f92672">then</span>:
</span></span><span style="display:flex;"><span>              <span style="color:#f92672">fan.turn_on</span>:
</span></span><span style="display:flex;"><span>                <span style="color:#f92672">id</span>: <span style="color:#ae81ff">hladilni_ventilator</span>
</span></span><span style="display:flex;"><span>                <span style="color:#f92672">speed</span>: <span style="color:#ae81ff">50</span>
</span></span><span style="display:flex;"><span>            <span style="color:#f92672">else</span>:
</span></span><span style="display:flex;"><span>              <span style="color:#f92672">fan.turn_off</span>: <span style="color:#ae81ff">hladilni_ventilator</span>
</span></span></code></pre></div><p>If you found this article useful, you can buy me a beer <a href="https://paypal.me/FranciKopac?country.x=SI&amp;locale.x=en_US">here</a>.</p>
]]></content:encoded></item></channel></rss>