<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
  <channel>
    <title>The Smarthome Book</title>
    <atom:link href="https://www.thesmarthomebook.com/feed/" rel="self" type="application/rss+xml" />
    <link>https://www.thesmarthomebook.com/</link>
    <description>Simple ideas to assist with your smarthome renovation</description>
    <lastBuildDate>Fri, 10 Mar 2023 14:39:32 GMT</lastBuildDate>
    <language>en-GB</language>
    
    <item>
      <title>Unraid: Set up Nextcloud with Mariadb</title>
      <link>https://www.thesmarthomebook.com/2022/12/03/unraid-set-up-nextcloud-with-mariadb/</link>
      <guid isPermaLink="false">https://www.thesmarthomebook.com/?p=2208</guid>
      <pubDate>Sat, 03 Dec 2022 10:08:42 GMT</pubDate>
      <dc:creator><![CDATA[Andrew Howe]]></dc:creator>
      <category><![CDATA[chocolatey]]></category><category><![CDATA[computing]]></category><category><![CDATA[container]]></category><category><![CDATA[docker]]></category><category><![CDATA[server]]></category><category><![CDATA[software]]></category><category><![CDATA[unRaid]]></category><category><![CDATA[@localhost]]></category><category><![CDATA[1045]]></category><category><![CDATA[Acess]]></category><category><![CDATA[adminer]]></category><category><![CDATA[connecting]]></category>
      <description><![CDATA[Following on from my post on how to set up external drives in Unraid, I wanted to write up my solution for getting around a persistent error I kept running into when trying to install Nextcloud. The Problem I followed the tutorials online…]]></description>
      <content:encoded><![CDATA[<p>Following on from my <a href="https://www.thesmarthomebook.com/2022/12/02/unraid-working-with-external-drives/">post</a> on how to set up external drives in <a href="https://unraid.net/pricing?via=23be11">Unraid</a>, I wanted to write up my solution for getting around a persistent error I kept running into when trying to install <a href="https://nextcloud.com/">Nextcloud</a>.</p>
<h2>The Problem</h2>
<p>I followed the tutorials online to the letter. I created a share on the array called nextcloud. I installed <a href="https://mariadb.org/">Mariadb</a>, set my various passwords in the container and ran the container. I deleted the bottom variable as I didn’t want to use it.</p>
<figure aria-describedby="caption-attachment-2215" class="wp-caption aligncenter" id="attachment_2215"><img alt="Setup for Mariadb" class="size-full wp-image-2215" decoding="async" height="751" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/12/chrome_GYGCDAnHIf.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2215">Setup for Mariadb</figcaption></figure>
<p>Mariadb fired up with no errors in the logs. I then went to install Nextcloud. I used the linuxserver image (my preferred repository), changed the port number from 443 to 444 (Unraid needs 443), and fired her up.</p>
<figure aria-describedby="caption-attachment-2214" class="wp-caption aligncenter" id="attachment_2214"><img alt="Setup for Nextcloud" class="size-full wp-image-2214" decoding="async" height="608" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/12/chrome_CwzZzZ39Kt.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2214">Setup for Nextcloud</figcaption></figure>
<blockquote>
<p style="text-align: center;">I entered a new username and password (mindful to keep them different to the database credentials we set up in Mariadb). I then clicked on the database part but when it came to connecting to the database, I was continually met with this error:</p>
<p style="text-align: center;"><strong>Error while trying to create admin user: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [1045] Access denied for user ‘…..’@’localhost’ (using password: YES)</strong></p>
</blockquote>
<h2>Troubleshooting:</h2>
<ul>
<li>Changed every credential in Mariadb and nextcloud repeatedly, including removing non-alphanumeric characters</li>
<li>Nuked both images and started over (including deleting the directories out of /appdata )</li>
<li>I tried localhost:3306, 127.0.0.1:3306, my.server.ip.address:3306, nothing would connect</li>
<li>I worked through countless varieties of combos of the Mariadb credentials to no-avail.</li>
</ul>
<h2>Solution:</h2>
<p>I started to look online for the answer, it seems I wasn’t the only one having this problem. I saw people recommending going into the shell of the Mariadb container and manually configuring a new user, but that all seemed like hardwork. Particularly as we already had the variables set in Unraid.</p>
<p>I decided to try and look into the database itself, and for that I needed adminer:</p>
<ol>
<li>Go to the Apps page and download and install adminer. I left everything as standard aside from changing the port.
<figure aria-describedby="caption-attachment-2213" class="wp-caption aligncenter" id="attachment_2213"><img alt="Installing Adminer in Community Apps" class="size-full wp-image-2213" decoding="async" height="484" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/12/chrome_b71FJP5OVS.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2213">Installing Adminer in Community Apps</figcaption></figure>
<p><figure aria-describedby="caption-attachment-2216" class="wp-caption aligncenter" id="attachment_2216"><img alt="Set up for adminer" class="size-full wp-image-2216" decoding="async" height="759" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/12/chrome_kHcDYsrTaD.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2216">Set up for adminer</figcaption></figure></p></li>
<li>Ensure Mariadb is running, and then from the adminer webpage, select the database to connect to. Note: here you can connect to your nextcloud database as the user, or you can connect to Mariadb as root. I opted for the second. Username is root, and password is whatever you configured in the mariadb container (“MYSQL_ROOT_PASSWORD”). Enable permanent login at the bottom to save the credentials for next time (a list of your logins will save to the left).</li>
<li>On a successful login, you should see a list of databases… You can ignore all of them aside from the nextcloud database you set up (yours might be named differently).</li>
<li>Enter your nextcloud database and select Privileges (top right).
<p><figure aria-describedby="caption-attachment-2212" class="wp-caption aligncenter" id="attachment_2212"><img alt="Selecting the Privileges option (top right)" class="size-full wp-image-2212" decoding="async" height="257" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/12/chrome_1Jn0aSsfRL.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2212">Selecting the Privileges option (top right)</figcaption></figure></p></li>
<li>You should see your user at the top. Click on Edit.
<p><figure aria-describedby="caption-attachment-2217" class="wp-caption aligncenter" id="attachment_2217"><img alt="Editing your user's privileges in MariaDB" class="size-full wp-image-2217" decoding="async" height="306" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/12/chrome_zP0wxwtztT.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2217">Editing your user’s privileges in MariaDB</figcaption></figure></p></li>
<li>I toggled off ‘All privileges’ and then toggled it back on. Hit save at the bottom. Now try to connect the database to Nextcloud.</li>
</ol>
<p>For me, it connected straight away. For local host, at the bottom of the config screen, I literally just put in the address of the mariadb container, i.e. 192.x.x.x:3306 (I didn’t bother with http or https). After a minute or so deploying, I was staring at the Nextcloud login screen.</p>
<h2>Installing the Nextcloud Client on Windows</h2>
<p>I decided to use Chocolatey for this. If you’re not using choco, you need to be!</p>
<p>See <a href="https://www.thesmarthomebook.com/2020/04/07/install-applications-quickly-and-easily-using-chocolatey/">here</a> for more details. Installation was as simple as:</p>
<blockquote><p><strong>choco install nextcloud-client -y</strong></p></blockquote>
<p>Within 30 seconds, I was staring at my share in Windows.</p>
<figure aria-describedby="caption-attachment-2218" class="wp-caption aligncenter" id="attachment_2218"><img alt="Nextcloud installed in windows" class="size-full wp-image-2218" decoding="async" height="298" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/12/explorer_vDkmLHofD6.png" width="249"/><figcaption class="wp-caption-text" id="caption-attachment-2218">Nextcloud installed in windows</figcaption></figure>

<h2>After thought</h2>
<p>Am I exactly sure what happened initially to stop me from making a successful connection? No. It looks to me like the database password that we set up in the container template for some reason didn’t take properly. Adminer seemed to allow me to essentially force the password through. Maybe this is a bug, or maybe by design. Either way, I’m now looking at a successful Nextcloud installation.</p>
<figure aria-describedby="caption-attachment-2219" class="wp-caption aligncenter" id="attachment_2219"><img alt="Successful Nextcloud Installation" class="size-full wp-image-2219" decoding="async" height="649" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/12/chrome_Lg8oTNRvpx.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2219">Successful Nextcloud Installation</figcaption></figure>
<p>If anyone has any other ideas or explanations, I’m all ears. Better yet, why not join us on facebook to help share any other solutions or tips and tricks.</p>
<p><a href="https://www.facebook.com/groups/386238285944105">https://www.facebook.com/groups/386238285944105</a></p>
<p>If you’re considering a renovation and looking at the structured wiring side of things, or maybe you just want to support the blog, have a look below at my <a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored">smarthome book</a>, it’s available in all the usual places (including paperback).</p>
<figure aria-describedby="caption-attachment-764" class="wp-caption aligncenter" id="attachment_764"><a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored"><img alt="The Smarthome Book" class="size-full wp-image-764" decoding="async" height="490" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2020/04/ARCHITECT-TABLE-scaled.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-764">The Smarthome Book</figcaption></figure>
]]></content:encoded>
      <media:content url="https://www.thesmarthomebook.com/wp-content/uploads/2022/12/Artboard-1-1.png" medium="image" />
    </item>
    <item>
      <title>Unraid: Working with External Drives</title>
      <link>https://www.thesmarthomebook.com/2022/12/02/unraid-working-with-external-drives/</link>
      <guid isPermaLink="false">https://www.thesmarthomebook.com/?p=2195</guid>
      <pubDate>Fri, 02 Dec 2022 07:51:57 GMT</pubDate>
      <dc:creator><![CDATA[Andrew Howe]]></dc:creator>
      <category><![CDATA[container]]></category><category><![CDATA[docker]]></category><category><![CDATA[plex]]></category><category><![CDATA[server]]></category><category><![CDATA[software]]></category><category><![CDATA[unRaid]]></category><category><![CDATA[devices]]></category><category><![CDATA[drive]]></category><category><![CDATA[emby]]></category><category><![CDATA[external]]></category><category><![CDATA[hard]]></category><category><![CDATA[jellyfin]]></category>
      <description><![CDATA[In this post, I’m going to show you the steps needed to add an external hard drive to your Unraid server and make your media accessible to a docker container. I’ll show you how to set it up in Plex, but this guide should work …]]></description>
      <content:encoded><![CDATA[<p>In this post, I’m going to show you the steps needed to add an external hard drive to your <a href="https://unraid.net/pricing?via=23be11">Unraid</a> server and make your media accessible to a docker container. I’ll show you how to set it up in Plex, but this guide should work equally well for Emby or Jellyfin etc.</p>
<p>I’m going to assume that you have Docker up and running already, and have Community Apps installed. Let’s get started.</p>
<h2>Unassigned Devices</h2>
<p>The first thing we need to do is install two plugins. Go to the Apps tab and search for the following:</p>
<ul>
<li>Unassigned Devices</li>
<li>Unassigned Devices Plus (Addon)</li>
</ul>
<figure aria-describedby="caption-attachment-2201" class="wp-caption aligncenter" id="attachment_2201"><img alt="Unassigned Devices in the Community Apps" class="wp-image-2201" decoding="async" height="301" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/12/chrome_nmL6XsII7p.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2201">Unassigned Devices in the Community Apps</figcaption></figure>
<p>Install both of them. You’ll see them under the Plugins tab. Clicking on either of them there won’t do much, so let’s move on.</p>
<h2>Your External Drive</h2>
<p>Plug in your USB drive. My drive happened to be an 18TB WD elements drive that I grabbed off Amazon in a sale.</p>
<p>You can find the current pricing for WD elements <a href="https://amzn.to/3P9DRxD" rel="noopener sponsored">here</a>. (referral link, doesn’t cost you any extra, but helps support the blog).</p>
<figure aria-describedby="caption-attachment-2203" class="wp-caption aligncenter" id="attachment_2203"><a href="https://amzn.to/3P9DRxD" rel="noopener sponsored"><img alt="WD Elements on Amazon" class="wp-image-2203 size-medium" decoding="async" height="300" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/12/WD-elements-106x300.jpg" width="106"/></a><figcaption class="wp-caption-text" id="caption-attachment-2203">WD Elements on Amazon</figcaption></figure>
<p>It’s formatted as NTFS and I’d been using it with my laptop and main workstation to backup documents and consolidate my media collection. Once plugged in, wait a couple of seconds and if all goes well, you should now see your drive listed under Unassigned Devices under the Main Tab.</p>
<figure aria-describedby="caption-attachment-2199" class="wp-caption aligncenter" id="attachment_2199"><img alt="Viewing your External Drive" class="wp-image-2199" decoding="async" height="214" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/12/chrome_HKVZYHpb9l.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2199">Viewing your External Drive</figcaption></figure>
<p>If it’s a modern drive, it should show you various stats like temp, read, write etc… There are two settings links here. You can click on the settings icon directly to the right of “writes” and that will give you some advanced options. Do you wish to rename it, Pass through, automount, share etc… I’ll leave that for you to change as needed.</p>
<figure aria-describedby="caption-attachment-2196" class="wp-caption aligncenter" id="attachment_2196"><img alt="Specific Disk Settings" class="wp-image-2196" decoding="async" height="257" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/12/chrome_2eVXVtVxiY.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2196">Specific Disk Settings</figcaption></figure>
<p>I want to pick the settings option to the far right of the Unassigned Devices title. Here’s where you can specify some more general options. As this disk is primarily a media share for me and not accessible from the internet, I am less concerned with share security, so I was happy to leave SMB security off. I wanted to Enable NFS support though, again, I left a password off here, YMMV.</p>
<p>I did switch on Automount however. You can see my settings below.</p>
<figure aria-describedby="caption-attachment-2198" class="wp-caption aligncenter" id="attachment_2198"><img alt="Unassigned Devices Settings" class="wp-image-2198" decoding="async" height="628" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/12/chrome_A0mCS2IKmz.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2198">Unassigned Devices Settings</figcaption></figure>

<p>Your External Drive share should now be fully browsable under the following path:</p>
<blockquote><p><strong>/mnt/disks/…..</strong></p></blockquote>
<p>In my case, the name of the drive was Elements, so using Filezilla, I connected to my server and could freely interact with /mnt/disks/Elements/… Let’s set up the media.</p>
<h2>Container Setup</h2>
<p>See below for my Plex setup. I have media already living on the server itself, but wanted to be able to bring in the content on the USB drive too. You need to “Add another Path” at the bottom and fill in the relevant details for your new disk share.</p>
<figure aria-describedby="caption-attachment-2200" class="wp-caption aligncenter" id="attachment_2200"><img alt="Adding the Additional Share to the Container" class="wp-image-2200" decoding="async" height="438" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/12/chrome_lwawB0IwGL.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2200">Adding the Additional Share to the Container</figcaption></figure>
<figure aria-describedby="caption-attachment-2197" class="wp-caption aligncenter" id="attachment_2197"><img alt="Plex Container Set Up" class="wp-image-2197" decoding="async" height="577" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/12/chrome_7WJpJ843s7.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2197">Plex Container Set Up</figcaption></figure>
<p>Click Apply and Done, and restart the container.</p>
<p>Now once Plex has started up, it’s just a case of adding the additional media folder to the library. Once done, refresh the library, and your additional titles should begin to show. Job Done!</p>
<figure aria-describedby="caption-attachment-2202" class="wp-caption aligncenter" id="attachment_2202"><img alt="Adding the External Share to the Plex Library" class="wp-image-2202" decoding="async" height="546" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/12/chrome_obnqzYaFMW.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2202">Adding the External Share to the Plex Library</figcaption></figure>
<p>At this point, you should now have the drive fully browsable through the server. You can add it into a container and you can stream files from it via your media app of choice. Aside from media distribution, you could use the same set up, to back files up to it. There are a variety of containers that you could use to store files on there, or you could use rsync to copy files directly from the server to the drive.</p>
<h2>Rsync commands</h2>
<p>I’ll show you a single command to back up a share on the server to the external drive. Rsync in itself needs a complete tutorial, but for those who just want to see how to copy and sync any changes to the external drive, here’s the command I use in the Unraid shell. This backs up my “Pictures” share on the server, to a folder on the External drive:</p>
<blockquote>
<div><strong>rsync -avh “/mnt/user/Pictures/” “/mnt/disks/Elements/Pictures”</strong></div>
</blockquote>
<div></div>
<div>You can set this to run at various intervals or create scripts, but that’s beyond this tutorial.</div>
<div></div>
<div></div>
<div>Hopefully you have full control over those additional backup drives you’ve got laying around your main server. If you have any other cool ideas, feel free to share them in the comments or better still, come and join our facebook group and enlighten us all 🙂</div>
<div>
<p><a href="https://www.facebook.com/groups/386238285944105">https://www.facebook.com/groups/386238285944105</a></p>
</div>

<p>For more information on how to set up and trigger an automation (i.e. control lighting) directly from Plex, see here for a <a href="https://www.thesmarthomebook.com/2021/01/12/using-plex-to-trigger-automations-in-node-red/">solution</a>.</p>
<p>Looking to create a plex server, but unsure of what hardware to go for? <a href="https://www.thesmarthomebook.com/2020/10/12/choosing-suitable-hardware-for-a-plex-server/">Here</a> is a guide I wrote previously.</p>
<div>
<p>If you’re considering a renovation and looking at the structured wiring side of things, or maybe you just want to support the blog, have a look below at my <a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored">smarthome book</a>, it’s available in all the usual places (including paperback).</p>
<figure aria-describedby="caption-attachment-764" class="wp-caption aligncenter" id="attachment_764"><a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored"><img alt="The Smarthome Book" class="wp-image-764" decoding="async" height="491" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2020/04/ARCHITECT-TABLE-scaled.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-764">The Smarthome Book</figcaption></figure>
</div>
]]></content:encoded>
      <media:content url="https://www.thesmarthomebook.com/wp-content/uploads/2022/12/Artboard-1.png" medium="image" />
    </item>
    <item>
      <title>Fixing Adguard’s Home-Assistant Connection</title>
      <link>https://www.thesmarthomebook.com/2022/11/17/fixing-adguards-home-assistant-connection/</link>
      <guid isPermaLink="false">https://www.thesmarthomebook.com/?p=2184</guid>
      <pubDate>Thu, 17 Nov 2022 13:32:47 GMT</pubDate>
      <dc:creator><![CDATA[Andrew Howe]]></dc:creator>
      <category><![CDATA[server]]></category><category><![CDATA[software]]></category><category><![CDATA[unRaid]]></category><category><![CDATA[adguard]]></category><category><![CDATA[bind]]></category><category><![CDATA[configuration]]></category><category><![CDATA[home-assistant]]></category><category><![CDATA[integration]]></category><category><![CDATA[not working]]></category><category><![CDATA[unraid]]></category>
      <description><![CDATA[If you’re running an instance of Adguard in Docker on your network and wish to connect this to the Home-Assistant integration, you might have issues actually getting them to connect. I had tried several different variations of http/https…]]></description>
      <content:encoded><![CDATA[<p>If you’re running an instance of Adguard in Docker on your network and wish to connect this to the Home-Assistant integration, you might have issues actually getting them to connect. I had tried several different variations of http/https, ssl on/off, verify on/off and even varying user/pass. I eventually found my issue.</p>
<h2>AdGuardHome.yaml</h2>
<p>In Unraid, In my AdGuardHome.yaml file in docker/Adguard…. configuration folder you’ll see the following lines at the top:</p>
<div>
<blockquote>
<div><strong>bind_host: 0.0.0.0</strong></div>
<div><strong>bind_port: 80</strong></div>
<div><strong>beta_bind_port: 0</strong></div>
<div><strong>users:</strong></div>
<div><strong>  – name: admin</strong></div>
<div><strong>    password: redacted</strong></div>
</blockquote>
<div>We need to change the bind_port from 80 to 3000. Note this does mean that now to access Adguard, you’ll need to use your.ip.address.here:3000 instead of just your.ip.address.here, but that’s no issue, just a case of adding the port to the bookmark!</div>
<div>Save the .yaml file and restart the container.</div>
</div>
<div></div>
<div>
<figure aria-describedby="caption-attachment-2187" class="wp-caption aligncenter" id="attachment_2187"><img alt="AdGuard Config File on Unraid" class="size-full wp-image-2187" decoding="async" height="183" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/11/filezilla_eWrTBMt9Os.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2187">AdGuard Config File on Unraid</figcaption></figure>
</div>
<div></div>
<div>Now try and add the integration again… voila (hopefully)!</div>
<div></div>
<div>
<figure aria-describedby="caption-attachment-2185" class="wp-caption aligncenter" id="attachment_2185"><img alt="Configuration of the Adguard Interface" class="size-full wp-image-2185" decoding="async" height="806" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/11/chrome_sgtY0p8cUl.png" width="663"/><figcaption class="wp-caption-text" id="caption-attachment-2185">Configuration of the Adguard Interface</figcaption></figure>

</div>
<figure aria-describedby="caption-attachment-2186" class="wp-caption aligncenter" id="attachment_2186"><img alt="AdGuard Home in Home-Assistant" class="size-large wp-image-2186" decoding="async" height="728" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/11/chrome_9SMRf6s1n2.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2186">AdGuard Home in Home-Assistant</figcaption></figure>
<h2>Unraid</h2>
<p>As a last step, if this still doesn’t work for you, then an additional step may be to enable the host to access custom docker networks on <a href="https://unraid.net/pricing?via=23be11">Unraid</a>. To do that, you need to stop the docker service on Unraid. Go to the Docker settings page and show advanced.</p>
<p>There you enable the following. Once done, remember to enable the Docker service again:</p>
<figure aria-describedby="caption-attachment-2188" class="wp-caption aligncenter" id="attachment_2188"><img alt="Advanced Docker Settings in Unraid" class="size-large wp-image-2188" decoding="async" height="514" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/11/chrome_IosDVbzSDs.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2188">Advanced Docker Settings in Unraid</figcaption></figure>
<p>If you notice, when you create Adguard Home, it’s created on Br0 network. I am not sure if the above step is entirely necessary, but it was another step I did earlier when trouble shooting and I now have Adguard Home working in Home-Assistant. I can’t be bothered to stop docker, switch it off and try again! YMMV</p>
<p>If you’re looking to bring in more of your docker containers into Home-Assistant for monitoring and control, be sure to check out my post <a href="https://www.thesmarthomebook.com/2022/02/22/home-assistant-monitor-control-docker-containers/">here</a>.</p>

<div>If anyone has any hints or tricks on where to go from here, I’m all ears! You can hit me up directly, or in our facebook group below to discuss further.</div>
<div>
<p><a href="https://www.facebook.com/groups/386238285944105">https://www.facebook.com/groups/386238285944105</a></p>
<p>If you’re considering a renovation and looking at the structured wiring side of things, or maybe you just want to support the blog, have a look below at my <a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored">smarthome book</a>, it’s available in all the usual places (including paperback).</p>
<figure aria-describedby="caption-attachment-201" class="wp-caption aligncenter" id="attachment_201"><a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored"><img alt="The Smarthome Book" class="size-full wp-image-201" decoding="async" height="750" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2018/10/037-6x9-Tablet-Coffee-Wood-Table-COVERVAULT.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-201">The Smarthome Book</figcaption></figure>
</div>
]]></content:encoded>
      <media:content url="https://www.thesmarthomebook.com/wp-content/uploads/2022/11/Artboard-1-1.png" medium="image" />
    </item>
    <item>
      <title>Home-Assistant on the NSPanel Pro</title>
      <link>https://www.thesmarthomebook.com/2022/11/17/home-assistant-on-the-nspanel-pro/</link>
      <guid isPermaLink="false">https://www.thesmarthomebook.com/?p=2165</guid>
      <pubDate>Thu, 17 Nov 2022 11:49:08 GMT</pubDate>
      <dc:creator><![CDATA[Andrew Howe]]></dc:creator>
      <category><![CDATA[hardware]]></category><category><![CDATA[Home Automation]]></category><category><![CDATA[home-assistant]]></category><category><![CDATA[ip camera]]></category><category><![CDATA[Reolink]]></category><category><![CDATA[software]]></category><category><![CDATA[adb]]></category><category><![CDATA[automagic]]></category><category><![CDATA[blakadder]]></category><category><![CDATA[hardware]]></category><category><![CDATA[home-asssitant]]></category><category><![CDATA[itead]]></category>
      <description><![CDATA[After a few days of playing with the NSPanel Pro, I decided I wanted to integrate it more closely with Home-Assistant and Node-red. Whilst the Sonoff didn’t quite have the polish of the Violet, I knew that as it was based on Android, the…]]></description>
      <content:encoded><![CDATA[<p>After a few days of playing with the <a href="https://www.thesmarthomebook.com/2022/09/30/sonoff-cam-slim-and-the-nspanel-pro/">NSPanel Pro</a>, I decided I wanted to integrate it more closely with Home-Assistant and Node-red. Whilst the Sonoff didn’t quite have the polish of the <a href="https://www.thesmarthomebook.com/2022/02/01/violet-smartswitch-lite-home-assistant-node-red-integration/">Violet</a>, I knew that as it was based on Android, the OS was infinitely more open and able to run a myriad of apps. I began searching for a way to hack the panel. It didn’t take me to long to stumble upon several posts and tutorials by Blakadder. He was already a good few steps ahead of me. In summary, you essentially connect to the panel using ADB, sideload a variety of apps to the device’s storage, and then one by one, run them, until you’re in a position to run Home-Assistant.</p>
<figure aria-describedby="caption-attachment-2172" class="wp-caption aligncenter" id="attachment_2172"><img alt="Home-Assistant running on the NSPanel Pro" class="size-large wp-image-2172" decoding="async" height="1001" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/11/IMG20221009180651-scaled-e1668681350197-767x1024.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2172">Home-Assistant running on the NSPanel Pro</figcaption></figure>
<figure aria-describedby="caption-attachment-2178" class="wp-caption aligncenter" id="attachment_2178"><img alt="Another Home-Assistant Screen" class="size-full wp-image-2178" decoding="async" height="480" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/11/Screenshot_20221117-173251.png" width="480"/><figcaption class="wp-caption-text" id="caption-attachment-2178">Another Home-Assistant Screen</figcaption></figure>
<h2>Installing APKs to the Panel</h2>
<p>I installed ADB using <a href="https://www.thesmarthomebook.com/2020/04/07/install-applications-quickly-and-easily-using-chocolatey/">Chocolatey</a>. This is just the best package manager for windows. I prefer it to winget. The command was simply</p>
<blockquote><p><strong>choco install adb -y</strong></p></blockquote>
<p>I already had the IP address of the panel from my router’s dhcp server. It was simply a case of using powershell and the command:</p>
<blockquote><p><strong>ADB connect ip.address.of.panel</strong></p></blockquote>
<p>For me, as I’d been using ADB previously to speak with my Nvidia Shield, I didn’t need to set any ports up. All you need to do is make sure you ‘cd’ into the folder where you have your various downloaded apk’s and go from there. Blakadder did go through some other steps, in case you were unable to connect via ADB but for me it was seamless. Once connected, I went through the rest of the commands in order. I don’t want to list them all out here, feel free to go through his tutorial which can be found on his blog <a href="https://blakadder.com/android-panel-webview/">here</a>. I think recently a host of youtubers have also cottoned on and made a variety of videos outlining the steps.</p>
<p>The only points I would like to make are that on one of the commands, I needed to amend the script slightly, as the location of the file it referred to, was in a different folder. I can’t quite remember the exact step, it’s been a few weeks already, but it was just a case of either moving the files into the location referenced in the script, or amending the script slightly to match the original location of the files. Blakadder might have already fixed that up, so YMMV.</p>
<figure aria-describedby="caption-attachment-2182" class="wp-caption aligncenter" id="attachment_2182"><img alt="Additional Apps needed" class="size-full wp-image-2182" decoding="async" height="480" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/11/Screenshot_20221117-174954.png" width="480"/><figcaption class="wp-caption-text" id="caption-attachment-2182">Additional Apps needed</figcaption></figure>
<h3>Additional settings</h3>
<p>I went through a few things to enable the panel to be more user friendly. In the settings I enabled the traditional Android navigation buttons, turned off the screen saver / screen dim / screen lock. I uninstalled whatever wasn’t needed. I also turned off the clicking noise (navigation) as that was getting on my nerves. I subsequently found a way to increase the actual font size, which I didn’t know about until after I took the screen shots, so keep that in mind when you’re looking at the photos!</p>
<figure aria-describedby="caption-attachment-2174" class="wp-caption aligncenter" id="attachment_2174"><img alt="How Small?" class="size-full wp-image-2174" decoding="async" height="155" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/11/tiny.gif" width="220"/><figcaption class="wp-caption-text" id="caption-attachment-2174">How Small?</figcaption></figure>
<h3>Adding Home-Assistant</h3>
<p>When deciding what flavor of Home-Assistant to use, I decided to go for the traditional companion app. I’ve never messed around with Kiosk or any of the other “skins” but I wanted to see if I could actually connect everything up first. I downloaded the apk from <a href="https://github.com/home-assistant/android">here</a> (choose the latest version), and then ‘adb pushed’ it to the panel. Once installed, I was looking at the Home-Assistant login screen. Despite it’s small size, it was very useable (increasing the font size in Advanced System Settings helped here). The panel is responsive, bright and the text is sharp, making everything easily legible. My phone camera does not do this justice!</p>
<figure aria-describedby="caption-attachment-2169" class="wp-caption aligncenter" id="attachment_2169"><img alt="Home-Assistant Interface" class="size-large wp-image-2169" decoding="async" height="1000" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/11/IMG20221009180518-scaled-e1668681441417-768x1024.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2169">Home-Assistant Interface</figcaption></figure>
<p>My <a href="https://www.thesmarthomebook.com/2021/07/15/reolink-first-impressions-setup-home-assistant-integration/">Reolink CCTV</a> feeds are brought into the panel without problem, and using the free standing enclosure that ITEAD were kind enough to send me, means i have a miniature CCTV display sat next to my keyboard. It’s all very Bond Villainesque!</p>

<figure aria-describedby="caption-attachment-2170" class="wp-caption aligncenter" id="attachment_2170"><img alt="My Boiler CCTV feed" class="size-large wp-image-2170" decoding="async" height="1000" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/11/IMG20221009180538-scaled-e1668681413557-768x1024.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2170">My Boiler CCTV feed</figcaption></figure>
<figure aria-describedby="caption-attachment-2179" class="wp-caption aligncenter" id="attachment_2179"><img alt="Example of Reolink Feed" class="size-full wp-image-2179" decoding="async" height="480" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/11/Screenshot_20221117-173314.png" width="480"/><figcaption class="wp-caption-text" id="caption-attachment-2179">Example of Reolink Feed</figcaption></figure>

<p>As I searched Blakadder’s site, I also found another entry <a href="https://blakadder.com/android-panel-proximity/">here</a> for turning on the proximity sensor. In essence, this allows you to put the screen to sleep until you approach it. You can even vary the sensitivity (distance) to the screen itself. This was really cool. I eagerly got to work sideloading <a href="https://automagic4android.com/">Automagic</a>, and managed to get it set up. Unfortunately though, it never quite worked properly. It would turn on from sleep for the first couple of times (after some frantic hand waving) and then it was as if the panel got bored, and shut itself down. The only way you could get it to come to life, was a hard reboot. This was fine whilst sat on the desk, but if this was in the wall, it would be a problem. The full tutorial can be found <a href="https://blakadder.com/android-panel-proximity/">here</a>. On that page in the comments section, it’s suggested that you need to switch on the following settings:</p>
<blockquote><p><strong>Features &amp; Permissions &gt; Device admin functions (tick)</strong><br/>
<strong>Features &amp; Permissions &gt; Root functions (experimental) (tick)</strong></p></blockquote>
<p>I did this, but to no avail. The panel would become unresponsive. It would randomly reboot if left to its own devices every few hours. As soon as I removed the screen sleep option in the Android settings, it’s worked perfectly. Although I do feel somewhat wasteful leaving the screen on 24/7 on my desk. It’s been running non-stop for 5 days now without any burn in, or restarts. It just sits there. I did at change the panel’s adaptive screen brightness on in the Android Settings menu.</p>
<h2>Usage</h2>
<p>Once I had everything running, it was just a case of leaving it on my desk and seeing naturally what I used it for the most. I am a bigtime gamer, and like nothing more than to jump into multiplayer shooters with my friends. I have Steam sensors already set up in Home-Assistant which tell me which of the crew are online. I’ve found myself more or less leaving that screen on the NSPanel Pro monitoring who’s “online” or not. I also have a screen showing me the various statistics of my main workstation. Everything from IP address and network speed, to temperatures and CPU usage. I take these values from my main workstation using <a href="https://www.thesmarthomebook.com/2020/06/30/iotlink-full-control-and-monitoring-of-your-windows-10-machine-using-mqtt/">IOTlink</a>. In this instance it can act as a sensor panel similar to the sort of thing you could create in <a href="https://www.aida64.com/">AIDA64</a>.</p>
<figure aria-describedby="caption-attachment-2180" class="wp-caption aligncenter" id="attachment_2180"><img alt="Example of a Sensor Panel" class="size-full wp-image-2180" decoding="async" height="480" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/11/Screenshot_20221117-173336.png" width="480"/><figcaption class="wp-caption-text" id="caption-attachment-2180">Example of a Sensor Panel</figcaption></figure>
<p>I did actually go through the Settings menu in Home-Assistant to hide some of the side bar items. I’m aware that this device is open to everyone in the household at present. It’s fine, it’s in my office. If I had children or nosey friends, I’d definitely suggest creating a specific Home-Assistant user with limited configuration options so that they couldn’t go in and mess things up.</p>
<h2>In Summary</h2>
<p>Despite my inability to get the proximity sensor triggered display working correctly, running Home-Assistant on this panel, had increased it’s usefulness to me by about 500%. It’s a genuinely useful piece of hardware now, and not a solution looking for a problem. I can monitor (with audio) realtime CCTV feeds, workstation data, as well as turn various bits and bobs on and off at will, as you’d expect from a Home-Assistant interface. Blakadder did another post detailing some other things you can do with them, which I’ll link to <a href="https://blakadder.com/nspanel-pro-secrets/">here</a>. There’s Bluetooth and ZigBee present in the panel which I highlighted in my earlier <a href="https://www.thesmarthomebook.com/2022/09/30/sonoff-cam-slim-and-the-nspanel-pro/">review</a> of the unit. With time, maybe someone can write some code allowing me to use this unit as a network repeater further increasing its usefulness.</p>
<p>If you’re looking to pickup an NSPanel Pro, take a look at the full specification <a href="https://bit.ly/3SmvgYt" rel="noopener sponsored">here</a>.</p>
<p>If you’re also interested in the enclosure to make it desk ready, you can find that <a href="https://bit.ly/3y5QT7L" rel="noopener sponsored">here</a>.</p>
<p>Eventually (I’m about to move home), I’ll create some custom screens specific for the user ‘panel’ in home-assistant NSPanel. I’ll also look into a way of pushing updated versions of the applications to see if it fixes my proximity sensor, but for now, the panel is working perfectly. If anyone knows of a way to allow automatic updates do let me know!</p>

<div>If anyone has any hints or tricks on where to go from here, I’m all ears! You can hit me up directly, or in our facebook group below to discuss further.</div>
<div>
<p><a href="https://www.facebook.com/groups/386238285944105">https://www.facebook.com/groups/386238285944105</a></p>
<p>If you’re considering a renovation and looking at the structured wiring side of things, or maybe you just want to support the blog, have a look below at my <a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored">smarthome book</a>, it’s available in all the usual places (including paperback).</p>
<figure aria-describedby="caption-attachment-201" class="wp-caption aligncenter" id="attachment_201"><a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored"><img alt="The Smarthome Book" class="size-full wp-image-201" decoding="async" height="750" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2018/10/037-6x9-Tablet-Coffee-Wood-Table-COVERVAULT.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-201">The Smarthome Book</figcaption></figure>
</div>
]]></content:encoded>
      <media:content url="https://www.thesmarthomebook.com/wp-content/uploads/2022/11/Artboard-1.png" medium="image" />
    </item>
    <item>
      <title>Connect Portainer Environments Together</title>
      <link>https://www.thesmarthomebook.com/2022/10/08/connect-portainer-environments-together/</link>
      <guid isPermaLink="false">https://www.thesmarthomebook.com/?p=2154</guid>
      <pubDate>Sat, 08 Oct 2022 06:02:31 GMT</pubDate>
      <dc:creator><![CDATA[Andrew Howe]]></dc:creator>
      <category><![CDATA[computing]]></category><category><![CDATA[container]]></category><category><![CDATA[docker]]></category><category><![CDATA[Networking]]></category><category><![CDATA[server]]></category><category><![CDATA[software]]></category><category><![CDATA[Tailscale]]></category><category><![CDATA[unRaid]]></category><category><![CDATA[connectivity]]></category><category><![CDATA[environments]]></category><category><![CDATA[networking]]></category><category><![CDATA[portainer]]></category>
      <description><![CDATA[I wanted to join some servers up so that I could get better monitoring and quicker control. I have a Proxmox server in Asia, and an Unraid server in the UK. I’m a big fan of Docker. I run it natively on Unraid, but I …]]></description>
      <content:encoded><![CDATA[<p>I wanted to join some servers up so that I could get better monitoring and quicker control. I have a Proxmox server in Asia, and an <a href="https://unraid.net/pricing?via=23be11">Unraid</a> server in the UK. I’m a big fan of Docker. I run it natively on <a href="https://unraid.net/pricing?via=23be11">Unraid</a>, but I also have it installed in a Proxmox LXC (You can read how I did that linked <a href="https://www.thesmarthomebook.com/2021/09/21/home-server-installing-docker-portainer-home-assistant-on-proxmox/">here</a>). For container administration I like to use Portainer. It gives me a quick and easy overview, with the ability to stop and start, remove and create as needed.</p>
<figure aria-describedby="caption-attachment-2157" class="wp-caption aligncenter" id="attachment_2157"><img alt="Connected Environments" class="size-large wp-image-2157" decoding="async" height="368" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/10/chrome_HTxCou2uFU.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2157">Connected Environments</figcaption></figure>
<p>In this post, I am going to show you how you can join Portainer instances together without the need for port forwards or exposing anything to the wider world (at least outside of a vpn anyway). I will also cover upgrading Portainer Community Edition to Portainer Business Edition (they give you 5 free nodes). This is a seamless update where you don’t lose anything.</p>
<h2>Portainer Business Edition</h2>
<p>Let’s upgrade to Portainer business edition first. Go to Portainer and apply for a licence here: <a href="https://www.portainer.io/pricing/take5">https://www.portainer.io/pricing/take5</a></p>
<p><img alt="" class="aligncenter size-large wp-image-2159" decoding="async" height="544" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/10/chrome_sfu47Le0Zc.png" width="750"/><br/>
Use Personal Use for company and fill the rest in as required. Within 5-10 minutes, you should receive an email with a really long token.<br/>
In my Proxmox/LXC instance, I carried out the following commands:</p>
<blockquote><p><strong>docker stop portainer</strong><br/>
<strong>docker rm portainer</strong><br/>
<strong>docker run -d -p 8000:8000 -p 9000:9000 –name=portainer –restart=always –pull=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ee:2.12.</strong><br/>
<strong>docker start portainer</strong></p></blockquote>
<p>Note if your Portainer version is before 2.X then see <a href="https://docs.portainer.io/v/ce-2.9/start/upgrade/tobe/docker">here</a> for alternative instructions as they differ slightly.</p>
<p>After a moment or so, I navigated to: <strong>http://my.server.ip.here:9000</strong><br/>
I was met with a screen asking me to paste in the key. I pasted it in fully (mindful not to add trailing spaces), but I was met with an authentication error. I needed to basically clear the cache of the browser and navigate back to the original URL (ip:9000). Once there, I logged in with my username and password, for some reason, I was then able to paste the code directly into the second screen. Maybe you’ll be able to work through without the error, but if it comes up, you know how to fix it!</p>
<p>Ok so we’re now in Business edition and all your containers and stacks should be looking at you as per before. If you’re looking to save some space, remember to remove the old community edition image(s).</p>
<blockquote><p><strong>docker image prune -y</strong></p></blockquote>
<p>For Unraid, it was even easier. Remove and delete your existing Portainer-CE app (if you already have it), and then download and install Portainer-BE. I left everything as standard in the template. Once installed, I entered the webgui. Signed in, and pasted in that licence key again. Now we have Portainer-BE installed in both locations, it’s time to join them together.</p>
<h2>Connecting Servers</h2>
<p>Whilst in <a href="https://unraid.net/pricing?via=23be11">Unraid</a>, download and install Portainer-Agent. Again, I accepted the default template settings.</p>
<figure aria-describedby="caption-attachment-2158" class="wp-caption aligncenter" id="attachment_2158"><img alt="Both Portainer Apps need to be installed" class="size-large wp-image-2158" decoding="async" height="328" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/10/chrome_LMH7iFzV7f.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2158">Both Portainer Apps need to be installed</figcaption></figure>
<p>Next, You’re going to want to make sure you’re using Tailscale. If you have never set this up before, you can take a look at my post detailing the steps <a href="https://www.thesmarthomebook.com/2021/07/24/the-holy-grail-of-networking-tailscale/">here</a>.</p>
<p>Once you have Tailscale installed on both servers, make sure they’re authenticated and running. I have Tailscale running in Unraid, and I installed Tailscale at a Host level (not in the LXC) on the Proxmox host. Make sure both instances are updated to the latest and greatest.</p>
<figure aria-describedby="caption-attachment-2156" class="wp-caption aligncenter" id="attachment_2156"><img alt="Unraid Running Tailscale and Portainer" class="size-full wp-image-2156" decoding="async" height="625" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/10/chrome_CLkv4I90KU.png" width="546"/><figcaption class="wp-caption-text" id="caption-attachment-2156">Unraid Running Tailscale and Portainer</figcaption></figure>
<p>Now go to your master instance (i.e. the main install where you want to see both). In my case, Proxmox. Click on <strong>Environments &gt; Add environmen</strong>t</p>
<figure aria-describedby="caption-attachment-2155" class="wp-caption aligncenter" id="attachment_2155"><img alt="How to connect to another Instance" class="size-large wp-image-2155" decoding="async" height="518" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/10/chrome_1xHNq6ssmA.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2155">How to connect to another Instance</figcaption></figure>
<p>Highlight Agent at the top and all you fill in is the Environment URL:9001. Make sure you’re using the Tailscale ip address for the URL. In my case it was 100.101.X.X:9001.<br/>
Add the environment, and within seconds, you’re connected.</p>
<p>Click on Home at the top of the Portainer Menu and you now have access to both instances. You’re done. Full access to the remote instance, without port forwarding or messing around with reverse proxies etc. You can stop, start, rebuild containers as you see fit.</p>
<p>To see how to monitor and control the containers from Home-Assistant and Node-red, feel free to check out my walkthrough <a href="https://www.thesmarthomebook.com/2022/02/22/home-assistant-monitor-control-docker-containers/">here</a>.</p>
<p>If you’re wondering why did I upgrade to Portainer business edition, well firstly, they’re offering it free to home labbers, so why not? Secondly here are a list of comparable features <a href="https://docs.portainer.io/v/ce-2.9/start/upgrade/tobe/docker">here</a>:</p>
<p>Things that caught my eye:</p>
<ul>
<li>Oauth</li>
<li>Read only access (especially if I am going to hand it out to things like Home-Assistant for monitoring)</li>
<li>Automated backups</li>
<li>Auto-pull image latest from registry (the icing on the cake)</li>
</ul>
<p>YMMV!</p>
<p>If you have any good ideas or additions for Docker, let me know in the comments, or if you have anything cool that you’re working on, think about joining our facebook group to share your inspiration.</p>
<p><a href="https://www.facebook.com/groups/386238285944105">https://www.facebook.com/groups/386238285944105</a></p>

<p>If you’re considering a renovation and looking at the structured wiring side of things, or maybe you just want to support the blog, have a look below at my smarthome <a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored">book</a>, it’s available in all the usual places (including paperback)!</p>
<figure aria-describedby="caption-attachment-764" class="wp-caption aligncenter" id="attachment_764"><a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored"><img alt="The Smarthome Book" class="size-large wp-image-764" decoding="async" height="490" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2020/04/ARCHITECT-TABLE.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-764">The Smarthome Book</figcaption></figure>
]]></content:encoded>
      <media:content url="https://www.thesmarthomebook.com/wp-content/uploads/2022/10/Artboard-1.png" medium="image" />
    </item>
    <item>
      <title>Sonoff CAM Slim and the NSPanel Pro</title>
      <link>https://www.thesmarthomebook.com/2022/09/30/sonoff-cam-slim-and-the-nspanel-pro/</link>
      <guid isPermaLink="false">https://www.thesmarthomebook.com/?p=2127</guid>
      <pubDate>Fri, 30 Sep 2022 11:25:28 GMT</pubDate>
      <dc:creator><![CDATA[Andrew Howe]]></dc:creator>
      <category><![CDATA[cctv]]></category><category><![CDATA[hardware]]></category><category><![CDATA[Home Automation]]></category><category><![CDATA[home-assistant]]></category><category><![CDATA[ip camera]]></category><category><![CDATA[software]]></category><category><![CDATA[CAM slim]]></category><category><![CDATA[camera]]></category><category><![CDATA[home-assistant]]></category><category><![CDATA[Ip]]></category><category><![CDATA[itead]]></category><category><![CDATA[NSPanel]]></category>
      <description><![CDATA[Itead hasn’t paid for this review, but they did send me the products to have a play with. All opinions are my own. Unboxing Itead were kind enough to send me a small parcel containing their Sonoff CAM Slim, a new NSPanel Pro and enclosure …]]></description>
      <content:encoded><![CDATA[<div>Itead hasn’t paid for this review, but they did send me the products to have a play with. All opinions are my own.</div>
<div></div>
<h2>Unboxing</h2>
<div>Itead were kind enough to send me a small parcel containing their Sonoff <a href="https://bit.ly/3DKfPFJ" rel="noopener sponsored">CAM Slim</a>, a new <a href="https://bit.ly/3SmvgYt" rel="noopener sponsored">NSPanel Pro</a> and <a href="https://bit.ly/3y5QT7L" rel="noopener sponsored">enclosure stand</a>. I eagerly unwrapped them all to see what was what.</div>
<div>
<figure aria-describedby="caption-attachment-2128" class="wp-caption aligncenter" id="attachment_2128"><img alt="Sonoff Delivery" class="size-large wp-image-2128" decoding="async" height="422" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/IMG20220926121959.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2128">Sonoff Delivery</figcaption></figure>
</div>
<div></div>
<div>At first glance, the camera is relatively small and lightweight. It came with an attached stand, USB-C to USB-A cable, and a fixing kit (screws/plugs and some 3m).The camera has a good degree of swivel and can be mounted in pretty much any orientation. It’s much lighter than I thought it would be. In my mind, this is for interior use as opposed to externally like the Reolink cameras I’ve tested and wrote about previously. More on this later.</div>
<div></div>
<div>Next I opened the NSPanel <a href="https://bit.ly/3y5QT7L" rel="noopener sponsored">enclosure stand</a>. On the box it looks to be compatible with the NSPanel Pro I received, as well as the NSpanel-EU and the NSPanel-US. It ‘s a solid stand capable of mounting the NSPanel at an angle on the desk. It comes with two supplied screws that you need to use to secure the panel firmly in place. The included cut out at the back allows it a power cable to sit comfortably behind.</div>
<div>
<figure aria-describedby="caption-attachment-2129" class="wp-caption aligncenter" id="attachment_2129"><img alt="NSPanel Pro + Accessories" class="size-large wp-image-2129" decoding="async" height="422" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/IMG20220926122153.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2129">NSPanel Pro + Accessories</figcaption></figure>
</div>
<div>Finally, saving the best ’til last, I had a look at the NSPanel Pro. Despite the packaging looking like a courier had been playing football with it, the NSPanel was securely wrapped with a small foam layer protecting the screen. It too, contained a pair of mounting bolts, suitable to fasten the panel to a standard UK square back box (or an EU round one). I’d say in terms of size, it was pretty close to the unit I had previously been given from Violet for testing, but they’re not the same. The units are different in size and weight, so I don’t think they’re “rebrands”.</div>
<div>
<figure aria-describedby="caption-attachment-2130" class="wp-caption aligncenter" id="attachment_2130"><img alt="Rear: NSPanel Pro Right, Violet Left" class="size-large wp-image-2130" decoding="async" height="422" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/IMG20220926122303.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2130">Rear: NSPanel Pro Right, Violet Left</figcaption></figure>
<figure aria-describedby="caption-attachment-2131" class="wp-caption aligncenter" id="attachment_2131"><img alt="NSPanel Pro Right, Violet Left" class="size-large wp-image-2131" decoding="async" height="422" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/IMG20220926122312.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2131">NSPanel Pro Right, Violet Left</figcaption></figure>
</div>
<div></div>
<div>On the rear of the unit as per the photo you can see the L and N terminals (obscured by a small plastic cover), as well as 4 small mounting tabs on each corner bonding the main guts of the unit with the actual screen. Whilst it looks like there’s room for some additional terminals there, sadly, no relays are present, which I think could be a missed opportunity for connecting some mains lighting, etc. I tried to pull the tabs outwards on each corner to free the frame from the body, but I was unable to get them all to go at once. In the end, I managed to somehow get half of one side off. I used a small flathead screwdriver and gently prised off the frame. At the bottom of the screen there’s a small gap for it. I slowly started to twist until the screen popped off. I am not sure if that’s the correct way to do it, but it worked. This revealed the screw holes in the rear of the unit.</div>
<div>
<figure aria-describedby="caption-attachment-2132" class="wp-caption aligncenter" id="attachment_2132"><img alt="NSPanel Pro screen and body separated" class="size-large wp-image-2132" decoding="async" height="422" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/IMG20220926122802.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2132">NSPanel Pro screen and body separated</figcaption></figure>
</div>
<div>I borrowed a cable from a Sonoff basic, connected it up (remember to thread the cable through the whole in the rear of the stand first!) and tightened the unit to the enclosure. The screw heads are quite coarse, so I needed to use some degree of force to put the unit in the stand. I wouldn’t say it’s sitting as tight as I’d like it, but it’s ok. In went the plug and within a few moments, there was light!</div>
<div></div>
<h2>Setting up the NSPanel Pro</h2>
<div>After the splash screen and the welcome chime, I was immediately presented with a screen to enter the WiFi network. I did as I was told and the machine showed connection, bringing me to the main screen interface. From what I’ve read, this device is running on Android 8.X. The only option I had was a button showing me “Disarmed”. Swiping left showed me an empty Device screen, left again showed me an empty Scenes screen. Swiping down brought the Settings screens.</div>
<div></div>
<div>The quality of the panel is good. The picture is sharp and vibrant. The actual touch side of things isn’t as accurate as I would have liked. A lot of the time I needed to select something more than once, particularly when needing to enter a sub-menu. If I wanted to swipe down, often it would swipe me to the side instead. It could just be my hooves for hands, but I manage ok on an iPad!</div>
<div></div>
<div>I clicked on the eWelink account and it showed me a QR code. I knew I was going to have to connect this to eWelink to give it a full run through, so I downloaded the app to my phone. This was where the fun began. For some reason, I was unable to create an account. I repeatedly entered my region (UK) and then my email and a password, but it wouldn’t take. For some reason it refused to create the account. Undeterred, I went to the eWelink <a href="https://web.eWelink.cc/#/login">website</a> and created the account manually there. Once created and added to Bitwarden, I then managed to successfully log into the eWelink app on my One Plus 9 Pro. Ok, irritating, but on we press.</div>
<div>
<figure aria-describedby="caption-attachment-2138" class="wp-caption aligncenter" id="attachment_2138"><img alt="eWelink App - Methods of adding a device" class="size-large wp-image-2138" decoding="async" height="1024" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/Screenshot_2022-09-28-18-17-43-48_41b172fd405cd4f56cfde6a38027ffd1.jpg" width="459"/><figcaption class="wp-caption-text" id="caption-attachment-2138">eWelink App – Methods of adding a device</figcaption></figure>
</div>
<div>Once in the app, I clicked the big plus button bottom centre and then selected Scan QR code. I carefully aligned the QR code directly over the screen waiting for the hook up, but alas nothing happened. I must have tried this about 10 times. I restarted the NSPanel Pro a couple of times, thinking that maybe it had upgraded its firmware and something needed to reboot, but this did nothing. Eventually, I thought I’d try a different WiFi network. I put it on my DMZ vlan (no Adguard, firewall rules etc), and attached my phone. As soon as they were both on the same network, I tried the ritual again and we were in business. The screen connected, and an image of the NSPanel Pro appeared in my app. In the settings menu, i could now see my email address listed on the panel. So far so good. FWIW DMZ is both 2.4 and 5Ghz enabled, so it must have been some of my pfSense rules or Adguard blocking something.</div>
<div></div>
<h2>Setting up the CAM Slim</h2>
<div>I plugged the camera directly into a USB power source and waited for it to switch on. I heard a voice coming from the unit. I couldn’t make out what it was saying, but looked in the app and selected the plus button again to add another device. It wasn’t immediately apparent to me which one to select. The camera can’t show a QR code to scan. I pressed  Sound Pairing and moved forward through the screen until I got to the select WiFi screen. Here despite it saying disable 5Ghz on your WiFi, I went for it anyway. Next I heard a variety of high pitched beeps, reminiscent of an old modem or fax. It went on for 3 minutes and was annoying.</div>
<div>
<figure aria-describedby="caption-attachment-2139" class="wp-caption aligncenter" id="attachment_2139"><img alt="eWelink App - Adding a camera" class="size-large wp-image-2139" decoding="async" height="1024" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/Screenshot_2022-09-28-18-30-09-31_41b172fd405cd4f56cfde6a38027ffd1.jpg" width="459"/><figcaption class="wp-caption-text" id="caption-attachment-2139">eWelink App – Adding a camera</figcaption></figure>
</div>
<div>At the end of it, nothing. I then switched to another WiFi network, having to connect my phone to it first and then re-attempting the pairing. At this point it took. The thing is, this network is my IOT network and internet access is blocked. I decided to try again with the original DMZ network. I put the CAM Slim back into pairing mode by using a paperclip in the rear. I went through the 3 minute aural torture again, but this time it took. Suddenly, the cam appeared in the app., and the NSPanel Pro now showed a Camera option on it’s main screen.  A quick press of that, and I was suddenly met with this little 1080p camera picture shining in all its glory.</div>
<div>
<figure aria-describedby="caption-attachment-2137" class="wp-caption aligncenter" id="attachment_2137"><img alt="Squirrel Cam!" class="size-large wp-image-2137" decoding="async" height="1024" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/IMG20220929181935.jpg" width="683"/><figcaption class="wp-caption-text" id="caption-attachment-2137">Squirrel Cam!</figcaption></figure>
</div>
<div>You have the ability to use the camera as an intercom, or you can mute the audio and mic entirely. I like this. The quality and interaction with the NSPanel Pro is better than I expected. I also took the chance to add a second camera. I opted for my Reolink 810a. This is a much heavier resolution than the CAM Slim, so took a little longer to add, but the RTSP feed was accepted first time.</div>
<figure aria-describedby="caption-attachment-2134" class="wp-caption aligncenter" id="attachment_2134"><img alt="Reolink 810a RTSP Feed on the NSPanel" class="size-large wp-image-2134" decoding="async" height="1024" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/IMG20220928183632.jpg" width="683"/><figcaption class="wp-caption-text" id="caption-attachment-2134">Reolink 810a RTSP Feed on the NSPanel</figcaption></figure>
<div></div>
<div>Note, this was the URL I used…</div>
<blockquote>
<div><strong>rtsp://user:password@your.camera.ip.address:554</strong></div>
</blockquote>
<div>The reolink worked well, but occasionally there were some drop outs. I’d occasionally see artefacts or a quick full screen freeze. I attribute this to the 810a being a 4k camera and maybe the NSPanel Pro didn’t always have the bandwidth for it. On the whole though it was very useable.</div>
<div>
<figure aria-describedby="caption-attachment-2133" class="wp-caption aligncenter" id="attachment_2133"><img alt="Reolink 810a RTSP Feed Artefacts" class="size-large wp-image-2133" decoding="async" height="1024" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/IMG20220928183614.jpg" width="683"/><figcaption class="wp-caption-text" id="caption-attachment-2133">Reolink 810a RTSP Feed Artefacts</figcaption></figure>
</div>
<div>Note I have the ability to amend the address/name of the Reolink camera, but not the CAM Slim. I guess because that was initially added via eWelink, so any amendments need to be done in the app. I actually managed to bring the Sonoff camera directly into Home-Assistant/Frigate without using eWelink as well, but I’ll cover that in a separate post. There’s no RTMP with the camera, just RTSP.</div>
<div></div>
<div>A good feature of the CAM slim is the ability to record locally to an SD card or you can record to the cloud. If you take a look in the eWelink app, it shows you the various features available to you, but for cloud services, you’re paying a subscription. £32 a year per camera. I’m struggling to get on board with that. I understand that servers cost, and need to be maintained, and as we all unfrotunately know, energy isn’t cheap, but say you had 3 or 4 cameras in your house, you’re suddenly looking at a proper subscription. Still, with the RTSP option, you can choose your own solution. At least Sonoff are able to offer the functionality if needed.</div>
<div>
<figure aria-describedby="caption-attachment-2142" class="wp-caption aligncenter" id="attachment_2142"><img alt="eWelink Subscription Services" class="size-large wp-image-2142" decoding="async" height="1024" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/Screenshot_2022-09-29-14-38-32-50_41b172fd405cd4f56cfde6a38027ffd1.jpg" width="459"/><figcaption class="wp-caption-text" id="caption-attachment-2142">eWelink Subscription Services</figcaption></figure>
<figure aria-describedby="caption-attachment-2141" class="wp-caption aligncenter" id="attachment_2141"><img alt="CAM Slim Features" class="size-large wp-image-2141" decoding="async" height="1024" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/Screenshot_2022-09-29-14-38-15-00_41b172fd405cd4f56cfde6a38027ffd1.jpg" width="459"/><figcaption class="wp-caption-text" id="caption-attachment-2141">CAM Slim Features</figcaption></figure>
</div>
<div>I didn’t hook up the CAM to my Alexa or Google. I don’t have a voice assistant with a screen, so I would have been unable to ask Alexa or Google to “show me the CAM” so to speak.</div>
<div></div>
<h2>Adding a sensor</h2>
<div>Next it was time to add a sensor. I knew that the <a href="https://bit.ly/3SmvgYt" rel="noopener sponsored">NSPanel Pro</a> is a zigbee 3.0 hub, so I wanted to connect a zigbee motion sensor to it. I have an aqara motion sensor sat on my desk for testing. Using a paper clip, I put the sensor mode in pairing, and hit the add device/sensor on the panel. I watched the screen count down for three minutes, but it failed to find the sensor. I must have tried about 5 or 6 times. It was only then that I saw online that it was currently only compatible with Sonoff / Hue / Ikea devices at present. I guess more will come later according to the product page. This wasn’t a total deal breaker for me, as I knew there was an integration for eWelink in Home-Assistant anyway.</div>
<div></div>
<div>I played around with the eWelink app, but didn’t get very far. I was unable to add any scenes initially, although a system update seemed to allow me to add some fairly rudimentary automations, including the ability to buy Sonoff products that I didn’t already own. Not sure I really appreciated that. If I am honest, I think the app isn’t particularly good. It’s not particularly polished, and not so intuitive. I’m sure if you were all in on Sonoff products and everything just showed up in there, then it might be easier to digest, but given I am not all in on Sonoff products, I have a range of vendors and protocols I work with, this was never going to be a hit with me. Speaking of multiple vendors, let’s get on to Home-Assistant.</div>
<h2>Connecting to Home-Assistant</h2>
<div>A quick show of Google-Fu and I soon arrived to this page – <a href="https://appcms-src.coolkit.cn/uncategorized/9213.html" rev="en_rl_none">https://appcms-src.coolkit.cn/uncategorized/9213.html</a></div>
<div>I won’t recite all the steps, essentially I added this repository to the add-ons page (<a href="https://github.com/CoolKit-Technologies/ha-addon" rev="en_rl_none">https://github.com/CoolKit-Technologies/ha-addon</a>). Then refreshed the page and installed the eWelink Smart Home add on. Despite mentioning online I needed a Long access token, the newer version of the add-on supposedly doesn’t need that now, so it was literally click and start.</div>
<div>
<figure aria-describedby="caption-attachment-2145" class="wp-caption aligncenter" id="attachment_2145"><img alt="The eWelink Add-on" class="size-large wp-image-2145" decoding="async" height="346" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/chrome_wLWzFBzwDc.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2145">The eWelink Add-on</figcaption></figure>
</div>
<div>
<figure aria-describedby="caption-attachment-2143" class="wp-caption aligncenter" id="attachment_2143"><img alt="The eWelink Add-on - Lovelace" class="size-large wp-image-2143" decoding="async" height="574" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/chrome_ERyDarrvDb.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2143">The eWelink Add-on – Lovelace</figcaption></figure>
</div>
<div>Now for the real fun. I clicked on the link on the left, and logged in. I managed to add a couple of  tasmotized smart plugs to them (a Blitzwolf SHP5 and a Teckin SP22). I did the sync option on the add-on page. I wasn’t able to control either plug from the add-on page, despite being shown toggles. I then went to the eWelink app. The devices were there, but in duplicate under two different types of icon (i.e. “landing” and then DeviceXXXX). All very strange. Each entity showed me two channels. Despite the Teckin only having a single relay. Channel 1 switched the Teckin on and off as expected, Channel 2 did nothing. Neither channel could control the Blitzwolf. Both were running Tasmota 12.</div>
<div>
<figure aria-describedby="caption-attachment-2144" class="wp-caption aligncenter" id="attachment_2144"><img alt="The eWelink Add-on Page" class="size-large wp-image-2144" decoding="async" height="478" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/chrome_k0Okq6n334.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2144">The eWelink Add-on Page</figcaption></figure>
</div>
<div>
<figure aria-describedby="caption-attachment-2140" class="wp-caption aligncenter" id="attachment_2140"><img alt="eWelink App - Devices" class="size-large wp-image-2140" decoding="async" height="1024" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/Screenshot_2022-09-29-14-07-45-65_41b172fd405cd4f56cfde6a38027ffd1.jpg" width="459"/><figcaption class="wp-caption-text" id="caption-attachment-2140">eWelink App – Devices</figcaption></figure>
</div>
<div>I checked the NSPanel to see if the entities had fed through. There was nothing. I rebooted it, but again nothing. So I left it there. Strangely enough, the following day, I went to check the NSPanel for something, and the two entities had actually found it’s way on to the screen. Both were showing as Offline and unresponsive, despite me being able to control one of them with the eWelink app.</div>
<div></div>
<div>To increase my frustrations further, later that day, Home-Assistant notified me of an update for the eWelink add-on. I quickly installed it, thinking it would clean up some of these issues, but instead of fixing it for me, I had a 502 gateway error and could not even access the add-on or the configuration. Error messages were partially in mandarin, but restarting the add-on didn’t fix it. I selected rebuild instead and that brought us back to a useable add-on page again. But from this add-on, I am unable to remove any devices that have been added. You need to go back into the eWelink app to manually remove entities. Removing the dummy device automatically removes the expected device.</div>
<div>
<figure aria-describedby="caption-attachment-2136" class="wp-caption aligncenter" id="attachment_2136"><img alt="Home-Assistant devices exposed to eWelink" class="size-large wp-image-2136" decoding="async" height="1024" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/IMG20220929140810.jpg" width="682"/><figcaption class="wp-caption-text" id="caption-attachment-2136">Home-Assistant devices exposed to eWelink</figcaption></figure>
</div>
<div>The update did appear to fix my ability to control the Teckin plug from the NSPanel, but strange that the Blitzwolf plug doesn’t work at all. Neither are Sonoff, but both are clearly Tuya, and both are running the same version of Tasmota.</div>
<div>
<figure aria-describedby="caption-attachment-2135" class="wp-caption aligncenter" id="attachment_2135"><img alt="Home-Assistant device control on the NSPanel Pro" class="size-large wp-image-2135" decoding="async" height="1024" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/IMG20220929140802.jpg" width="683"/><figcaption class="wp-caption-text" id="caption-attachment-2135">Home-Assistant device control on the NSPanel Pro</figcaption></figure>
</div>
<div></div>
<h3>Summary</h3>
<h4>CAM Slim</h4>
<div>Firstly, the <a href="https://bit.ly/3DKfPFJ" rel="noopener sponsored">CAM Slim</a>. I like it. It’s a small unobtrusive little unit, which works well with the NSPanel Pro. I <strong>LOVE</strong> the fact there’s an RTSP stream available for you to bring into whatever system you like. Low light performance was ok, for this level of camera. I could see myself using this as something like a baby monitor or to just check on things that aren’t particularly image sensitive, as opposed to the full home security package. Would I have it guarding my Ferrari? No, but I wouldn’t want a Reolink unit sat at the end of a crib looking down like a Dalek either. Considering it’s offering scheduled motion detection and alarms, as well at that RTSP output, it represents good value. It’s currently on <a href="https://bit.ly/3DKfPFJ" rel="noopener sponsored">the sonoff site for $27</a>.</div>
<div></div>
<h4>Enclosure Stand</h4>
<div></div>
<div>I really liked the <a href="https://bit.ly/3y5QT7L" rel="noopener sponsored">enclosure stand</a> actually. At first I figured it was going to be a bit pointless, but it’s actually solid and well made. I thought you’d just want to put the panel on the wall and be done with it, but given its ability to take in RTSP streams and display a clock, I could imagine having it on a desk or by a bedside. It looks like it will fit the <a href="https://www.thesmarthomebook.com/2021/11/10/violet-smartswitch-lite-review-set-up/">Violet switch</a> too, so that could work well as a portable Sonos controller, or again a baby monitor. For around $10 I’m all over it. If I had one criticism, I wish they’d counter sunk the display actually into the front fascia rather than having it sit proud. Aesthetically it would look better.</div>
<div></div>
<h4>NSPanel Pro</h4>
<div></div>
<div>And finally, the NSPanel Pro. This was the first Sonoff panel that I’ve had my hands on, but definitely not the first Sonoff device I’ve owned. I’ve been playing with basics, r3 pros, and zigbee sticks for the best part of three or four years, so I’m familiar with the company, the quality and their ecosystem.</div>
<div>Sonoff have always made decent products at a decent price point. Which puts me in a bit of a bind here. The current pre-order price on this is $89.90, which is approximately £85. The usual price on their <a href="https://bit.ly/3SmvgYt" rel="noopener sponsored">web site</a>, looks to be $119.90.</div>
<div>That’s a pretty big chunk of change for a product that’s had this many niggles every step of the way.</div>
<div></div>
<div>To remind the issues I had so far:</div>
<ul>
<li>Couldn’t create the account on the app</li>
<li>Couldn’t add the QR code to the app on the original WiFi network, needed to leave and rejoin for it to work</li>
<li>Couldn’t add a zigbee sensor (admittedly I didn’t have a sonoff sensor, but why the restriction in the first place?)</li>
<li>Scenes aren’t working yet</li>
<li>Home-Assistant Add-on isn’t great, some products work, some don’t.</li>
<li>Bluetooth wasn’t working</li>
<li>eWelink-Remote wasn’t working</li>
</ul>
<div>At the bottom of this <a href="https://bit.ly/3SmvgYt" rel="noopener sponsored">page</a> you can see the proposed roadmap. It’s nice to see what they’re working on, but what if things don’t pan out? Also the elephant in the room is the lack of local control. If my internet is out, this becomes an attractive paperweight. I am not even going to go into potential data privacy aspects. I don’t want to be too down on the <a href="https://bit.ly/3SmvgYt" rel="noopener sponsored">NSPanel</a>, as if I had more products from the Sonoff ecosystem, it would have done a lot more for me. Had I had their smart sensors, or fans, the panel would be reporting back to me energy usage, alerts and detections. The Sonoff products I own have been flashed with <a href="https://tasmota.github.io/docs/">Tasmota</a> and have served me absolutely 100% reliably for YEARS.</div>
<div></div>
<div>I am sure things will improve on the software side, but I can’t help but think this has been sent out prematurely. I reached out to Itead on my various issues and they were quick to ackowledge them and tell me that firmware fixes were already being coded. They said they were in the process of setting up an NSPanel API which would allow other branded sensors to connect. The ETA on that was sometime in November, so things are definitely on the up.</div>
<div></div>
<div>It does have a Zigbee hub built into it, which should be ready for Matter next year. I would hope this would then allow you to interact with everything else that’s Matter enabled. I mean that’s kind of the point right?</div>
<div></div>
<div>The Home-Assistant interaction definitely needs to improve. If that was working correctly and you could bring everything over, I’d feel much happier about waiting for the rest of the features. I’m actually surprised that it wasn’t working well to be frank. Integrating with Home-Assistant via MQTT, API, REST, etc. isn’t anything new.</div>
<div></div>
<div></div>
<div>I know some people have been actively working to reflash the NSPanel Pro with alternative firmwares. I think I’m going to give that a try. The hardware appears capable, I just feel the software in its current form is holding it back.</div>
<div></div>
<div></div>
<div></div>
<div></div>
<div>
<div>If anyone has any hints or tricks on where to go from here, I’m all ears! You can hit me up directly, or in our facebook group below to discuss further.</div>
<div>
<p><a href="https://www.facebook.com/groups/386238285944105">https://www.facebook.com/groups/386238285944105</a></p>
<p>If you’re considering a renovation and looking at the structured wiring side of things, or maybe you just want to support the blog, have a look below at my smarthome <a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored">book</a>, it’s available in all the usual places (including paperback).</p>
</div>
<p><strong>Cheers!</strong></p>
</div>
<div>
<figure aria-describedby="caption-attachment-764" class="wp-caption aligncenter" id="attachment_764"><a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored"><img alt="The Smarthome Book" class="size-large wp-image-764" decoding="async" height="490" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2020/04/ARCHITECT-TABLE.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-764">The Smarthome Book</figcaption></figure>
</div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
]]></content:encoded>
      <media:content url="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/Artboard-1-1.png" medium="image" />
    </item>
    <item>
      <title>TrigKey Speed S3: Unboxing and Review</title>
      <link>https://www.thesmarthomebook.com/2022/09/09/trigkey-speed-s3-unboxing-and-review/</link>
      <guid isPermaLink="false">https://www.thesmarthomebook.com/?p=2082</guid>
      <pubDate>Fri, 09 Sep 2022 09:55:02 GMT</pubDate>
      <dc:creator><![CDATA[Andrew Howe]]></dc:creator>
      <category><![CDATA[AliExpress]]></category><category><![CDATA[computing]]></category><category><![CDATA[hardware]]></category><category><![CDATA[server]]></category><category><![CDATA[software]]></category><category><![CDATA[trigkey]]></category><category><![CDATA[Uncategorized]]></category>
      <description><![CDATA[Trigkey recently reached out to me to see if I was interested in reviewing one of their latest mini pc models. This review hasn’t been paid for, but they did send me a unit to play with. The unit itself is their Speed S3 a …]]></description>
      <content:encoded><![CDATA[<div><a href="https://trigkey.com/">Trigkey</a> recently reached out to me to see if I was interested in reviewing one of their latest mini pc models. This review hasn’t been paid for, but they did send me a unit to play with.</div>
<div></div>
<div>
<p>The unit itself is their Speed S3 a Ryzen 5 3550H Windows 11 mini desktop. The general specs of the machine are as follows:</p>
<ul>
<li>AMD Ryzen 5 3550H (SOC: 4-cores/8-threads) @ 2.1 / 3.7Ghz (Turbo)</li>
<li>Radeon Vega 8 Graphics @ 1200 MHz;</li>
<li>16 GB (2x Crucial 8GB) DDR4-3200MHz</li>
<li>500GB M.2 SSD, Kingston</li>
<li>Dual HDMI 4K @ 60Hz</li>
<li>3.5mm audio jack headphones/microphone</li>
<li>Gigabit Ethernet</li>
<li>Wifi 5 (802.11ac)</li>
<li>Bluetooth 4.0</li>
<li>4x USB 3.0</li>
<li>1x USB Type-C</li>
<li>Power – 19V/3A, &lt;35w TFP</li>
<li>Dimensions – 126 x 112.7 x 40.7mm</li>
</ul>
</div>
<div style="text-align: center;"></div>
<div>Click <a href="https://amzn.to/3QlMrYO" rel="noopener sponsored">here</a> for latest pricing (Amazon Affiliate link. Won’t cost you a penny, but supports the blog if you do purchase using it- Remember to <strong>add the voucher</strong> if present. At the time of writing, it’s £50 off):</div>
<div></div>
<div style="text-align: center;">
<figure aria-describedby="caption-attachment-2107" class="wp-caption aligncenter" id="attachment_2107"><a href="https://amzn.to/3QlMrYO" rel="noopener sponsored"><img alt="The Trigkey S3" class="size-large wp-image-2107" decoding="async" height="970" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/trig.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-2107">The Trigkey S3</figcaption></figure>
</div>
<div></div>
<div></div>
<div>Packaging wise, it felt decent. You removed the branded sleeve and had to lift the lid to reveal the goodies underneath.</div>
<div>
<figure aria-describedby="caption-attachment-2098" class="wp-caption aligncenter" id="attachment_2098"><img alt="Outer Packaging of the Trigkey Speed S" class="size-large wp-image-2098" decoding="async" height="500" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/IMG20220827162611.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2098">Outer Packaging of the Trigkey S3</figcaption></figure>
<figure aria-describedby="caption-attachment-2099" class="wp-caption aligncenter" id="attachment_2099"><img alt="Inner Packaging of the Trigkey Speed S" class="size-large wp-image-2099" decoding="async" height="500" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/IMG20220827162640.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2099">Inner Packaging of the Trigkey S3</figcaption></figure>
<figure aria-describedby="caption-attachment-2100" class="wp-caption aligncenter" id="attachment_2100"><img alt="The main unit itself" class="size-large wp-image-2100" decoding="async" height="500" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/IMG20220827162723.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2100">The main unit itself</figcaption></figure>
</div>
<div>It came with two HDMI cables of varying lengths, an adaptor to mount it to your monitor with appropriate screws and a surprisingly weighty power brick. The unit itself is shallow in height, but has a wider footprint than my beelink GK mini. To look at, I’d say it’s about 15% larger than my 6th gen Intel Nuc.</div>
<div>
<figure aria-describedby="caption-attachment-2101" class="wp-caption aligncenter" id="attachment_2101"><img alt="Contents of the box" class="wp-image-2101 size-large" decoding="async" height="500" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/IMG20220827162904.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2101">Contents of the box</figcaption></figure>
</div>
<h3>Operating System 1: Windows 11 Pro</h3>
<div>I connected the machine up and turned it on. It immediately booted into the Windows 11 configuration screen, which I carelessly whizzed through almost without reading the options. Once at the desktop, I needed to update the AMD Ryzen chipset and Radeon drivers. Downloading the latest version of <a href="https://www.amd.com/en/technologies/software">Adrenaline</a> fixed that. Next, I went through Windows Update. I was pleased to see it came with an activated version of Windows 11 Pro with a bona fide key.</div>
<div></div>
<div>
<figure aria-describedby="caption-attachment-2088" class="wp-caption aligncenter" id="attachment_2088"><img alt="Activated Copy of Windows 11" class="wp-image-2088" decoding="async" height="506" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/Screenshot-2022-08-27-173540.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2088">Activated Copy of Windows 11</figcaption></figure>
</div>
<div>
<figure aria-describedby="caption-attachment-2087" class="wp-caption aligncenter" id="attachment_2087"><img alt="Device Manager" class="size-full wp-image-2087" decoding="async" height="975" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/Capture.png" width="699"/><figcaption class="wp-caption-text" id="caption-attachment-2087">Device Manager</figcaption></figure>
</div>
<div>You can get full hardware details <a href="https://amzn.to/3QlMrYO" rel="noopener sponsored">here</a> if necessary. The most taxing thing I did with the pc was download and install the Cumulative Update for Windows 11 (KB5016691). That took a good few minutes to actually install. Everything else was extremely snappy. Copying a few GB’s of data here and there never saw the CPU above 70% and even then it was a momentary spike, all whilst installing the update mentioned above. For the rest of the time playing with it (mainly browsing, installing and uninstalling a few programs), I was lucky to get it above 15%.</div>
<div></div>
<div>Despite my intention to remove Windows from the machine, I wanted to get to a point where everything was running the latest and greatest drivers and updates without issue. I would have no problem recommending this as a daily driver for office work, general computing, and maybe the lightest of gaming (I regularly play Warzone at 4K on a Ryzen 5950x with an RTX 2080, so forgive me for not testing any games here. That’s not what this machine would be about for me). Throughout my whole time with the machine, I didn’t hear it once. If you placed your ear on the machine, there was only a slight audible hum, but that’s about it. It’s a lot quieter than any NUC I’ve ever messed with as well as the Beelink GK Mini I’m currently running as my day to day server.</div>
<div></div>
<div>I was keen to test out my <a href="https://s.click.aliexpress.com/e/_DlslWZz" rel="noopener sponsored">USB-C LAN</a> adaptor that I’d previously purchased from AliExpress. More on that <a href="https://www.thesmarthomebook.com/2022/07/21/save-weight-in-your-laptop-bag-add-this/">here</a>. I plugged it into the port at the front, and within a few seconds, Windows had recognised and set up the device correctly. I could see the additional network adaptor in device manager (see below). I swapped the ethernet cable round to the front to test. The internet worked immediately. Now it was time to rid this little box of magic from Windows for good.</div>
<div>
<figure aria-describedby="caption-attachment-2086" class="wp-caption aligncenter" id="attachment_2086"><img alt="Windows 11 Device Manager" class="wp-image-2086 size-full" decoding="async" height="317" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/Screenshot-2022-08-31-135124.png" width="523"/><figcaption class="wp-caption-text" id="caption-attachment-2086">Windows 11 Device Manager</figcaption></figure>
</div>
<div></div>
<div></div>
<h3>Operating System 2: OPNsense</h3>
<div>Given the machine effectively now had two network ports, I thought I’d try out OPNsense. Now I know the specs of this machine are going to be totally overkill for a router/firewall combo, but I wanted to have a play with OPNsense for a while. Not wanting to take down my existing firewall (running pfSense) I seized the opportunity. There were a couple of quirks with installing OPNsense, but in a nutshell, you need to select the vga option from <a href="https://opnsense.org/download/">here</a>,</div>
<div></div>
<div>I installed Rufus using the <a href="https://www.thesmarthomebook.com/2020/04/07/install-applications-quickly-and-easily-using-chocolatey/">Chocolatey</a> package manager (<strong>Choco install rufus -y</strong>). Once installed, it was a case of selecting the *.img.bz2 file we’d just downloaded and an empty USB drive.</div>
<div>You need to hit f7 in the bios to be able to choose the boot device. Initially I tried OPNsense as a live environment, but pretty soon, I decided to YOLO the drive and install it fully. Below are some details I needed to know to login and actually install the OS, as well as the designations needed for “assigning” the interfaces. My USB-C gigabit ethernet adaptor was recognised immediately, with no additional drivers needed.</div>
<div></div>
<div>If you wish to just play with the live environment, you login using the following:</div>
<div></div>
<div>
<blockquote>
<div><strong>Username: root</strong></div>
<div><strong>Password: opnsense</strong></div>
<div></div>
</blockquote>
</div>
<div>If you wish to install, login with these:</div>
<div></div>
<div>
<blockquote>
<div><strong>Username: installer</strong></div>
<div><strong>Password opnsense</strong></div>
</blockquote>
<div>Note, with only one disk inside the machine, the ability to install “using ZFS” wasn’t available to me. This stood in contrast with pfSense when 2.6.0 was released. (I do appreciate that with only one drive in the machine anyway, you have zero redundancy, but it caused me a few moments of confusion whilst trying to install). I opted for the following: <strong>Other modes &gt;&gt; Extended Installation</strong></div>
</div>
<div>
<div></div>
</div>
<div>When it came to assigning interfaces, these were the options shown to me:</div>
<ul>
<li>re0 = inbuilt Realtek Gigabit ethernet</li>
<li>ue0= USB Ethernet</li>
<li>iwm0 = wireless</li>
</ul>
<div></div>
<div>Having finalised the installation, I removed the USB drive and rebooted. Within a few moments, I was staring at the OPNsense login page.</div>
<div>
<figure aria-describedby="caption-attachment-2085" class="wp-caption aligncenter" id="attachment_2085"><img alt="OPNsense Login Page" class="wp-image-2085 size-full" decoding="async" height="575" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/opnsense-logiin.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2085">OPNsense Login Page</figcaption></figure>
<figure aria-describedby="caption-attachment-2084" class="wp-caption aligncenter" id="attachment_2084"><img alt="OPNsense Initial Configuration Page" class="wp-image-2084" decoding="async" height="488" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/chrome_mgkkK3p4WW.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2084">OPNsense Initial Configuration Page</figcaption></figure>

</div>
<div>I logged in with root/user-pass (I’d set up prior) and was now looking at the configuration pages. I won’t take you through the set up of the firewall as there are plenty of tutorials online that can do that, but I managed to get the internet working. As it stood, I don’t think the features in OPNsense are enough to warrant me redoing my whole network set up and moving away from the pfSense set up I’m rocking already, but it was good to have a look at something else for a change. Time to take a look internally at the unit!</div>
<div></div>
<div></div>
<div></div>
<h3>Operating System 3: TrueNAS Scale</h3>
<div>Up until this point, I hadn’t had a look inside the unit at all. I wanted to try out <a href="https://www.truenas.com/download-truenas-scale/">TrueNAS Scale</a> (despite this just being a mini pc). For that, I needed to add an additional drive. With TrueNas Scale, if I was to install from the USB drive direct to the 500GB drive in the unit, I would essentially end up with a 500GB boot disk and nothing else. Fortunately, I had an old 60GB SSD lying around, so it was time to take out the screwdriver. In each corner there were 4 small screws holding the base in. It’s a tight fit, even without the screws. I used a plastic pry tool to gently ease the base away from the main unit to reveal the guts of the Speed S. Inside I was pleasantly surprised to find some quality components. There were two sticks of Crucial Memory- 8gb DDR4 3200, and a Kingston NVME drive (SNVS500G). Whilst maybe not the latest and greatest, it was nice to see that no corners were cut here.</div>
<div></div>
<div>
<figure aria-describedby="caption-attachment-2102" class="wp-caption aligncenter" id="attachment_2102"><img alt="Internals of the Trigkey Speed S" class="size-large wp-image-2102" decoding="async" height="500" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/IMG20220831155451.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2102">Internals of the Trigkey Speed S</figcaption></figure>
</div>
<div></div>
<div>In order to fit my internal drive in the machine, I needed to remove this small metal placeholder that was protecting the sata port. If you see here on the second picture of the internals, you can see it snug in it’s position. You literally needed to just ease it off a dimple on either side of the tray and it came away easily. Note you get some additional screws in the small bag for securing your SSD to the tray mount, so Trigkey has you covered! Be mindful of the thin ribbon cable here. It was secure enough, but you still want to treat the base with caution.</div>
<div></div>
<div>
<figure aria-describedby="caption-attachment-2103" class="wp-caption aligncenter" id="attachment_2103"><img alt="Internal Hard Drive Cover" class="size-large wp-image-2103" decoding="async" height="500" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/IMG20220831155456.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2103">Internal Hard Drive Cover</figcaption></figure>

<p>A few minutes later, and the additional SSD was attached, secured, and I was already closing up the lid. I downloaded <a href="https://www.truenas.com/download-truenas-scale/">TrueNAS Scale</a> and used Rufus to burn it onto a thumb drive. Install was straight forward, I selected the 60GB partition and let the installer do the rest. Once user and password are configured, it’s just a couple of moments before you’ll be looking at the following screens: I added storage by choosing the built in 500GB drive.</p>
</div>
<div></div>
<div>
<figure aria-describedby="caption-attachment-2104" class="wp-caption aligncenter" id="attachment_2104"><img alt="TrueNAS Scale Login" class="wp-image-2104" decoding="async" height="450" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/chrome_B5Nx7imUY4.png" width="400"/><figcaption class="wp-caption-text" id="caption-attachment-2104">TrueNAS Scale Login</figcaption></figure>
<figure aria-describedby="caption-attachment-2105" class="wp-caption aligncenter" id="attachment_2105"><img alt="TrueNAS Scale Main Page" class="wp-image-2105 size-large" decoding="async" height="798" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/chrome_X1H0RXZLOH.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2105">TrueNAS Scale Main Page</figcaption></figure>
</div>
<div></div>
<div>I am not sure if I’ll end up sticking with TrueNAS scale, but I was keen to try the inbuilt Docker system. I basically want to transition several devices over on to this small but capable machine. I have a large 18TB WD external drive that I would like to “serve” to the rest of the home. It’s my understanding that TrueNAS isn’t able to mount and share. It can only mount and copy/import. So I need to play further. Maybe I’ll end up going back to Proxmox, or even Unraid for that matter. If you have any other ideas I’m open to them (not OMV, I hate the interface).</div>
<div></div>
<div></div>
<h3>Summary</h3>
<div>I have been very impressed with the machine <a href="https://trigkey.com/">Trigkey</a> sent me. It’s well put together, with decent ventilation. The hardest I’ve worked it so far was copying 25gb of media at the same time as updating Windows. I have not heard any internal fans spin up once. NOT ONCE. As you can see from the screenshot above, I got it to around 55-60 degrees doing some stuff on TrueNAS, and still it’s sitting there silent looking at me. That being said, I am sure if I installed Steam on this unit and started to game, then it might be a different story.</div>
<p>I will probably experiment over the next couple of weeks or so with a couple more server/NAS OS’s (is that even a word?) before settling on one. As it stands right now, this little unit has enough guts to replace the following:</p>
<ul>
<li>Pi3b (Tasmota flasher, print server and tailscale emergency access point).</li>
<li>6th Gen Intel Celeron NUC (HA OS installation, complete with Node-red, MQTT servers, etc.).</li>
<li>Beeling GK Mini (‘Media’ Docker Stack, Adguard Home LXC, Tailscale Entry Point, Home-Assistant Development server).</li>
<li>Move the plex server off my Nvidia shield and on to this drive.</li>
</ul>
<p>If anything, It could also probably incorporate my pfSense box too, but I have a rule about not virtualising the internet!</p>
<p>In terms of price point (see latest price <a href="https://amzn.to/3QlMrYO" rel="noopener sponsored">here</a> and remember to click on the voucher!), I think it’s a good deal for the level of hardware you’re getting. Branded internal components give me confidence. I like the size of the unit, and it’s extremely quiet (read: silent)- at least thus far. I do wish they’d put the USB-C socket on the rear of the unit, but that’s subjective. Maybe you have a USB-C dongle, drive, or maybe a charging cable you want to be using from the front. For me, it just made things unsightly when I tried to use my USB-C Lan adaptor. The power brick is deceivingly heavy, but this isn’t a laptop so it isn’t an issue for me. It would have been nice to get it powered off my POE+ switch (like my GK Mini), but I understand this unit is just in a different power category.</p>
<p>I would like to extend a thank you to <a href="https://trigkey.com/">Trigkey</a> for sending me out the unit to review! I look forward to seeing what new products they bring to the market.</p>

<p>I’ll write more on this unit when I finalise my OS choice. If you have any suggestions drop them in the comments or come and see us on Facebook!</p>
<p><a href="https://www.facebook.com/groups/386238285944105">https://www.facebook.com/groups/386238285944105</a></p>
<p>If you’re considering a renovation and looking at the structured wiring side of things, or maybe you just want to support the blog, have a look below at my smarthome <a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored">book</a>, it’s available in all the usual places (including paperback)!</p>

<figure aria-describedby="caption-attachment-764" class="wp-caption aligncenter" id="attachment_764"><a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored"><img alt="The Smarthome Book" class="size-large wp-image-764" decoding="async" height="490" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2020/04/ARCHITECT-TABLE.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-764">The Smarthome Book</figcaption></figure>
]]></content:encoded>
      <media:content url="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/Artboard-1.png" medium="image" />
    </item>
    <item>
      <title>Solving Memory Integrity and Core Isolation Errors on Windows 11</title>
      <link>https://www.thesmarthomebook.com/2022/09/05/solving-memory-integrity-and-core-isolation-errors-on-windows-11/</link>
      <guid isPermaLink="false">https://www.thesmarthomebook.com/?p=2090</guid>
      <pubDate>Mon, 05 Sep 2022 11:15:00 GMT</pubDate>
      <dc:creator><![CDATA[Andrew Howe]]></dc:creator>
      <category><![CDATA[computing]]></category><category><![CDATA[Security]]></category><category><![CDATA[software]]></category>
      <description><![CDATA[OK, so recently I had this annoying issue where Windows 11 Security centre was showing me that Memory integrity due to Incompatible drivers cannot be enabled. I restarted a few times, but each time I was unable to toggle this on. It was…]]></description>
      <content:encoded><![CDATA[<p>OK, so recently I had this annoying issue where Windows 11 Security centre was showing me that Memory integrity due to Incompatible drivers cannot be enabled.<br/>
I restarted a few times, but each time I was unable to toggle this on. It was either greyed out, or it just refused to toggle (and stick). I could see that this was due to a particular driver (WDCSAM64_prewin8.sys).</p>
<p>I’m no expert, but in essence, I believe this is due to an older/stale driver that has some how installed itself (via pnp?) and is causing a vulnerability. When I checked through the screen initially, I could see I was having an incompatibility with Western Digital. The driver itself was WDCSAM64_prewin8.sys</p>
<p>In this short post, I’m going to detail how I fixed it.</p>
<h2>The Fix</h2>
<p>Run an elevated command prompt (CMD or Powershell <strong>as Admin</strong>) and type the following command:</p>
<h3>Command 1</h3>
<p><strong>pnputil /enum-drivers</strong></p>
<p>This basically gets a list of plug and play driver on your system. Copy and paste this full list into a text or word document. Do a search for the offending driver. In my case, searching WD, brought up the following:</p>
<blockquote><p><strong>Published Name: oem22.inf</strong><br/>
<strong>Original Name: wdcsam.inf</strong><br/>
<strong>Provider Name: Western Digital Technologies</strong><br/>
<strong>Class Name: WD Drive Management devices</strong><br/>
<strong>Class GUID: {8496e87e-c0a1-4102-9d8d-bd9a9b8b07a9}</strong><br/>
<strong>Driver Version: 11/30/2017 1.2.0.0</strong><br/>
<strong>Signer Name: Microsoft Windows Hardware Compatibility Publisher</strong></p></blockquote>
<p>If you see the driver version, you can see it’s from 2017. I am not saying that’s the way to identify something that’s troublesome, but it made me think this was definitely the issue. An alternative location to find the driver, is on the initial error screen at the bottom where it says “published name”. I still wanted to manually find the driver in the list though just to be sure. Once I located the driver amongst the others, it was time to remove it.</p>
<h3>Command 2</h3>
<p>In order to remove this driver, I then entered the following command:</p>
<p><strong>pnputil /delete-driver oem22.inf /uninstall /force /reboot</strong></p>
<p>(notice I needed to use oem22.inf i.e. the published name). As long as you’re admin (elevated) this command should work.</p>
<p>Restart the pc, and within a few moments, you should be up and running again!</p>
<figure aria-describedby="caption-attachment-2091" class="wp-caption aligncenter" id="attachment_2091"><img alt="Memory Integrity On" class="size-large wp-image-2091" decoding="async" height="423" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/ApplicationFrameHost_bpYzZD7B2B.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2091">Memory Integrity On</figcaption></figure>
<figure aria-describedby="caption-attachment-2092" class="wp-caption aligncenter" id="attachment_2092"><img alt="Windows 11 Security Centre" class="size-large wp-image-2092" decoding="async" height="498" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/ApplicationFrameHost_Tg45ZxJixu.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2092">Windows 11 Security Centre</figcaption></figure>

<p>If there’s anything else out there that people are looking at or you think I should be looking at, let me know in the comments or come and chat over in our facebook group!</p>
<p><a href="https://www.facebook.com/groups/386238285944105">https://www.facebook.com/groups/386238285944105</a></p>

<p>If you’re considering a renovation and looking at the structured wiring side of things, or maybe you just want to support the blog, have a look below at my smarthome <a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored">book</a>, it’s available in all the usual places (including paperback)!</p>
<figure aria-describedby="caption-attachment-764" class="wp-caption aligncenter" id="attachment_764"><a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored"><img alt="The Smarthome Book" class="size-large wp-image-764" decoding="async" height="490" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2020/04/ARCHITECT-TABLE.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-764">The Smarthome Book</figcaption></figure>
]]></content:encoded>
      <media:content url="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/integrity.png" medium="image" />
    </item>
    <item>
      <title>Set up &amp; Monitor your UPS: Proxmox &amp; Home-Assistant</title>
      <link>https://www.thesmarthomebook.com/2022/09/02/setting-up-monitor-your-ups-proxmox-home-assistant/</link>
      <guid isPermaLink="false">https://www.thesmarthomebook.com/?p=2056</guid>
      <pubDate>Fri, 02 Sep 2022 10:45:59 GMT</pubDate>
      <dc:creator><![CDATA[Andrew Howe]]></dc:creator>
      <category><![CDATA[AliExpress]]></category><category><![CDATA[computing]]></category><category><![CDATA[docker]]></category><category><![CDATA[hardware]]></category><category><![CDATA[Home Automation]]></category><category><![CDATA[home-assistant]]></category><category><![CDATA[proxmox]]></category><category><![CDATA[server]]></category><category><![CDATA[software]]></category>
      <description><![CDATA[So recently, we’ve been suffering with a fair few power cuts. Some of the houses near us are undergoing some pretty heavy renovations, and well, let’s just say the electricians aren’t always precise when it comes to pulling the plug…]]></description>
      <content:encoded><![CDATA[<p>So recently, we’ve been suffering with a fair few power cuts. Some of the houses near us are undergoing some pretty heavy renovations, and well, let’s just say the electricians aren’t always precise when it comes to pulling the plug. Having lost part of a docker configuration I lost a morning restoring and bringing the server back to life. This has pushed me into getting a UPS (Uninterruptible Power Supply). I opted for one from APC, and I bought the following (this is an Amazon affiliate link, so won’t cost you anything, but should you order, will help support the blog).</p>
<p><a href="https://amzn.to/3KzAHRa" rel="noopener sponsored">APC Back UPS 1200VA – BX1200MI </a></p>
<figure aria-describedby="caption-attachment-2057" class="wp-caption aligncenter" id="attachment_2057"><a href="https://amzn.to/3KzAHRa" rel="noopener sponsored"><img alt="APC BX1200Mi" class="wp-image-2057 size-medium" decoding="async" height="262" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/APC.jpg" width="300"/></a><figcaption class="wp-caption-text" id="caption-attachment-2057">APC BX1200Mi</figcaption></figure>
<p>I wanted an <a href="https://www.apc.com/shop/uk/en/products">APC</a> with IEC female plugs, so that I could plug a variety of devices directly into it, and I didn’t have unnecessary household power plugs and extensions hanging out the back. It comes with ethernet passthrough (surge protection) and a USB output, so that you can hook it up to a NUT server. As far as UPS’s go, that’s about it. I felt this one was large enough to run my various small form factor pc’s as well as some other general items. Now in order to make this smart, we need to start connecting software up to it.</p>
<h2>NUT</h2>
<p>NUT stands for Network UPS Tools and is an open source software package that effectively monitors the output of the UPS. In the event of a power cut, the NUT server will essentially broadcast alert packets on the network. If you set your various devices to listen out for such packets, you can then trigger a safe shutdown. A couple of caveats… a) You’ll need to have whatever device you want to shut down safely connected to the UPS (this or a different one), otherwise it will have already lost its power and won’t be listening to anything and b) you need to make sure that the UPS is up long enough to ensure a full shutdown before lights out. I’ll expand:</p>
<p>As soon as the UPS goes on to battery (i.e. power cut), the battery will begin to deplete. Depending on the size of the UPS and the power draw attached to it, you could have seconds or minutes. You need to make sure you give your equipment enough time to complete the shutdown. If you wait until there’s only 5% of battery left, you might be cutting it too short. If you wait until there’s 90% of battery left, then you might be shutting down the equipment too early. Especially, if the power cut is only for a minute or so (i.e. someone is changing a light switch or wiring a plug socket). Thankfully the delays are configurable, but you’ll need to calculate this for yourself.</p>
<p>You can find details of NUT <a href="https://networkupstools.org/">here</a>. There are a wealth of tutorials already online about setting it all up. In this post, I want to show you how to configure it on Proxmox and set up monitoring in Docker and Home-Assistant. I’ll link at the end, a variety of tutorials and posts should you wish to explore the set ups in depth.</p>
<h2>Setting up NUT on Proxmox</h2>
<p>For this, we’re going to want to set it up directly on the machine itself (i.e. PVE) and not on a VM or LXC beneath it. We’ll need to identify the some details about the device and how it’s set up.</p>
<p>Go into the PVE node and open Shell. We’ll list the USB port.</p>
<p><strong>lsusb</strong></p>
<figure aria-describedby="caption-attachment-2061" class="wp-caption aligncenter" id="attachment_2061"><img alt="Identifying the Bus and Device ID" class="size-full wp-image-2061" decoding="async" height="261" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/chrome_LZ2zuCvRPA.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2061">Identifying the Bus and Device ID</figcaption></figure>
<p>Identify the bus and the device id.</p>
<p><strong>lsusb -v -s [bus]:[device]</strong></p>
<p>You can see from the example, mine was bus 1, device 3. Therefore:</p>
<p><strong>lsusb -v -s 1:3</strong></p>
<figure aria-describedby="caption-attachment-2062" class="wp-caption aligncenter" id="attachment_2062"><img alt="Device details" class="wp-image-2062 size-large" decoding="async" height="1023" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/chrome_PwKgtlEOAG.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2062">Device details</figcaption></figure>
<p>As long as the details are correct, we can now install NUT. If you’re having issues here, you can try and reinsert the USB or change the cable.</p>
<p><strong>apt update &amp;&amp; apt install nut -y</strong></p>
<p>Now scan for the devices on your system:</p>
<p><strong>nut-scanner -U</strong></p>
<p>Record the details as you’ll need these shortly.</p>
<figure aria-describedby="caption-attachment-2060" class="wp-caption aligncenter" id="attachment_2060"><img alt="The results of the NUT scanner" class="wp-image-2060" decoding="async" height="334" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/chrome_kWlLGc7Ds8.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2060">The results of the NUT scanner</figcaption></figure>
<p>We will need to create or edit a variety of configuration files now. If you wish to back up the example conf files, that’s up to you, for me, I just went with it. I figured I could always nuke /etc/nut/*.* if I got stuck and reinstall.</p>
<p>I’m using nano here, if you wish to clear a whole file of text with a few strokes, see more on that <a href="https://linuxhint.com/select_delete_all_text_nano/">here</a>. Once you’re done editing the files, it’s ctrl+o to save (+ enter) and then ctrl+x to get back to the cmd prompt.</p>
<p><strong>nano /etc/nut/nut.conf</strong></p>
<p>Change Mode=none to <strong>Mode=netserver</strong></p>
<p><strong>nano /etc/nut/ups.conf</strong></p>
<p>Clear the file and replace with the information you received from nut-scanner _U above:</p>
<blockquote><p><strong>pollinterval = 15</strong><br/>
<strong>maxretry = 3</strong></p>
<p><strong>offdelay = 120</strong><br/>
<strong>ondelay = 240</strong></p>
<p><strong>[apc]</strong><br/>
<strong>driver = usbhid-ups</strong><br/>
<strong>port = auto</strong><br/>
<strong>desc = “insert.your.description.here”</strong><br/>
<strong>vendorid = 051D</strong><br/>
<strong>productid = 0002</strong><br/>
<strong>serial = add.your.serial.here</strong></p></blockquote>
<p>To test, run the following command</p>
<p><strong>upsdrvctl start</strong></p>
<p>You should get a similar output to below:</p>
<p><strong>nano /etc/nut/upsd.conf</strong></p>
<p>Clear the file and add this, it makes the server listen to any device on the network for the NUT packets.</p>
<blockquote><p><strong>LISTEN 0.0.0.0 3493</strong><br/>
<strong>LISTEN :: 3493</strong></p></blockquote>
<p>Next create the users.</p>
<p><strong>nano /etc/nut/upsd.users</strong></p>
<p>Clear the file and add this (set your own passwords):</p>
<blockquote><p><strong>[upsadmin]</strong><br/>
<strong>password = <span style="color: #ff0000;"><em>insert.your.password.here</em></span></strong><br/>
<strong>actions = SET</strong><br/>
<strong>actions = FSD</strong><br/>
<strong>instcmds = ALL</strong><br/>
<strong>upsmon master</strong></p>
<p><strong>[upsuser]</strong><br/>
<strong>password = <span style="color: #ff0000;"><em>insert.your.password.here</em></span></strong><br/>
<strong>upsmon slave</strong></p></blockquote>
<p>Next we set up monitoring (insert your own upsadmin password):</p>
<p><strong>nano /etc/nut/upsmon.conf</strong></p>
<blockquote><p><strong>RUN_AS_USER root</strong><br/>
<strong>MONITOR apc@localhost 1 upsadmin <span style="color: #ff0000;"><em>password.goes.here</em></span> master</strong></p>
<p><strong>MINSUPPLIES 1</strong><br/>
<strong>SHUTDOWNCMD “/sbin/shutdown -h”</strong><br/>
<strong>NOTIFYCMD /usr/sbin/upssched</strong><br/>
<strong>POLLFREQ 4</strong><br/>
<strong>POLLFREQALERT 2</strong><br/>
<strong>HOSTSYNC 15</strong><br/>
<strong>DEADTIME 24</strong><br/>
<strong>MAXAGE 24</strong><br/>
<strong>POWERDOWNFLAG /etc/killpower</strong></p>
<p><strong>NOTIFYMSG ONLINE “UPS %s on line power”</strong><br/>
<strong>NOTIFYMSG ONBATT “UPS %s on battery”</strong><br/>
<strong>NOTIFYMSG LOWBATT “UPS %s battary is low”</strong><br/>
<strong>NOTIFYMSG FSD “UPS %s: forced shutdown in progress”</strong><br/>
<strong>NOTIFYMSG COMMOK “Communications with UPS %s established”</strong><br/>
<strong>NOTIFYMSG COMMBAD “Communications with UPS %s lost”</strong><br/>
<strong>NOTIFYMSG SHUTDOWN “Auto logout and shutdown proceeding”</strong><br/>
<strong>NOTIFYMSG REPLBATT “UPS %s battery needs to be replaced”</strong><br/>
<strong>NOTIFYMSG NOCOMM “UPS %s is unavailable”</strong><br/>
<strong>NOTIFYMSG NOPARENT “upsmon parent process died – shutdown impossible”</strong></p>
<p><strong>NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC</strong><br/>
<strong>NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC</strong><br/>
<strong>NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC</strong><br/>
<strong>NOTIFYFLAG FSD SYSLOG+WALL+EXEC</strong><br/>
<strong>NOTIFYFLAG COMMOK SYSLOG+WALL+EXEC</strong><br/>
<strong>NOTIFYFLAG COMMBAD SYSLOG+WALL+EXEC</strong><br/>
<strong>NOTIFYFLAG SHUTDOWN SYSLOG+WALL+EXEC</strong><br/>
<strong>NOTIFYFLAG REPLBATT SYSLOG+WALL</strong><br/>
<strong>NOTIFYFLAG NOCOMM SYSLOG+WALL+EXEC</strong><br/>
<strong>NOTIFYFLAG NOPARENT SYSLOG+WALL</strong></p>
<p><strong>RBWARNTIME 43200</strong><br/>
<strong>NOCOMMWARNTIME 600</strong></p>
<p><strong>FINALDELAY 5</strong></p></blockquote>
<p>Next we set up the scheduling:</p>
<p><strong>nano /etc/nut/upssched.conf</strong></p>
<p>Clear the file and add this:</p>
<blockquote><p><strong>CMDSCRIPT /etc/nut/upssched-cmd</strong><br/>
<strong>PIPEFN /etc/nut/upssched.pipe</strong><br/>
<strong>LOCKFN /etc/nut/upssched.lock</strong></p>
<p><strong>AT ONBATT * START-TIMER onbatt 30</strong><br/>
<strong>AT ONLINE * CANCEL-TIMER onbatt online</strong><br/>
<strong>AT ONBATT * START-TIMER earlyshutdown 30</strong><br/>
<strong>AT LOWBATT * EXECUTE onbatt</strong><br/>
<strong>AT COMMBAD * START-TIMER commbad 30</strong><br/>
<strong>AT COMMOK * CANCEL-TIMER commbad commok</strong><br/>
<strong>AT NOCOMM * EXECUTE commbad</strong><br/>
<strong>AT SHUTDOWN * EXECUTE powerdown</strong><br/>
<strong>AT SHUTDOWN * EXECUTE powerdown</strong></p></blockquote>
<p>Next we set up the scheduling commands:</p>
<p><strong>nano /etc/nut/upssched-cmd</strong></p>
<p>paste this in:</p>
<pre><code>#!/bin/sh
 case $1 in
       onbatt)
          logger -t upssched-cmd "UPS running on battery"
          ;;
       earlyshutdown)
          logger -t upssched-cmd "UPS on battery too long, early shutdown"
          /usr/sbin/upsmon -c fsd
          ;;
       shutdowncritical)
          logger -t upssched-cmd "UPS on battery critical, forced shutdown"
          /usr/sbin/upsmon -c fsd
          ;;
       upsgone)
          logger -t upssched-cmd "UPS has been gone too long, can't reach"
          ;;
       *)
          logger -t upssched-cmd "Unrecognized command: $1"
          ;;
 esac</code></pre>
<p>And finally make it executable:</p>
<p><strong>chmod +x /etc/nut/upssched-cmd</strong></p>
<p>That’s it. Now you can either reboot the system, or run through the following commands (pause after each upsdrvctl command, they take a moment).</p>
<blockquote><p><strong>service nut-server restart</strong><br/>
<strong>service nut-client restart</strong><br/>
<strong>systemctl restart nut-monitor</strong><br/>
<strong>upsdrvctl stop</strong><br/>
<strong>upsdrvctl start</strong></p></blockquote>
<p>You can test if it’s working with the following command:</p>
<p><strong>upsc apc@localhost</strong></p>
<p>In order to amend the minimum runtime to 10 minutes and minimum charge to 50% you can run the following commands. You’ll need the upsadmin login and password to action each line.</p>
<blockquote><p><strong>upsrw -s battery.runtime.low=600 apc@localhost</strong></p>
<p><strong>upsrw -s battery.charge.low=50 apc@localhost</strong></p></blockquote>
<p>That’s it. You’re done. Everything should be nicely configured in <a href="https://www.proxmox.com/en/">Proxmox</a> and waiting for your next power cut. To test, literally pull the power out of the UPS, and hopefully watch your server remain online until the parameters above and then see it shutdown gracefully.</p>
<p>If you wish to learn more about the software, I suggest you look at the following resources:</p>
<div class="jetpack-video-wrapper"><span class="embed-youtube" style="text-align:center; display: block;"><iframe allowfullscreen="true" class="youtube-player" height="422" loading="lazy" sandbox="allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox" src="https://www.youtube.com/embed/vyBP7wpN72c?version=3&amp;rel=1&amp;showsearch=0&amp;showinfo=1&amp;iv_load_policy=1&amp;fs=1&amp;hl=en-GB&amp;autohide=2&amp;wmode=transparent" style="border:0;" width="750"></iframe></span></div>
<div class="embed-card"><p><a href="https://www.kreaweb.be/diy-home-server-2021-software-proxmox-ups/">DIY HOME SERVER 2021 – Software – PROXMOX – NUT UPS Monitoring</a></p></div>

<h2>Monitoring</h2>
<p>Now we want to set up monitoring.</p>
<h3>Monitoring in Docker</h3>
<p>I chose to install two ways to monitor. One in Home-Assistant and the other in docker. I wanted more than one option as they’re both on different machines. Let’s deal with Docker/Portainer first. I wrote a post here about running a docker stack in Portainer on Proxmox <a href="https://www.thesmarthomebook.com/2021/09/21/home-server-installing-docker-portainer-home-assistant-on-proxmox/">here</a> if you’re interested.</p>
<p><strong>Portainer&gt; Stacks &gt; Add Stack</strong> (or via docker compose if more comfortable)</p>
<figure aria-describedby="caption-attachment-2067" class="wp-caption aligncenter" id="attachment_2067"><img alt="Webnut Configuration" class="size-medium wp-image-2067" decoding="async" height="181" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/Webnut-Configuration.png" width="300"/><figcaption class="wp-caption-text" id="caption-attachment-2067">Webnut Configuration</figcaption></figure>
<blockquote><p><strong>version: “3.1”</strong><br/>
<strong>services:</strong><br/>
<strong>  nut:</strong><br/>
<strong>    image: teknologist/webnut</strong><br/>
<strong>    container_name: webnut</strong><br/>
<strong>    environment:</strong><br/>
<strong>      – UPS_HOST=your.nut.server.ip</strong><br/>
<strong>      – UPS_PORT=3493</strong><br/>
<strong>      – UPS_USER=upsadmin</strong><br/>
<strong>      – UPS_PASSWORD=password.you.created.already</strong><br/>
<strong>    restart: unless-stopped</strong><br/>
<strong>    ports:</strong><br/>
<strong>      – 6543:6543</strong></p></blockquote>
<p>Deploy the container and within moments, you’re looking at something like this (serverip:6543):</p>
<figure aria-describedby="caption-attachment-2069" class="wp-caption aligncenter" id="attachment_2069"><img alt="Webnut Monitor Initial Page" class="wp-image-2069 size-large" decoding="async" height="184" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/Webnut-Monitor-Initial-Page.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2069">Webnut Monitor Initial Page</figcaption></figure>
<figure aria-describedby="caption-attachment-2068" class="wp-caption aligncenter" id="attachment_2068"><img alt="Webnut Monitor - click through" class="wp-image-2068 size-large" decoding="async" height="496" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/Webnut-Monitor-click-through.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2068">Webnut Monitor – click through</figcaption></figure>
<p>Click through to see all the metrics.</p>
<h3>Monitoring in Home-Assistant</h3>
<p>Next, let’s set up monitoring in Home-Assistant. <strong>Integrations &gt; Add NUT</strong></p>
<figure aria-describedby="caption-attachment-2059" class="wp-caption aligncenter" id="attachment_2059"><img alt="Adding the NUT integration" class="wp-image-2059" decoding="async" height="190" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/Adding-the-NUT-integration.png" width="450"/><figcaption class="wp-caption-text" id="caption-attachment-2059">Adding the NUT integration</figcaption></figure>
<p>Configure as necessary and submit.</p>
<figure aria-describedby="caption-attachment-2063" class="wp-caption aligncenter" id="attachment_2063"><img alt="Configuring the NUT integration" class="wp-image-2063" decoding="async" height="507" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/Configuring-the-NUT-integration.png" width="450"/><figcaption class="wp-caption-text" id="caption-attachment-2063">Configuring the NUT integration</figcaption></figure>
<p>Out of the box, you’ll be able to add 5 sensors. Initially for some reason, only 4 were added to Lovelace, but I just added the additional Apc Battery Charge manually. Also for some reason 17 “Diagnostic” entities were disabled by default. Should you wish to enable these, you can highlight them in the entities panel with a check box and hit enable. Within moments they were online.</p>
<figure aria-describedby="caption-attachment-2065" class="wp-caption aligncenter" id="attachment_2065"><img alt="Lovelace Integration" class="wp-image-2065" decoding="async" height="293" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/Lovelace-Integration.png" width="450"/><figcaption class="wp-caption-text" id="caption-attachment-2065">Lovelace Integration</figcaption></figure>
<figure aria-describedby="caption-attachment-2064" class="wp-caption aligncenter" id="attachment_2064"><img alt="list of entities, enabled and disabled" class="wp-image-2064 size-large" decoding="async" height="740" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/list-of-entities-enabled-and-disabled.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2064">list of entities, enabled and disabled</figcaption></figure>
<p>One thing you need to be mindful of with this set up, is once the UPS has initiated a power down of the server (in my case, Proxmox). The NUT server will also go “unavailable” until that server is brought back up. Depending on how you configure your automatic shutdown parameters this could affect the “slaves” down stream.</p>
<p>Now that we have the UPS in Home-Assistant, it’s easy to set up our own alerts using Node-red and whatever output module you’re interested in (email, telegram, etc.).</p>
<h2>Summary</h2>
<p>I am currently waiting for some more items to be delivered to go alongside the UPS. Out of the box it comes with one IEC c13-c14 connector and the USB lead. It didn’t even come with it’s own power lead, but that’s fine, I have plenty of them.</p>
<p>These are what I’ve ordered:</p>
<p>a <a href="https://s.click.aliexpress.com/e/_DlzDRDt" rel="noopener sponsored">C13 to c14 extention lead</a> (this will power my pfSense brick directly)</p>
<p>a <a href="https://s.click.aliexpress.com/e/_DF8wB2T" rel="noopener sponsored">C14 to UK socket</a> (this will power my <a href="https://www.thesmarthomebook.com/2020/06/29/setting-up-a-4g-lte-modem-with-pfsense-as-the-main-internet-connection-netgear-lb2120/">Netgear LB2120</a> modem)</p>
<p>a <a href="https://s.click.aliexpress.com/e/_DkMSDO3" rel="noopener sponsored">C14 to EU socket</a> (this will power my Home-Assistant NUC)</p>
<p>Once everything arrives, I’ll start plugging it all in and configuring everything else to speak to the NUT server!</p>

<p>If there’s anything else out there that people are looking at or you think I should be looking at, let me know in the comments or come and chat over in our facebook group!</p>
<p><a href="https://www.facebook.com/groups/386238285944105">https://www.facebook.com/groups/386238285944105</a></p>

<p>If you’re considering a renovation and looking at the structured wiring side of things, or maybe you just want to support the blog, have a look below at my smarthome <a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored">book</a>, it’s available in all the usual places (including paperback)!</p>
<figure aria-describedby="caption-attachment-764" class="wp-caption aligncenter" id="attachment_764"><a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored"><img alt="The Smarthome Book" class="size-large wp-image-764" decoding="async" height="490" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2020/04/ARCHITECT-TABLE.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-764">The Smarthome Book</figcaption></figure>
]]></content:encoded>
      <media:content url="https://www.thesmarthomebook.com/wp-content/uploads/2022/09/Artboard-1-100.jpg" medium="image" />
    </item>
    <item>
      <title>Save Weight In Your Laptop Bag: Add This!</title>
      <link>https://www.thesmarthomebook.com/2022/07/21/save-weight-in-your-laptop-bag-add-this/</link>
      <guid isPermaLink="false">https://www.thesmarthomebook.com/?p=2037</guid>
      <pubDate>Thu, 21 Jul 2022 13:18:12 GMT</pubDate>
      <dc:creator><![CDATA[Andrew Howe]]></dc:creator>
      <category><![CDATA[GaN]]></category><category><![CDATA[Uncategorized]]></category><category><![CDATA[adapter]]></category><category><![CDATA[aliexpress]]></category><category><![CDATA[cable]]></category><category><![CDATA[charger]]></category><category><![CDATA[GaN]]></category><category><![CDATA[laptop]]></category><category><![CDATA[poe]]></category><category><![CDATA[saving]]></category><category><![CDATA[shopping]]></category><category><![CDATA[splitter]]></category>
      <description><![CDATA[Recently I decided to have a little bit of a spend up as there were a few bits and pieces that I wanted from Aliexpress. I thought I’d showcase what I bought and my reasons for it. Some of this I bought for the blog, …]]></description>
      <content:encoded><![CDATA[<p><span style="font-weight: 400;">Recently I decided to have a little bit of a spend up as there were a few bits and pieces that I wanted from Aliexpress. I thought I’d showcase what I bought and my reasons for it. Some of this I bought for the blog, other bits I bought to make my life easier. I’ll list what I’ve bought here and my reasoning for it. Some of the links are affiliate, so the blog will benefit if you use them to make a purchase, it won’t cost you a penny though.</span></p>
<h2><strong>Minix 66w GaN Wall Charger</strong></h2>
<p><span style="font-weight: 400;">First on the list, a laptop charger. I travel a lot, and I usually carry a small Samsonite rucksack for my 12.9” iPad Pro and my Lenovo X1 Carbon. Space and weight are at a premium, so anything I can do to cut down on either, interests me. I had started to research GaN (Gallium Nitride) chargers and quickly realised these would suit. For those of you not familiar with GaN chargers, they’re basically the next generation of power brick. They use GaN as opposed to Silicon and emit way less heat through energy loss, meaning they can output at higher voltage without the need for larger heat sinks. What does this mean to us? They’re more efficient, smaller and lighter. Perfect. Now time to pick one out. I considered several variants and manufacturers before settling on this unit from Minix. It’s got 2* USB-C outputs as well as a legacy USB-A. My iPad and Beats Studio 3s are USB-A, my One Plus 9 Pro and the Lenovo are USB-C so I thought this was the best mix. It saves a ton of room in my bag and it comes in significantly lighter than my existing set up. I can potentially buy a second USB-C cable if needed and still end up much lighter and smaller.</span></p>

<figure aria-describedby="caption-attachment-2042" class="wp-caption aligncenter" id="attachment_2042"><a href="https://amzn.to/3uE5V2W" rel="noopener sponsored"><img alt="Minix 66W GaN Charger" class="wp-image-2042 size-large" decoding="async" height="500" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/07/aliexpress-2-of-3.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-2042">Minix 66W GaN Charger</figcaption></figure>
<blockquote><p>65w Lenovo Power Brick = 392g</p>
<p>60w One Plus Charger = 173g</p>
<p>1m One Plus USB-C cable = 43g</p>
<p><strong>Total = 608g</strong></p>

<p>Minix Neo p1 65w Charger = 135g</p>
<p>2m Baseus USB-C Cable = 53g</p>
<p><strong>Total = 188g</strong></p></blockquote>
<figure aria-describedby="caption-attachment-2045" class="wp-caption aligncenter" id="attachment_2045"><img alt="Difference of 420g plus taking up much less space" class="size-large wp-image-2045" decoding="async" height="337" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/07/IMG20220721172756.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2045">Difference of 420g plus taking up much less space</figcaption></figure>
<p><span style="font-weight: 400;">That’s a saving of 420g and it’s about a quarter of the size. </span>Your shoulders will be thanking you!</p>
<p style="text-align: center;"><strong><em>To put that in perspective, you’re saving the same amount of weight as a FIFA regulated football or a jar of nutella! </em></strong></p>
<p style="text-align: center;"><a href="https://weightofstuff.com/10-common-items-that-weigh-about-400-grams/"><span style="font-weight: 400;">https://weightofstuff.com/10-common-items-that-weigh-about-400-grams/</span></a></p>
<figure aria-describedby="caption-attachment-2049" class="wp-caption aligncenter" id="attachment_2049"><img alt="420g Saving = Success" class="size-large wp-image-2049" decoding="async" height="422" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/07/Baby-Meme-Success-07.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2049">420g Saving = Success</figcaption></figure>
<p><span style="font-weight: 400;">Note, I looked at the following chargers also, but settled on the Minix because it came with adaptors, and whilst it has slightly less ports than the others, I wanted the unit to be light and perfectly suited for travelling. If I was looking at a desktop variant, then I’d probably go for a larger charger with more ports such as <a href="https://s.click.aliexpress.com/e/_DmpcUML" rel="noopener sponsored">this</a> on Ali.</span></p>
<figure aria-describedby="caption-attachment-2041" class="wp-caption aligncenter" id="attachment_2041"><a href="https://amzn.to/3uE5V2W" rel="noopener sponsored"><img alt="Minix 66W GaN Charger + accessories" class="wp-image-2041 size-large" decoding="async" height="500" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/07/aliexpress-1-of-3.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-2041">Minix 66W GaN Charger + accessories</figcaption></figure>
<p><span style="font-weight: 400;">The charger splits its output, depending on what’s plugged in, </span><span style="font-weight: 400;">I.e. Just my laptop will get me 65w from Port 1 or 2. </span><span style="font-weight: 400;">If I plug in a phone and a laptop, I’ll get 30+30w. Add the USB-A into the mix and it drops further, to 30w/18w/18w. Just 1 USB-C and a single USB-A, you’re looking at 45w/18w. </span><span style="font-weight: 400;">That’s more than enough to charge my laptop, headphones, and iPad whilst away.</span></p>
<p><span style="font-weight: 400;">The only thing I am slightly disappointed about is that my One Plus 9 Pro uses Warp Charge which is a proprietary charging protocol. It’s fantastic, but as it’s proprietary, this charger will not have access to the same speeds. Despite this charger being PD3.0/QC3.0, it’s not </span><span style="font-weight: 400;">compatible, so my phone will charge at a slower rate, but this isn’t a deal breaker for me. It saves me carrying around the One Plus charger which is a brick in itself.</span></p>
<p><a href="https://amzn.to/3uE5V2W" rel="noopener sponsored"><span style="font-weight: 400;">MiniX Neo P1 on Amazon</span></a><span style="font-weight: 400;"> </span></p>
<p><a href="https://amzn.to/3NUdqcN" rel="noopener sponsored"><span style="font-weight: 400;">MiniX Neo P2 on Amazon (100w, 2x USB-C + 2x USB-A)</span></a></p>
<p><a href="https://s.click.aliexpress.com/e/_DEYJwhN" rel="noopener sponsored"><span style="font-weight: 400;">Minix Neo P2 on Aliexpress</span></a></p>
<p><span style="font-weight: 400;">If you don’t need USB-A at all, then check here for </span><a href="https://s.click.aliexpress.com/e/_DFFBkCj" rel="noopener sponsored"><span style="font-weight: 400;">Ugreen’s 66W 2x USB-C charger (Aliexpress)</span></a></p>

<h2><strong>2m USB-C to USB-C cables</strong></h2>
<p><span style="font-weight: 400;">As I already alluded to previously, I needed to order these to make up the distance from the plug to the laptop. I ordered a pair of these cables, in 2m lengths. It states they’re capable of up to 100w PD, so should be more than sufficient for the charger. On arrival, they’re neatly packaged. Despite being somewhat thinner than I would have expected, they feel quality and are fully braided. I tested both cables with my laptop and they charge at the full speed of the brick.</span></p>
<figure aria-describedby="caption-attachment-2040" class="wp-caption aligncenter" id="attachment_2040"><a href="https://s.click.aliexpress.com/e/_DlCrgUL" rel="noopener sponsored"><img alt="Baseus 2m USB-C 100W cable" class="wp-image-2040 size-large" decoding="async" height="926" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/07/IMG_20220721_161206.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-2040">Baseus 2m USB-C 100W cable</figcaption></figure>
<p><a href="https://s.click.aliexpress.com/e/_DlCrgUL" rel="noopener sponsored"><span style="font-weight: 400;">2M USB-C to USB Type C 100w PD Cable</span></a></p>

<h2><strong>Ugreen USB-C to Ethernet Jack</strong></h2>
<p><span style="font-weight: 400;">The second item on the list was this USB-C to RJ45 gigabit converter. I bought this for the blog. Am currently waiting to receive a new mini pc from one of the manufacturers I work with, and I thought about using the machine as a router so I can test out Untangled, OpnSense and pfSense. The machine comes with a single RJ45 port but it does come with a USB-C port, so I figured this could plug in and be my second network port (you need two for WAN and LAN). Now whilst I don’t have the machine in my hands at the moment, I tested this adaptor on my Lenovo X1 Carbon. I plugged it into the laptop’s charging port and connected it to a network switch. Within a few short moments, we were up and running. No drivers needed on Windows 10, although I did need to manually set up the network connection (DHCP failed me). I don’t know if this is due to the hardware or whether I have a funky network, am not sure. Once configured (Gateway, Netmask, IP address, etc.) it was up and running with full gigabit speeds (verified under status).</span></p>
<figure aria-describedby="caption-attachment-2043" class="wp-caption aligncenter" id="attachment_2043"><a href="https://s.click.aliexpress.com/e/_DlslWZz" rel="noopener sponsored"><img alt="Ugreen USB-C RJ45 Adapter" class="wp-image-2043 size-large" decoding="async" height="750" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/07/aliexpress-3-of-3.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-2043">Ugreen USB-C RJ45 Adapter</figcaption></figure>
<p><a href="https://s.click.aliexpress.com/e/_DlslWZz" rel="noopener sponsored"><span style="font-weight: 400;">Ugreen USB C Gigabit Ethernet Adapter (Aliexpress)</span></a></p>
<p><a href="https://amzn.to/3ywhtX5" rel="noopener sponsored"><span style="font-weight: 400;">Ugreen USB C Gigabit Ethernet Adapter (Amazon)</span></a></p>

<h2><strong>Gigabit POE Adaptor</strong></h2>
<p><span style="font-weight: 400;">Another item I recently purchased was a pair of gigabit POE adaptors. These adaptors essentially plug into my Netgear POE switch and split out the power delivery and the network connection. I wanted these to help tidy up my wiring. I have an 8 port Netgear POE switch where I am only using 4 ports (<a href="https://www.thesmarthomebook.com/2021/05/20/planning-choosing-ip-cameras-for-my-smart-home/">3* reolink cameras</a> and a Unifi WAP). This means I have 4 ports free capable of delivering power to various devices. I bought these two adaptors (12v2A Dc) to power my 6th Gen Celeron Intel Nuc and my <a href="https://www.bee-link.net/collections/computer/products/beelink-gk-mini">Beelink GK Mini</a>. This will free up two plug sockets and remove excess cabling from the “stack”. I did consider getting a third adaptor (POE to USB-C) to power a future Raspberry Pi4, but for now, I thought I would test these out.</span></p>
<figure aria-describedby="caption-attachment-2039" class="wp-caption aligncenter" id="attachment_2039"><a href="https://www.aliexpress.com/item/1005001309240177.html?"><img alt="Gigabit POE Splitter" class="wp-image-2039" decoding="async" height="1133" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/07/IMG_20220721_155145.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-2039">Gigabit POE Splitter</figcaption></figure>
<p><a href="https://www.aliexpress.com/item/1005001309240177.html?"><span style="font-weight: 400;">Gigabit POE Adapter</span></a></p>
<p><a href="https://s.click.aliexpress.com/e/_DDk1x7l" rel="noopener sponsored"><span style="font-weight: 400;">Non-Gigabit version (significantly cheaper)</span></a></p>
<p><span style="font-weight: 400;">This also means that I can essentially remote mount my little Beelink server now.</span></p>
<p><span style="font-weight: 400;">Once I received these, I shut down the servers and tried to hook them up with the adaptor. The <a href="https://www.thesmarthomebook.com/2021/09/21/home-server-installing-docker-portainer-home-assistant-on-proxmox/">Beelink Mini</a> worked perfectly, and fired back up into proxmox immediately. Unfortunately, the adapter I bought didn’t quite fit the NUC. There’s a slight difference in barrel size on the power connector, so I’ll look into finding a converter or replacing the connection.</span></p>

<h2><strong>Velcro Cable Ties</strong></h2>
<p><span style="font-weight: 400;">Last but not least, I recently upgraded my PC’s CPU and motherboard and needed to cut away what felt like metres and metres of cable ties, only to then have to try and find more. I wanted to try and take control of my cable management, so I ordered 100 pcs of these velcro ties to help neaten things up. These were dirt cheap and in turn should help with airflow and dust as well as helping to hide the nest of wires that seem to continually build up around and under my workstation.</span></p>
<figure aria-describedby="caption-attachment-2038" class="wp-caption aligncenter" id="attachment_2038"><a href="https://s.click.aliexpress.com/e/_DCbp62n" rel="noopener sponsored"><img alt="A Pack of Velcro Ties (100 pcs)" class="wp-image-2038 size-large" decoding="async" height="475" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/07/IMG_20220721_155129.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-2038">A Pack of Velcro Ties (100 pcs)</figcaption></figure>
<p><a href="https://s.click.aliexpress.com/e/_DCbp62n" rel="noopener sponsored"><span style="font-weight: 400;">100 Pcs Black Velcro Self Adhesive Fasteners</span></a></p>

<h2><strong>Summary</strong></h2>
<p>Ok so from what I’ve picked up, I am really happy with the Minix charger. In fact I am already thinking to get a larger more powerful one for desk bound duties as it’s just so much smaller than everything else. I will be picking up variants of this for gifts at Christmas I can see. The USB to RJ45 isn’t the sexiest product in the world by a long shot, but having the abiltiy to utilise a USB-C port (creating a second network port) on some ligher more modern hardware will allow me to swap out my pfSense box and use that for something more demanding. I am keen to have a play with the other Router/Firewall Softwares without taking my own internet down in the process, so this will come in handy. It’s also incredibly small and can be useful to have when on site or at a friends place fault finding their internet issues.</p>
<p>I was disappointed that the gigabit POE splitter didn’t work with my celeron NUC. I was looking forward to getting another power supply out of the way. I need to check further to see if there’s an adaptor or if I literally need to cut and solder a connector on. Obviously, that’s not the ideal solution, but we’ll see. The celeron NUC is potentially being retired soon anyway to make way for another more powerful SFF computer. Watch this space! If I was running a raspberry Pi full time, I’d definitely pick up one of these though (with the appropriate power connector). Makes cabling so much easier and will allow you to put it somewhere right out of the way.</p>

<p>If there’s anything else out there that people are looking at or you think I should be looking at, let me know in the comments or come and chat over in our facebook group!</p>
<p><a href="https://www.facebook.com/groups/386238285944105">https://www.facebook.com/groups/386238285944105</a></p>

<p>If you’re considering a renovation and looking at the structured wiring side of things, or maybe you just want to support the blog, have a look below at my smarthome <a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored">book</a>, it’s available in all the usual places (including paperback)!</p>

<figure aria-describedby="caption-attachment-764" class="wp-caption aligncenter" id="attachment_764"><a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored"><img alt="The Smarthome Book" class="size-large wp-image-764" decoding="async" height="490" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2020/04/ARCHITECT-TABLE.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-764">The Smarthome Book</figcaption></figure>
]]></content:encoded>
      <media:content url="https://www.thesmarthomebook.com/wp-content/uploads/2022/07/GaN-Charger-scaled.jpg" medium="image" />
    </item>
    <item>
      <title>Dusun: IOT Home-Assistant Gateway – Unbox, Set up &amp; Review</title>
      <link>https://www.thesmarthomebook.com/2022/04/29/dusun-iot-home-assistant-gateway-unbox-set-up-review/</link>
      <guid isPermaLink="false">https://www.thesmarthomebook.com/?p=2006</guid>
      <pubDate>Fri, 29 Apr 2022 06:35:22 GMT</pubDate>
      <dc:creator><![CDATA[Andrew Howe]]></dc:creator>
      <category><![CDATA[computing]]></category><category><![CDATA[hardware]]></category><category><![CDATA[Home Automation]]></category><category><![CDATA[home-assistant]]></category><category><![CDATA[IOT]]></category><category><![CDATA[server]]></category><category><![CDATA[software]]></category><category><![CDATA[Uncategorized]]></category><category><![CDATA[bluetooth]]></category><category><![CDATA[dusun]]></category><category><![CDATA[Gateway]]></category><category><![CDATA[hardware]]></category>
      <description><![CDATA[In this post, I am going to review the Dusun Smart Gateway, from the initial unboxing to set up and my final thoughts. TL:DR – lot’s of potential, but only in the hands of someone with some serious Linux-Fu! So towards the end of last …]]></description>
      <content:encoded><![CDATA[<div>In this post, I am going to review the Dusun Smart Gateway, from the initial unboxing to set up and my final thoughts.</div>
<div></div>
<div></div>
<div style="text-align: center;"><strong>TL:DR – lot’s of potential, but only in the hands of someone with some serious Linux-Fu!</strong></div>
<div></div>
<div></div>
<div>So towards the end of last year, I saw a product online that immediately peaked my interest. It was a unit advertised by a company called Dusun. It looked perfect, and just what I was looking for. A small low powered device capable of running Home-Assistant (supervised!) with built in Bluetooth, Zigbee and Z-wave radios. I couldn’t wait to get my hands on it. I reached out to Dusun and after a few email exchanges, one was sent out to me.</div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div>
<div class="jetpack-video-wrapper"><span class="embed-youtube" style="text-align:center; display: block;"><iframe allowfullscreen="true" class="youtube-player" height="422" loading="lazy" sandbox="allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox" src="https://www.youtube.com/embed/YsFIIBLoDj0?version=3&amp;rel=1&amp;showsearch=0&amp;showinfo=1&amp;iv_load_policy=1&amp;fs=1&amp;hl=en-GB&amp;autohide=2&amp;wmode=transparent" style="border:0;" width="750"></iframe></span></div>
</div>
<h2></h2>

<h2>Unboxing</h2>

<div>On receipt of the unit, the device feels premium. In fact a lot more than I was initially expecting, which is always a pleasant surprise. The packaging and wrapping feels decent but with an environmentally friendly feel to it.</div>
<div>

<figure aria-describedby="caption-attachment-2016" class="wp-caption aligncenter" id="attachment_2016"><img alt="Unboxing the IOT Gateway" class="size-large wp-image-2016" decoding="async" height="500" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/04/Dusun-1-of-4.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2016">Unboxing the IOT Gateway</figcaption></figure>
</div>
<div>
<figure aria-describedby="caption-attachment-2019" class="wp-caption aligncenter" id="attachment_2019"><img alt="Unboxing the IOT Gateway: Main Unit" class="size-large wp-image-2019" decoding="async" height="500" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/04/Dusun-4-of-4.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2019">Unboxing the IOT Gateway: Main Unit</figcaption></figure>
</div>
<div>Alongside the actual unit, I received an ethernet cable, a weighty USB-C lead, a mounting bracket and a USB charger. All feeling very apple-esque so far. The only thing missing from the package was any kind of literature. Still who reads the manual these days.</div>
<div>
<figure aria-describedby="caption-attachment-2017" class="wp-caption aligncenter" id="attachment_2017"><img alt="Unboxing the IOT Gateway: Contents" class="size-large wp-image-2017" decoding="async" height="500" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/04/Dusun-2-of-4.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2017">Unboxing the IOT Gateway: Contents</figcaption></figure>
</div>
<div>The unit itself is about the same sort of size as an intel nuc but about 2/3rds the height. I plugged it in and connected the various cables to it.</div>
<div></div>
<div>
<p><strong>Specs:</strong></p>
</div>
<div>
<blockquote><p><strong>Model: DSGW-210</strong><br/>
<strong>CPU: Quad Core Cortex A35</strong><br/>
<strong>RAM: 2GB </strong><br/>
<strong>HD: 16GN</strong><br/>
<strong>PSU: 5v/3A</strong><br/>
<strong>SD Card Slot: 1</strong><br/>
<strong>Sim Card Slot: 1</strong><br/>
<strong>USB Port: 1</strong><br/>
<strong>Li Battery: 6000mAh (Option)</strong></p></blockquote>
</div>
<div>So as you can see this has all bases covered. Battery backup, Sim card for network backup, not to mention BT, Zigbee and Zwave. You can see why I was keen for this to work.</div>
<div></div>
<div>On start up, the gateway’s ring began to glow red, before turning a present blue about a minute later. The machine, for all intents and purposes is silent. I logged into pfSense to grab the machine’s IP address. It was listed as “linaro-alip”. I fixed the DHCP reservation and a few keystrokes later I was faced with a familiar looking Home-Assistant login screen. So far so good.</div>
<div>
<figure aria-describedby="caption-attachment-2007" class="wp-caption aligncenter" id="attachment_2007"><img alt="A familiar screen..." class="size-full wp-image-2007" decoding="async" height="367" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/04/chrome_4ARznGeXe6.png" width="467"/><figcaption class="wp-caption-text" id="caption-attachment-2007">A familiar screen…</figcaption></figure>
</div>
<div></div>
<div>As I alluded to earlier there were no accompanying instructions though. I was continually trying a variety of user/pass combo’s until <strong>root/root</strong> let me in. I quickly reconfigured the user/pass to something I was more familiar with. The machine initially felt a bit sluggish with a few menu items still in mandarin. I tried to update a few things, but kept getting errors. Something was holding back the internet connection. I figured it was DNS, so decided to fix that.</div>
<div></div>
<div><strong>Configuration &gt; Add-ons, Backups &amp; Supervisor &gt; System tab</strong> on the right – then hit change on the upper right panel. Select your Network adapter (LAN or Wifi) and then amend the details accordingly.</div>
<div></div>
<div>
<figure aria-describedby="caption-attachment-2014" class="wp-caption aligncenter" id="attachment_2014"><img alt="System Details" class="size-large wp-image-2014" decoding="async" height="343" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/04/chrome_XRMrr62RMD.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2014">System Details</figcaption></figure>
</div>
<div></div>
<div>Quick restart and bingo, we were in business. I could see there were some updates to be done so having created a backup, I proceeded with that and left the machine alone to do its thing. A short while later and I was running the latest and greatest (at the time).</div>
<div></div>
<div>
<figure aria-describedby="caption-attachment-2009" class="wp-caption aligncenter" id="attachment_2009"><img alt="Home-Assistant Update Pending" class="size-large wp-image-2009" decoding="async" height="414" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/04/chrome_BYWI2QpY0j.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2009">Home-Assistant Update Pending</figcaption></figure>
</div>

<h2>Out of the Box</h2>

<div>A quick glance at the main Lovelace screen revealed a set of colour sliders for what appeared to be a light. I initially thought these sliders might correspond to the glowing ring on the top of the unit, alas moving the sliders had no effect on its output.</div>
<div>
<figure aria-describedby="caption-attachment-2011" class="wp-caption aligncenter" id="attachment_2011"><img alt="Initial Lovelace Screen" class="size-large wp-image-2011" decoding="async" height="414" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/04/chrome_MvMCrEsVuF.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2011">Initial Lovelace Screen</figcaption></figure>
</div>
<div></div>
<div>Regarding the add-ons, it initially came with Z-wave JS configured but Zigbee was nowhere to be found. I tried repeatedly to add ZHA to it, but each time I was met with a variety of errors. Eventually, after discussion with the developers, I managed to get ZHA installed (ZHA serial port is /dev/ttyUSB1 and the protocol is ezsp Baud rate is 115200). I added an <a href="https://www.thesmarthomebook.com/2020/12/04/xiaomi-aqara-2-year-review/">Aqara motion sensor</a> and installed Node-red. Within a few moments, the sensor was discovered and we were in business.</div>
<div></div>
<div>I then proceeded to add a few more add-ons. I noticed there were some custom Dusun ones.</div>
<div></div>
<div>Dusun</div>
<div>DUSUN BG96</div>
<div>DUSUN Wifi</div>
<div>DUSUN BLE mesh</div>
<div></div>
<div>
<figure aria-describedby="caption-attachment-2022" class="wp-caption aligncenter" id="attachment_2022"><img alt="Configuring Integrations" class="size-large wp-image-2022" decoding="async" height="254" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/04/chrome_yzDQfnpfNG.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2022">Configuring Integrations</figcaption></figure>
</div>
<div>
<figure aria-describedby="caption-attachment-2012" class="wp-caption aligncenter" id="attachment_2012"><img alt="Configuring Devices" class="size-large wp-image-2012" decoding="async" height="190" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/04/chrome_RL6z1bVh3s.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2012">Configuring Devices</figcaption></figure>
</div>
<div></div>
<div>I started having mixed success getting these to work. In the absence of documentation, I was kind of doing by feeling. I managed to get Dusun BG96 installed, but have no idea what it does. The same with Dusun Wifi. I get the feeling that this one created a media player, similar to a cast server. At least it shows one entity with a different IP.</div>
<div>
<figure aria-describedby="caption-attachment-2021" class="wp-caption aligncenter" id="attachment_2021"><img alt="Dusun Custom Integration" class="wp-image-2021" decoding="async" height="216" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/04/chrome_BQKJaheOrY.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2021">Dusun Custom Integration</figcaption></figure>
</div>
<div></div>
<div>The other two integrations, Dusun and DUSUN BLE mesh, just constantly time out. With no error or anything to suggest they’ve taken or failed. Moving on.</div>
<div></div>
<div></div>
<div></div>
<h2>Under the Hood</h2>

<div>I installed Glances initially, as wanted to get a look inside the machine to see what was installed. I noticed that the linux version was pretty old. I also wanted to SSH into this box of tricks to see what the installation looked like.</div>
<div>
<figure aria-describedby="caption-attachment-2013" class="wp-caption aligncenter" id="attachment_2013"><img alt="Glances View" class="size-large wp-image-2013" decoding="async" height="560" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/04/chrome_VmwOUFPSw9.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2013">Glances View</figcaption></figure>

</div>
<div>I felt the machine kept running sluggishly, so at this point, I fancied doing a fresh install. I still had some mandarin in parts of the menu, and I just felt at this point, maybe a clean start was the way forward. I needed to get SSH access to the machine. I contacted the developer again and received the details. <strong>root/linaro</strong> lets you in.</div>
<div>On closer inspection, it appeared that this drive had all sorts of bits and pieces installed on it. It looked like a mix between Linux and Windows. I wasn’t aware that I’d been given a pre-production unit. I also noted that I was beginning to run out of space. Backups kept failing and then I was unable to add more add-ons. This became a continual problem. I went through the drive via filezilla, removing various media files and remnants of a previous windows installation, which helped initially, but pretty soon I was up against space constraints again.</div>
<div></div>
<div>I contacted Dusun about getting a fresh image of the OS, so that I could format the drive and start from scratch. I figured if I could get this working, then I could swap in a larger hard drive and start from a fresh install. This was when things started to go downhill. Rather than be pointed at an OS image or given additional drivers to try and shoehorn into a standard Hassio (that name is never going away :)) image, I was given a different set of instructions.</div>
<div></div>
<div>I needed to download RKDevTool, adb connect and basically compile my own. Undeterred, I went to the web to try and find RKDevTool. After an hour of hunting for a more recent version, I managed to find it. It looked similar to the tool in the pdf I was sent.</div>
<div>
<figure aria-describedby="caption-attachment-2023" class="wp-caption aligncenter" id="attachment_2023"><img alt="Instructions from Dusun" class="size-large wp-image-2023" decoding="async" height="832" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/04/Acrobat_BWIrpiZ1lE.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2023">Instructions from Dusun</figcaption></figure>
</div>
<div>It was at this point that things ground to a halt. There are no instructions with RKDevTool at all. I was able to connect to the machine once only. I had nothing to upload and frankly speaking compiling linux drivers and modifying base OS images is beyond me. I reached out to the developer again to see if they had a clean updated image I could use, but alas, I didn’t get a response.</div>
<div></div>
<div></div>
<div></div>
<h2>All quiet on the Eastern Front</h2>

<div>My communication with Dusun had been over a period of a few months. For one reason or another, I was unable to review this unit as quick as I would normally like, however, after a month or so, communication with Dusun seemed to go flat. I’d prepared several pdf’s with various issues I’d had with screen shots, errors, and potential solutions, but my attempts at rectifying the issues, were met with silence. I really wanted to give them time to come up with a newer image or for me to upgrade it, and come to you with a well priced solution and an alternative to some of the other ventures out there. You can read more about the product here:</div>
<div style="text-align: center;"><a href="https://www.dusuniot.com/iot-app-gateway/home-assistant-gateway">https://www.dusuniot.com/iot-app-gateway/home-assistant-gateway</a></div>
<div></div>
<figure aria-describedby="caption-attachment-2027" class="wp-caption aligncenter" id="attachment_2027"><img alt="Dusun: IOT Home-Assistant Gateway - Unbox, Set up &amp; Review" class="size-large wp-image-2027" decoding="async" height="422" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/04/Artboard-1-1.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2027">Dusun: IOT Home-Assistant Gateway – Unbox, Set up &amp; Review</figcaption></figure>
<h2></h2>

<h2>Potential</h2>

<div>I’ve been extremely reticent about posting this review, as I think this box has potential. The hardware feels decent. Even the USB C lead is about 30% thicker than those you get with Apple. The Charging brick feels heavy, like my OnePlus warp charger. I love the notion of one and done. You buy a machine, and it has bluetooth, zigbee and zwave already baked into it. No dongles hanging out. No one needing to advise you that you need to put something on a usb extension lead. I have seen other variants sold on the Dusun <a href="https://www.dusuniot.com/smart-gateway-1">website</a> which would suggest that you could also use this machine as a remote gateway. I also love the idea of redundancy, whether thats power or networks with the battery and sim card options. In essence, a hub that you could connect your <a href="https://www.home-assistant.io/">Home-Assistant</a> install to i.e. a remote zigbee/zwave/bluetooth server. This could be a nice use case for the machine. You’d keep your Home-Assistant installation on your main server (VM/Container) in a rack and then you mount this little box of tricks somewhere else in the centre of the home where the zwave and zigbee signal would be better received.</div>
<div></div>
<div>Given this machine is capable of doing more than just serving up wireless signals, potentially you could offload more to it. <a href="https://github.com/mqtt">Mqtt</a>/<a href="https://nodered.org">Node-red</a>/<a href="https://www.thesmarthomebook.com/2021/07/24/the-holy-grail-of-networking-tailscale/">Tailscale</a>/<a href="https://github.com/TasmoAdmin/TasmoAdmin">Tasmoadmin</a> to name just a few lightweight services that this could happily run. If you fancied moving away from Home-Assistant preferring to use just node-red or <a href="https://hubitat.com">hubitat</a>, <a href="https://homeseer.com">homeseer</a> etc, then you could still have this gateway doing its thing.</div>
<div></div>
<div>I don’t want to be too hard on Dusun. I think there was probably a disconnect in communication. It feels to me that this product is probably suitable for business to business, and not business to consumer. If I need to compile anything other than a youtube playlist, then it’s going to be a no from me. That’s not to say that one of the devs out there couldn’t take hold of this and exploit it to its full potential, but as far as ‘off the shelf’ goes, absolutely not.</div>
<div></div>
<h2></h2>
<h2>Current Situation</h2>
<div>As it stands so far, it looks like their servers have been taken down.</div>
<div>My repositories were the following:</div>
<blockquote>
<div>deb http://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free<br/>
deb http://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free<br/>
deb http://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free<br/>
deb http://mirrors.tuna.tsinghua.edu.cn/debian-security stretch/updates main contrib non-free</div>
</blockquote>
<div></div>
<div>I’ve now changed them to:</div>
<blockquote>
<div>deb http://ftp.ie.debian.org/debian/ stretch main contrib non-free<br/>
deb-src http://ftp.ie.debian.org/debian/ stretch main contrib non-free</div>
</blockquote>
<div></div>
<div>I’ve also had to manually amend the DNS servers in the machine (outside of hassio) in order to bring it back online. I did this modifying /etc/resolve.conf</div>
<div></div>
<div>This at least allowed me to update a long list of packages. I was hoping to use autoremove to help free up space, but naturally, that didn’t work. I don’t want to wipe the machine as I don’t think I’d be able to find an image to reload it, but I’ve run out of space so am unable to do the necessary updates to a) keep current and b) add the usual integrations. Node-red, Glances etc have had to be removed in an effort to get it current, as have any backups.</div>
<div>At this rate, I’m sure i’ll end up having to format and start again. Then i’ll be faced with the unenviable task of trying to find drivers to bake into the new OS image. There are resources on their site that should allow some progress, but the question is am I up to the task!</div>
<div style="text-align: center;"><a href="https://www.dusuniot.com/downloads">https://www.dusuniot.com/downloads</a></div>
<div style="text-align: center;"></div>
<div>
<p style="text-align: center;"><iframe allowfullscreen="allowfullscreen" class="giphy-embed" frameborder="0" height="270" loading="lazy" src="https://giphy.com/embed/3og0ICZh82LEsNjHoc" width="480"></iframe></p>
</div>
<div></div>
<div>If anyone has any hints or tricks on where to go from here, I’m all ears! You can hit me up directly, or in our facebook group, which is growing by the day! below or come over to our facebook group to discuss further.</div>
<div>
<p><a href="https://www.facebook.com/groups/386238285944105">https://www.facebook.com/groups/386238285944105</a></p>
<p>If you’re considering a renovation and looking at the structured wiring side of things, or maybe you just want to support the blog, have a look below at my smarthome <a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored">book</a>, it’s available in all the usual places (including paperback)!</p>
</div>
<div>
<figure aria-describedby="caption-attachment-764" class="wp-caption aligncenter" id="attachment_764"><a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored"><img alt="The Smarthome Book" class="size-large wp-image-764" decoding="async" height="490" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2020/04/ARCHITECT-TABLE.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-764">The Smarthome Book</figcaption></figure>
</div>
]]></content:encoded>
      <media:content url="https://www.thesmarthomebook.com/wp-content/uploads/2022/04/Artboard-1-1.png" medium="image" />
    </item>
    <item>
      <title>Add an Airsonic Music Server to Sonos</title>
      <link>https://www.thesmarthomebook.com/2022/04/04/add-an-airsonic-music-server-to-sonos/</link>
      <guid isPermaLink="false">https://www.thesmarthomebook.com/?p=1996</guid>
      <pubDate>Mon, 04 Apr 2022 06:58:40 GMT</pubDate>
      <dc:creator><![CDATA[Andrew Howe]]></dc:creator>
      <category><![CDATA[computing]]></category><category><![CDATA[container]]></category><category><![CDATA[docker]]></category><category><![CDATA[Home Automation]]></category><category><![CDATA[proxmox]]></category><category><![CDATA[server]]></category><category><![CDATA[software]]></category><category><![CDATA[airsonic]]></category><category><![CDATA[broadcast]]></category><category><![CDATA[cast]]></category><category><![CDATA[music]]></category><category><![CDATA[nas]]></category>
      <description><![CDATA[So for a while I’ve been looking at ways to access my music collection on my NAS around the home. I’ve tried various software applications and packages, and then tried casting to various devices and speakers. To be honest it was a little…]]></description>
      <content:encoded><![CDATA[<p>So for a while I’ve been looking at ways to access my music collection on my NAS around the home. I’ve tried various software applications and packages, and then tried casting to various devices and speakers. To be honest it was a little hit and miss. I’d been using Airsonic for a while, but then found it lacking in a few features and it was quite buggy. I then made the switch over to <a href="https://github.com/airsonic-advanced/airsonic-advanced">Airsonic-Advanced</a> which is a more actively developed fork and have had much better results with it. We have <a href="https://www.sonos.com">Sonos</a> dotted around the home and I wanted a way to serve the content from my <a href="https://www.thesmarthomebook.com/2021/09/21/home-server-installing-docker-portainer-home-assistant-on-proxmox/">Proxmox server</a> running on my <a href="https://www.bee-link.com/catalog/product/index?id=245">Beelink GK Mini</a>, to the Sonos ecosystem. Previously, I would just mount a share and point the Sonos library at it, but it was a bit hit and miss, and the browsing was very basic not to mention slow.</p>
<p>I did some research and finally managed to get the Airsonic “Sonos” integration working.</p>
<p>Here’s a quick tutorial on how I did it (I believe this will work for other variants of Airsonic, i.e. subsonic, madsonic etc.) Skip through if you’re already running Airsonic-advanced.</p>
<h2>Install Airsonic-Advanced in Docker:</h2>
<p>I used the stacks feature in Portainer to create a Docker Stack:</p>
<blockquote>
<div><strong>version: “2.1”</strong></div>
<div><strong>services:</strong></div>
<div><strong>  airsonic:</strong></div>
<div><strong>    image: lscr.io/linuxserver/airsonic-advanced</strong></div>
<div><strong>    container_name: airsonic_advanced</strong></div>
<div><strong>    restart: always</strong></div>
<div><strong>    logging:</strong></div>
<div><strong>      driver: json-file</strong></div>
<div><strong>    network_mode: bridge</strong></div>
<div><strong>    environment:</strong></div>
<div><strong>      – PUID=${PUID}</strong></div>
<div><strong>      – PGID=${PGID}</strong></div>
<div><strong>      – TZ=${TZ}</strong></div>
<div><strong>    volumes:</strong></div>
<div><strong>      – /docker/appdata/airsonic:/config</strong></div>
<div><strong>      – /etc/localtime:/etc/localtime:ro</strong></div>
<div><strong>      – /data/media/music:/music</strong></div>
<div><strong>      – /data/media/music/playlists:/playlists</strong></div>
<div><strong>      – /data/media//music/podcasts:/podcasts</strong></div>
<div><strong>    ports:</strong></div>
<div><strong>      – 4040:4040</strong></div>
</blockquote>
<p>My environmental variables point to a file I created in /etc/environment which basically automate the ‘IDs and TZ. You could easily replace that with the following (for example):</p>
<div>    environment:</div>
<div>      – PUID=1000</div>
<div>      – PGID=1000</div>
<div>      – TZ=Europe/London</div>
<p>Hit deploy, and wait for the container to spin up. If all is well, you should be able to browse to the container’s IP:4040. Create your login (default is admin) and set a password.</p>
<h3>Next steps</h3>
<ul>
<li>Click the settings icon at the top and browse to Sonos.</li>
<li>Enable Sonos music service – check</li>
<li>Multi User – check</li>
<li>Make sure Root host address is filled out appropriately (be specific, is it http or https, make sure port is there too…</li>
<li>Input the Music service name i.e. “Airsonic”</li>
<li>Hit save, you’re done.</li>
</ul>
<figure aria-describedby="caption-attachment-2001" class="wp-caption aligncenter" id="attachment_2001"><img alt="Airsonic Settings for Sonos" class="size-large wp-image-2001" decoding="async" height="478" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/04/chrome_0iJsBEws4K.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-2001">Airsonic Settings for Sonos</figcaption></figure>
<p>That’s it for the Airsonic side. Now we need to look to the Sonos side.</p>
<h2>Creating a Music Service in Sonos</h2>
<p>Browse to the URL that applies to one of your Sonos speakers using the following format:</p>
<blockquote><p><strong>http://<em>sonos.speaker.ip.address</em>:1400/customsd.htm</strong></p></blockquote>
<p>Now fill in the following information (you can use mine as a template):</p>
<figure aria-describedby="caption-attachment-1997" class="wp-caption aligncenter" id="attachment_1997"><img alt="Creating the Music Server in Sonos" class="wp-image-1997" decoding="async" height="780" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/04/chrome_VxQ2dCAi0o.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1997">Creating the Music Server in Sonos</figcaption></figure>
<p>Note the Version number fields. Be sure to fill those in.</p>
<p>192.168.2.76 represents the Sonos speaker, 192.168.2.251 represents the Container’s IP address (my Media server), 4040 is the default Airsonic port. Once done, submit the info above. If all is well you should be met with the following screen:</p>
<figure aria-describedby="caption-attachment-1998" class="wp-caption aligncenter" id="attachment_1998"><img alt="Airsonic Server Created Successfully" class="wp-image-1998" decoding="async" height="152" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/04/chrome_cW3akz9ot0.png" width="450"/><figcaption class="wp-caption-text" id="caption-attachment-1998">Airsonic Server Created Successfully</figcaption></figure>
<h2>Adding the Airsonic Server as a source in Sonos</h2>
<p>Now go to the sonos software and Add a new service (<strong>Manage &gt; Service Settings &gt; Add</strong>). You should now be able to see your Airsonic server in the list.</p>
<figure aria-describedby="caption-attachment-1999" class="wp-caption aligncenter" id="attachment_1999"><img alt="Finding the new Server in Sonos" class="wp-image-1999" decoding="async" height="430" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/04/Sonos_CUH4gwz6a2.png" width="450"/><figcaption class="wp-caption-text" id="caption-attachment-1999">Finding the new Server in Sonos</figcaption></figure>
<p>Next click through and “Start procedure to link my account.” Follow the instructions to authenticate (i.e. user/password which you created initially), and if all’s well, the service will be added to your list of Sources in the Sonos App.</p>
<p>It should pick up everything, including podcasts and playlists. Job Done!</p>
<figure aria-describedby="caption-attachment-2000" class="wp-caption aligncenter" id="attachment_2000"><img alt="The New Airsonic Server has been added" class="wp-image-2000" decoding="async" height="597" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/04/chrome_ln5NlnrzDH.png" width="450"/><figcaption class="wp-caption-text" id="caption-attachment-2000">The New Airsonic Server has been added</figcaption></figure>
<p>What I am most impressed with is how snappy the browsing is. I mean compared to using the usual services (spotify, apple music, amazon music etc), the responsiveness is great.</p>
<p>I see no reason why you couldn’t run several different servers according to household members. You could run another container using a different port per person, and then add them as above (be sure to choose a different SID when you create the service via XML).</p>
<p>Here are the links that I used to make my way through the above:</p>
<p><a href="https://github.com/airsonic-advanced/airsonic-advanced/blob/master/SONOS.md#2-adding-the-music-service-in-the-sonos-app">https://github.com/airsonic-advanced/airsonic-advanced/blob/master/SONOS.md#2-adding-the-music-service-in-the-sonos-app</a></p>
<p><a href="http://www.subsonic.org/pages/sonos.jsp">http://www.subsonic.org/pages/sonos.jsp </a></p>
<p>Note there are some small differences on the subsonic set up, but else everything is pretty much as I outlined.</p>

<p>Consider this an entry level walkthrough! If you have any good ideas on how to utilise Airsonic or Sonos further, pop them in the comments below or come over to our facebook group to discuss further.</p>
<p><a href="https://www.facebook.com/groups/386238285944105">https://www.facebook.com/groups/386238285944105</a></p>
<p>If you’re considering a renovation and looking at the structured wiring side of things, or maybe you just want to support the blog, have a look below at my smarthome <a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored">book</a>, it’s available in all the usual places (including paperback)!</p>
<figure aria-describedby="caption-attachment-764" class="wp-caption aligncenter" id="attachment_764"><a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored"><img alt="The Smarthome Book" class="size-large wp-image-764" decoding="async" height="490" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2020/04/ARCHITECT-TABLE.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-764">The Smarthome Book</figcaption></figure>
]]></content:encoded>
      <media:content url="https://www.thesmarthomebook.com/wp-content/uploads/2022/04/Artboard-1.png" medium="image" />
    </item>
    <item>
      <title>Home-Assistant: Monitor &amp; Control Docker Containers</title>
      <link>https://www.thesmarthomebook.com/2022/02/22/home-assistant-monitor-control-docker-containers/</link>
      <guid isPermaLink="false">https://www.thesmarthomebook.com/?p=1975</guid>
      <pubDate>Tue, 22 Feb 2022 08:26:10 GMT</pubDate>
      <dc:creator><![CDATA[Andrew Howe]]></dc:creator>
      <category><![CDATA[computing]]></category><category><![CDATA[container]]></category><category><![CDATA[docker]]></category><category><![CDATA[Home Automation]]></category><category><![CDATA[home-assistant]]></category><category><![CDATA[IOT]]></category><category><![CDATA[proxmox]]></category><category><![CDATA[server]]></category><category><![CDATA[software]]></category>
      <description><![CDATA[Ok, so recently, I went through my Home-Assistant installation and decided to add a few integrations allowing me to interact with my Proxmox server a little closer. For those of you who don’t know, Beelink were kind enough to send me a…]]></description>
      <content:encoded><![CDATA[<p>Ok, so recently, I went through my Home-Assistant installation and decided to add a few integrations allowing me to interact with my Proxmox server a little closer.</p>
<figure aria-describedby="caption-attachment-1792" class="wp-caption aligncenter" id="attachment_1792"><a href="https://www.bee-link.com/products/beelink-gk-mini?variant=39641914015924"><img alt="Initial Packaging Impressions were good" class="size-large wp-image-1792" decoding="async" height="548" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/IMG_20210920_112250.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-1792">Initial Packaging Impressions were good</figcaption></figure>
<p>For those of you who don’t know, Beelink were kind enough to send me a small home server for review towards the end of last year. They sent me their <a href="https://www.bee-link.com/products/beelink-gk-mini">GK mini</a>, which has been the perfect little unit to take over the server role in our home. You can read about the initial review and set up of the unit <a href="https://www.thesmarthomebook.com/2021/09/21/home-server-installing-docker-portainer-home-assistant-on-proxmox/">here</a>. At present I am running the following on it:</p>
<figure aria-describedby="caption-attachment-1986" class="wp-caption aligncenter" id="attachment_1986"><img alt="Current Proxmox Stack" class="size-full wp-image-1986" decoding="async" height="408" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/02/chrome_CwOuTW5QoQ.png" width="377"/><figcaption class="wp-caption-text" id="caption-attachment-1986">Current Proxmox Stack</figcaption></figure>
<ol>
<li>LXC running <a href="https://www.thesmarthomebook.com/2021/09/21/home-server-installing-docker-portainer-home-assistant-on-proxmox/">Docker</a> (this maintains my full stack of apps)</li>
<li>LXC running Tailscale (I like to keep this separate and basically leave it alone).</li>
<li>LXC running <a href="https://adguard.com/en/welcome.html">Adguard</a></li>
<li>LXC running Unifi Network Controller</li>
<li>A VM running Home-Assistant Supervised (HA OS)</li>
<li>A VM running Windows 11</li>
</ol>
<p>Still not using Tailscale? Definitely check <a href="https://www.thesmarthomebook.com/2021/07/24/the-holy-grail-of-networking-tailscale/">this</a> out. Best remote access tool (VPN) by far,</p>
<p>The Windows 11 vm is used for testing and is rarely on. I installed it initially to see if I wanted to update my main workstation from Windows 10 and just left it there. Everything else is running all day every day. To remind you of the specs, I was sent the Beelink GK mini, Celeron J4125, 8gb of RAM, 256gb of Storage.</p>
<p>I wanted a way to be able to interact with the containers in my Docker LXC without needing to open a web browser and then navigate and login to portainer. Thankfully there’s a way to do this directly from Home-Assistant with the help of HA_dockermon.</p>
<h2>Installation</h2>
<p>For my container installations I am using portainer. You can read more about this <a href="https://community.portainer.io/">here</a>. I created and deployed the following stack:</p>
<blockquote><p><strong>version: “2.1”</strong><br/>
<strong>services:</strong><br/>
<strong>  docker_mon:</strong><br/>
<strong>    image: philhawthorne/ha-dockermon</strong><br/>
<strong>    container_name: ha_dockermon</strong><br/>
<strong>    restart: always</strong><br/>
<strong>    logging:</strong><br/>
<strong>      driver: json-file</strong><br/>
<strong>    network_mode: bridge</strong><br/>
<strong>    volumes:</strong><br/>
<strong>      – /etc/localtime:/etc/localtime:ro</strong><br/>
<strong>      – /var/run/docker.sock:/var/run/docker.sock</strong><br/>
<strong>      – /docker/appdata/dockermon/config:/config</strong><br/>
<strong>    ports:</strong><br/>
<strong>      – 8126:8126</strong><br/>
<strong>    environment:</strong><br/>
<strong>      – PUID=${PUID}</strong><br/>
<strong>      – PGID=${PGID}</strong><br/>
<strong>      – TZ=${TZ} </strong></p></blockquote>
<p>In the above example, you can replace PUID, PGID and TZ with your own variables. I am just referencing strings that I have entered into a file located in /etc/environment.</p>
<p>Hit deploy and wait for the docker image to be pulled down and installed. If all goes well you should be met with a green image and dockermon running. For more information and to see the repository, you can check <a href="https://github.com/philhawthorne/ha-dockermon">here</a>.</p>
<p>Now that we have the container running on our server, let’s go over to Home-Assistant to configure further:</p>
<h3>Home-Assistant Configuration</h3>
<p>According to your needs, you can set up either sensors, switches or both. I opted for both. I want to be able to see what is running and how long they’ve been up for, as well as the ability to stop and start the containers at will.</p>
<h4>Sensor Creation</h4>
<p>Either under sensors in configuration.yaml or in <em>sensors.yaml</em> (if you’ve broken it out), create the following Rest sensor:</p>
<blockquote><p><strong> – platform: rest</strong><br/>
<strong>  name: portainer</strong><br/>
<strong>  json_attributes:</strong><br/>
<strong>    – state</strong><br/>
<strong>    – status</strong><br/>
<strong>    – image</strong><br/>
<strong>  resource: http://YourServerIP:8126/container/portainer</strong><br/>
<strong>  value_template: “{{state_attr(‘sensor.portainer’,’status’)}} : {{state_attr(‘sensor.portainer’,’image’)}}”</strong></p></blockquote>
<p>This sensor is basically monitoring the status of the portainer container I am running on the server. The sensor returns the following information: State (running or not), Status (how long it’s been up for), and the image it’s using.</p>
<p>I wanted to add both the stauts and the image to be displayed on one line, which is exactly what the ‘value_template’ is doing. You can test the language in the Developer Tools / Template editor (see below).</p>
<figure aria-describedby="caption-attachment-1979" class="wp-caption aligncenter" id="attachment_1979"><img alt="Template Testing" class="wp-image-1979" decoding="async" height="247" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/02/chrome_fpwmhCorrF.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1979">Template Testing</figcaption></figure>
<p>Once you’re comfortable with the sensor, save the file, check the config and restart. If successful, you should have something resembling the below in Developer Tools / States.</p>
<figure aria-describedby="caption-attachment-1978" class="wp-caption aligncenter" id="attachment_1978"><img alt="Sensor Data in Action" class="wp-image-1978" decoding="async" height="625" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/02/chrome_E2NT3jSL9S.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1978">Sensor Data in Action</figcaption></figure>
<p>Once you’ve got this far, it’s just a case of rinse and repeat for all the other containers that you wish to create sensors for.</p>
<h4>Switch Creation</h4>
<p>Ok, so now time for the switch. Go to <em>switches.yaml</em> and create the following switch:</p>
<blockquote><p><strong> – platform: rest</strong><br/>
<strong>   resource: http://YourServerIP:8126/container/portainer</strong><br/>
<strong>   name: portainer</strong><br/>
<strong>   body_on: ‘{“state”: “start”}’</strong><br/>
<strong>   body_off: ‘{“state”: “stop”}’</strong><br/>
<strong>   is_on_template: ‘{{ value_json is not none and value_json.state == “running” }}’</strong></p></blockquote>
<p>Be mindful to name your containers accurately.</p>
<p>Save the file, check your config and restart the Home-Assistant server. Once it pops back online, you should be able to add a switch entity to a card to test it.</p>
<figure aria-describedby="caption-attachment-1977" class="wp-caption aligncenter" id="attachment_1977"><img alt="Testing the Switch Example" class="wp-image-1977 size-large" decoding="async" height="317" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/02/chrome_AFizq1hHV8.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1977">Testing the Switch Example</figcaption></figure>
<figure aria-describedby="caption-attachment-1981" class="wp-caption aligncenter" id="attachment_1981"><img alt="Switch Control of the Container" class="wp-image-1981 size-medium" decoding="async" height="102" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/02/chrome_KnR4pgiqZj.png" width="300"/><figcaption class="wp-caption-text" id="caption-attachment-1981">Switch Control of the Container</figcaption></figure>
<p>Assuming all went well, you should now be able to stop and start a container with the flick of a toggle. Again, rinse and repeat for each container you wish to be able to control. Be mindful about creating a switch for dockermon, because if you inadvertently switch it off, you’ll effectively take down the docker connection.</p>
<h4>Displaying the Entities</h4>
<p>Now the UI side of things is subjective. I wanted to somehow display the information in a clear and readable fashion. I’m not 100% happy with the look, but ultimately it’s a panel to control docker containers, it’s lack of sexiness isn’t an issue 🙂</p>
<figure aria-describedby="caption-attachment-1984" class="wp-caption aligncenter" id="attachment_1984"><img alt="Completed Layout" class="wp-image-1984 size-large" decoding="async" height="379" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/02/chrome_qdM8SwihcO.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1984">Completed Layout</figcaption></figure>
<p>I created a new tab, and opted to change the tab from masonry to sidebar.</p>
<figure aria-describedby="caption-attachment-1983" class="wp-caption aligncenter" id="attachment_1983"><img alt="Setting up the Tab" class="wp-image-1983" decoding="async" height="645" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/02/chrome_pkENYGSRbS.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1983">Setting up the Tab</figcaption></figure>
<p>I’ll show you the result as well as the raw code that you can copy in should you wish to duplicate it. WordPress is poor at allowing me to paste in raw yaml, so forgive the screenshot.</p>
<figure aria-describedby="caption-attachment-1980" class="wp-caption aligncenter" id="attachment_1980"><img alt="Raw Code for the Layout" class="wp-image-1980" decoding="async" height="861" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/02/chrome_ITKmJmIDsA.png" width="500"/><figcaption class="wp-caption-text" id="caption-attachment-1980">Raw Code for the Layout</figcaption></figure>
<p>For the docker icon, just change the icon in the properties tag to mdi:docker. Now you can sit back and marvel at your efforts!</p>
<p><img alt="" class="aligncenter wp-image-1987" decoding="async" height="232" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/02/tenor.gif" width="232"/></p>
<p>Now I’ve only dipped my toe into what can be possible with dockermon. Full credit to Phil Hawthorne for setting up the repo in Github and actually putting this all together. I am sure there will be other components that will make it easier to pull in the information, but for now I am happy to stop there. I can monitor and control the containers, and things are relatively simple and neatly laid out.</p>
<p>Check out Phil’s <a href="https://philhawthorne.com/homeautomation/">blog</a> for more cool stuff.</p>

<p>If you have any good ideas or additions for Docker, let me know in the comments, or if you have anything cool that you’re working on, think about joining our facebook group to share your inspiration.</p>
<p><a href="https://www.facebook.com/groups/386238285944105">https://www.facebook.com/groups/386238285944105</a></p>

<p>If you’re considering a renovation and looking at the structured wiring side of things, or maybe you just want to support the blog, have a look below at my smarthome <a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored">book</a>, it’s available in all the usual places (including paperback)!</p>

<figure aria-describedby="caption-attachment-764" class="wp-caption aligncenter" id="attachment_764"><a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored"><img alt="The Smarthome Book" class="size-large wp-image-764" decoding="async" height="490" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2020/04/ARCHITECT-TABLE.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-764">The Smarthome Book</figcaption></figure>
]]></content:encoded>
      <media:content url="https://www.thesmarthomebook.com/wp-content/uploads/2022/02/Artboard-1-1.png" medium="image" />
    </item>
    <item>
      <title>Violet SmartSwitch Lite: Home-Assistant &amp; Node-red Integration</title>
      <link>https://www.thesmarthomebook.com/2022/02/01/violet-smartswitch-lite-home-assistant-node-red-integration/</link>
      <guid isPermaLink="false">https://www.thesmarthomebook.com/?p=1944</guid>
      <pubDate>Tue, 01 Feb 2022 05:30:53 GMT</pubDate>
      <dc:creator><![CDATA[Andrew Howe]]></dc:creator>
      <category><![CDATA[computing]]></category><category><![CDATA[hardware]]></category><category><![CDATA[Home Automation]]></category><category><![CDATA[home-assistant]]></category><category><![CDATA[IOT]]></category><category><![CDATA[node-red]]></category><category><![CDATA[server]]></category><category><![CDATA[software]]></category><category><![CDATA[get]]></category><category><![CDATA[home-assistant]]></category><category><![CDATA[http]]></category><category><![CDATA[httpviasd]]></category>
      <description><![CDATA[So a couple of days ago, Ryan from Violet reached out to me to let me know that the main feature that I was waiting for on their smart switch had been released and was out in the wild. It was now possible to integrate …]]></description>
      <content:encoded><![CDATA[<p>So a couple of days ago, Ryan from Violet reached out to me to let me know that the main feature that I was waiting for on their smart switch had been released and was out in the wild. It was now possible to integrate http requests on their panel. For me this meant integration directly into Node-red, Home-Assistant and I was no longer limited to just their Sonos and Hue integrations (which work flawlessly by the way).</p>
<p>During our correspondence I learnt that this wasn’t the only development happening over at Violet HQ. Read on for a quick update.</p>
<h2>Model Revision</h2>
<p>Violet have subsequently revised their SmartSwitch Lite with a newer variant which is not only 7mm thinner but also packs new features (As I don’t have this newer model yet, I’ve taken these directly from their product release):</p>
<figure aria-describedby="caption-attachment-1969" class="wp-caption aligncenter" id="attachment_1969"><img alt="Violet Smartswitch Lite new slimmer design" class="size-large wp-image-1969" decoding="async" height="515" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/02/IMG_1113_DCDCDC_3024x3024_V2-Jan-20-2022-08-48-21-14-AM.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1969">Violet Smartswitch Lite new slimmer design</figcaption></figure>
<figure aria-describedby="caption-attachment-1968" class="wp-caption aligncenter" id="attachment_1968"><img alt="Violet's New Scene Tiles" class="wp-image-1968 size-large" decoding="async" height="924" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/02/violet-scene.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1968">Violet’s New Scene Tiles</figcaption></figure>
<p>○ The new device supports both 100-240 V AC and 12-30V DC which means it can either replace a traditional light switch or an existing “smart keypad” powered by extra low voltage wire</p>
<p>○ Via WiFi, SmartSwitch Lite connects with Philips Hue &amp; Sonos out of the box and, for advanced users, almost any other system that uses HTTP requests. This provides access to services like Home Assistant, IFTTT and many more, with more out-the-box integrations on the way.</p>
<p>○ Simply double tap the screen to play/pause audio or hold it to turn the lights on and off, all without waking it. If more control is required, a single tap wakes the screen and displays the sleek interface allowing simple scene recall and audio adjustment.</p>
<h2>HTTP integration: Node-red</h2>
<p>This was the main thing I had been waiting for. Whilst I use Sonos, I don’t really use Philips Hue and wanted a way to make A better use of the Panel. This is Violet’s first release of this additional software. It’s been working well, but it took me a while to get my head around the HTTP protocol. I needed to overcome various endpoint and authorisation issues. I’ll walk you through how to get yours working.</p>
<p>Ryan did mention that as of now, the only way to configure this is to load a requests.yaml file on to a microSD card and load the integration from there. They plan on allowing SSH/SFTP access at some point to allow for easier configuration, but as of now, this is the only way. At least for you with this tutorial, you should only have to do this once. I can’t tell you how many times I had to pull and re-insert the microSD card back in whilst troubleshooting! I want to point out that the majority of this was down to my inexperience with HTTP protocols as opposed to any issues with the switch.</p>
<p>Their initial configuration page and http example is <a href="https://support.violet-ultra.co.uk/hc/en-gb/articles/4415890370577">here</a> if you are experienced and want to get straight into it. If not, read on and you can see how I did it step by step.</p>
<h3>HTTPviaSD Configuration</h3>
<p>I formatted a microSD card for FAT32 (usung <a href="https://rufus.ie">Rufus</a>) and created a file using notepad called requests.yml on the root directory.</p>
<p>I have created 4 buttons or “scenes” and have set them up and labelled them accordingly. Remember to change the IP address to your Node-red installation and also add change your username and password accordingly. My node-red installation is an add-on under Home-Assistant Supervised, so the username and password is my Home-Assistant user:password. If you’re running Node-red in it’s own container or VM then potentially you might not need the ‘user:password@’ bit so you can remove if necessary.</p>
<blockquote>
<hr/>
<p><strong>version: 1.0</strong><br/>
<strong>scenes:</strong><br/>
<strong>  id1:</strong><br/>
<strong>    label: Tasmota 1</strong><br/>
<strong>    label2: Lounge Lights</strong><br/>
<strong>    request:</strong><br/>
<strong>      uri: http://user:password@192.168.2.42:1880/endpoint/violet</strong><br/>
<strong>      method: POST</strong><br/>
<strong>      headers:</strong><br/>
<strong>        Content-Type: application/json</strong><br/>
<strong>      body: ‘{ “key”: “1” }’</strong><br/>
<strong>  id2:</strong><br/>
<strong>    label: Tasmota 2</strong><br/>
<strong>    label2: Lounge TV</strong><br/>
<strong>    request:</strong><br/>
<strong>      uri: http://user:password@192.168.2.42:1880/endpoint/violet</strong><br/>
<strong>      method: POST</strong><br/>
<strong>      headers:</strong><br/>
<strong>        Content-Type: application/json</strong><br/>
<strong>      body: ‘{ “key”: “2” }’</strong><br/>
<strong>  id3:</strong><br/>
<strong>    label: Tasmota 3</strong><br/>
<strong>    label2: Denon Amplifier</strong><br/>
<strong>    request:</strong><br/>
<strong>      uri: http://user:password@192.168.2.42:1880/endpoint/violet</strong><br/>
<strong>      method: POST</strong><br/>
<strong>      headers:</strong><br/>
<strong>        Content-Type: application/json</strong><br/>
<strong>      body: ‘{ “key”: “3” }’</strong><br/>
<strong>  id4:</strong><br/>
<strong>    label: Tasmota 4</strong><br/>
<strong>    label2: Nvidia Shield</strong><br/>
<strong>    request:</strong><br/>
<strong>      uri: http://user:password@192.168.2.42:1880/endpoint/violet</strong><br/>
<strong>      method: POST</strong><br/>
<strong>      headers:</strong><br/>
<strong>        Content-Type: application/json</strong><br/>
<strong>      body: ‘{ “key”: “4” }’</strong></p></blockquote>
<p>Once saved, I then popped the microSD card into the Smartswitch Lite and went to the integrations screen. From here it was a case, of going through the following steps (I was initially on firmware 1.6.0-rc.3).</p>
<blockquote><p><strong>Settings =&gt; Integrations =&gt; Add Integration =&gt; HTTPviaSD</strong></p></blockquote>
<p>Then with the SD card installed, you click on Load File.</p>
<figure aria-describedby="caption-attachment-1965" class="wp-caption aligncenter" id="attachment_1965"><img alt="Adding the HTTP integration" class="wp-image-1965 size-large" decoding="async" height="750" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/02/IMG_20220201_100908.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1965">Adding the HTTP integration</figcaption></figure>
<p>If everything has worked as plan (your card is in FAT32, the yaml has been correctly spaced) you should be able to proceed further. If you see a screen mentioning parsing, then it means your yaml has been incorrectly formatted so you’ll need to go back to the file and play with it again. Yaml is extremely sensitive to an extra or missing space.</p>
<p>If all has worked ok, click Go There and you’ll find yourselves in the Scenes Screen. Now it’s just a case of Add Buttons. I highlighted the buttons/scenes I wanted to add, leaving them with a tick and then pressed the tick on the top right to proceed. At this point, I then came out to the main menu where I was met with the 4 new scene tiles. So far so good. Now time to configure Node-red. Here’s an overview of the flow I created.</p>
<figure aria-describedby="caption-attachment-1950" class="wp-caption aligncenter" id="attachment_1950"><img alt="Complete 4 Scene Flow" class="size-full wp-image-1950" decoding="async" height="353" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/01/chrome_Rk7YKIfKLh.png" width="695"/><figcaption class="wp-caption-text" id="caption-attachment-1950">Complete 4 Scene Flow</figcaption></figure>
<p>I wanted to use my trusty Sonoff 4CHPRO3 as my test mule for this. If you’re a tinkerer and don’t have one, get one! It sits on my desk and with 4 outputs it’s the perfect item to test various automations on. I’ve already created a post on it <a href="https://www.thesmarthomebook.com/2020/12/28/integrating-the-4-channel-sonoff-r3-pro-into-home-assistant-and-node-red/">here</a> including various integrations. You can pick one up from the link below (affiliate link, won’t cost you anything but helps to support the blog):</p>
<figure aria-describedby="caption-attachment-1179" class="wp-caption aligncenter" id="attachment_1179"><a href="https://s.click.aliexpress.com/e/_9RCxAT" rel="noopener sponsored"><img alt="Sonoff R3 Pro" class="wp-image-1179 size-full" decoding="async" height="495" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2020/12/sonoff-R3-Pro.png" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-1179">Sonoff R3 Pro</figcaption></figure>
<p><a href="https://s.click.aliexpress.com/e/_9RCxAT" rel="noopener sponsored">Aliexpress</a></p>
<p><a href="https://amzn.to/3H2j0r4" rel="noopener sponsored">Amazon</a></p>
<p>First we need to create an HTTP in node, through testing, I also added an HTTP response node, which i don’t think is entirely necessary for this flow now, but I’ve left it in through habit.</p>
<figure aria-describedby="caption-attachment-1945" class="wp-caption aligncenter" id="attachment_1945"><img alt="HTTP IN Node" class="size-full wp-image-1945" decoding="async" height="412" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/01/chrome_65ORy1ePWM.png" width="546"/><figcaption class="wp-caption-text" id="caption-attachment-1945">HTTP IN Node</figcaption></figure>
<figure aria-describedby="caption-attachment-1946" class="wp-caption aligncenter" id="attachment_1946"><img alt="HTTP Response Node" class="size-full wp-image-1946" decoding="async" height="318" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/01/chrome_CUIkPNsF4r.png" width="551"/><figcaption class="wp-caption-text" id="caption-attachment-1946">HTTP Response Node</figcaption></figure>
<p>It’s also a good idea to set up a debug node, so you can see exactly what’s coming in through the HTTP request.</p>
<figure aria-describedby="caption-attachment-1947" class="wp-caption aligncenter" id="attachment_1947"><img alt="Incoming HTTP Debug" class="size-full wp-image-1947" decoding="async" height="297" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/01/chrome_GvKaOVkF8u.png" width="343"/><figcaption class="wp-caption-text" id="caption-attachment-1947">Incoming HTTP Debug</figcaption></figure>
<p>Once I could see that the msg.payload.key variable was being passed through, I then set up a switch node and directed the flow according to the incoming payload.key (be sure to match the Property to the .key bit otherwise it won’t work).</p>
<figure aria-describedby="caption-attachment-1948" class="wp-caption aligncenter" id="attachment_1948"><img alt="Switch Node for 4 Scenes" class="size-full wp-image-1948" decoding="async" height="487" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/01/chrome_IRKfJeWYrT.png" width="548"/><figcaption class="wp-caption-text" id="caption-attachment-1948">Switch Node for 4 Scenes</figcaption></figure>
<p>It was then a case of just deciding what to do with it. Here I just linked it to the Sonoff 4ChPRO 3 outputs. At this moment in time I am using the toggle service call, as it doesn’t make sense to have one button for on and another for off. At least on the test bench. Deploy the flow and test your scenes. If you’ve followed the above you should have a fully working integration.</p>
<figure aria-describedby="caption-attachment-1951" class="wp-caption aligncenter" id="attachment_1951"><img alt="4 Scenes up and running" class="wp-image-1951" decoding="async" height="422" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/01/IMG_20220125_120740__01__01-scaled.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1951">4 Scenes up and running</figcaption></figure>
<p>Now for some of you,  this will be a walk in the park and you’ll be injecting your own JSON and creating reams of code directly on the panel. Personally, I prefer to do it all in Node-red and that means keeping this part simple.</p>
<h2></h2>
<h2>HTTP integration: Home-Assistant</h2>
<p>For those of you that don’t use Node-red and prefer to keep things purely in Home-Assistant, dont’ worry I’ve got you covered. I’ll show you some examples of how to use the panel to contol HA directly.</p>
<p>Firstly, we need to make sure that we have some things set up in Home-Assistant. Go to your configuration.yaml and make sure you add the following (if you haven’t got it already), and restart your server.</p>
<blockquote><p><strong>api:</strong></p></blockquote>
<p>Next we need to go to automations and create a webhook. This can be named whatever you want. Just be sure to remember what naming convention you’ve used, as we’ll need it to build out the link in the requests.yaml file we’ll be using to upload into the panel. See the Trigger section below for the creation.</p>
<figure aria-describedby="caption-attachment-1957" class="wp-caption aligncenter" id="attachment_1957"><img alt="Create your webhook" class="wp-image-1957" decoding="async" height="596" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/01/chrome_0m2AGPUyPF.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1957">Create your webhook</figcaption></figure>
<p>Now choose what action you will want the panel to trigger. In this example, I’ll have it turn on my Elgato key light air.</p>
<figure aria-describedby="caption-attachment-1958" class="wp-caption aligncenter" id="attachment_1958"><img alt="Select Your Action" class="wp-image-1958" decoding="async" height="451" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/01/chrome_DpAqtJEPYg.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1958">Select Your Action</figcaption></figure>
<p>Save your automation. Now we need to test it, making sure the webhook is up and running. I suggest you go to a terminal window and try and curl the request.</p>
<p>If all goes well, you should have no error messages, and your action should complete successfully (in my case, the Elgato Key Light Air switched on).</p>
<figure aria-describedby="caption-attachment-1960" class="wp-caption aligncenter" id="attachment_1960"><img alt="curl command" class="wp-image-1960" decoding="async" height="93" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/01/testing-curl-command.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1960">curl command</figcaption></figure>
<p>So far so good? Now that we’ve verified that the webhook works (at least locally anyway), we now need to get this onto the microSD card and uploaded into the panel.</p>
<p>I created another four different webhooks for me to play with, and uploaded them as follows. I didn’t need to supply user:password@server here, so just went with the below:</p>
<blockquote>
<div>
<div>  <strong>id5:</strong></div>
<div><strong>    label: HA Webhook 1</strong></div>
<div><strong>    label2: elgato key light</strong></div>
<div><strong>    request:</strong></div>
<div><strong>      uri: http://192.168.2.42:8123/api/webhook/violet</strong></div>
<div><strong>      method: POST</strong></div>
<div><strong>      headers:</strong></div>
<div><strong>        Content-Type: application/json</strong></div>
<div><strong>      body: ‘{ “key”: “5” }’</strong></div>
<div><strong>  id6:</strong></div>
<div><strong>    label: HA Webhook 2</strong></div>
<div><strong>    label2: Office light</strong></div>
<div><strong>    request:</strong></div>
<div><strong>      uri: http://192.168.2.42:8123/api/webhook/violet1</strong></div>
<div><strong>      method: POST</strong></div>
<div><strong>      headers:</strong></div>
<div><strong>        Content-Type: application/json</strong></div>
<div><strong>      body: ‘{ “key”: “6” }’</strong></div>
<div><strong>  id7:</strong></div>
<div><strong>    label: HA Webhook 3</strong></div>
<div><strong>    label2: Streamlight</strong></div>
<div><strong>    request:</strong></div>
<div><strong>      uri: http://192.168.2.42:8123/api/webhook/violet2</strong></div>
<div><strong>      method: POST</strong></div>
<div><strong>      headers:</strong></div>
<div><strong>        Content-Type: application/json</strong></div>
<div><strong>      body: ‘{ “key”: “7” }’</strong></div>
<div><strong>  id8:</strong></div>
<div><strong>    label: HA Webhook 4</strong></div>
<div><strong>    label2: Notifications to phone</strong></div>
<div><strong>    request:</strong></div>
<div><strong>      uri: http://192.168.2.42:8123/api/webhook/violet3</strong></div>
<div><strong>      method: POST</strong></div>
<div><strong>      headers:</strong></div>
<div><strong>        Content-Type: application/json</strong></div>
<div><strong>      body: ‘{ “key”: “8” }’</strong></div>
</div>
</blockquote>
<div>
<div>As you can see, they’re virtually the same as using Node-red, but with just a slight difference in the URI. I saved this directly underneath my Node-red yaml in the requests file on the microSD card (if you’re going fresh, remember to include the ‘version info’ header from the previous part). I uploaded the file as per the procedures we’ve already covered and within a minute I now had an additional 4 tiles on my screen. This was the maximum I could use currently.</div>
<div>Given that I will be using the tiles to control flows and not individually controlled components (testing aside), I’m happy with that. I don’t need more than 8 at this moment in time. Again, pay no attention to the quality of the screen below there, it’s been taken with a phone so the quality is not representative of the rich inky blank screen.</div>
</div>
<div></div>
<div>
<figure aria-describedby="caption-attachment-1964" class="wp-caption aligncenter" id="attachment_1964"><img alt="All 8 Tiles Populated" class="wp-image-1964 size-large" decoding="async" height="750" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/02/IMG_20220201_100950__01__01.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1964">All 8 Tiles Populated</figcaption></figure>
</div>
<div></div>
<div>There were a couple of issues with the screen locking up but a quick firmware update to 1.70 addressed that and the panel has been working flawlessly ever since. It’s very responsive with my sonoff relays clicking on and off like Jessica Fletcher after a triple espresso!</div>
<div>All in all, am really happy with the way it turned out. My panel is even more useful to me now than it was previously. There was some teasong of further integrations to come, but for now, Violet are keeping their cards close to their chest.</div>
<div></div>
<h2>Violet: Investment Seed Round</h2>
<div>The other bit of news that Ryan wanted to share was that Violet are currently looking to undergo a capital raise and wil be looking for possible investment starting in February. You can read more about that <a href="https://violet-ultra.co.uk/investment-seed-round">here</a>.</div>
<div><a href="https://violet-ultra.co.uk/investment-seed-round">https://violet-ultra.co.uk/investment-seed-round</a></div>
<div>As this is not a financial blog, I’ll just link to it here for your perusal.</div>
<div></div>
<h2>In Summary</h2>
<div>So there we have it, this was the final missing piece of the puzzle for me. I’m looking forward to what other intergrations the team can sign up and incorporate, but the fact that I can now use Node-red or Home-Assistant natively on the panel means that, frankly speaking, I don’t need anyone else, I can control pretty much whatever I want right now. I am sure the custom side will only get easier from here.</div>
<div>Let me know in the comments if you’ve got one or are considering getting one, I’d be interested in your feedback.</div>
<div></div>
<div>
<p>We’ve got a facebook group if you’re interested in sharing what you’re currently working on. You can find us here:</p>
<p><a href="https://www.facebook.com/groups/386238285944105">https://www.facebook.com/groups/386238285944105</a></p>
<p>If you’re considering a renovation and looking at the structured wiring side of things, or maybe you just want to just support the blog, have a look below at my smarthome <a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored">book</a>, it’s available in all the usual places (including paperback)!</p>
</div>
<div>
<figure aria-describedby="caption-attachment-764" class="wp-caption aligncenter" id="attachment_764"><a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored"><img alt="The Smarthome Book" class="wp-image-764" decoding="async" height="491" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2020/04/ARCHITECT-TABLE.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-764">The Smarthome Book</figcaption></figure>
</div>
<div></div>
]]></content:encoded>
      <media:content url="https://www.thesmarthomebook.com/wp-content/uploads/2022/02/Artboard-1.png" medium="image" />
    </item>
    <item>
      <title>Control Your Home with a Stream Deck</title>
      <link>https://www.thesmarthomebook.com/2022/01/24/control-your-home-with-a-stream-deck/</link>
      <guid isPermaLink="false">https://www.thesmarthomebook.com/?p=1923</guid>
      <pubDate>Mon, 24 Jan 2022 06:53:19 GMT</pubDate>
      <dc:creator><![CDATA[Andrew Howe]]></dc:creator>
      <category><![CDATA[computing]]></category><category><![CDATA[Home Automation]]></category><category><![CDATA[home-assistant]]></category><category><![CDATA[IOT]]></category><category><![CDATA[node-red]]></category><category><![CDATA[server]]></category><category><![CDATA[software]]></category><category><![CDATA[switchbot]]></category><category><![CDATA[XIAOMI]]></category><category><![CDATA[corsair]]></category><category><![CDATA[elgato]]></category><category><![CDATA[home-assistant]]></category>
      <description><![CDATA[So following on from a previous post showing you how to utilise an Elgato Stream Deck in your home automation, I’ve recently been alerted to a new Stream Deck integration which has simplified everything. In the past, I’ve showed you…]]></description>
      <content:encoded><![CDATA[<p>So following on from a previous <a href="https://www.thesmarthomebook.com/2020/08/28/controlling-home-assistant-entities-with-your-elgato-stream-deck/">post</a> showing you how to utilise an Elgato Stream Deck in your home automation, I’ve recently been alerted to a new Stream Deck integration which has simplified everything.</p>
<p>In the past, I’ve showed you various ways of integrating the Stream Deck. We covered websocket calls connecting via Node-red, as well as http requests connecting to tasmota devices directly. Well I’ve found a new way. Using the <a href="https://github.com/cgiesche/streamdeck-homeassistant">plugin</a> streamdeck-homeassistant we’re able to configure everything simply and easily. Not only can we use the buttons to fire events in Home-Assistant, but we can also use the buttons themselves to display various sensor readings. For example, temperature, battery levels, exchange rates. If you can measure it, you can display it!</p>
<p>This won’t take long at all, so let’s get started.</p>
<h3>Installation</h3>
<p>Obviously, you’re going to need a Stream Deck! You can pick up one here from <a href="https://amzn.to/3G0iM25" rel="noopener sponsored">Amazon </a>(affiliate link, it will cost you nothing, but may help to support the blog if you purchase from here).</p>
<p>First ensure you running the latest version of the Elgato Stream Deck <a href="https://www.elgato.com/en/downloads">software</a>. At the time of writing, I’m on 5.1.4.14753.</p>
<figure aria-describedby="caption-attachment-1931" class="wp-caption aligncenter" id="attachment_1931"><img alt="Streamdeck software" class="size-full wp-image-1931" decoding="async" height="432" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/01/version.png" width="642"/><figcaption class="wp-caption-text" id="caption-attachment-1931">Streamdeck software</figcaption></figure>
<p>Next go and download the latest release of streamdeck-homeassistant from <a href="https://github.com/cgiesche/streamdeck-homeassistant">here</a>, I’m using release 1.5.3.</p>
<p>Once downloaded, double click the file and install it. It should populate your streamdeck with a familiar looking icon!</p>
<figure aria-describedby="caption-attachment-1924" class="wp-caption aligncenter" id="attachment_1924"><img alt="Streamdeck Plugins" class="size-full wp-image-1924" decoding="async" height="782" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/01/chrome_i01EJhwMQB.png" width="295"/><figcaption class="wp-caption-text" id="caption-attachment-1924">Streamdeck Plugins</figcaption></figure>
<p>Drag an ‘entity’ button on to the main pad to configure. Configuration is very easy. Firstly, you need to enter your Home-Assistant url. The app gives you an example, but i’ll put it here for ease.</p>
<blockquote><p><strong>ws://your.ha.ip.address:8123/api/websocket</strong></p></blockquote>
<p>Next scroll down to the Access-Token. Here we need to go into our Home-Assistant install and create a long-lived token. To do this, click on your user icon at the bottom of the sidebar in Home-Assistant. Then scroll down until you get to the “Long-Lived Access Tokens”</p>
<figure aria-describedby="caption-attachment-1927" class="wp-caption aligncenter" id="attachment_1927"><img alt="Long-Lived Token Creation" class="size-full wp-image-1927" decoding="async" height="206" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/01/chrome_Y8ju2Fg4oF.png" width="596"/><figcaption class="wp-caption-text" id="caption-attachment-1927">Long-Lived Token Creation</figcaption></figure>
<p>Create a token and copy it. Make sure you copy it correctly you’ll only get it displayed once. (Don’t worry if you mess it up, you can delete the token and re-create a new one as you need). Paste it into the Stream Deck configuration.</p>
<figure aria-describedby="caption-attachment-1929" class="wp-caption aligncenter" id="attachment_1929"><img alt="Entering your token" class="size-full wp-image-1929" decoding="async" height="282" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/01/StreamDeck_BDyEeeOeER.png" width="561"/><figcaption class="wp-caption-text" id="caption-attachment-1929">Entering your token</figcaption></figure>
<p>Hit Save and (re)connect.</p>
<p>Now if all has gone well, if you scroll down further you should be greeted with a familiar set of entity settings.<br/>
Domain, entity, service etc. Note that the options will change according to the entity you’re trying to configure, but rest assured you’ll have the full complement of options that you would normally have in any Home-Assistant service call.</p>
<h3>Working Examples</h3>
<p>In my office, I have a smart plug connected to a lamp. The smart plug is a blitzwolf SHP5 with independently controlled USB outlets. It’s been flashed with <a href="https://tasmota.github.io/">Tasmota</a>, you can read about it <a href="https://www.thesmarthomebook.com/2020/02/06/controlling-a-blitzwolf-shp5-with-tasmota-home-assistant-node-red/">here</a>. It’s unimaginatively called “office” !</p>
<p><strong>Domain = switch</strong><br/>
<strong>Entity = office</strong><br/>
<strong>Service = toggle</strong><br/>
(save entity config).</p>
<p>Next, I have a SwitchBot that I am using to manually control a video light that I use as a higher end Streamlight. You can read about how I set that up <a href="https://www.thesmarthomebook.com/2021/09/17/the-switchbot-bot-create-your-own-streamlight/">here</a>. The SwitchBot entity can be found either under the domain switch or homeassistant.</p>
<p><strong>Domain = homeassistant</strong><br/>
<strong>Entity = streamlight</strong><br/>
<strong>Service = turn_on</strong><br/>
(save entity config)</p>
<p>Note here that “toggle” didn’t work. Depending on how you have your SwitchBot configured, you can either have it as a momentary press (as I have here) or as an On/Off configuration. For the momentary press, you just need turn_on (it acts as a toggle anyway). Obviously, if you’re using turn on and turn off, then you’ll need to set that up accordingly in the services.</p>
<p>Now let’s look at the sensors. I’m a huge fan of the <a href="https://www.thesmarthomebook.com/2020/04/30/sensory-overload-what-does-it-cost-to-kit-out-a-three-bedroom-home-with-sensors-and-switches-on-a-budget/">Xiaomi Aqara zigbee sensors</a>. So much so I’ve written several posts on them, including a two year review <a href="https://www.thesmarthomebook.com/2020/12/04/xiaomi-aqara-2-year-review/">here</a>. In order to grab the bedroom temperature, I set up the following:</p>
<p><strong>Domain = sensor</strong><br/>
<strong>Entity = long…string_temperature</strong><br/>
There’s no “Service” to configure here as it’s incoming sensor data.</p>
<p>And finally, let’s have a look at Bitcoin!</p>
<p><strong>Domain = homeassistant</strong><br/>
<strong>Entity = btc_exchange_rate</strong><br/>
You’ll need this sensor set up in Home-Assistant if you’re looking to pull it in here. I go via the coinbase integration which you can configure <a href="https://www.home-assistant.io/integrations/coinbase/">here</a>.</p>
<figure aria-describedby="caption-attachment-1928" class="wp-caption aligncenter" id="attachment_1928"><img alt="Streamdeck Layout" class="size-full wp-image-1928" decoding="async" height="314" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/01/StreamDeck_6M4gwiRYuZ.png" width="518"/><figcaption class="wp-caption-text" id="caption-attachment-1928">Streamdeck Layout</figcaption></figure>
<p>For those of you that prefer to work with everything in Node-red, as of now there are two ways to do this. Firstly you can continue using the websocket method I wrote about <a href="https://www.thesmarthomebook.com/2021/05/12/control-your-smarthome-using-keyboard-shortcuts-with-home-assistant-node-red/">here</a> or the other way is to use the entity node in the Home-Assistant palette for Node-red. You can essentially create a dummy switch, and expose it to HA which in turn will be picked up immediately by the Stream Deck. Just be sure to click the ‘output on state change’ button in the node.</p>
<figure aria-describedby="caption-attachment-1926" class="wp-caption aligncenter" id="attachment_1926"><img alt="The Entity Node in Node-red" class="size-full wp-image-1926" decoding="async" height="275" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/01/chrome_VnznzJj2l0.png" width="576"/><figcaption class="wp-caption-text" id="caption-attachment-1926">The Entity Node in Node-red</figcaption></figure>
<figure aria-describedby="caption-attachment-1925" class="wp-caption aligncenter" id="attachment_1925"><img alt="The Entity Node in Node-red" class="size-full wp-image-1925" decoding="async" height="563" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/01/chrome_rVq2SwN8Qm.png" width="541"/><figcaption class="wp-caption-text" id="caption-attachment-1925">The Entity Node in Node-red</figcaption></figure>
<p>For those of you looking to learn more, including animated icons then have a look here. It was this channel that initially alerted me to the plugin. There are lots of other interesting videos there, so I suggest you give them a follow (I’m unrelated).</p>
<div class="jetpack-video-wrapper"><span class="embed-youtube" style="text-align:center; display: block;"><iframe allowfullscreen="true" class="youtube-player" height="422" loading="lazy" sandbox="allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox" src="https://www.youtube.com/embed/dJLQXTMVmFg?version=3&amp;rel=1&amp;showsearch=0&amp;showinfo=1&amp;iv_load_policy=1&amp;fs=1&amp;hl=en-GB&amp;autohide=2&amp;wmode=transparent" style="border:0;" width="750"></iframe></span></div>
<h3>Summary</h3>
<p>So I’ve been playing with this new setup for a few days already, and it hasn’t skipped a beat yet. It’s extremely responsive and I love the fact it can display sensors as needed. When streaming, I use a mix of lighting, so having the ability to create a nested action where with one button I can effectively turn on my Elgato Keylight Air, as well as my home made (SwitchBot) Video light and launch OBS Studio, Restream etc, is really handy. The only issue I have with my Stream Deck, is that I only have 15 buttons!</p>

<p>If you have any good ideas for your Stream Deck, let me know in the commnents, or if you have anything cool that you’re working on, think about joining our facebook group to share your inspiration.</p>
<p><a href="https://www.facebook.com/groups/386238285944105">https://www.facebook.com/groups/386238285944105</a></p>
<p>If you’re considering a renovation and looking at the structured wiring side of things, or maybe you just want to support the blog, have a look below at my smarthome <a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored">book</a>, it’s available in all the usual places (including paperback)!</p>

<figure aria-describedby="caption-attachment-1084" class="wp-caption aligncenter" id="attachment_1084"><a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored"><img alt="Considering a Renovation? Maybe this will save you money!" class="wp-image-1084 size-large" decoding="async" height="544" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2020/12/ebook-screws-1024x743.png" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-1084">Considering a Renovation? Maybe this will save you money!</figcaption></figure>
]]></content:encoded>
      <media:content url="https://www.thesmarthomebook.com/wp-content/uploads/2022/01/Artboard-1-1.png" medium="image" />
    </item>
    <item>
      <title>Set up Plex Server with Docker Compose</title>
      <link>https://www.thesmarthomebook.com/2022/01/18/set-up-plex-server-with-docker-compose/</link>
      <guid isPermaLink="false">https://www.thesmarthomebook.com/?p=1913</guid>
      <pubDate>Tue, 18 Jan 2022 11:37:24 GMT</pubDate>
      <dc:creator><![CDATA[Andrew Howe]]></dc:creator>
      <category><![CDATA[Uncategorized]]></category><category><![CDATA[beelink]]></category><category><![CDATA[claim]]></category><category><![CDATA[compose]]></category><category><![CDATA[docker]]></category><category><![CDATA[media]]></category><category><![CDATA[plex]]></category><category><![CDATA[portainer]]></category><category><![CDATA[server]]></category><category><![CDATA[tailscale]]></category><category><![CDATA[token]]></category>
      <description><![CDATA[So continuing with my Proxmox / docker journey, I decided it was time to fire up Plex and get some kind of media server up and running. Whilst searching through various Plex articles I found that whilst there was plenty of documentation…]]></description>
      <content:encoded><![CDATA[<p>So continuing with my Proxmox / docker journey, I decided it was time to fire up Plex and get some kind of media server up and running. Whilst searching through various Plex articles I found that whilst there was plenty of documentation about how to get it up and running, there were very few methods using compose. I am a fan of docker compose and using stacks on Portainer. Personally, I find them easier to manage.</p>
<p>In this article I’ll take you through a quick docker compose set up of Plex, including getting the appropriate token and how to configure it using Portainer, sitting on Proxmox. (I know there are LXC’s out there already, but I’m a fan of docker, and prefer to work with it. I can use both in Proxmox, so see no issue here before you flame me in the comments :)).</p>
<p>For those interested, I’m currently running all of this on my beelink GK mini, which continues to perform like a champion. This server will be direct access play only, so I don’t have any concerns about needing to transcode.</p>
<h3>Compose</h3>
<p>The image I’ll be using is <a href="https://github.com/plexinc/pms-docker">plexinc/pms-docker</a>. Below is the compose file I’m using.</p>
<blockquote><p><strong>version: ‘3.7’</strong><br/>
<strong>services:</strong></p>
<p><strong>  plex:</strong><br/>
<strong>    image: plexinc/pms-docker</strong><br/>
<strong>    restart: unless-stopped</strong><br/>
<strong>    container_name: plexms</strong><br/>
<strong>    ports:</strong><br/>
<strong>      – “32400:32400/tcp”</strong><br/>
<strong>      – “3005:3005/tcp”</strong><br/>
<strong>      – “8324:8324/tcp”</strong><br/>
<strong>      – “32469:32469/tcp”</strong><br/>
<strong>      – “1900:1900/udp”</strong><br/>
<strong>      – “32410:32410/udp”</strong><br/>
<strong>      – “32412:32412/udp”</strong><br/>
<strong>      – “32413:32413/udp”</strong><br/>
<strong>      – “32414:32414/udp”</strong></p>
<p><strong>    environment:</strong><br/>
<strong>      – PUID=${PUID}</strong><br/>
<strong>      – PGID=${PGID}</strong><br/>
<strong>      – TZ=Europe/London</strong><br/>
<strong>      – PLEX_CLAIM=claim-&lt;your-string&gt;</strong><br/>
<strong>      – HOSTNAME=”PlexServer”</strong></p>
<p><strong>    volumes:</strong><br/>
<strong>      – ${USERDIR}/docker/plexms/config:/config</strong><br/>
<strong>      – ${USERDIR}/docker/plexms/transcodes:/transcode</strong><br/>
<strong>      – ${USERDIR}/docker/plexms/media:/media</strong></p></blockquote>
<p>If you’re familiar with Portainer, most of this would seem pretty self explanatory. The only things that might seem different to other compose files is the number of ports that you need to define for Plex to work properly, as well as the “PLEX_CLAIM” entry.</p>
<figure aria-describedby="caption-attachment-1914" class="wp-caption aligncenter" id="attachment_1914"><img alt="Portainer Plex Stack" class="size-large wp-image-1914" decoding="async" height="962" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/01/chrome_msko6eGcPz-798x1024.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1914">Portainer Plex Stack</figcaption></figure>
<p>You may notice I am using $(PUID),$(PGID) and $(USERDIR). This is because I have defined those variables in an environmental file (nano /etc/environment). You could easily substitue that with your own PGID and PUID as per the following lines (for example):</p>
<blockquote><p><strong>    </strong>environment:<br/>
<strong>      </strong>– PUID=1000<br/>
<strong>      </strong>– PGID=1000</p>
<p><strong>    </strong>volumes:<br/>
<strong>      </strong>– home/docker/plexms/config:/config</p></blockquote>
<p>You can get your relevant ID’s from running the command id and your username on the command line. For example:</p>
<blockquote><p><strong>id root</strong></p></blockquote>
<p>Obviously, no one would ever use root as the user right? 😉</p>
<figure aria-describedby="caption-attachment-1916" class="wp-caption aligncenter" id="attachment_1916"><img alt="No one uses root, right?" class="size-full wp-image-1916" decoding="async" height="220" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/01/right.gif" width="220"/><figcaption class="wp-caption-text" id="caption-attachment-1916">No one uses root, right?</figcaption></figure>
<h3>Plex Claim</h3>
<p>You need to use the Plex Claim in order to add this server to your plex account. The procedure for getting the actual token you need is as follows</p>
<p>Visit <a href="https://www.plex.tv/claim/">https://www.plex.tv/claim/</a><br/>
If you’ve already logged into Plex on that machine, the Claim Code should just pop right up:</p>
<figure aria-describedby="caption-attachment-1917" class="wp-caption aligncenter" id="attachment_1917"><a href="https://plex.tv/claim"><img alt="This Code will Self Destruct in 4 minutes" class="size-full wp-image-1917" decoding="async" height="504" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/01/chrome_BLl9NLjcKi.png" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-1917">This Code will Self Destruct in 4 minutes</figcaption></figure>
<p>Copy the code in its entirety including the claim- bit at the beginning. You should then just paste the whole variable into the compose file above (inc claim). For example if your Claim Code was claim-t33iotdCjhnBTwD_14PU then input the whole string as follows:</p>
<blockquote><p>environment:<br/>
– PUID=${PUID}<br/>
– PGID=${PGID}<br/>
– TZ=Europe/London<br/>
– PLEX_CLAIM=<span style="color: #ff0000;">claim-t33iotdCjhnBTwD_14PU</span><br/>
– HOSTNAME=”PlexServer”</p></blockquote>
<p>This will essentially add this new Plex server to your Plex account. <strong>Note this claim code changes every 4 minutes</strong>, so if you’re slow out of the gate then you need to get a new code by following the instructions again and changing it in your compose file.</p>
<h3>Creating Your Library</h3>
<p>I also went ahead and created several folders under home/docker/plexms/media (“movies”, “music” and “tvshows”). These become the basis for my media libraries and I will need to populate these. I will probably add an external drive to Proxmox and use that as my file store, but that’s for another tutorial.</p>
<figure aria-describedby="caption-attachment-1918" class="wp-caption aligncenter" id="attachment_1918"><img alt="Setting up the Plex Library" class="size-full wp-image-1918" decoding="async" height="543" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2022/01/chrome_xphE9nXVEl.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1918">Setting up the Plex Library</figcaption></figure>
<p>Now this tutorial isn’t about how to set up Plex, it was just how to get it up and running using Docker-Compose. This particular server will not be used for remote viewing due to bandwidth constraints. If you do wish to remotely view your library or share it with others, have a look below for some additional steps needed to give the server access to the wider web.</p>
<p><a href="https://github.com/plexinc/pms-docker">https://github.com/plexinc/pms-docker</a></p>
<p>Especially pay attention to the <strong>ADVERTISE_IP</strong> variable section.</p>
<p>With that said, I will want the ability to administer the server remotely. There are several ways to achieve this. For me though, the quickest and by easiest is to use Tailscale. If you’re new to Tailscale, you can read more about it <a href="https://www.thesmarthomebook.com/2021/07/24/the-holy-grail-of-networking-tailscale/">here</a>. I already have Tailscale running on my proxmox server from our initial set up, so you can follow the steps <a href="https://www.thesmarthomebook.com/2021/09/21/home-server-installing-docker-portainer-home-assistant-on-proxmox/">here</a>. I’ve essentially joined the networks together. So if my home network is 192.168.1.0/24 and I am sitting on wifi in a coffee shop on LAN 10.10.10.0/24, i can essentially just type 192.168.1.X:32400 and I have remote access to my Plex machine. As long as I have the tailscale daemon running, we’re good. No port forwards necessary and auth is taken care of by <a href="http://github.com">Github</a>.</p>
<h3>Further Reading</h3>
<p>If any of you are using pfSense, then I have an article <a href="https://www.thesmarthomebook.com/2020/04/16/fixing-remote-access-for-plex-in-pfsense/">here</a> which details how I managed to take care of some firewall issues I was having with Plex. You can read more about that here.</p>
<p>If any of you fancy using Plex to help automate your home cinema lighting or triggering projector screens etc, then the webhook function within plex pairs nicely with Node-red. I also published a walk through <a href="https://www.thesmarthomebook.com/2020/05/18/how-to-automatically-switch-lights-on-and-off-with-plex-using-webhooks/">here</a>.</p>
<p>Happy Plexing!</p>

<p>If you have any tips or tricks pop them in the comments below or come over to our facebook group to discuss further.</p>
<p><a href="https://www.facebook.com/groups/386238285944105">https://www.facebook.com/groups/386238285944105</a></p>
<p>If you’re considering a renovation and looking at the structured wiring side of things, or maybe you just want to support the blog, have a look below at my smarthome <a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored">book</a>, it’s available in all the usual places (including paperback)!</p>
<figure aria-describedby="caption-attachment-764" class="wp-caption aligncenter" id="attachment_764"><a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored"><img alt="The Smarthome Book" class="size-large wp-image-764" decoding="async" height="490" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2020/04/ARCHITECT-TABLE-1024x669.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-764">The Smarthome Book</figcaption></figure>
]]></content:encoded>
      <media:content url="https://www.thesmarthomebook.com/wp-content/uploads/2022/01/Artboard-1.png" medium="image" />
    </item>
    <item>
      <title>Stage 2: How to Clean Your Computer &amp; Recover Performance in 2021</title>
      <link>https://www.thesmarthomebook.com/2021/11/15/stage-2-how-to-clean-your-computer-recover-performance-in-2021/</link>
      <guid isPermaLink="false">https://www.thesmarthomebook.com/?p=1888</guid>
      <pubDate>Mon, 15 Nov 2021 09:48:18 GMT</pubDate>
      <dc:creator><![CDATA[Andrew Howe]]></dc:creator>
      <category><![CDATA[chocolatey]]></category><category><![CDATA[computing]]></category><category><![CDATA[Privacy]]></category><category><![CDATA[software]]></category><category><![CDATA[autodelete]]></category><category><![CDATA[bleachbit]]></category><category><![CDATA[chocolatey]]></category><category><![CDATA[clean]]></category><category><![CDATA[cookies]]></category><category><![CDATA[debloat]]></category><category><![CDATA[junkware]]></category><category><![CDATA[maintenance]]></category>
      <description><![CDATA[Ok so following on from Part 1 where I detailed the initial steps you can take to give your workstation or laptop a bit of a spring clean, I wanted to revisit and add the second part to the process. Part 1 has been particularly …]]></description>
      <content:encoded><![CDATA[<p>Ok so following on from <a href="https://www.thesmarthomebook.com/2021/07/16/stage-1-how-to-clean-your-computer-and-recover-performance-in-2021/">Part 1</a> where I detailed the initial steps you can take to give your workstation or laptop a bit of a spring clean, I wanted to revisit and add the second part to the process. Part 1 has been particularly useful for me as when friends and family have asked me about various maintenance of their computers, I’ve been able to just point them to the post and they’ve pretty much been able to take care of things themselves. That said, a few of them wanted to take things a step further, so here we are.</p>
<p>In this post, I want to show you two more tools that I use in my arsenal to give my computer an even deeper clean and to further protect myself against the unecessary fluff and tracking that Microsoft likes to bestow upon you. See below for the usual disclaimer, and let’s get started.</p>
<h2 style="text-align: center;"><strong>I AM NOT RESPONSIBLE FOR ANYTHING YOU DO TO YOUR MACHINE. THIS IS AT YOUR OWN RISK.</strong></h2>
<p><img alt="" class="aligncenter size-full wp-image-1892" decoding="async" height="287" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/11/jack-back.gif" width="636"/></p>
<h2>Part 1: BleachBit</h2>
<p>Hopefully by now you’re all using Chocolatey to maintain the majority of your software packages on your machines. If not, why not? If you are, installing BleachBit is as simple as running the following command (as admin) in Powershell:</p>
<figure aria-describedby="caption-attachment-1900" class="wp-caption aligncenter" id="attachment_1900"><img alt="Installing BleachBit with Chocolatey" class="size-full wp-image-1900" decoding="async" height="302" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/11/powershell_t69jlaCUs3.png" width="642"/><figcaption class="wp-caption-text" id="caption-attachment-1900">Installing BleachBit with Chocolatey</figcaption></figure>
<p>Want to know more about Chocolatey? Check out this post <a href="https://www.thesmarthomebook.com/2020/04/07/install-applications-quickly-and-easily-using-chocolatey/">here</a>. For those of you not wanting to use the most efficient package manager I’ve ever found on Windows and want to go retro, you can go to <a href="https://www.bleachbit.org/">here</a> and download and install it.</p>
<p>The GUI is very simple. Just select what you wish to erradicate and hit the Clean button. If you happen to click on something that will take a long time to remove, the program will warn you.</p>
<figure aria-describedby="caption-attachment-1897" class="wp-caption aligncenter" id="attachment_1897"><img alt="BleachBit: Warning" class="size-full wp-image-1897" decoding="async" height="143" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/11/oqKCWw8m9Z.png" width="333"/><figcaption class="wp-caption-text" id="caption-attachment-1897">BleachBit: Warning</figcaption></figure>
<p>You can uncheck that box and proceed with the quick version, or you can plough ahead and go and grab yourself a coffee/beer whilst it does its thing.</p>
<p>As BleachBit moves forward it will let you know on the sidebar exactly how much space it saved you. Just like <a href="https://www.ccleaner.com › ccleaner">CCleaner</a>, if you wish to see how much space you’ll reclaim before you hit the big red button you can go for the preview button, but normally I go straight for the Clean (Yolo)! You may see some errors appear (they’ll show up red in the scrollable operations list). These are usually file permissioning errors, i.e. you had Google Chrome open whilst you were trying to clear the cookies from it etc. I don’t worry about these. You can either close and retry, or leave it for next time, it’s up to you.</p>
<figure aria-describedby="caption-attachment-1896" class="wp-caption aligncenter" id="attachment_1896"><img alt="BleachBit: Error" class="size-full wp-image-1896" decoding="async" height="177" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/11/chrome_bex6C4PgiX.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1896">BleachBit: Error</figcaption></figure>
<p>BleachBit is very clinical in its approach. It’s task is to free up to space and it does it very well. In fact, I pretty much use BleachBit exclusively now to remove the crap from my system, only using CCleaner if I am trying to uninstall some persistent software installs.</p>
<figure aria-describedby="caption-attachment-1895" class="wp-caption aligncenter" id="attachment_1895"><img alt="BleachBit: Results" class="size-full wp-image-1895" decoding="async" height="438" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/11/bleachbit_a26ylwJEVP.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1895">BleachBit: Results</figcaption></figure>
<p>Only thing to be mindful of here with BleachBit is that you uncheck the passwords out of your browser options on the left. By now you should be using a better password manager than the default browser option, my current favourite is <a href="https://bitwarden.com">Bitwarden</a>, but just a heads up.</p>
<figure aria-describedby="caption-attachment-1894" class="wp-caption aligncenter" id="attachment_1894"><a href="https://bitwarden.com/"><img alt="https://bitwarden.com/" class="wp-image-1894" decoding="async" height="100" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/11/bitwarden-logo.png" width="100"/></a><figcaption class="wp-caption-text" id="caption-attachment-1894">Bitwarden</figcaption></figure>
<p>I’ve put Bleachbit into the advanced section, purely because potentially, you have access to delete a bit more than you could otherwise do in CCleaner or the default Microsoft tools (as discussed in <a href="https://www.thesmarthomebook.com/2021/07/16/stage-1-how-to-clean-your-computer-and-recover-performance-in-2021/">Part 1</a>). I don’t want any comeback because BleachBit accidentally deleted the passwords to all your favourite adult sites you had stored in Bing!</p>
<p><img alt="" class="aligncenter wp-image-1893" decoding="async" height="380" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/11/kirk-shocked.jpg" width="640"/></p>
<p style="text-align: center;"><iframe frameborder="0" height="90" loading="lazy" marginwidth="0" scrolling="no" src="https://rcm-eu.amazon-adsystem.com/e/cm?o=2&amp;p=48&amp;l=ur1&amp;category=audible&amp;banner=17B43C0537HADNW4EZ82&amp;f=ifr&amp;linkID=260bb1bc7d7c20d78697d9068917d687&amp;t=baldfox-21&amp;tracking_id=baldfox-21" style="border: none;" width="728"></iframe></p>
<h2>Part 2: Windows Debloat Tool</h2>
<p>Last year, I came across a debloat tool that I had been using from a developer called Sycnex. Not only did I cover this tool in this <a href="https://www.thesmarthomebook.com/2020/04/07/how-to-remove-all-the-unnecessary-bloatware-and-unwanted-junk-that-comes-with-a-fresh-windows-10-installation-using-debloater/">post</a>, but I even made a Youtube video on it <a href="https://www.youtube.com/watch?v=jNPiPTzXce0&amp;t">here</a>. This tool was great, but as time went on, I found another developer Chris Titus, who basically overhauled it and wrote his own version. You can find the tool here if you want to go check through all the various bits and bobs in it: <a href="https://github.com/ChrisTitusTech/win10script">https://github.com/ChrisTitusTech/win10script</a></p>
<p>If you just want to install the tool, you literally paste one command into Powershell (as admin):</p>
<blockquote><p><strong>iex ((New-Object System.Net.WebClient).DownloadString(‘https://git.io/JJ8R4’))</strong></p></blockquote>
<figure aria-describedby="caption-attachment-1898" class="wp-caption aligncenter" id="attachment_1898"><img alt="Installing the Script" class="size-full wp-image-1898" decoding="async" height="226" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/11/powershell_haTw5XOwAr.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1898">Installing the Script</figcaption></figure>
<p>That’s it. Within a second or so, you’ll get this next box show up:</p>
<figure aria-describedby="caption-attachment-1899" class="wp-caption aligncenter" id="attachment_1899"><img alt="Chris Titus Tech Windows Debloat Tool" class="size-large wp-image-1899" decoding="async" height="738" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/11/powershell_R04jTjIcyu-1024x1008.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1899">Chris Titus Tech Windows Debloat Tool</figcaption></figure>
<p>Frankly speaking, a lot of this stuff is self explanatory on what it can and can’t do for you and in order to keep this post short, I’m going to just refer you to Chris’ video where he goes through the latest iteration of it. Not only will it help his channel grow, but it will also save me from being a complete parrot.</p>
<div class="jetpack-video-wrapper"><span class="embed-youtube" style="text-align:center; display: block;"><iframe allowfullscreen="true" class="youtube-player" height="422" loading="lazy" sandbox="allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox" src="https://www.youtube.com/embed/dKM8ZScbic8?version=3&amp;rel=1&amp;showsearch=0&amp;showinfo=1&amp;iv_load_policy=1&amp;fs=1&amp;hl=en-GB&amp;autohide=2&amp;wmode=transparent" style="border:0;" width="750"></iframe></span></div>
<p>Chris goes through most of the options in the video, so I strongly suggest you take a quick look at it if you’re unsure of anything on the list, or you’re worried about doing something irreversible. I usually just hit Essential tweaks and Delete/Disable OneDrive, and Disable Cortana.</p>
<h2>To Recap</h2>
<p>By now you should have a machine that’s running lighter and faster, with a bit more room on your drives thanks to the junk we’ve removed. With any luck, Microsoft and the rest of the world wide web might even know a little less about you! To remind you of what we’ve done so far across both posts:</p>
<ol>
<li>Removed any unecessary installed programs in Windows</li>
<li>Cleaned out any temporary files or cookies via windows disk cleanup</li>
<li>Removed any old windows update files or system fragments using disk cleanup</li>
<li>Deleted cookies, other temp files, fragments and tracking data using CCleaner</li>
<li>Uninstalled third party antivirus tools and re-enabled Windows built in AntiVirus protection.</li>
<li>Scanned for and removed any detected threats using MalwareBytes.</li>
<li>Cleaned out any unecessary browser extensions using CCleaner and manually.</li>
<li>Used BleachBit to comb through and delete ‘free’ space</li>
<li>Removed further temporary files and other unwanted files.</li>
<li>Installed the Windows script to make essential tweaks including (if you selected them):
<ol>
<li>Disabling Cortana</li>
<li>Disabling Location Tracking</li>
<li>Disabling OneDrive</li>
<li>Enabling Performance Visual FX</li>
<li>Removing General Windows 10 Bloatware that came with the machine.</li>
</ol>
</li>
</ol>
<p>Let me know if this helped you in the comments and if you have any recommendations for other software I’ll always take a look.</p>

<p>If your interested in sharing your own solutions, tips and tricks with like minded people perhaps you’d consider joining our facebook group. The aim of this group will hopefully be more show and tell rather than support, but that’s not to say we can’t lend a helping hand!</p>
<p><a href="https://www.facebook.com/groups/386238285944105">https://www.facebook.com/groups/386238285944105</a></p>

<p>Know anyone considering a renovation and looking for advice on cabling and how to help make the home smart? Take a look at my book which is available at all the major stores.</p>
<blockquote>
<p style="text-align: center;"><a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored">https://books2read.com/thesmarthomebook</a></p>
</blockquote>
<figure aria-describedby="caption-attachment-764" class="wp-caption aligncenter" id="attachment_764"><a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored"><img alt="The Smarthome Book" class="size-large wp-image-764" decoding="async" height="490" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2020/04/ARCHITECT-TABLE-1024x669.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-764">The Smarthome Book</figcaption></figure>
]]></content:encoded>
      <media:content url="https://www.thesmarthomebook.com/wp-content/uploads/2021/11/Artboard-stage-2b.png" medium="image" />
    </item>
    <item>
      <title>Violet SmartSwitch Lite: Review &amp; Set Up</title>
      <link>https://www.thesmarthomebook.com/2021/11/10/violet-smartswitch-lite-review-set-up/</link>
      <guid isPermaLink="false">https://www.thesmarthomebook.com/?p=1856</guid>
      <pubDate>Wed, 10 Nov 2021 05:31:51 GMT</pubDate>
      <dc:creator><![CDATA[Andrew Howe]]></dc:creator>
      <category><![CDATA[hardware]]></category><category><![CDATA[Home Automation]]></category><category><![CDATA[IOT]]></category><category><![CDATA[software]]></category><category><![CDATA[automation]]></category><category><![CDATA[control]]></category><category><![CDATA[fixture]]></category><category><![CDATA[lite]]></category><category><![CDATA[neutral]]></category><category><![CDATA[smart switch]]></category><category><![CDATA[smartswitch]]></category><category><![CDATA[sonos]]></category>
      <description><![CDATA[The guys over at Violet were kind enough to send me one of their ultra cool looking Violet SmartSwitch Lites for me to review and have a play with. In this post, I’ll run you through the hardware, the set up process and my overall …]]></description>
      <content:encoded><![CDATA[<p>The guys over at Violet were kind enough to send me one of their ultra cool looking Violet SmartSwitch Lites for me to review and have a play with. In this post, I’ll run you through the hardware, the set up process and my overall thoughts.</p>
<figure aria-describedby="caption-attachment-1876" class="wp-caption aligncenter" id="attachment_1876"><img alt="The Violet Smart Switch" class="size-large wp-image-1876" decoding="async" height="754" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/11/violet-spotify-1018x1024.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1876">The Violet Smart Switch</figcaption></figure>
<h2>Hardware</h2>
<p>The SmartSwitch Lite came in premium packaging. Opening the box you could instantly tell that this was on the higher end of smart home products. If you were wearing a blindfold you’d think you were opening a watch box, let alone a light switch!</p>
<figure aria-describedby="caption-attachment-1843" class="wp-caption aligncenter" id="attachment_1843"><img alt="Violet Smart Switch: Premium Packaging" class="size-large wp-image-1843" decoding="async" height="500" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/IMG_20210930_095706-1024x683.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1843">Violet Smart Switch: Premium Packaging</figcaption></figure>
<p>In the box, you got the unit itself. I opted for the UK variant, but there’s also an EU variant. There’s no difference between them aside from the shape of the rear. EU sockets are rounded at the backbox, where as the UK ones are square. Alongside the unit itself, there was some literature showing you how to set it up. The unit itself is the size of a standard UK light switch (dimensions below). Please note that the screen still has its protective covering on, so if anything the screen is even more vibrant and higher in contrast than my photos represent. I’m in the middle of moving, so I didn’t want to install this permanently, hence you won’t see it on the wall (yet!).</p>
<p>On the bottom of the unit there’s a small oval button, microSD card slot, and a micro USB port. These are very discrete and you wouldn’t see them once mounted.</p>
<figure aria-describedby="caption-attachment-1878" class="wp-caption aligncenter" id="attachment_1878"><img alt="UK variant of the Violet SmartSwitch Lite" class="size-large wp-image-1878" decoding="async" height="500" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/11/violet-smart-switch-1-of-1-1024x683.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1878">UK variant of the Violet SmartSwitch Lite</figcaption></figure>
<p>The SD card is apparently for future features, and the USB port is an alternative way to powering the unit up for configuration prior to installation. I only learned of this after the fact!</p>
<p>The actual depth of the “brains” behind the screen is about 27mm (give or take) and 71mm x 71mm so should leave you enough room behind for your wires in the backbox.</p>
<p>The price of this unit at the time of writing is £179 + postage. It’s available direct from <a href="https://violet-ultra.co.uk/product/smartswitch-lite-uk-eu/">Violet</a>.</p>
<p style="text-align: center;"><strong>Blog readers can get 10% off using the code: QK6JCWPZ (valid undtil 22nd november, 1 per customer).</strong></p>

<h3>Specifications</h3>
<p>Dimensions of the unit are as follows:</p>
<p>86mm x 86mm square.</p>
<p>12mm depth on the wall.</p>
<p>Wifi : 2.4GHz 802.11bgn (Wi-Fi 4)</p>
<p>Input Rating : 100 – 240V~AC 50/60Hz</p>
<p>Input current max : 260mA</p>
<p>Power consumption standby : 0.1W</p>
<p>Wiring: Neutral required</p>
<h2></h2>
<h2>Set Up</h2>
<p>As I mentioned above, as am currently in the process of moving, I didn’t want to install this permanently in the wall, so for me it was very much “test benched”, but for those of you interested in how you would actually go about installing this from a cables point of view and looking at solutions if you don’t have a neutral at the switch, Violet have made a post on their website which can help. As always, use an electrician if you don’t know what you’re doing. Here’s the direct link to it: <a href="https://violet-ultra.co.uk/neutral-wires-are-easier-than-you-think/">https://violet-ultra.co.uk/neutral-wires-are-easier-than-you-think/</a></p>
<p>On the rear of my unit, there were just two connections to be made, clearly labelled live and neutral. I took an old plug lead that I had laying around and stripped the ends back (usual disclaimer: Am not an electrician, so if you don’t know what you’re doing with cables, seek the professionals, we’re dealing with mains voltage here). I wired in the live and neutral accordingly, and within a few short moments, I was greeted with the Violet logo.</p>
<figure aria-describedby="caption-attachment-1869" class="wp-caption aligncenter" id="attachment_1869"><img alt="The Violet Smart Switch Splash Screen" class="size-large wp-image-1869" decoding="async" height="500" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/11/violet-smart-switch-6-of-6-1024x683.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1869">The Violet Smart Switch Splash Screen</figcaption></figure>

<p style="text-align: center;"><strong style="text-align: center; font-size: 16px;">I subsequently found out that you can just power the device via a microUSB rather than needing to jerry rig anything!</strong></p>
<p><img alt="" class="aligncenter size-full wp-image-1864" decoding="async" height="220" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/11/tenor.gif" width="220"/></p>

<p>Once the unit came alive, within a couple of seconds, the splash screen disappeared and I was met with the missing wifi screen. The controller was very intuitive. I pulled the top of the screen down (the weather / temrperature icon) which revealed the settings screen.</p>
<figure aria-describedby="caption-attachment-1871" class="wp-caption aligncenter" id="attachment_1871"><img alt="Violet Smart Switch: Settings Menu" class="size-large wp-image-1871" decoding="async" height="500" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/11/violet-smart-switch-3-of-6-1024x683.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1871">Violet Smart Switch: Settings Menu</figcaption></figure>
<p><img alt="" class="aligncenter size-large wp-image-1875" decoding="async" height="500" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/11/violet-smart-switch-4-of-6-1024x683.jpg" width="750"/></p>
<p>I landed on Network and selected the appropriate SSID and input the password. The screen is very responsive and you can operate the on screen keyboard without issues. After a short pause we were online.</p>
<h2>Philips Hue</h2>
<p>Clicking on the Philips Hue option allowed it to search for any available bridge. You could always manually enter the IP too. Just remember to push the button on the hue bridge to allow it to pair. I only had the one philips hue product, so it was difficult for me to demonstrate the scene item, but from Violet’s website, I think this image demonstrates the scene option perfectly. At present, the integration allows you to select scenes from one room/zone to display on the panel. I believe in an upcoming firmware update, you’ll be able to select scenes from multiple rooms/zones and bridges, so if you’re invested into Hue, you’re going to be more than catered for!</p>
<figure aria-describedby="caption-attachment-1859" class="wp-caption aligncenter" id="attachment_1859"><img alt="Violet Smart Switch: Hue Scenes" class="wp-image-1859" decoding="async" height="614" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/10/hue-scenes.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1859">Violet Smart Switch: Hue Scenes</figcaption></figure>
<p>Violet have a nice article on their webpage detailing some more about their interaction with Hue, including controlling light temperatures etc, which can help enhance a room even further. Feel free to have a browse directly on the link – <a href="https://violet-ultra.co.uk/how-your-smart-light-switch-can-make-you-more-productive/">https://violet-ultra.co.uk/how-your-smart-light-switch-can-make-you-more-productive/</a></p>
<h2>Location</h2>
<p>On the Location tab you can change the timezone if needed and enter your postcode so that it can show you relevant weather settings. For those of you worried about revealing locations, I only entered the first 3 digits of my UK postcode. The Display menu allows you to change the screen timeout. Out of the box this was set to 5 seconds, I changed this to 60 seconds (maximum).</p>
<h2>Sonos</h2>
<p>The eagle eyed among you will notice from the menu that there’s no Sonos settings tab. Our Sonos system was detected automatically. I just had to click on the equalizer icon at the bottom and confirm from the list of speakers that appeared on the next screen which speaker(s) we wanted to interact with. The Sonos Favourites tab was pre-populated with our favourites. Sonos control was instant.</p>
<p><img alt="" class="aligncenter size-large wp-image-1872" decoding="async" height="500" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/11/violet-smart-switch-5-of-6-1024x683.jpg" width="750"/></p>
<figure aria-describedby="caption-attachment-1874" class="wp-caption aligncenter" id="attachment_1874"><img alt="Violet Smart Switch: Sonos - Now Playing" class="size-large wp-image-1874" decoding="async" height="500" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/11/violet-smart-switch-1-of-6-1024x683.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1874">Violet Smart Switch: Sonos – Now Playing</figcaption></figure>
<figure aria-describedby="caption-attachment-1845" class="wp-caption aligncenter" id="attachment_1845"><img alt="Violet Smart Switch: Sonos - Now Playing" class="size-large wp-image-1845" decoding="async" height="500" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/IMG_20210930_192153-1024x683.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1845">Violet Smart Switch: Sonos – Now Playing</figcaption></figure>
<h2>Future Developments</h2>
<p>Having spoken a few times to Ryan (CEO &amp; Founder) at Violet, I’m aware that there are some new features coming shortly. One of these will be HTTP requests. Now if that presents itself in the same aesthetic and intuitive fashion, this is going to be a game changer. I will be able to link the screen directly into <a href="https://nodered.org">Node-red</a>/<a href="https://www.home-assistant.io">Home-Assistant</a>. I’ll need to wait and see exactly how it’s implemented, but if it’s anything like the Hue scenes screen, I’ll be able to make these things do anything. You could create complete home-cinema scenes, with IR (<a href="https://s.click.aliexpress.com/e/_AD4ZI9" rel="noopener sponsored">broadlink</a>) and IP control running in the background. Literally anything I can do in Node-red could be brought into it.</p>
<p>Ryan and his team are currently working on several more integrations at present. He couldn’t confirm any names, but teasingly told me to watch this space! Firmware updates are sent OTA and are currently fully automatic. It’s pretty seamless. At one point I just saw a note on the screen saying it was restarting. Once rebooted, I checked and the firmware had changed. There are plans to add some manual options here for those of you who prefer to disable auto updates and just set and forget.</p>

<h2>The Competition</h2>
<p>The only other panel which has been appearing on my radar at the moment (and Youtube playlist!) is the Sonoff NS panel currently on <a href="https://www.kickstarter.com/projects/sonoffnspanel/sonoff-nspanel-smart-scene-wall-switch?ref=dtp1b9">kickstarter</a>. I haven’t received or seen one in the flesh so I’m hardly qualified to give a fair review of it. What I will say though, is the price is attractive, relatively speaking (approximately $50 give or take depending on what backer package you select, although Sonoff quote an MSRP of $75). The NS panel though appears to work exclusively through ewelink and therefore cloud servers, which puts me off. I’ve seen that it can be flashed (ESP32) with an initial tasmota build being sent to it, but in its current state, I believe it sits in a different band/bracket to the Violet. At least in terms of operability out of the box and the level of UI refinement.</p>
<p>If anyone’s seen any other colour wall panels designed to replace light switches, pop them in the comments, I’d love to hear about them.</p>

<h2>Final Thoughts</h2>
<p>I love it. I will admit before receiving it, having just seen it online and seeing it’s price (£179 at the time of writing), I was a tad sceptical.</p>
<p>My whole smarthome revolves around basic open-source software and parts cobbled together from various manufacturers and online stores. To say I am a bit of an Aliexpress fiend is an under statement. I used to dabble with <a href="https://www.crestron.com/">Crestron</a> and <a href="https://www.amx.com/">AMX</a> (I was actually AMX certified at one point in time), so I appreciate the difference between DIY and “high end” systems. That’s not to say that the cheaper variants can’t compete. Just sometimes, you need to make compromises to save those beer tokens. Whether that’s time spent setting up the coding yourself (home-assistant/node-red) or having something less aesthetically pleasing at the end of it (anyone remember x10?).</p>
<p>This is a premium product. It looks premium, it feels premium. It behaved flawlessly, and quite frankly, even your grandparents could use it. This is the sort of screen you’re going to see in an expensive house or hotel. Could you achieve the same with a tablet mounted to the wall, yes. Would it look anything as sleek as this? Nope. That’s before you’ve bought your mount and worked out a way to step the voltage down to power it over USB and still hide it all behind the wall. The jury is still out on the Sonoff panel. Potentially it could apply some pricing pressure, but in terms of it “just working” with Sonos and Hue (thus far) I don’t think there’s anything else out there.</p>
<p>If you’re invested in the Sonos and Hue ecosystem, I wouldn’t hesitate. One of the pics above make the screen look a tad blueish. This is just the white balance as I took the shot in the evening under less than ideal lighting. The screen is actually a really inky black, vibrant with decent viewing angles. You can wake the screen instantly with a simple tap. If you’ve ever used wall panels before to change media, you’ll remember how sluggish and uncertain they are. Did I press that? Did it register? Think airline screens etc. Not here, this is next gen.</p>
<p><a href="https://violet-ultra.co.uk/"><img alt="https://violet-ultra.co.uk/" class="size-large wp-image-1882 aligncenter" decoding="async" height="250" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/11/Violet-Logo_1050x350px_300dpi_RGB_BLACK-1024x341.png" width="750"/></a></p>
<p>I’m looking forward to seeing what integrations will come next. I would expect interest around this product to continue to build with each “partner” added. Violet have a ton of stuff on their webpage exploring the various optionality and examples of connections etc, so have a <a href="https://violet-ultra.co.uk/">look</a> if you’re interested in it. <strong>Remember, readers get a discount of 10% (code: QK6JCWPZ)</strong></p>

<p>As I said at the start of the post, I wasn’t paid for this post, I just received a sample. All opinions are my own. If you agree/disagree, let me know in the commnents, and if you have anything cool that you’re working on, think about joining our facebook group to share your inspiration.</p>
<p><a href="https://www.facebook.com/groups/386238285944105">https://www.facebook.com/groups/386238285944105</a></p>
<p>If you’re considering a renovation and looking at the structured wiring side of things, or maybe you just want to support the blog, have a look below at my smarthome <a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored">book</a>, it’s available in all the usual places (including paperback)!</p>
<figure aria-describedby="caption-attachment-764" class="wp-caption aligncenter" id="attachment_764"><a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored"><img alt="The Smarthome Book" class="size-large wp-image-764" decoding="async" height="490" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2020/04/ARCHITECT-TABLE-1024x669.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-764">The Smarthome Book</figcaption></figure>
]]></content:encoded>
      <media:content url="https://www.thesmarthomebook.com/wp-content/uploads/2021/11/New-Artboard.png" medium="image" />
    </item>
    <item>
      <title>SwitchBot Hub Mini: Review, Set Up &amp; Simple Voice Control</title>
      <link>https://www.thesmarthomebook.com/2021/10/20/switchbot-hub-mini-review-set-up-simple-voice-control/</link>
      <guid isPermaLink="false">https://www.thesmarthomebook.com/?p=1806</guid>
      <pubDate>Wed, 20 Oct 2021 07:01:17 GMT</pubDate>
      <dc:creator><![CDATA[Andrew Howe]]></dc:creator>
      <category><![CDATA[hardware]]></category><category><![CDATA[Home Automation]]></category><category><![CDATA[home-assistant]]></category><category><![CDATA[IOT]]></category><category><![CDATA[node-red]]></category><category><![CDATA[Uncategorized]]></category><category><![CDATA[alexa]]></category><category><![CDATA[amazon]]></category><category><![CDATA[Broadlink]]></category><category><![CDATA[google assistant]]></category><category><![CDATA[home-assistant]]></category><category><![CDATA[hub]]></category>
      <description><![CDATA[As a follow on to my SwitchBot Bot review I wrote a few weeks ago, I have finally had a chance to have a play with the SwitchBot Hub Mini that SwitchBot were kind enough to send me to review. In this post, I’ll give …]]></description>
      <content:encoded><![CDATA[<p>As a follow on to my SwitchBot Bot <a href="https://www.thesmarthomebook.com/2021/09/17/the-switchbot-bot-create-your-own-streamlight/">review</a> I wrote a few weeks ago, I have finally had a chance to have a play with the SwitchBot Hub Mini that SwitchBot were kind enough to send me to review. In this post, I’ll give you a quick run through of the unit itself, so you would know what to expect, how it works, where it shines, and maybe where it falls a little short. Let’s get started.</p>
<p>The unit itself seems well made. It’s light but doesn’t feel flimsy. In the box you get an instruction booklet, a micro USB cable to power the device and a 3m sticky pad which should be more than strong enough to attach it to a wall or surface (there is a provision to hang it on a screw if you wish). There is no power block included, so if you don’t have something that knocks out 5V/1a then you’re going to need to purchase one separately. I have a smart <a href="https://www.thesmarthomebook.com/2020/02/06/controlling-a-blitzwolf-shp5-with-tasmota-home-assistant-node-red/">blitzwolf shp5</a> that has a pair of USB ports so I just hooked it up to that.</p>
<figure aria-describedby="caption-attachment-1849" class="wp-caption aligncenter" id="attachment_1849"><img alt="SwitchBot Hub Mini: What's in the box" class="size-large wp-image-1849" decoding="async" height="500" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/10/switchbot-4-of-5-1024x683.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1849">SwitchBot Hub Mini: What’s in the box</figcaption></figure>
<p>I already had the SwitchBot app installed as I’d been playing with the ‘bots previously. Within a few moments, the Hub Mini’s white LED started to shine and the app adopted the hub (I needed to long press the button for 3 seconds for it to pair).</p>
<figure aria-describedby="caption-attachment-1835" class="wp-caption aligncenter" id="attachment_1835"><img alt="SwitchBot Hub Mini: My SwitchBot Ecosystem" class="size-large wp-image-1835" decoding="async" height="1024" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/scrcpy_NszOV0FzoG-452x1024.png" width="452"/><figcaption class="wp-caption-text" id="caption-attachment-1835">SwitchBot Hub Mini: My SwitchBot Ecosystem</figcaption></figure>
<p>Once found, I needed to add my Wifi credentials (I stuck it on an IOT vlan). It connected up without any issues.</p>
<figure aria-describedby="caption-attachment-1833" class="wp-caption aligncenter" id="attachment_1833"><img alt="Setting the Network on the SwitchBot HUb Mini" class="wp-image-1833" decoding="async" height="400" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/scrcpy_j6Jc4jKet6.png" width="600"/><figcaption class="wp-caption-text" id="caption-attachment-1833">Setting the Network on the SwitchBot HUb Mini</figcaption></figure>
<h2>Adding an IR device</h2>
<p>In order to add an IR device, you need to click on the Hub Mini icon and then click the Add remote control button at the bottom. Choose your Appliance, Brand and model, and then follow the instructions on screen.</p>
<figure aria-describedby="caption-attachment-1831" class="wp-caption aligncenter" id="attachment_1831"><img alt="SwitchBot Hub Mini: Choosing your Appliance" class="size-large wp-image-1831" decoding="async" height="1024" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/scrcpy_ZEHIKVAROs-457x1024.png" width="457"/><figcaption class="wp-caption-text" id="caption-attachment-1831">SwitchBot Hub Mini: Choosing your Appliance</figcaption></figure>
<p>In an ideal world, the app would detect what remote you’ve got via the button press and then it would be a case of just clicking add. In reality, I struggled to find something that married up to the Hub immediately. I wanted to add a Yamaha sound bar that we have (YSP-5100). It didn’t recognise the device initially, so I opted to Search by Brand. I selected Yamaha, but unfortunately my model wasn’t listed (nor was there anything similar). I said that the model wasn’t listed and then was presented with a generic Yamaha template. Some of the buttons worked, others didn’t and needed a custom learn.</p>
<figure aria-describedby="caption-attachment-1838" class="wp-caption aligncenter" id="attachment_1838"><img alt="SwitchBot Hub Mini: Remote Control" class="size-large wp-image-1838" decoding="async" height="1024" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/scrcpy_VH7c6a9xqP-458x1024.png" width="458"/><figcaption class="wp-caption-text" id="caption-attachment-1838">SwitchBot Hub Mini: Remote Control</figcaption></figure>
<p>It was very easy to do. You literally point on the button you want it to learn (i.e. rewind), press the rewind button on the actual remote whilst pointing at the Hub Mini, wait for the Hub Mini’s LED to blink and you’re done.</p>
<figure aria-describedby="caption-attachment-1830" class="wp-caption aligncenter" id="attachment_1830"><img alt="SwitchBot Hub Mini Waiting for Signal" class="size-large wp-image-1830" decoding="async" height="1024" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/scrcpy_HOCmtl0KqL-457x1024.png" width="457"/><figcaption class="wp-caption-text" id="caption-attachment-1830">SwitchBot Hub Mini Waiting for Signal</figcaption></figure>
<p>The app asks you to test, and then assuming it does what you want, to accept/save. Rinse repeat and in about 5 minutes, you’ll have the whole remote copied and ready to work. If you actually had a model of an appliance that was actually listed in the app, then I think literally, it would take seconds. I assume you would be importing the whole remote control in one go once you selected that model in the app. The range of appliances is pretty decent and it covers the majors. I.e. select TV and you’ll be looking at all the usual makes (LG, Samsung, Philips, Sony, Panasonic etc). The model numbers though appear to be somewhat random (I suspect region specific). That said, am sure if you have an LG TV that isn’t listed, you could probably choose any model there and I’d expect it to work. I mean are manufacturers that specific about their IR codes now? Once I’d finished programming the remote for the Yamaha soundbar, we decided to watch TV. The IR broadcasting worked flawlessly. I could switch inputs, change volume, mute etc. This thing didn’t skip a beat. I have an ancient NEC Plasma, complete with burn in. It’s so old, we need to let it warm up before it will acknowledge an HDMI signal! I thought I’d give this a go. I went through the steps above, only this time going totally custom. Again, everything worked as expected. My phone had essentially become a remote control. I didn’t notice any delay. I also have a <a href="https://s.click.aliexpress.com/e/_AD4ZI9" rel="noopener sponsored">broadlink RM mini</a> and would say in terms of speed and success rate, this easily kept up with it. Next it was time to set up voice control.</p>
<h2>Integrations</h2>
<p>Out of the box, the Switchbot Hub Mini works directly with a variety of services.</p>
<ul>
<li>Amazon Alexa</li>
<li>Google Home</li>
<li>Siri Shortcuts</li>
<li>SmartThings</li>
<li>Clova</li>
<li>IFTTT</li>
</ul>
<p>I decided to test with Google Home and Alexa. I don’t use Siri or SmartThings, haven’t heard of Clova, and I deactivated my IFTTT account in protest at their dual pricing (but I digress!). Setting these up was easy enough. As per any integration with either of the tech giants, you have to link the skills to your SwitchBot account. In Google Home, you select “add” then “works with Google” at the bottom and then select Switchbot. Add your credentials and you’re in.</p>
<figure aria-describedby="caption-attachment-1848" class="wp-caption aligncenter" id="attachment_1848"><img alt='SwitchBot "Works With Google Link"' class="wp-image-1848" decoding="async" height="630" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/10/Screenshot_20211018-180333-975x1024.jpg" width="600"/><figcaption class="wp-caption-text" id="caption-attachment-1848">SwitchBot “Works With Google Link”</figcaption></figure>

<p>Alexa wasn’t really any different. You need to install the skill and again, link your account. Within a few short moments, you should be up and running.</p>
<figure aria-describedby="caption-attachment-1847" class="wp-caption aligncenter" id="attachment_1847"><img alt="SwitchBot Alexa Skill" class="wp-image-1847" decoding="async" height="920" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/10/Screenshot_20211018-180219__01-668x1024.jpg" width="600"/><figcaption class="wp-caption-text" id="caption-attachment-1847">SwitchBot Alexa Skill</figcaption></figure>
<p>In both ecosystems once the accounts have been linked you need to then rescan for devices and put them in the appropriate ‘rooms’ to finalise their additions.</p>
<p>Now this is where I’m a little conflicted. If you have something which you can use natively, i.e. a model that is contained within the appliance database, then once you rescan your devices in Alexa and GoogleHome, the “appliance” should pop right in and you’re done. You have full voice control over it. However, if you’ve had to use the learn function and essentially created a custom IR code/function (for want of a better word), then that will NOT be picked up by the voice assistants. I am not sure if this is a feature that is due to be added in the future, but given everything I own isn’t natively in the database, the usefulness of the hub mini suddenly becomes very limited.</p>
<p>Now for someone lucky enough to own mainstream models that are in the database, then you’re golden. Putting aside for the moment that you’re using third party servers, this is probably the easiest and simplest way I’ve ever seen to get Alexa and Google control over your devices. The app just works. The device is small and lightweight enough, and didn’t fail once. The switchbot app is well laid out and intuitive. If you want to use your phone or tablet as a remote control, then this does everything you would want and does it well.</p>
<p>If you’re not as lucky, (as I wasn’t) then for me, it makes sense to stay with my <a href="https://s.click.aliexpress.com/e/_AD4ZI9" rel="noopener sponsored">broadlink mini</a> and to continue to use node-red to pass my IR control to the voice assistants. If you haven’t seen the walk throughs I’ve previously done, then you can find them here:</p>
<ol>
<li><a href="https://www.thesmarthomebook.com/2020/11/23/creating-custom-google-home-entities-for-integration-with-home-assistant-node-red/">Creating Custom Google Home entities for integration with Home-Assistant &amp; Node-red</a></li>
<li><a href="https://www.thesmarthomebook.com/2020/02/03/automating-a-humidifier-with-node-red-and-a-broadlink-rm3-mini-part-2/">Automating a Humidifier with Node-red and a Broadlink RM3 Mini: Part 2 Voice Control and Home-Assistant</a></li>
<li><a href="https://www.thesmarthomebook.com/2020/12/31/voice-assistants-working-with-alexa-and-googles-custom-entities-in-node-red/">Voice Assistants: Working with Alexa and Google’s custom entities in Node-red</a></li>
</ol>
<p>On the subject of using third party servers, I wasn’t bothered in this instance. If the internet goes down, your voice assistants (ignoring open source ones) are down anyway. I switched off mobile data and wifi from my phone and the Switchbot app was able to control my SwitchBot bots (via Bluetooth), but the hub was offline. I need to really test what would happen if the Wan connection fell over but the wifi stayed up (i.e. simulating an actual outage) but as we’re still working from home, I don’t really want to start taking down the internet just for this.</p>
<h2>Summary</h2>
<p>I like what SwitchBot is doing. Their app is easy to use and intuitive. If I compare this with Broadlink’s app there’s no comparison, SwitchBot wins hands down. This would be the perfect solution for someone just setting out on the path to home automation, providing they have models that are in the database. This last bit is key. The database. For me personally, not one of my appliances was listed natively in the database, essentially robbing me of voice control at this moment in time.</p>
<p>If you’re a reader of my blog, you’ll know that I am all about node-red and home-assistant. I wouldn’t switch from broadlink at this moment in time because I can already do the things that at present the Hub mini cannot. Also, my broadlink is integrated into a wider system, where as the SwitchBot app is still very much independent. Were broadlink able to greatly increase the number of models in its database or add the ability to add custom (‘learned’) codes to its voice control function then this would make the perfect little addition for friends and family members that aren’t already “down the rabbit hole” so to speak.</p>

<p>If you fancy having a look at one yourself, you’ll be able to grab one direct from the following retailers (affiliate links that won’t cost you any extra, but help to support the blog):</p>
<p><a href="https://switchbot.vip/30Jtaws">Switchbot (direct – US)</a></p>
<p><a href="https://amzn.to/3aWQB7n" rel="noopener sponsored">Switchbot (Amazon – UK)</a></p>
<p>Huge thanks again for SwitchBot for sending me this unit to review. I wasn’t paid for it, all opinions are my own! If you’re interested in finding out more about SwitchBot and the rest of their product range, you can find more information about them <a href="https://www.switch-bot.com/?sca_ref=1110870.lwhMtBI5ab">here.</a></p>
<p><a href="https://www.switch-bot.com/?sca_ref=1110870.lwhMtBI5ab"><img alt="https://www.switch-bot.com" class="aligncenter wp-image-1729" decoding="async" height="35" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/logo2x_120x.png" width="250"/></a></p>

<p>If you have any good ideas on how to utilise this further or any tips for getting voice control to work, then pop them in the comments below or come over to our facebook group to discuss further.</p>
<p><a href="https://www.facebook.com/groups/386238285944105">https://www.facebook.com/groups/386238285944105</a></p>
<p>If you’re considering a renovation and looking at the structured wiring side of things, or maybe you just want to support the blog, have a look below at my smarthome <a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored">book</a>, it’s available in all the usual places (including paperback)!</p>
<figure aria-describedby="caption-attachment-1084" class="wp-caption aligncenter" id="attachment_1084"><a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored"><img alt="Considering a Renovation? Maybe this will save you money!" class="size-large wp-image-1084" decoding="async" height="544" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2020/12/ebook-screws-1024x743.png" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-1084">Considering a Renovation? Maybe this will save you money!</figcaption></figure>
]]></content:encoded>
      <media:content url="https://www.thesmarthomebook.com/wp-content/uploads/2021/10/Artboard-1.png" medium="image" />
    </item>
    <item>
      <title>Home Server: Installing Docker, Portainer &amp; Home-Assistant on Proxmox</title>
      <link>https://www.thesmarthomebook.com/2021/09/21/home-server-installing-docker-portainer-home-assistant-on-proxmox/</link>
      <guid isPermaLink="false">https://www.thesmarthomebook.com/?p=1741</guid>
      <pubDate>Tue, 21 Sep 2021 12:04:37 GMT</pubDate>
      <dc:creator><![CDATA[Andrew Howe]]></dc:creator>
      <category><![CDATA[chocolatey]]></category><category><![CDATA[computing]]></category><category><![CDATA[hardware]]></category><category><![CDATA[Home Automation]]></category><category><![CDATA[home-assistant]]></category><category><![CDATA[proxmox]]></category><category><![CDATA[server]]></category><category><![CDATA[software]]></category><category><![CDATA[2021]]></category><category><![CDATA[beelink]]></category><category><![CDATA[docker]]></category><category><![CDATA[home-assistant]]></category>
      <description><![CDATA[So recently I’ve been looking to find a small low powered machine that I could use as a small media server. I’m currently abroad so I was looking for a light weight machine that I could move around quite easily, but would also be…]]></description>
      <content:encoded><![CDATA[<p>So recently I’ve been looking to find a small low powered machine that I could use as a small media server. I’m currently abroad so I was looking for a light weight machine that I could move around quite easily, but would also be sufficiently powerful enough to run the home and distribute media. Beelink were kind enough to send me one of their units for me to play with. I also wanted to do a complete home server set up tutorial, so this coincided perfectly. In this post, I’ll go over the Beelink GK Mini that they’ve sent me and then we’ll go through setting it up as a home server. By the end of this post, you’ll have a small efficient little server running, proxmox, home-assistant, docker and portainer. Let’s get started.</p>
<h2>Beelink GK Mini</h2>
<figure aria-describedby="caption-attachment-1792" class="wp-caption aligncenter" id="attachment_1792"><img alt="Initial Packaging Impressions were good" class="size-large wp-image-1792" decoding="async" height="548" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/IMG_20210920_112250-1024x748.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1792">Initial Packaging Impressions were good</figcaption></figure>

<p>Beelink sent me this unit directly and it seems to fit the bill. It came well wrapped in the post and the packaging felt high end, almost apple-esque if you will. My unit had 8GBs of Ram and a 256GB m.2 drive. It has two full size hdmi ports (Intel HD Graphics 600 GPU) and both will support h.265 and VP9 video playback up to 4K resolutions. The specs can be found below, and the product page is <a href="https://www.bee-link.com/products/beelink-gk-mini">here</a>.</p>
<ul>
<li>CPU: Intel Celeron J4125 (Gemini Lake)</li>
<li>Network: Gigabit / Wifi 802.11b/g/n/ac, 2.4 + 5.8Ghz</li>
<li>Memory: 8GB</li>
<li>Storage: 128/256/512GB m.2 and room for an SSD in the base of the unit.</li>
<li>Ports: 4* USB 3.0, 1* 1000 LAN, 2* HDMI (fullsize), audio jack (headphone+mic)</li>
<li>Power: DC-in (12V / 2A)</li>
<li>Size: 115mm*102mm*43mm, under 300g</li>
</ul>
<p>In the box alongside the unit and power adaptor, we have a fixing plate for VESA mounting, user manual and a pair of HDMI cables. One short, and one long. We also have a small bag of replacement/drive screws.</p>
<figure aria-describedby="caption-attachment-1793" class="wp-caption aligncenter" id="attachment_1793"><img alt="Contents of the Box" class="size-large wp-image-1793" decoding="async" height="695" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/IMG_20210920_112544-1024x949.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1793">Contents of the Box</figcaption></figure>
<p>When you first pick up the unit, it’s hard to describe how light it feels. It’s made from plastic, but it doesn’t feel cheap. I’ve taken a couple of shots of it alongside my 6th Generation Intel Nuc. Whilst they’re both small form factor, the beelink is smaller and significantly lighter.</p>
<figure aria-describedby="caption-attachment-1796" class="wp-caption aligncenter" id="attachment_1796"><img alt="Beelink GK Mini v Intel 6th Gen NUC" class="size-large wp-image-1796" decoding="async" height="337" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/IMG_20210920_151008-1024x460.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1796">Beelink GK Mini v Intel 6th Gen NUC</figcaption></figure>
<figure aria-describedby="caption-attachment-1797" class="wp-caption aligncenter" id="attachment_1797"><img alt="Beelink GK Mini v Intel 6th Gen NUC" class="size-large wp-image-1797" decoding="async" height="337" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/IMG_20210920_151045-1024x460.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1797">Beelink GK Mini v Intel 6th Gen NUC</figcaption></figure>
<p>I did take a quick look under the hood so to speak. In the base of the unit you can add an SSD. I was pleasantly surprised to see a heatsink had been used on the m.2 sata drive.</p>
<figure aria-describedby="caption-attachment-1795" class="wp-caption aligncenter" id="attachment_1795"><img alt="Room for an SSD" class="size-large wp-image-1795" decoding="async" height="338" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/IMG_20210920_144447-1024x461.jpg" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1795">Room for an SSD</figcaption></figure>
<p>I plugged the machine in and powered her up. The power button gave a satisfying click when pressed. Within a few moments I was met with the Windows 10 set up page. A couple of minutes of declining to be tracked and refusing to use Cortana and we were in business. The GK mini was up and running and connected to my WIfi. The machine came with Windows 10 Pro, although this wasn’t the OS I wanted to use with it. I used a quick script to extract the Windows Licence key (to add to my collection) from the install and shut the machine down. It was time to give this little unit its new OS.</p>

<h2>Installing Proxmox</h2>
<figure aria-describedby="caption-attachment-1804" class="wp-caption aligncenter" id="attachment_1804"><img alt="Proxmox" class="size-full wp-image-1804" decoding="async" height="113" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/Proxmox-logo-800.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1804">Proxmox</figcaption></figure>
<p>I decided to go with Proxmox for this build as I felt <a href="https://www.unraid.net">Unraid</a> wouldn’t run so well on the hardware and would be a bit of a waste. I wanted to use a bare metal hypervisor and wanted the simplicity of Docker and Portainer, alongside the ability to run a VM for Home-Assistant (Supervised). To install Proxmox, we needed to download the ISO and flash it to a USB drive.</p>
<p>I downloaded the latest version of Proxmox from <a href="https://www.proxmox.com/en/downloads">here</a>. I chose the Proxmox VE 7.0 ISO Installer.</p>
<p>Next it was time to download <a href="https://www.balena.io/etcher/">Etcher</a> in order to flash the ISO above onto the USB drive. I used <a href="https://www.thesmarthomebook.com/2020/04/07/install-applications-quickly-and-easily-using-chocolatey/">Chocolatey</a> to accomplish this (this saves me so much time).</p>
<figure aria-describedby="caption-attachment-1769" class="wp-caption aligncenter" id="attachment_1769"><img alt="Installing Etcher with Choco" class="size-full wp-image-1769" decoding="async" height="349" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/powershell_67Qq7Jnu0r.png" width="670"/><figcaption class="wp-caption-text" id="caption-attachment-1769">Installing Etcher with Choco</figcaption></figure>
<p>Within a few short moments, we were done. Select your ISO and your target disk (make sure you select the correct drive!) and begin the flash.</p>
<figure aria-describedby="caption-attachment-1742" class="wp-caption aligncenter" id="attachment_1742"><img alt="Flashing the USB drlive with Proxmox" class="size-full wp-image-1742" decoding="async" height="474" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/balenaEtcher_CUPSnoo8O6.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1742">Flashing the USB drlive with Proxmox</figcaption></figure>
<figure aria-describedby="caption-attachment-1743" class="wp-caption aligncenter" id="attachment_1743"><img alt="USB flashed Successfully" class="size-full wp-image-1743" decoding="async" height="474" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/balenaEtcher_N6z0ZFoTSK.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1743">USB flashed Successfully</figcaption></figure>
<p>Next it was time to go into the BIOS of the Beelink GK Mini to make sure that USB was the first option on the Boot order. After switching her on, i repeatedly pressed DEL until I was faced with the BIOS. No airs and graces here. Nothing fancy like the NUC’s BIOS, but I was surprised by the sheer amount of configurability that was available. There was an option for absolutely everything. Virtualisation had already been switched on thankfully. Once the boot order was amended. I plugged in the stick and rebooted the machine.</p>
<p>I selected to install Proxmox v7 .</p>
<figure aria-describedby="caption-attachment-1772" class="wp-caption aligncenter" id="attachment_1772"><img alt="Install Proxmox" class="size-large wp-image-1772" decoding="async" height="561" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/vmware_OCZch86oGa-1024x766.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1772">Install Proxmox</figcaption></figure>

<p>I agreed to the EULA, selected the 256GB drive as the Target Harddisk, and filled out my regional details (country, time, keyboard etc). Pop in your email and configure a secure password (this will be used to access the machine). Next, I needed to name the machine. Thanks to dhcp, the ip address, gateway and DNS were pre-filled. Remember to reserve this IP address in your router’s page to make sure it stays constant. If you have more than one network port in your machine, make sure you pick the correct one at the top. For naming, I just left it as is.</p>
<figure aria-describedby="caption-attachment-1771" class="wp-caption aligncenter" id="attachment_1771"><img alt="Configuring the Machine's Details" class="wp-image-1771" decoding="async" height="563" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/vmware_23fHqsNR8f.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1771">Configuring the Machine’s Details</figcaption></figure>
<p>I confirmed the settings on the next page and within a few short moments, I was being asked to remove the install media and reboot the machine. Once it came back up, I logged in as root (default user) and used the password we’d set up a minute earlier. On entry I was greeted with this:</p>

<figure aria-describedby="caption-attachment-1773" class="wp-caption aligncenter" id="attachment_1773"><img alt="Proxmox v7" class="size-large wp-image-1773" decoding="async" height="625" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_e32STzmziW-1024x854.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1773">Proxmox v7</figcaption></figure>
<p>Next thing we want to do is to update it to the latest version. The simplest and easiest way I found to do this was to use shell commands.</p>
<figure aria-describedby="caption-attachment-1774" class="wp-caption aligncenter" id="attachment_1774"><img alt="Using Shell Commands in Proxmox" class="size-large wp-image-1774" decoding="async" height="210" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_INWgBnQCnY-1024x287.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1774">Using Shell Commands in Proxmox</figcaption></figure>
<p>Click on your machine (pve in my case) and then the Shell icon. Next we need to run the following commands:</p>
<blockquote><p><strong>nano /etc/apt/<a href="http://sources.li" rev="en_rl_none">sources.li</a>st</strong></p></blockquote>
<p>I copied and pasted over the existing content with this:</p>
<table width="582px">
<colgroup>
<col/>
<col/></colgroup>
<tbody>
<tr>
<td>
<div></div>
</td>
<td>
<div>
<div><em>deb http://ftp.us.debian.org/debian bullseye main contrib</em></div>
<div></div>
<div><em>deb http://ftp.us.debian.org/debian bullseye-updates main contrib</em></div>
<div></div>
<div><em># security updates</em></div>
<div><em>deb http://security.debian.org bullseye/updates main contrib</em></div>
<div></div>
<div><em># not for production use</em></div>
<div><em>deb http://download.proxmox.com/debian bullseye pve-no-subscription</em></div>
<div></div>
</div>
</td>
</tr>
</tbody>
</table>
<p>Ctrl O and Ctrl X when you’re done. Next command:</p>
<blockquote>
<div><strong>nano /etc/apt/<a href="http://sources.li" rev="en_rl_none">sources.li</a>st.d/<a href="http://pve-enterprise.li" rev="en_rl_none">pve-enterprise.li</a>st</strong></div>
</blockquote>
<div></div>
<div>I amended my file to look like this (note the # at the beginning).</div>
<div></div>
<div>
<table width="582px">
<colgroup>
<col/>
<col/></colgroup>
<tbody>
<tr>
<td>
<div></div>
</td>
<td>
<div>
<div><em># deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise</em></div>
<div></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<p>Ctrl O and Ctrl X to save and exit.</p>
<blockquote><p><strong>apt-get update</strong></p>
<p><strong>apt dist-upgrade</strong></p>
<p><strong>reboot</strong></p></blockquote>
<p>Your machine should be fully updated now. You’ll still see the disclaimer about you not having a subscription, but you can ignore this.</p>
<figure aria-describedby="caption-attachment-1777" class="wp-caption aligncenter" id="attachment_1777"><img alt="Subscription Error" class="size-full wp-image-1777" decoding="async" height="201" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_hLlzpJWS43.png" width="675"/><figcaption class="wp-caption-text" id="caption-attachment-1777">Subscription Error</figcaption></figure>
<p>To check, click on Updates, and hit the refresh window.</p>
<figure aria-describedby="caption-attachment-1775" class="wp-caption aligncenter" id="attachment_1775"><img alt="Updates Successfully Run" class="size-full wp-image-1775" decoding="async" height="473" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_1Ubu3Gy1Cm.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1775">Updates Successfully Run</figcaption></figure>
<p>Once done, close it. You should see there’s nothing listed to upgrade. If there is something there, then simply click upgrade and you should be good.</p>
<p>At this point, you have a full updated and working proxmox installation. What else can we do with it?</p>
<h2>Creating a Container</h2>
<p>I’m a huge fan of Docker and Portainer for managing the various containers. Docker is something that Unraid does so well, but that doesn’t mean we can’t enjoy similar here. Let’s install Docker via an LXC container. Go back to the shell window and type the following:</p>
<blockquote><p><strong>pveam update</strong></p></blockquote>
<p>This command essentially updates the list of templates that we can choose from when creating a container. We need a template to base our container on. Click on local storage on the left, then CT Templates on the right.</p>

<figure aria-describedby="caption-attachment-1780" class="wp-caption aligncenter" id="attachment_1780"><img alt="Navigating to the Template Area" class="size-large wp-image-1780" decoding="async" height="195" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_NGTjh4nrUY-1024x266.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1780">Navigating to the Template Area</figcaption></figure>
<p>You’ll see a button above saying templates. Click on that.</p>
<figure aria-describedby="caption-attachment-1779" class="wp-caption aligncenter" id="attachment_1779"><img alt="Selection of Templates" class="size-full wp-image-1779" decoding="async" height="502" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_tBIzmjxQFt.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1779">Selection of Templates</figcaption></figure>
<p>For our Template, we are going to use turnkey-core, which is basically a very lightweight version of Linux which should help keep the container quick and relatively light. Search for core and download it. It will be downloaded into your server’s template database. Remember, if you find you only have a few templates to choose from, make sure you carried out the <strong>pveam update</strong> command in the shell previously.</p>
<figure aria-describedby="caption-attachment-1778" class="wp-caption aligncenter" id="attachment_1778"><img alt="Searching for Turnkey Core" class="size-full wp-image-1778" decoding="async" height="517" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_CuHoVpGv6p.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1778">Searching for Turnkey Core</figcaption></figure>
<p>Now that we have our <a href="https://www.turnkeylinux.org/">turnkey</a> template downloaded, let’s move on.</p>
<p>Click on <strong>Create CT</strong> (container) on the top right.</p>
<p>I don’t want to go through each and every option, as things like CPU (cores etc), Memory, Storage are pretty self explanatory. I’ll cover the main points…</p>
<p>You need to give your container an ID. Your node (server) should be pre-filled. Add credentials as necessary.</p>
<figure aria-describedby="caption-attachment-1782" class="wp-caption aligncenter" id="attachment_1782"><img alt="Container General" class="size-full wp-image-1782" decoding="async" height="529" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/Creating-a-container-General.png" width="718"/><figcaption class="wp-caption-text" id="caption-attachment-1782">Container General</figcaption></figure>
<p>Select the template that we’d previously downloaded.</p>
<figure aria-describedby="caption-attachment-1781" class="wp-caption aligncenter" id="attachment_1781"><img alt="Choosing your template" class="size-full wp-image-1781" decoding="async" height="521" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_Re6u8mHt55.png" width="715"/><figcaption class="wp-caption-text" id="caption-attachment-1781">Choosing your template</figcaption></figure>
<p>For the next few tabs, I selected 100gb, 1 cpu, 2048gb memory.</p>
<p>For network I set it to DHCP, and for DNS I left it as standard (handled by the host).</p>
<p>My confirmation screen looked like this:</p>
<figure aria-describedby="caption-attachment-1783" class="wp-caption aligncenter" id="attachment_1783"><img alt="Create Container Confirm Screen" class="size-full wp-image-1783" decoding="async" height="529" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_sNnpSMOVdx.png" width="709"/><figcaption class="wp-caption-text" id="caption-attachment-1783">Create Container Confirm Screen</figcaption></figure>
<p>Hit finish and you’re almost done. Next we need to click on the container options tab and double click on features. We need to make sure “Nesting” and “keyctl” are enabled.</p>
<figure aria-describedby="caption-attachment-1789" class="wp-caption aligncenter" id="attachment_1789"><img alt="Switching on Nesting and Keyctl" class="size-full wp-image-1789" decoding="async" height="413" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_ee5FOWlS7S.png" width="526"/><figcaption class="wp-caption-text" id="caption-attachment-1789">Switching on Nesting and Keyctl</figcaption></figure>
<p>With that done, start the container (right click shortcut) and within a few seconds you should be up and running. Login with root and the password that you specified on the General tab above and you should now have a linux prompt ready for the next step. Turnkey needs to be installed. As the install screens appear, you can skip the first two but choose install for the third. Once the process is complete and Turnkey is installed, exit with Ctrl+C and then run the following commands as normal:</p>
<blockquote><p><strong>apt-get update</strong></p>
<p><strong>apt-get upgrade</strong></p></blockquote>
<p>Depending on the number of updates needed, it might be a good idea to reboot the container before we proceed with installing docker.</p>

<h2>Installing Docker</h2>
<p>in the shell of the container you just created, copy and paste the following commands (for command 2 and 3 you can paste them in as one multi line command each):</p>
<blockquote><p><strong>apt-get update</strong></p>
<p><strong>apt-get install \</strong><br/>
<strong>apt-transport-https \</strong><br/>
<strong>ca-certificates \</strong><br/>
<strong>curl \</strong><br/>
<strong>gnupg \</strong><br/>
<strong>lsb-release</strong></p>
<p><strong>curl -fsSL https://download.docker.com/linux/debian/gpg | gpg –dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg    <span style="color: #ff0000;">** for some reason wordpress isn’t showing that dearmor needs a double dash not a single**</span> </strong></p>
<p><strong>echo \</strong><br/>
<strong>“deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \</strong><br/>
<strong>$(lsb_release -cs) stable” | tee /etc/apt/sources.list.d/docker.list &gt; /dev/null</strong></p>
<p><strong>apt-get update</strong></p>
<p><strong>apt-get install docker-ce docker-ce-cli containerd.io</strong></p></blockquote>
<p>This should have added and installed docker to your container. To check it’s running, paste in the final command:</p>
<blockquote><p><strong>systemctl status docker</strong></p></blockquote>
<p>If all is well, you should be met with a screenshot similar to the below (to return to the command line, hit ctrl + c):</p>
<figure aria-describedby="caption-attachment-1784" class="wp-caption aligncenter" id="attachment_1784"><img alt="Docker Success" class="size-full wp-image-1784" decoding="async" height="117" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_CM8vZ5mDYE.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1784">Docker Success</figcaption></figure>
<p>So we now have Docker running in a very lightweight container. Let’s install Portainer so that we can administer our Docker containers easier.</p>
<h3>Installing Portainer</h3>
<p>This is very easy to do. Literally, in the same shell prompt as above, type the following command.</p>
<blockquote><p><strong>docker volume create portainer_data</strong></p></blockquote>
<p>This creates a place where we can place our data. Next we need to pull down the Portainer image from the cloud and install it.</p>
<blockquote><p><strong>docker run -d -p 8000:8000 -p 9000:9000 –name=portainer –restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce</strong></p></blockquote>
<p>And we’re done. The command above will download Portainer, expose it on your container’s IP address:9000 and set it to restart always. Give it a few moments to fully download and install, and if you’ve done everything correctly, you should be met with the following page:</p>
<figure aria-describedby="caption-attachment-1785" class="wp-caption aligncenter" id="attachment_1785"><img alt="Portainer Installed on Proxmox" class="size-full wp-image-1785" decoding="async" height="697" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_8gbyRz6qzb.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1785">Portainer Installed on Proxmox</figcaption></figure>
<p>Couple of things to note. You may need to check the IP address of the container. in the command prompt (shell of the container) you can type the following:</p>
<blockquote><p><strong>ifconfig</strong></p></blockquote>
<p>you can then reserve that container’s ip address in your router’s settings. I prefer to do it this way so the router (in my case my <a href="https://www.thesmarthomebook.com/2020/02/01/current-home-network-setup-for-security-and-enhanced-wifi/">pfsense setup</a>) has full oversight on what IP address is given to what machine, container, vm etc. If you’d prefer to manually specify the IP address in the container, then you can just click on the network tab and double click the DHCP option we set earlier and amend as needed.</p>
<p>I immediately made a snapshot of the container with just Portainer and Docker installed to use as a base should something go wrong with the installation in the future. This was as simple as selecting Snapshots in the Container menu and pressing Take Snapshot!</p>
<figure aria-describedby="caption-attachment-1787" class="wp-caption aligncenter" id="attachment_1787"><img alt="Taking a Container Snapshot" class="size-full wp-image-1787" decoding="async" height="364" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_IDZvDGRx7N.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1787">Taking a Container Snapshot</figcaption></figure>
<p>So to summarise, you can now create LXC containers, download templates, create docker containers and manage them via Portainer. Let’s have a look at Home-Assistant.</p>
<h2>Installing Home-Assistant</h2>
<p>As it stands there are many ways to install Home-Assistant. Some of the most popular include running it in Docker as a container, creating a virtual machine and installing it natively as an application, or you can also Home-Assistant as a complete OS (appliance) and run what is known as “supervised”. We’re going to go with the latter variant. You don’t need to run supervised you can achieve most of it using individual containers and installations, but for the purposes of this tutorial, we’re going to go with the most beginner friendly.</p>
<p>As we’re working with Proxmox today, we need to download and unzip the .qcow2 image found <a href="https://www.home-assistant.io/installation/alternative">here</a>:</p>
<figure aria-describedby="caption-attachment-1749" class="wp-caption aligncenter" id="attachment_1749"><a href="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_7tYryDgDyf.png"><img alt="We need the .qcow2 " class="wp-image-1749" decoding="async" height="344" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_7tYryDgDyf-1024x469.png" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-1749">We need the .qcow2</figcaption></figure>

<p>Go to Proxmox and click on the Create VM button on the top right, you should already be familiar with the layout, given we’ve created a container above already. Make sure the container has a unique ID, and give it a name.</p>
<figure aria-describedby="caption-attachment-1748" class="wp-caption aligncenter" id="attachment_1748"><img alt="Creating Your Virtual Machine" class="size-full wp-image-1748" decoding="async" height="561" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_6UiCoVPcn8.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1748">Creating Your Virtual Machine</figcaption></figure>
<p>Next let’s go through the rest of the steps:</p>
<figure aria-describedby="caption-attachment-1747" class="wp-caption aligncenter" id="attachment_1747"><img alt="Don't choose an OS yet" class="size-full wp-image-1747" decoding="async" height="542" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_5SL04HmdwE.png" width="733"/><figcaption class="wp-caption-text" id="caption-attachment-1747">Don’t choose an OS yet</figcaption></figure>
<figure aria-describedby="caption-attachment-1757" class="wp-caption aligncenter" id="attachment_1757"><img alt="Change the Bios" class="wp-image-1757 size-full" decoding="async" height="561" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_jhO2uybpvE.png" width="739"/><figcaption class="wp-caption-text" id="caption-attachment-1757">Change the Bios to OVMF</figcaption></figure>
<figure aria-describedby="caption-attachment-1750" class="wp-caption aligncenter" id="attachment_1750"><img alt="Spec your Hard Disk" class="size-full wp-image-1750" decoding="async" height="553" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_8CaFMlNqB3.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1750">Spec your Hard Disk</figcaption></figure>
<figure aria-describedby="caption-attachment-1761" class="wp-caption aligncenter" id="attachment_1761"><img alt="Choose your CPU" class="size-full wp-image-1761" decoding="async" height="558" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_oX8473sxqA.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1761">Choose your CPU</figcaption></figure>
<figure aria-describedby="caption-attachment-1755" class="wp-caption aligncenter" id="attachment_1755"><img alt="Choose Your Memory" class="size-full wp-image-1755" decoding="async" height="547" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_H6CARTBSmd.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1755">Choose Your Memory</figcaption></figure>
<figure aria-describedby="caption-attachment-1745" class="wp-caption aligncenter" id="attachment_1745"><img alt="The Network Settings" class="size-full wp-image-1745" decoding="async" height="555" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_0TEdciI4Uu.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1745">The Network Settings</figcaption></figure>
<figure aria-describedby="caption-attachment-1758" class="wp-caption aligncenter" id="attachment_1758"><img alt="Confirmation of VM" class="size-full wp-image-1758" decoding="async" height="545" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_kzBBM6hoYE.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1758">Confirmation of VM</figcaption></figure>

<p>Hit finish, but don’t start just yet. We need to swap in the .qcow2 disk that we previously downloaded. Use your favourite SFTP client to move the unzipped .qcow2 file over into the root directory of proxmox. Credentials should be root / password, proxmox ip and port 22.</p>
<figure aria-describedby="caption-attachment-1798" class="wp-caption aligncenter" id="attachment_1798"><img alt="Transferring the file to Root" class="size-large wp-image-1798" decoding="async" height="156" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/filezilla_QGYJMWnhmz-1024x213.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1798">Transferring the file to Root</figcaption></figure>
<p>Then go to the Server’s shell and enter the following command to import the disk from the root directory into the VM you just created:</p>
<blockquote><p><strong>qm importdisk 100 /root/hasos_ova-6.4.qcow2 local-lvm –format qcow2</strong></p></blockquote>
<p>A couple of things to be mindful of. In the command above you may need to change it according to your set up. My VM has the id 100, hence the qm importdisk 100. Also, at the time of writing this, HA OS was 6.4. If you download a file from Home-Assistant and the file is 6.5 etc, then you’ll need to modify the above command accordingly.</p>
<p>Once you send the disk across, you can delete the file in the root directory (I did this in <a href="https://filezilla-project.org/">filezilla</a>). Now we need to amend the VM’s configuration to use this disk instead of the existing ones. Detach the original Hard Disk using the button above.</p>
<figure aria-describedby="caption-attachment-1759" class="wp-caption aligncenter" id="attachment_1759"><img alt="Detach the original Hard Disk" class="size-full wp-image-1759" decoding="async" height="421" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_L4Spmlt2If.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1759">Detach the original Hard Disk</figcaption></figure>

<p>Once detached you’ll see two Unused Disks. Disk 0 which is the one that we have added already but not incorporated, and Disk 1 which is the disk we just detached but it’s still part of the machine. Click on Disk 1 and remove it using the button above. Once removed and erased, you’ll be left with Unused Disk 0. Click on it and press add.</p>
<figure aria-describedby="caption-attachment-1753" class="wp-caption aligncenter" id="attachment_1753"><img alt="Adding the HA disk to your VM" class="size-full wp-image-1753" decoding="async" height="430" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_EpkNZqsQIH.png" width="660"/><figcaption class="wp-caption-text" id="caption-attachment-1753">Adding the HA disk to your VM</figcaption></figure>
<p>Now we need to amend the boot order to ensure the VM starts off it (remember to enable also).</p>
<figure aria-describedby="caption-attachment-1799" class="wp-caption aligncenter" id="attachment_1799"><img alt="Changing the Boot Order" class="size-full wp-image-1799" decoding="async" height="424" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_WuzZQz8QXl.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1799">Changing the Boot Order</figcaption></figure>
<figure aria-describedby="caption-attachment-1746" class="wp-caption aligncenter" id="attachment_1746"><img alt="Change your Boot Order" class="size-full wp-image-1746" decoding="async" height="316" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_3tBttAs7xQ.png" width="694"/><figcaption class="wp-caption-text" id="caption-attachment-1746">Change your Boot Order</figcaption></figure>
<p>Also whilst you’re there in the Options panel, enable the QEMU Guest Agent. If you don’t enable it, Home-Assistant will still run perfectly well, but it will flag an error on boot, so for my own piece of mind, I enabled it to remove the error.</p>
<p>And that’s it. We’re done. Start the machine and wait a few minutes for Home-Assistant to load. If all’s gone well, once you log in, you should be greeted with this familiar screen. You can highlight the console icon on the VM at any time and you’ll be shown the IP address etc.</p>
<figure aria-describedby="caption-attachment-1767" class="wp-caption aligncenter" id="attachment_1767"><img alt="Home-Assistant: Blank Canvas" class="size-large wp-image-1767" decoding="async" height="562" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_yaTCxxpn4K-1024x767.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1767">Home-Assistant: Blank Canvas</figcaption></figure>
<p>I immediately took a snapshot like before:</p>
<figure aria-describedby="caption-attachment-1800" class="wp-caption aligncenter" id="attachment_1800"><img alt="Home-Assistant Snapshot" class="size-full wp-image-1800" decoding="async" height="344" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_PIY3syTEnw.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1800">Home-Assistant Snapshot</figcaption></figure>
<p>And there you have it. You have Supervised Home-Assistant running on Proxmox, with instant snapshots you can roll back to. You can use the add-ons in the VM, or you can choose to use containers in docker as you see fit. Candidates for either would be things like:</p>
<ul>
<li><a href="https://www.zigbee2mqtt.io">zigbee2mqtt</a></li>
<li>zwave2mqtt</li>
<li>An mqtt broker</li>
<li><a href="https://tasmota.github.io/docs/TasmoAdmin/">Tasmoadmin</a></li>
<li>Glances</li>
<li><a href="https://www.influxdata.com">Influxdb</a></li>
<li><a href="https://nodered.org">Nodered</a></li>
</ul>

<h2>Summary</h2>
<p>So to summarise, I am very pleased with the Beelink GK Mini. It’s small, very quiet (not silent, but not irritating by any means) and it’s more than capable of running a home server. Current utilisation with just a Home-Assistant VM and Portainer running is as follows:</p>
<figure aria-describedby="caption-attachment-1801" class="wp-caption aligncenter" id="attachment_1801"><img alt="Current Server Utilisation" class="wp-image-1801" decoding="async" height="358" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/chrome_D5GbvP2dgZ-1024x489.png" width="750"/><figcaption class="wp-caption-text" id="caption-attachment-1801">Current Server Utilisation</figcaption></figure>
<p>As you can see plenty of overhead on the Celeron there. I plan to add a 1TB ssd to it in the coming weeks and to build up a complete docker stack allowing me to distribute media around the home and whilst out and about. I will be adding <a href="https://www.thesmarthomebook.com/2021/07/24/the-holy-grail-of-networking-tailscale/">Tailscale</a> to the server to allow me to access it when away, without the need to use any portforwards.</p>
<p>A huge thank you to <a href="https://www.bee-link.com/">Beelink</a> for providing me with the unit itself. They have a range of AMD and Intel products that would cover most of your needs. Check out the full range <a href="https://www.bee-link.com/collections/all">here</a>.</p>
<p>On the Proxmox side, I know that I’m only scratching the surface right now. We haven’t covered additional disks, storage arrays, or a myraid of other things that Proxmox does well. Consider this an entry level walkthrough! If you have any good ideas on how to utilise Proxmox further, pop them in the comments below or come over to our facebook group to discuss further.</p>
<p><a href="https://www.facebook.com/groups/386238285944105">https://www.facebook.com/groups/386238285944105</a></p>
<p>If you’re considering a renovation and looking at the structured wiring side of things, or maybe you just want to support the blog, have a look below at my smarthome <a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored">book</a>, it’s available in all the usual places (including paperback)!</p>
<figure aria-describedby="caption-attachment-764" class="wp-caption aligncenter" id="attachment_764"><a href="https://books2read.com/thesmarthomebook" rel="noopener sponsored"><img alt="The Smarthome Book" class="size-large wp-image-764" decoding="async" height="490" loading="lazy" src="https://www.thesmarthomebook.com/wp-content/uploads/2020/04/ARCHITECT-TABLE-1024x669.jpg" width="750"/></a><figcaption class="wp-caption-text" id="caption-attachment-764">The Smarthome Book</figcaption></figure>
]]></content:encoded>
      <media:content url="https://www.thesmarthomebook.com/wp-content/uploads/2021/09/Artboard-1-1.png" medium="image" />
    </item>
  </channel>
</rss>