<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>home-assistant on Cavelab</title>
    <link>https://www.cavelab.dev/tags/home-assistant/</link>
    <description>Recent content in home-assistant on Cavelab</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>Thomas Jensen</copyright>
    <lastBuildDate>Tue, 16 Jun 2026 22:54:21 +0200</lastBuildDate>
	  <atom:link href="https://www.cavelab.dev/tags/home-assistant/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Securing Home Assistant API access for Dakboard — with Caddy</title>
      <link>https://www.cavelab.dev/posts/secure-home-assistant-api-caddy/</link>
      <pubDate>Tue, 16 Jun 2026 22:54:21 +0200</pubDate>
      <guid>https://www.cavelab.dev/posts/secure-home-assistant-api-caddy/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/secure-home-assistant-api-caddy/cover.jpg&#34;/&gt;
         &lt;p&gt;Back in 2021 I added &lt;a href=&#34;https://www.cavelab.dev/posts/dakboard-data-from-home-assistant/&#34;&gt;Home Assistant sensor data&lt;/a&gt; to our &lt;a href=&#34;https://www.cavelab.dev/posts/raspberry-pi-dakboard-display/&#34;&gt;Dakboard monitor&lt;/a&gt;. But I did so using a long-lived access token directly on the Dakboard blocks — which is not great for a couple of reasons:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Tokens have no access scope, meaning they grant full admin access to everything&lt;/li&gt;&#xA;&lt;li&gt;The token was stored on Dakboard&amp;rsquo;s servers&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I want Dakboard to be able to pull data from my locally hosted Home Assistant, but I&amp;rsquo;d like to restrict access.&lt;/p&gt;&#xA;&lt;p&gt;I did this using Caddy as a reverse proxy 🤓&lt;/p&gt;</description>
    </item>
    <item>
      <title>Using the Shelly Plus Plug S to measure homelab power</title>
      <link>https://www.cavelab.dev/posts/shelly-plus-plug-s/</link>
      <pubDate>Wed, 08 Jan 2025 20:44:24 +0100</pubDate>
      <guid>https://www.cavelab.dev/posts/shelly-plus-plug-s/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/shelly-plus-plug-s/cover.jpg&#34;/&gt;
         &lt;p&gt;I&amp;rsquo;m using a Shelly Plus Plug S smart plug to measure the power usage of my &lt;a href=&#34;https://www.cavelab.dev/homelab/&#34;&gt;homelab&lt;/a&gt;. I added it as a device in Home Assistant — and the power readings began! Kind of…&lt;/p&gt;&#xA;&lt;p&gt;Within a few days; I noticed something strange with the graph history — there were long periods of time where the graph was completely flat.&#xA;Logging into the Shelly web interface, I could see the watt reading changing — without this being reflected in Home Assistant.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Measuring outdoor temperature with a Raspberry Pi and DS18B20 probe</title>
      <link>https://www.cavelab.dev/posts/rpi-outdoor-temperature/</link>
      <pubDate>Fri, 29 Nov 2024 16:23:02 +0100</pubDate>
      <guid>https://www.cavelab.dev/posts/rpi-outdoor-temperature/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/rpi-outdoor-temperature/cover.jpg&#34;/&gt;
         &lt;p&gt;We have a &lt;a href=&#34;https://www.cavelab.dev/tags/dakboard/&#34;&gt;Dakboard&lt;/a&gt; digital calendar in our kitchen — showing lots of house and temperature data. So naturally; it must show the actual outdoor temperature as well.&lt;/p&gt;&#xA;&lt;p&gt;To do this I used a &lt;a href=&#34;https://www.cavelab.dev/tags/raspberry-pi/&#34;&gt;Raspberry Pi&lt;/a&gt; 2, and a &lt;a href=&#34;https://www.cavelab.dev/posts/rpi-ds18b20-temp-sensors/&#34;&gt;DS18B20 HAT&lt;/a&gt; I made some years back.&lt;/p&gt;</description>
    </item>
    <item>
      <title>(Re)set the time on our Komfovent ventilation system</title>
      <link>https://www.cavelab.dev/posts/set-komfovent-time/</link>
      <pubDate>Tue, 26 Nov 2024 17:10:52 +0100</pubDate>
      <guid>https://www.cavelab.dev/posts/set-komfovent-time/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/set-komfovent-time/cover.jpg&#34;/&gt;
         &lt;p&gt;Our Komfovent &lt;a href=&#34;https://www.cavelab.dev/tags/balanced-ventilation/&#34;&gt;balanced ventilation&lt;/a&gt; system is pretty bad at accurate timekeeping — the time drifts several minutes over the course of a few months. This is a bit annoying as the operator panel is prominently located on the second floor, and we use it to tell time.&lt;/p&gt;&#xA;&lt;p&gt;Luckily; the time can be set using the &lt;a href=&#34;https://en.wikipedia.org/wiki/Modbus&#34;&gt;Modbus&lt;/a&gt; interface.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Making my own NVR — with a streaming proxy and FFmpeg</title>
      <link>https://www.cavelab.dev/posts/diy-nvr-ffmpeg/</link>
      <pubDate>Thu, 25 Jan 2024 22:55:08 +0100</pubDate>
      <guid>https://www.cavelab.dev/posts/diy-nvr-ffmpeg/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/diy-nvr-ffmpeg/cover.jpg&#34;/&gt;
         &lt;p&gt;I&amp;rsquo;ve been thinking about getting some CCTV cameras for a while, and last summer I purchased two &lt;a href=&#34;https://reolink.com/&#34;&gt;Reolink&lt;/a&gt; PoE cameras. The footage is stored on a SD card, and uploaded to a local FTP server.&lt;/p&gt;&#xA;&lt;p&gt;But I also wanted to record continuously, without getting a dedicated Reolink NVR. I&amp;rsquo;ve seen some YouTube videos by &lt;a href=&#34;https://www.youtube.com/@TallPaulTech&#34;&gt;Tall Paul Tech&lt;/a&gt; where he uses &lt;a href=&#34;https://ffmpeg.org/&#34;&gt;FFmpeg&lt;/a&gt; to record CCTV footage — so let&amp;rsquo;s do that! &amp;#x1f642;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Raspberry Pi security alarm — the basics</title>
      <link>https://www.cavelab.dev/posts/rpi-security-alarm/</link>
      <pubDate>Fri, 30 Dec 2022 13:06:51 +0100</pubDate>
      <guid>https://www.cavelab.dev/posts/rpi-security-alarm/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/rpi-security-alarm/cover.jpg&#34;/&gt;
         &lt;p&gt;In November last year — I started building a DIY security alarm system, using a Raspberry Pi as the controller. My plan was to make a self-sustained system, using proper alarm hardware — like PIR sensors and sirens.&lt;/p&gt;&#xA;&lt;p&gt;Integration with &lt;a href=&#34;https://www.home-assistant.io/&#34;&gt;Home Assistant&lt;/a&gt; would be an add-on, not a requirement. I wanted the system to be as redundant and fault-tolerant as I could make it.&lt;/p&gt;&#xA;&lt;p&gt;This is a pretty long story, with some twists and turns — let&amp;rsquo;s get into it &amp;#x1f447;&lt;/p&gt;</description>
    </item>
    <item>
      <title>A few more ventilation automations in Home Assistant</title>
      <link>https://www.cavelab.dev/posts/ventilation-automations-home-assistant/</link>
      <pubDate>Thu, 04 Aug 2022 08:58:44 +0200</pubDate>
      <guid>https://www.cavelab.dev/posts/ventilation-automations-home-assistant/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/ventilation-automations-home-assistant/cover.png&#34;/&gt;
         &lt;p&gt;Controlling my &lt;a href=&#34;https://www.cavelab.dev/tags/komfovent/&#34;&gt;Komfovent&lt;/a&gt; balanced ventilation system through &lt;a href=&#34;https://www.home-assistant.io/&#34;&gt;Home Assistant&lt;/a&gt; — opens up a world of possibilities.&lt;/p&gt;&#xA;&lt;p&gt;Here are three automations I use to make the system a bit smarter &amp;#x1f642;&lt;/p&gt;</description>
    </item>
    <item>
      <title>More ducts for the balanced ventilation</title>
      <link>https://www.cavelab.dev/posts/more-ventilation-ducts/</link>
      <pubDate>Fri, 25 Mar 2022 16:39:20 +0100</pubDate>
      <guid>https://www.cavelab.dev/posts/more-ventilation-ducts/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/more-ventilation-ducts/cover.jpg&#34;/&gt;
         &lt;p&gt;We got &lt;a href=&#34;https://www.cavelab.dev/posts/balanced-ventilation/&#34;&gt;balanced ventilation installed&lt;/a&gt; last year, and have been very happy with the system &amp;#x1f642; But we quickly found that we needed to expand it into two more rooms — the 1st floor bathroom, used as the laundry room, and the play room, which will be a bedroom at some point.&lt;/p&gt;&#xA;&lt;p&gt;Time to fix that &amp;#x1f642;&lt;/p&gt;</description>
    </item>
    <item>
      <title>PowerWalker UPS, NUT, and Home Assistant</title>
      <link>https://www.cavelab.dev/posts/powerwalker-nut-home-assistant/</link>
      <pubDate>Wed, 19 Jan 2022 08:15:32 +0100</pubDate>
      <guid>https://www.cavelab.dev/posts/powerwalker-nut-home-assistant/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/powerwalker-nut-home-assistant/cover.jpg&#34;/&gt;
         &lt;p&gt;I&amp;rsquo;m using a Raspberry Pi to communicate with the power equipment in my &lt;a href=&#34;https://www.cavelab.dev/homelab/&#34;&gt;homelab rack&lt;/a&gt;; the UPS, ATS and PDU. For the UPS, I&amp;rsquo;m using &lt;a href=&#34;https://networkupstools.org/&#34;&gt;NUT (Network UPS Tools)&lt;/a&gt;, and for the ATS and PDU; my own &lt;a href=&#34;https://github.com/thomasjsn/powerwalker-python-lib&#34;&gt;PowerWalker Python library&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;In this post I&amp;rsquo;ll be going through how I&amp;rsquo;ve set up the NUT server to communicate with my &lt;a href=&#34;https://powerwalker.com/?item=10120023&#34;&gt;PowerWalker VI 1500 RT HID&lt;/a&gt; UPS, and NUT clients running on all other physical machines in the rack.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Using Tibber to control a smart plug — through Home Assistant</title>
      <link>https://www.cavelab.dev/posts/home-assistant-tibber-thermostat/</link>
      <pubDate>Wed, 01 Dec 2021 14:42:26 +0100</pubDate>
      <guid>https://www.cavelab.dev/posts/home-assistant-tibber-thermostat/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/home-assistant-tibber-thermostat/cover.png&#34;/&gt;
         &lt;p&gt;We&amp;rsquo;re using &lt;a href=&#34;https://tibber.com/&#34;&gt;Tibber&lt;/a&gt; as our electricity supplier — we have the &lt;a href=&#34;https://tibber.com/no/store/produkt/pulse&#34;&gt;Tibber Pulse&lt;/a&gt; reading our power usage and making it available in &lt;a href=&#34;https://www.home-assistant.io/&#34;&gt;Home Assistant&lt;/a&gt;, through an &lt;a href=&#34;https://www.home-assistant.io/integrations/tibber/&#34;&gt;integration&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;But Tibber also controls our heat-pump, by interfacing a &lt;a href=&#34;https://sensibo.com/products/sensibo-sky&#34;&gt;Sensibo Sky&lt;/a&gt;. Tibber&amp;rsquo;s &lt;a href=&#34;https://tibber.com/no/smart-styring/varmestyring&#34;&gt;smart heating control&lt;/a&gt; takes multiple factors into account; outside temperature, power price, thermal inertia. A clever algorithm, made by clever people — it works really well &amp;#x1f642;&lt;/p&gt;&#xA;&lt;p&gt;I found an easy way to &amp;ldquo;hook into&amp;rdquo; this heat control, using a simple Home Assistant automation.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Wi-Fi relays for controlling ventilation — WeMos D1, MQTT, and Home Assistant</title>
      <link>https://www.cavelab.dev/posts/wifi-relays-for-ventilation/</link>
      <pubDate>Sun, 21 Nov 2021 11:25:34 +0100</pubDate>
      <guid>https://www.cavelab.dev/posts/wifi-relays-for-ventilation/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/wifi-relays-for-ventilation/cover.jpg&#34;/&gt;
         &lt;p&gt;We recently got &lt;a href=&#34;https://www.cavelab.dev/posts/balanced-ventilation/&#34;&gt;balanced ventilation installed&lt;/a&gt;, and I have &lt;a href=&#34;https://www.cavelab.dev/posts/komfovent-c6-in-home-assistant/&#34;&gt;interfaced it with Home Assistant&lt;/a&gt;. However — the ventilation unit have three &amp;ldquo;special modes&amp;rdquo; that can not be enabled through the Modbus interface; fireplace, kitchen, and override. These can only be set on the touch panel, mobile app, or through inputs terminals on the controller.&lt;/p&gt;&#xA;&lt;p&gt;So I repurposed an &lt;a href=&#34;https://www.cavelab.dev/posts/wemos-mqtt-relay/&#34;&gt;old project&lt;/a&gt; and made a three-relay Wi-Fi controlled module, using MQTT to send commands and receive statuses.&lt;/p&gt;&#xA;&lt;p&gt;Then used &lt;a href=&#34;https://www.home-assistant.io/&#34;&gt;Home Assistant&lt;/a&gt; to automate it &amp;#x1f642;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Making a manual security alarm in Home Assistant</title>
      <link>https://www.cavelab.dev/posts/home-assistant-manual-alarm/</link>
      <pubDate>Fri, 19 Nov 2021 18:08:32 +0100</pubDate>
      <guid>https://www.cavelab.dev/posts/home-assistant-manual-alarm/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/home-assistant-manual-alarm/cover.png&#34;/&gt;
         &lt;p&gt;Using a few cheap sensors, a wireless keypad, &lt;a href=&#34;https://www.zigbee2mqtt.io/&#34;&gt;Zigbee2MQTT&lt;/a&gt; and &lt;a href=&#34;https://www.home-assistant.io/&#34;&gt;Home Assistant&lt;/a&gt;; I was able to get a basic security alarm up and running during a free afternoon &amp;#x1f642;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Interfacing Komfovent C6 in Home Assistant</title>
      <link>https://www.cavelab.dev/posts/komfovent-c6-in-home-assistant/</link>
      <pubDate>Mon, 15 Nov 2021 01:00:45 +0100</pubDate>
      <guid>https://www.cavelab.dev/posts/komfovent-c6-in-home-assistant/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/komfovent-c6-in-home-assistant/cover.png&#34;/&gt;
         &lt;p&gt;We recently got &lt;a href=&#34;https://www.cavelab.dev/posts/balanced-ventilation/&#34;&gt;balanced ventilation installed&lt;/a&gt;, and discovered that our ventilation unit has Modbus TCP/IP support. I even found a thread on the &lt;a href=&#34;https://community.home-assistant.io/t/modbus-sensor-tcp-for-komfovent/173215&#34;&gt;Home Assistant community&lt;/a&gt; talking about interfacing the C6 controller, which our unit has, into &lt;a href=&#34;https://www.home-assistant.io/&#34;&gt;Home Assistant&lt;/a&gt; &amp;#x1f603;&lt;/p&gt;&#xA;&lt;p&gt;Here is my implementation &amp;#x1f447;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Controlling the Raspberry Pi HDMI port — with MQTT and Home Assistant</title>
      <link>https://www.cavelab.dev/posts/control-rpi-hdmi-with-mqtt/</link>
      <pubDate>Tue, 19 Oct 2021 21:01:48 +0200</pubDate>
      <guid>https://www.cavelab.dev/posts/control-rpi-hdmi-with-mqtt/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/control-rpi-hdmi-with-mqtt/cover.jpg&#34;/&gt;
         &lt;p&gt;We have a &lt;a href=&#34;https://www.cavelab.dev/posts/raspberry-pi-dakboard-display/&#34;&gt;Raspberry Pi driven digital calendar&lt;/a&gt; in the kitchen. I&amp;rsquo;m currently using &lt;a href=&#34;https://crontab.guru/&#34;&gt;crontab&lt;/a&gt; to turn the HDMI port off at night, and when we&amp;rsquo;re at work.&lt;/p&gt;&#xA;&lt;p&gt;But a much more flexible solution is to control it using &lt;a href=&#34;https://en.wikipedia.org/wiki/MQTT&#34;&gt;MQTT&lt;/a&gt; and &lt;a href=&#34;https://www.home-assistant.io/&#34;&gt;Home Assistant&lt;/a&gt;. That way it can easily be automated to turn on when we&amp;rsquo;re home, if there is movement in the kitchen, or any number of conditions.&lt;/p&gt;&#xA;&lt;p&gt;It&amp;rsquo;s really quite easy to do, here&amp;rsquo;s how &amp;#x1f447;&lt;/p&gt;</description>
    </item>
    <item>
      <title>DAKboard external data — using Home Assistant</title>
      <link>https://www.cavelab.dev/posts/dakboard-data-from-home-assistant/</link>
      <pubDate>Sat, 18 Sep 2021 16:41:23 +0200</pubDate>
      <guid>https://www.cavelab.dev/posts/dakboard-data-from-home-assistant/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/dakboard-data-from-home-assistant/cover.jpg&#34;/&gt;
         &lt;p&gt;Earlier this year I put up a &lt;a href=&#34;https://www.cavelab.dev/posts/raspberry-pi-dakboard-display/&#34;&gt;Raspberry Pi powered DAKboard display&lt;/a&gt;. It shows photos from our Google Photos albums, the time and weather, and most importantly; our shared calendar.&lt;/p&gt;&#xA;&lt;p&gt;But I&amp;rsquo;d like it to show some custom data as well — like indoor temperature and humidity. And the measured outdoor temperature, not just the one reported from the weather service.&lt;/p&gt;&#xA;&lt;p&gt;Here is how I did that — using &lt;a href=&#34;https://www.home-assistant.io/&#34;&gt;Home Assistant&lt;/a&gt; &amp;#x1f447;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Home office ventilation — controlled by CO₂ level</title>
      <link>https://www.cavelab.dev/posts/home-office-fan-co2-level/</link>
      <pubDate>Thu, 16 Sep 2021 14:49:19 +0200</pubDate>
      <guid>https://www.cavelab.dev/posts/home-office-fan-co2-level/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/home-office-fan-co2-level/cover.jpg&#34;/&gt;
         &lt;p&gt;I recently watched &lt;a href=&#34;https://youtu.be/Cmr5VNALRAg&#34;&gt;Jeff Gerling&amp;rsquo;s video&lt;/a&gt; on CO₂ levels, and how to monitor it. My home office is also in the basement, with no windows. So I paid attention to the air quality when setting up down here.&lt;/p&gt;&#xA;&lt;p&gt;In addition to monitoring the CO₂ level, I&amp;rsquo;m also automatically ventilating the space when the air quality gets too bad.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Raspberry Pi with DS18B20 temperature sensors</title>
      <link>https://www.cavelab.dev/posts/rpi-ds18b20-temp-sensors/</link>
      <pubDate>Wed, 30 Oct 2019 00:00:00 +0100</pubDate>
      <guid>https://www.cavelab.dev/posts/rpi-ds18b20-temp-sensors/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/rpi-ds18b20-temp-sensors/cover.jpg&#34;/&gt;
         &lt;p&gt;I made a simple HAT (Hardware Attached on Top) for the Raspberry Pi to read multiple DS18B20 temperature sensors — it was surprisingly easy. I used the measured temperatures to control a fan using Home Assistant.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Kids alarm module, Raspberry Pi Zero, and MQTT</title>
      <link>https://www.cavelab.dev/posts/rpi-kids-alarm-mqtt/</link>
      <pubDate>Tue, 10 Sep 2019 22:12:32 +0200</pubDate>
      <guid>https://www.cavelab.dev/posts/rpi-kids-alarm-mqtt/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/rpi-kids-alarm-mqtt/cover.jpg&#34;/&gt;
         &lt;p&gt;My twin boys are, like their dad, fascinated by switches and flashing lights. I needed an excuse to use the Raspberry Pi Zero in a project, so I built them a WiFi MQTT controlled alarm module. With a couple of switches, some panel indicators, a buzzer, and a blue LED strobe.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Making a WiFi MQTT controlled relay for Home Assistant</title>
      <link>https://www.cavelab.dev/posts/wemos-mqtt-relay/</link>
      <pubDate>Thu, 31 Aug 2017 12:00:00 +0200</pubDate>
      <guid>https://www.cavelab.dev/posts/wemos-mqtt-relay/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/wemos-mqtt-relay/cover.jpg&#34;/&gt;
         &lt;p&gt;I&amp;rsquo;ve wanted to use an ESP8266 WiFi module in a project for some time now, and after reading about the WeMos board, I figured this was the easiest way to get started. The WeMos D1 mini is quite small and much easier to interact with and program than the ESP8266 devices. So I built this single relay controller, with internal temperature reporting. I am communicating with it using MQTT, which makes it really easy to implement it into things like &lt;a href=&#34;https://home-assistant.io/&#34;&gt;Home Assistant&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
