<?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>Home Assistant on Jonatan Miarecki</title><link>https://miarecki.eu/tags/home-assistant/</link><description>The latest posts on Jonatan Miarecki</description><language>en</language><managingEditor>jonatan@miarecki.eu (Jonatan Miarecki)</managingEditor><webMaster>jonatan@miarecki.eu (Jonatan Miarecki)</webMaster><lastBuildDate>Mon, 26 Oct 2026 13:42:32 +0100</lastBuildDate><atom:link href="https://miarecki.eu/tags/home-assistant/index.xml" rel="self" type="application/rss+xml"/><atom:link rel="search" type="application/opensearchdescription+xml" href="https://miarecki.eu/opensearch.xml" title="Search all available posts"/><item><title>Modding an IKEA Iskärna to use Zigbee</title><link>https://miarecki.eu/posts/modding-an-ikea-iskaerna-zigbee/</link><pubDate>Thu, 29 Feb 2024 22:00:00 +0100</pubDate><author>jonatan@miarecki.eu (Jonatan Miarecki)</author><guid>https://miarecki.eu/posts/modding-an-ikea-iskaerna-zigbee/</guid><description>This modding project aims to replace the original control board of the IKEA Iskärna lamp with a custom one, allowing the lamp to be controlled via Zigbee.</description><content:encoded> 
&lt;figure class="entry-cover">
        &lt;img loading="lazy" srcset='https://miarecki.eu/posts/modding-an-ikea-iskaerna-zigbee/modified_iskaerna_hu_9cccf93af0f364bb.webp 360w,https://miarecki.eu/posts/modding-an-ikea-iskaerna-zigbee/modified_iskaerna_hu_c915336437fee504.webp 480w,https://miarecki.eu/posts/modding-an-ikea-iskaerna-zigbee/modified_iskaerna_hu_3fab6e405c48c291.webp 720w,https://miarecki.eu/posts/modding-an-ikea-iskaerna-zigbee/modified_iskaerna_hu_3859286cdc80e04e.webp 1080w,https://miarecki.eu/posts/modding-an-ikea-iskaerna-zigbee/modified_iskaerna_hu_416e1318a5f7e55f.webp 1500w,https://miarecki.eu/posts/modding-an-ikea-iskaerna-zigbee/modified_iskaerna.webp 2145w' src="https://miarecki.eu/posts/modding-an-ikea-iskaerna-zigbee/modified_iskaerna.webp"
            sizes="(min-width: 768px) 720px, 100vw" width="2145" height="3218"
            alt="Modified IKEA Iskärna lamp glowing red in a room">
&lt;/figure>
<![CDATA[<p>The <a href="https://www.ikea.com/us/en/p/iskaerna-led-table-lamp-multicolor-90510403/">IKEA Iskärna lamp</a> is a stylish addition to any home, but its original design limits functionality to manual control via a single button. This modding project aims to enhance the lamp&rsquo;s capabilities by replacing its original control board with a custom one, enabling Zigbee control, including integration with Home Assistant. This allows for automated control, custom effects, and remote operation of the lamp.</p>
<h2 id="required-materials">Required materials</h2>
<ul>
<li>IKEA Iskärna lamp</li>
<li>24V LED controller (Zigbee or other)</li>
<li>Soldering iron</li>
<li>Wires</li>
<li>Screwdriver</li>
<li>Glue</li>
<li>Optional Button</li>
</ul>
<h2 id="disassembly">Disassembly</h2>
<p>The first step is to disassemble the lamp. The lamp is held by a single screw at the back, which can be removed using a screwdriver. Once the screw is removed, the lamp can be opened by pulling the top part from the bottom part.</p>
<figure>
    <img loading="lazy" src="/posts/modding-an-ikea-iskaerna-zigbee/original_board.webp"
         alt="The internal control board of the IKEA Iskärna lamp"/> <figcaption>
            The internal control board. Left: facing the button, right: back of the board
        </figcaption>
</figure>

<h2 id="replacing-the-control-board">Replacing the control board</h2>
<p>Next, to replace the original control board with a custom one, the original board must be removed. Do this by unsoldering the wires from the original board and removing the board from the lamp, while remembering which wire goes where (+, -, and the LEDs). Note that the original board is wired as RGB+, but at least they labeled the individual cables with shapes so you can tell them apart.</p>
<p>The custom board can then be soldered in place of the original board, with the wires connected to the appropriate pins. By keeping the original power supply, no modifications are needed to the power supply and you can just hook up the new board to the original power receptacle inside the lamp.</p>
<p>For the button to still work, you need a fitting board. However, this is very hard to find, so I just attached a new button to the new board and wired it to the original button location. This way, the original button still works. This allows you to still control the light manually and pair it in case you use a zigbee module.</p>
<h2 id="reassembly">Reassembly</h2>
<figure>
    <img loading="lazy" src="/posts/modding-an-ikea-iskaerna-zigbee/iskaerna_reasembly.webp"
         alt="IKEA Iskärna lamp disassembled"/> <figcaption>
            IKEA Iskärna lamp before reassembly
        </figcaption>
</figure>

<p>If you added a custom button to the new board, you need to glue it to the sliding piece inside the lamp, which originally held the button. Then you can also glue the new board to the bottom of the lamp. Once the new board is in place, the lamp can be reassembled by putting the top part back on the bottom part and screwing it back together.</p>
<h2 id="conclusion">Conclusion</h2>
<figure>
    <img loading="lazy" src="/posts/modding-an-ikea-iskaerna-zigbee/modified_iskaerna.webp"
         alt="Modified IKEA Iskärna lamp glowing red in a room"/> <figcaption>
            Modified IKEA Iskärna lamp
        </figcaption>
</figure>

<p>Uppon pairing the new board with your zigbee network, you can now control the light from home assistant, set it to turn on automatically, or use custom effects. This modding project allows for a more versatile use of the IKEA Iskärna lamp, enhancing its functionality and integration with smart home systems.</p>
<p>Depending on which LED controller you use, the possibilities change. For example, with certain LED controllers, you could connect the lamp to Philips Hue or to IKEA&rsquo;s own smart home system (TRÅDFRI, DIRIGERA). Before the modification, this was not possible, as the lamp could only be controlled manually.</p>
<p>Maybe you can set it up as an automatic night light or have simulate a sunrise in the morning.</p>
]]></content:encoded></item><item><title>Smart Message Language Reader for Home Automation</title><link>https://miarecki.eu/posts/ha-sml-electricity-meter/</link><pubDate>Mon, 27 Nov 2023 21:01:33 +0100</pubDate><author>jonatan@miarecki.eu (Jonatan Miarecki)</author><guid>https://miarecki.eu/posts/ha-sml-electricity-meter/</guid><description>This project is about reading out an electricity meter using the SML interface and an IR reading head for local home automation using a microcontroller.</description><content:encoded> 
&lt;figure class="entry-cover">
        &lt;img loading="lazy" srcset='https://miarecki.eu/posts/ha-sml-electricity-meter/SML-Reader-EN_hu_dbe125a22ad8fb1d.jpg 360w,https://miarecki.eu/posts/ha-sml-electricity-meter/SML-Reader-EN_hu_4f17756f0202ca93.jpg 480w,https://miarecki.eu/posts/ha-sml-electricity-meter/SML-Reader-EN_hu_d83cc988448f27c1.jpg 720w,https://miarecki.eu/posts/ha-sml-electricity-meter/SML-Reader-EN_hu_dbc4f60488a8d3b3.jpg 1080w,https://miarecki.eu/posts/ha-sml-electricity-meter/SML-Reader-EN.jpg 1200w' src="https://miarecki.eu/posts/ha-sml-electricity-meter/SML-Reader-EN.jpg"
            sizes="(min-width: 768px) 720px, 100vw" width="1200" height="1084"
            alt="A setup of the project, showing the connection between the W5500-EVB-Pico and the IR reading head, which reads the electricity meter.">
&lt;/figure>
<![CDATA[<p>The continuous development in the field of home automation opens up ever new possibilities to control the energy consumption in our homes efficiently. A crucial step in this direction is the reading of data from smart electricity meters using the Smart Message Language to gain detailed insights into energy consumption. That&rsquo;s exactly why I created &ldquo;<dfn title="Smart Message Language">SML</dfn>-Reader&rdquo; to read out the Smart Message Language data and then send it to smart home systems, such as Home Assistant, via MQTT.</p>
<h2 id="why-this-project">Why this project?</h2>
<p>The idea for this project arose from the existing materials. With an already available W5500-EVB-Pico and the need for a reliable Ethernet connection in the basement, where the WLAN is weak, the motivation for implementing the Smart Message Language-Reader was born. The W5500-EVB-Pico, an inexpensive and easy-to-use microcontroller board with an Ethernet port, provides the perfect basis for this project. In addition, it has two hardware serials, which allow both the connection to the computer and to the infrared reading head.</p>
<p>The difficulties in finding suitable software with Ethernet support for the RP2040 chip (used in the EVB-Pico) reinforced the desire to develop a tailor-made solution. For example, Tasmota is not yet available for the RP2040 chip with the W5500.</p>
<p>Another obstacle was determining the <dfn title="Object Identification System">OBIS</dfn> codes, which vary depending on the smart meter and configuration. However, this can be easily found out by using the program.</p>
<p>This project was made possible by the Smart Message Language, which is a standard for the transmission of energy consumption data. The SML is used in Germany for the communication between smart meters and the smart meter gateway. The SML is also used in other countries, such as Austria, Switzerland and the Netherlands.</p>
<h2 id="project-details">Project details</h2>
<h3 id="supported-smart-meters">Supported smart meters</h3>
<p>The SML-Reader is compatible with all smart meters that support the SML protocol. I successfully tested the system with the <a href="https://www.apator.com/de/produkte/strom/strommessung/moderne-messeinrichtung/picus">Apator PICUS</a>. The displayed data depends on the functions supported and configured in the smart meter. Under certain circumstances, certain settings may need to be made on the meter, such as disabling the PIN or enabling extended operating modes (InF). Some data also requires manual activation by the LMN interface by the network operator.</p>
<p>Further OBIS codes can be added by editing the OBIS handler list.</p>
<h3 id="hardware-and-software">Hardware and software</h3>
<ul>
<li><a href="https://docs.wiznet.io/Product/iEthernet/W5500/w5500-evb-pico">W5500-EVB-Pico microcontroller board</a></li>
<li>SML-compatible electricity meter</li>
<li>Ethernet cable and connection</li>
<li>Power connection</li>
<li>MQTT server</li>
<li><a href="https://platformio.org/">PlatformIO</a> IDE</li>
<li><a href="https://github.com/JonatanMGit/SML-Reader">SML-Reader</a> project</li>
</ul>
<h3 id="configuration-of-the-sml-reader">Configuration of the SML-Reader</h3>
<p>Edit the <code>config.h</code> file in the SML-Reader project to enter the connection information for your MQTT server. Here you enter the MQTT login data. Further settings, such as a static IP address or other OBIS codes, can be made in main.cpp.</p>
<p>After saving the configuration file, you can re-flash the SML-Reader to apply the changes. The configuration file is saved during flashing. A dynamic configuration via the web interface is in progress.</p>
<p>The reading head must also be connected correctly. The connections are standard on the W5500-EVB-Pico board as follows:</p>
<ul>
<li>TX: GPIO04</li>
<li>RX: GPIO05</li>
<li>GND: GND</li>
<li>VCC: 3V3</li>
</ul>
<p>The setup should look like this:
<figure>
    <img loading="lazy" src="/posts/ha-sml-electricity-meter/SML-Reader-EN.svg"
         alt="Diagram of the setup of the SML-Reader, showing the connection between the W5500-EVB-Pico and the IR reading head. The pins are the ones mentioned above." width="100%"/> <figcaption>
            Diagram of the setup of the SML-Reader
        </figcaption>
</figure>
</p>
<p>These connections come from the second hardware serial of the RP2040 chip. The first hardware serial is used for the connection to the computer. The second hardware serial is used for the connection to the reading head (UART0/UART1 and UART2)</p>
<h3 id="flashing-the-sml-reader-with-platformio-in-vscode">Flashing the SML-Reader with PlatformIO in VSCode</h3>
<ol>
<li>Install PlatformIO in VSCode</li>
<li>Clone the <a href="https://github.com/JonatanMGit/SML-Reader">SML-Reader</a> project</li>
<li>Open the project in VSCode. There PlatformIO should see the option to build the project directly (upload)</li>
<li>After compiling and uploading the project, the SML-Reader should be ready to use.</li>
</ol>
<p>If there are problems with flashing, you can also manually copy the UF2 files to the device (hold Bootsel pressed while doing so).</p>
<p>After successful flashing, the SML-Reader should receive the data from the electricity meter and then send it to the MQTT server.</p>
<h2 id="reading-the-mqtt-data-in-home-assistant">Reading the MQTT data in Home Assistant</h2>
<p>The device should now automatically send the data to the MQTT server. Using <a href="https://www.home-assistant.io/integrations/mqtt#discovery-options">MQTT Discovery</a>, the sensors are automatically created in Home Assistant. The sensors can then be used in Home Assistant. If this does not happen, you can always manually insert the measured values in Home Assistant via the config.yaml.</p>
<p>The data is sent to <code>homeassistant/sensor/w5500-evb-pico/&lt;name-of-the-value&gt;/state</code>, if you want to integrate it into other systems.</p>
<h2 id="web-interface">Web interface</h2>
<p>The project has a web interface that allows you to display the data read from the electricity meter. The interface is accessible via the IP address or the mDNS name of the SML-Reader. The displayed data depends on the functions supported and configured in the smart meter.</p>
<h2 id="conclusion">Conclusion</h2>
<p>The project is an inexpensive and simple solution to read out the SML data from a smart meter and then send it to smart home systems, such as Home Assistant, via MQTT. The use of the W5500-EVB-Pico allows a reliable Ethernet connection, which is advantageous for local home automation. The web interface offers an easy way to display the data of the electricity meter. The use of PlatformIO allows an easy installation and configuration of the project.</p>
<h3 id="further-information">Further information</h3>
<p>Many thanks to the <a href="https://github.com/olliiiver/sml_parser">SML Parser</a> library, which forms the basis for this project.</p>
<p>More information is available on the German version of this page.</p>
]]></content:encoded></item></channel></rss>