<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>https://kcore.org/feed.xml</id>
  <title>kcore.org</title>
  <subtitle>... everything&amp;#039;s just a memory dump away ...</subtitle>
  <updated>2026-12-04T19:37:35+01:00</updated>
  <author>
    <name>Jan</name>
    <uri>https://kcore.org/</uri>
  </author>
  <link rel="self" type="application/atom+xml" href="https://kcore.org/feed.xml"/>
  <link rel="alternate" type="text/html" hreflang="en"
    href="https://kcore.org/"/>
  <generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator>
  <rights>© 2026 Jan</rights>
  <icon>/assets/img/favicons/favicon.ico</icon>
  <logo>/assets/img/favicons/favicon-96x96.png</logo>

  
  
  <entry>
    <title>Switching from Podman Quadlets to Podman Compose</title>
    <link href="https://kcore.org/2026/09/09/switching-from-podman-quadlets-to-podman-compose/" rel="alternate" type="text/html" title="Switching from Podman Quadlets to Podman Compose" />
    <published>2026-09-09T00:00:00+02:00</published>
  
    <updated>2026-09-23T00:00:00+02:00</updated>
  
    <id>https://kcore.org/2026/09/09/switching-from-podman-quadlets-to-podman-compose</id>
    <author>
      <name>Jan</name>
    </author>
  
    
    <category term="Technology &amp; IT" />
    
    <category term="Virtualisation" />
    
  
  
    
    <category term="containers" scheme="tag" />
    
    <category term="docker" scheme="tag" />
    
    <category term="podman" scheme="tag" />
    
    <category term="rootless" scheme="tag" />
    
    <category term="compose" scheme="tag" />
    
    <category term="quadlets" scheme="tag" />
    
  
  <summary type="html"><![CDATA[I switched from Docker to Podman in my homelab back in 2023, and settled on using Quadlets. I’ve been using this system for about three years, but it’s a bit of a hassle to have to convert any and all Docker Compose files into separate Quadlet files.     If you’re starting out with Podman, you might want to go read the blog post linked above, as it does contain some things to help you get start...]]></summary>
  
  <content type="html" xml:base="https://kcore.org/2026/09/09/switching-from-podman-quadlets-to-podman-compose/"><![CDATA[<p>I switched from Docker to Podman in my homelab back in <a href="/2023/12/13/adventures-with-rootless-containers/">2023</a>, and settled on using <a href="https://www.redhat.com/en/blog/quadlet-podman">Quadlets</a>. I’ve been using this system for about three years, but it’s a bit of a hassle to have to convert any and all <a href="https://docs.docker.com/reference/compose-file/">Docker Compose files</a> into separate Quadlet files.</p>

<blockquote class="prompt-info">
  <p>If you’re starting out with Podman, you might want to go read the blog post linked above, as it does contain some things to help you get started.</p>
</blockquote>

<p>Having grown tired of doing that, I decided to revisit <a href="https://docs.podman.io/en/latest/markdown/podman-compose.1.html">Podman Compose</a> - taking the Compose files created by the upstream projects, and running them through <a href="https://podman.io/">podman</a> instead of <a href="https://docker.com">Docker</a>. My <a href="https://kcore.org/2025/03/15/taking-back-control-webpresence-part1/">previous</a> trials with Podman Compose weren’t that great, but somehow now things just worked.</p>

<p>While switching over my container stack I came across a few things that I had to change:</p>

<h2 id="selinux-process-labeling">SELinux process labeling</h2>

<p>For Traefik I had <code class="language-plaintext highlighter-rouge">SecurityLabelType=traefik.process</code> configured so that the process would be labeled with the correct SELinux context. To do this with Podman Compose I had to add</p>

<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">security_opt</span><span class="pi">:</span>
  <span class="pi">-</span> <span class="s2">"</span><span class="s">label=type:traefik.process"</span>
</code></pre></div></div>

<p>to the service definition.</p>

<h2 id="user-namespace-mapping">User namespace mapping</h2>

<p>Some of my containers use namespace mapping to make the original UID available to the container. I came across <a href="https://github.com/oneuptime/blog/tree/master/posts/2026-03-17-use-x-podman-extensions-compose-files">this blog post</a> which details a lot of the Podman Compose extensions available.</p>

<p>Previously I had</p>

<div class="language-ini highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="py">PodmanArgs</span><span class="p">=</span><span class="s">--uidmap +1000:@1000:1 --gidmap +1000:@1000:1</span>
</code></pre></div></div>

<p>which could be mapped to</p>

<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">x-podman.uidmaps</span><span class="pi">:</span>
  <span class="pi">-</span> <span class="s2">"</span><span class="s">+1000:@1000:1"</span>
<span class="na">x-podman.gidmaps</span><span class="pi">:</span>
  <span class="pi">-</span> <span class="s2">"</span><span class="s">+1000:@1000:1"</span>
</code></pre></div></div>

<p>in my <code class="language-plaintext filepath highlighter-rouge">compose.yml</code> file.</p>

<h2 id="starting-containers-automatically-at-boot">Starting containers automatically at boot</h2>

<p>When using Quadlets, <code class="language-plaintext highlighter-rouge">systemd</code> will make sure your containers are started at boot. When using Podman Compose, there’s a service you can activate called <code class="language-plaintext highlighter-rouge">podman-restart.service</code> to basically do the same thing.</p>

<p>To enable it, run (as your Podman user):</p>

<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code>systemctl <span class="nt">--user</span> <span class="nb">enable</span> <span class="nt">--now</span> podman-restart.service
</code></pre></div></div>

<p>If you check out <code class="language-plaintext filepath highlighter-rouge">/usr/lib/systemd/system/podman-restart.service</code>, you’ll see that the start command reads</p>

<div class="language-ini highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="py">ExecStart</span><span class="p">=</span><span class="s">/usr/bin/podman $LOGGING start --all --filter should-start-on-boot=true</span>
</code></pre></div></div>

<p>The man page for <code class="language-plaintext highlighter-rouge">podman-start</code> tells us that the <code class="language-plaintext highlighter-rouge">should-start-on-boot</code> filter will instruct Podman to start containers with a restart policy of <code class="language-plaintext highlighter-rouge">always</code> or <code class="language-plaintext highlighter-rouge">unless-stopped</code>.</p>

<h2 id="automatic-updating-of-containers">Automatic updating of containers</h2>

<p>Quadlets also offer the feature of updating your containers automatically and restarting them when a new image is available.</p>

<p>In <a href="https://www.nanosector.nl/posts/podman-rootless-autostart/">this blog post</a> I found a nifty way to solve this problem:</p>

<p>I created the systemd timer <code class="language-plaintext filepath highlighter-rouge">~/.config/systemd/user/podman-update@.timer</code>:</p>

<div class="language-ini highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nn">[Unit]</span><span class="w">
</span><span class="py">Description</span><span class="p">=</span><span class="s">Podman update timer for %i</span>
<span class="w">
</span><span class="nn">[Timer]</span><span class="w">
</span><span class="py">OnCalendar</span><span class="p">=</span><span class="s">daily</span>
<span class="py">RandomizedDelaySec</span><span class="p">=</span><span class="s">900</span>
<span class="py">Persistent</span><span class="p">=</span><span class="s">true</span>
<span class="w">
</span><span class="nn">[Install]</span><span class="w">
</span><span class="py">WantedBy</span><span class="p">=</span><span class="s">timers.target</span>
</code></pre></div></div>

<p>and the systemd service <code class="language-plaintext filepath highlighter-rouge">~/.config/systemd/user/podman-update@.service</code>:</p>

<div class="language-ini highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nn">[Unit]</span><span class="w">
</span><span class="py">Description</span><span class="p">=</span><span class="s">Podman auto-update service for %i</span>
<span class="py">Wants</span><span class="p">=</span><span class="s">network-online.target</span>
<span class="py">After</span><span class="p">=</span><span class="s">network-online.target</span>
<span class="w">
</span><span class="nn">[Service]</span><span class="w">
</span><span class="py">Type</span><span class="p">=</span><span class="s">oneshot</span>
<span class="py">WorkingDirectory</span><span class="p">=</span><span class="s">%h/containers/%i</span>
<span class="py">Environment</span><span class="p">=</span><span class="s">"DOCKER_HOST=unix:%t/podman/podman.sock"</span>
<span class="py">KillMode</span><span class="p">=</span><span class="s">process</span>
<span class="py">RemainAfterExit</span><span class="p">=</span><span class="s">no</span>
<span class="w">
</span><span class="py">ExecStart</span><span class="p">=</span><span class="s">/bin/bash -c '</span><span class="se">\
</span><span class="w">  </span><span class="s">BEFORE=$$(/usr/bin/podman compose images -q | sort -u); </span><span class="se">\
</span><span class="w">  </span><span class="s">/usr/bin/podman compose pull; </span><span class="se">\
</span><span class="w">  </span><span class="s">AFTER=$$(/usr/bin/podman compose images -q | sort -u); </span><span class="se">\
</span><span class="w">  </span><span class="s">if [ "$$BEFORE" != "$$AFTER" ]; then </span><span class="se">\
</span><span class="w">    </span><span class="s">echo "New image downloaded for %i. Recreating containers..."; </span><span class="se">\
</span><span class="w">    </span><span class="s">/usr/bin/podman compose up -d --force-recreate; </span><span class="se">\
</span><span class="w">    </span><span class="s">/usr/bin/podman image prune -f; </span><span class="se">\
</span><span class="w">  </span><span class="s">else </span><span class="se">\
</span><span class="w">    </span><span class="s">echo "Images for %i are unchanged. Skipping restart."; </span><span class="se">\
</span><span class="w">  </span><span class="s">fi'</span>
<span class="w">
</span><span class="nn">[Install]</span><span class="w">
</span><span class="py">WantedBy</span><span class="p">=</span><span class="s">default.target</span>
</code></pre></div></div>

<p>and enabling the timer (per Podman Compose project directory)</p>

<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code>systemctl <span class="nt">--user</span> <span class="nb">enable</span> <span class="nt">--now</span> podman-update@&lt;directory&gt;.timer
</code></pre></div></div>

<blockquote class="prompt-info">
  <p>Don’t forget to update the <code class="language-plaintext highlighter-rouge">WorkingDirectory</code> in <code class="language-plaintext filepath highlighter-rouge">podman-update@.service</code> to wherever you store your Podman Compose YAML files! I use <code class="language-plaintext filepath highlighter-rouge">~/containers</code>, with a subdirectory per project.</p>
</blockquote>

<p>Now my containers get automatically updated and cleanly restarted too.</p>
]]></content>
  </entry>

  
  
  <entry>
    <title>The search for email hosting</title>
    <link href="https://kcore.org/2026/07/12/the-search-for-email-hosting/" rel="alternate" type="text/html" title="The search for email hosting" />
    <published>2026-07-12T00:00:00+02:00</published>
  
    <updated>2026-08-20T00:00:00+02:00</updated>
  
    <id>https://kcore.org/2026/07/12/the-search-for-email-hosting</id>
    <author>
      <name>Jan</name>
    </author>
  
    
    <category term="Technology &amp; IT" />
    
    <category term="Networking" />
    
  
  
    
    <category term="mail hosting" scheme="tag" />
    
    <category term="email" scheme="tag" />
    
    <category term="contacts" scheme="tag" />
    
    <category term="calendar" scheme="tag" />
    
    <category term="fastmail" scheme="tag" />
    
    <category term="google workspace" scheme="tag" />
    
    <category term="gsuite" scheme="tag" />
    
    <category term="google apps for my domain" scheme="tag" />
    
    <category term="mailfence" scheme="tag" />
    
    <category term="mailbox.org" scheme="tag" />
    
    <category term="soverin" scheme="tag" />
    
    <category term="proton" scheme="tag" />
    
    <category term="tuta" scheme="tag" />
    
    <category term="infomaniak" scheme="tag" />
    
    <category term="migadu" scheme="tag" />
    
    <category term="startmail" scheme="tag" />
    
    <category term="posteo" scheme="tag" />
    
    <category term="eclipso" scheme="tag" />
    
    <category term="runbox" scheme="tag" />
    
    <category term="grommunio" scheme="tag" />
    
  
  <summary type="html"><![CDATA[I’ve been pondering whether to move away from Fastmail - not because it’s a bad service, but because of where the servers are hosted. I’ve weighed a bunch, but for now I’m staying with Fastmail. The beauty of email is that it’s based on open standards, and you can just move whenever you feel like it.  Mail-hosting history  Over the years I’ve used GMX.net, Hotmail and Gmail - the latter still e...]]></summary>
  
  <content type="html" xml:base="https://kcore.org/2026/07/12/the-search-for-email-hosting/"><![CDATA[<p>I’ve been pondering whether to move away from Fastmail - not because it’s a bad service, but because of where the servers are hosted. I’ve weighed a bunch, but for now I’m staying with Fastmail. The beauty of email is that it’s based on open standards, and you can just move whenever you feel like it.</p>

<h2 id="mail-hosting-history">Mail-hosting history</h2>

<p>Over the years I’ve used <a href="https://en.wikipedia.org/wiki/GMX_Mail">GMX.net</a>, <a href="https://en.wikipedia.org/wiki/Outlook.com">Hotmail</a> and <a href="https://en.wikipedia.org/wiki/Gmail">Gmail</a> - the latter still exists but is not actively used. In addition to Gmail, I also used Google Calendar and Google Contacts.</p>

<h3 id="unknown-2000---2005">Unknown (2000 - 2005)</h3>

<p>I bought my first domain in 2000, but I forgot where I had that hosted. It came with email, that I remember, which I accessed through <a href="https://en.wikipedia.org/wiki/Eudora_(email_client)">Eudora</a> and later <a href="https://apps.kde.org/kmail2/">KMail</a>.</p>

<h3 id="lunarpages-2005---2008">Lunarpages (2005 - 2008)</h3>

<p>In 2005 I moved to <a href="https://web.archive.org/web/20060618093204/http://www.lunarpages.com:80/">Lunar Pages</a>, and took my mail with me there. Your run-of-the-mill shared webhosting mail service. Used via KMail. If my memory serves me right they offered <a href="https://www.squirrelmail.org/">Squirrelmail</a> and <a href="https://www.horde.org/apps/imp">IMP</a> as webmail interfaces.</p>

<h3 id="google-apps-for-my-domain-2008---2015">Google Apps for My Domain (2008 - 2015)</h3>

<p>In 2008 I moved my mail to <a href="https://en.wikipedia.org/wiki/Google_Workspace">Google Apps for My Domain</a>, which had a free plan at the time. I also moved my calendar and contacts there, removing them from the free Google services that I had been using up to then.</p>

<p>With Google Apps for My Domain (now known as Google Workspace), you could use your own domain. The Google interfaces were amongst the best that I had come across; the service was free, and Google did not put ads in the Google Apps variants (since they were geared towards paying customers).</p>

<h3 id="fastmail-2016">Fastmail (2016)</h3>

<p>As I was feeling less and less good about my over-reliance on Google products, I moved in 2016 to <a href="https://join.fastmail.com/c093c10a">Fastmail</a> for a year. I really enjoyed it, but the integration options into Android (my mobile platform of choice) weren’t that fantastic. 3rd party apps only got me so far.</p>

<h3 id="google-apps-for-my-domain-2017-ish">Google Apps for My Domain (2017.. ish?)</h3>

<p>2017 saw me moving back to Google Apps - as a paying customer this time since they had stopped their free plans - but that didn’t last long. After using Fastmail, the Gmail interface felt slow and clunky - and I was facing serious synchronisation issues with calendars from Microsoft O365. Often they would not sync at all.</p>

<p>I raised a ticket with support, but that did not end on a happy note:</p>

<blockquote>
  <p>As discussed I can confirm you’re affected by the known issue where Google Calendar experiences issues parsing a published ICS. Our engineering team are aware of this issue and have been working towards interoperability with Microsoft engineers but as of yet there is no ETA for a fix for this issue.</p>

  <p>Under usual circumstances I would suggest installing Google Sync for Microsoft Outlook as a workaround to sync in real-time but I understand you’re unable to install applications on your machine. Please note I have added your domain to the list of affected users and will provide additional feedback to our engineering team regarding this issue.</p>
</blockquote>

<p>Needless to say, I never heard back from them. I’m not sure if that issue even ever got fixed.</p>

<h3 id="fastmail-2017---now">Fastmail (2017 - now)</h3>

<p>That same year I migrated back to Fastmail, where I’ve been ever since.</p>

<h2 id="about-fastmail">About Fastmail</h2>

<p>Fastmail is a fantastic email provider. They do <a href="https://www.fastmail.com/company/open-source/">great work</a> in the open source world and are actively working with several international communities to make email better for everyone.</p>

<p>The web interface - which is the primary way I interact with their service - is functional, fast, beautiful, and gets out of the way. Keyboard navigation is a thing, and it works great.</p>

<p>Their support is amazing. Back in 2016, I had an issue syncing calendars from Microsoft O365 (duplicate entries would show up if individual items in a recurring meeting got modified), and I raised it with them. After some back and forth, this was the outcome:</p>

<blockquote>
  <p>As you can see, the “RECURRENCE-ID” field has a zero time component, but the DTSTART was T110000, so the RECURRENCE-ID doesn’t match any actual recurrence of the event. There’s been a ton of discussion about this case on the standards calls for CalConnect, and the conclusion was that we should be including any “unknown” recurrence as a separate instance - so you wind up with two instances of the event in our system.</p>

  <p>It’s clearly a Microsoft bug, that recurrence ID should say T110000. I’m not even sure what we can do about it :(</p>

  <p>Having said that - the behaviour when RECURRENCE-ID doesn’t match an expanded recurrence is undefined by the spec. We’re working on fixing that as part of the TC-API group at CalConnect - there will be a new standard which doesn’t have this problem. <em>sigh</em></p>

  <p>So meanwhile we’ve fixed our product to check for this particular case - where there’s no time on the RECURRENCE-ID field, but the recurrence must be at the same time each day - and it will modify the recurrences to be at the same time as the DTSTART of the first event.</p>

  <p>You will notice that this has fixed the duplicates on display in your calendar. It will also modify the caldav events on next sync for synchronised calendars.</p>

  <p>Regards,</p>

  <p>Bron.</p>
</blockquote>

<p>And it was fixed. At that time I wasn’t even aware who Bron was - he’s the <a href="https://www.fastmail.com/company/about/">CEO of Fastmail</a>.</p>

<h2 id="so-why-consider-moving">So why consider moving?</h2>

<p>My current subscription ends in October, so this is a good moment to weigh things up. I would prefer staying with Fastmail - it works, and it works well, but there’s one thing that keeps nagging at me:</p>

<blockquote class="prompt-warning">
  <p>I am not a lawyer. This is my own interpretation. Make of it what you will.</p>
</blockquote>

<p>Fastmail is an Australian company which hosts its servers in the US. Data that is physically there falls under US jurisdiction regardless of where the company is incorporated. <a href="https://en.wikipedia.org/wiki/FISA_Amendments_Act_of_2008">FISA Section 702</a> gives US intelligence agencies the ability to collect communications of non-US persons from US-based servers without a warrant, and the <a href="https://en.wikipedia.org/wiki/CLOUD_Act">CLOUD Act</a> allows them to compel access through standard legal process.</p>

<p>Fastmail <a href="https://www.fastmail.com/blog/fastmails-servers-are-in-the-us-what-this-means-for-you/">addressed this concern back in 2013</a> in which they stated that as an Australian company with no US incorporation or staff, they are not directly bound by US court orders. The CLOUD Act which has been passed since mitigates this though.</p>

<p>The above concerns are not specifically tied to Fastmail, but more to do with how I feel about US jurisdiction. They’ve behaved less like a trusted partner and more like an <a href="https://en.wikipedia.org/wiki/Anti-Americanism#Second_Trump_administration">abusive spouse</a>.</p>

<p>I know that there are <a href="https://en.wikipedia.org/wiki/Five_Eyes">international intelligence sharing agreements</a>, so even moving to a purely European hosting service would not mitigate this.</p>

<h2 id="requirements">Requirements</h2>

<ul>
  <li>The provider <strong>must</strong> use open standards - <a href="https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol">SMTP</a>, <a href="https://en.wikipedia.org/wiki/Internet_Message_Access_Protocol">IMAP</a>, <a href="https://en.wikipedia.org/wiki/CalDAV">CalDAV</a> and <a href="https://en.wikipedia.org/wiki/CardDAV">CardDAV</a>.
<a href="https://en.wikipedia.org/wiki/JSON_Meta_Application_Protocol">JMAP</a> is a nice-to-have. <a href="https://en.wikipedia.org/wiki/Post_Office_Protocol">POP3</a> is not required.</li>
  <li>Multiple custom domains need to be supported.</li>
  <li>Email, contacts and calendars should all be part of the offering.</li>
  <li><a href="https://en.wikipedia.org/wiki/Email_filtering#Methods">Catchall</a> addresses are a requirement.</li>
  <li>Since I mostly (always?) access my mail through webmail and I have <a href="/2026/07/10/the-search-for-a-mail-client">not found</a> a client that I like, their webmail should check the boxes listed in the previous blog post. And it really needs to be pleasant to use. Perhaps a strange requirement, but it is one for me.</li>
  <li>The provider or its parent company <strong>must not</strong> be incorporated in the US.</li>
  <li>The servers of the provider should not be solely located in the US. Not having them there at all is even better.</li>
  <li>Encryption at rest is non-negotiable, but I believe all reputable providers do that these days.</li>
  <li><a href="https://en.wikipedia.org/wiki/End-to-end_encryption">End-to-end encryption</a> is not a requirement for me. While it’s nice from a privacy point of view, it negates the possibility of using the aforementioned standards, and being realistic, 90% of the mail I send out probably ends up on either <a href="https://gmail.com">Gmail</a> or <a href="https://outlook.com">Outlook</a>.</li>
</ul>

<h2 id="hosting-providers">Hosting providers</h2>

<p>I had a look at a bunch of alternative hosting providers, in no particular order.</p>

<h3 id="proton--tuta"><a href="https://proton.me/mail">Proton</a> &amp; <a href="https://tuta.com/">Tuta</a></h3>

<p>Proton is hosted (for now) in Switzerland, Tuta in Germany.</p>

<p>These two providers are end-to-end encrypted and have (in my view) a lock-in problem: it’s not easy to get your data in or out. They both have a means for importing and exporting, but it’s a far cry from using an IMAP copy between mailboxes. The main reason I don’t want to use them.</p>

<p>For a long time neither of them had the option to share calendar links to 3rd parties outside of their ecosystem, which also negated them for me. This seems to be possible now.</p>

<p>Additionally, Proton has no support for dark-themed mail content, and while Tuta does have that, it’s half baked.</p>

<p>My <a href="https://en.wikipedia.org/wiki/Threat_model">threat model</a> also does not require end-to-end encryption.</p>

<h3 id="eclipso"><a href="https://eclipso.eu">Eclipso</a></h3>

<p>Hosted in Germany. The web interface is clean, but unfortunately no dark mode to be seen anywhere. It also had me searching how to change the language from German (default) to English… I understand some German but not enough to use it daily.</p>

<h3 id="runbox"><a href="https://runbox.com">Runbox</a></h3>

<p>Hosted in Norway. The interface is better than the older version, but often it switches back and forth between versions. No dark mode support, and also no way to share or subscribe to calendars.</p>

<h3 id="posteo"><a href="https://posteo.de">Posteo</a></h3>

<p>Hosted in Germany. Does not support custom domains, which is a dealbreaker.</p>

<h3 id="mailboxorg"><a href="https://mailbox.org/">Mailbox.org</a></h3>

<p>Hosted in Germany, supports all the standards. Web interface is <em>not great</em>, but works. Unfortunately no support for dark-themed mails, and I had issues getting a rather large shared calendar to sync.</p>

<p>I contacted support about this. After a really long round-trip (nearly a week), the final conclusion was that I just have to sync it in my client of choice. <em>Heh</em>.</p>

<h3 id="infomaniak"><a href="https://www.infomaniak.com/">Infomaniak</a></h3>

<p>Hosted in Switzerland. No dark-themed emails, and the interface is confusing. They have so many things that I don’t need or want in the <a href="https://www.infomaniak.com/en/ksuite">K-Suite</a> that it’s off-putting to use.</p>

<h3 id="migadu"><a href="https://migadu.com/">Migadu</a></h3>

<p>Also hosted in Switzerland. Mail and very limited calendaring support (only through CalDAV).</p>

<h3 id="startmail"><a href="https://www.startmail.com/">Startmail</a></h3>

<p>Hosted in The Netherlands. No calendar support, which I do require.</p>

<h3 id="mailfence"><a href="https://mailfence.com/">Mailfence</a></h3>

<p>Hosted in Belgium. Supports mail, contacts, calendars. No dark-themed emails, unfortunately. The interface needs to be improved to be really something I’d love to use on a daily basis.</p>

<h3 id="soverin"><a href="https://soverin.com/">Soverin</a></h3>

<p>Hosted in The Netherlands. While they have all the parts, the interface feels old and not pleasant to use. Dark mode is wishy-washy, both for mails and the UI.</p>

<h3 id="grommunio"><a href="https://grommunio.com/">Grommunio</a></h3>

<p>This is actually an Exchange replacement. I asked for a demo account on Grommunio to test it (since they don’t sell it themselves, only through partners). Dark mode works well (mail and UI), but there is no way to subscribe to calendars from outside Grommunio without relying on scripts.
Finding a reseller that will deal with a customer (vs a business) might also be a challenge.</p>

<blockquote class="prompt-info">
  <p>Update 2026/07/17: Businesswire: Fastmail will be <a href="https://www.businesswire.com/news/home/20260713988425/en/Fastmail-Launches-EU-Hosted-Email-Infrastructure-Giving-Customers-Control-Over-Where-Their-Data-Lives">adding email hosting in Amsterdam</a>.</p>
</blockquote>
<blockquote class="prompt-info">
  <p>Update 2026/08/03: Fastmail blog: <a href="https://www.fastmail.com/blog/fastmail-offers-eu-data-region/">Fastmail offers EU data region</a></p>
</blockquote>

<p>In a first phase, the secondary copy of the data (for resiliency in case the EU servers go down) will still live in the US. The blog post does open up the possibility that in a future phase data won’t be sent to the US anymore.</p>

<p>Fastmail is an Australian company and as such it is <a href="https://en.wikipedia.org/wiki/Assistance_and_Access_Act_2018">bound by Australian law</a>. This, combined with <a href="https://en.wikipedia.org/wiki/Five_Eyes">international data sharing agreements</a>, means that data can be subpoenaed regardless of where it is hosted.
For me personally it feels like a step in the right direction though. Bron answered some questions in this <a href="https://www.reddit.com/r/fastmail/comments/1uvbp83/fastmail_will_add_eu_hosting/">Reddit thread</a> - we’ll need to wait and see what happens.</p>
]]></content>
  </entry>

  
  
  <entry>
    <title>The search for an email, contacts and calendar client for Linux</title>
    <link href="https://kcore.org/2026/07/09/the-search-for-a-mail-client/" rel="alternate" type="text/html" title="The search for an email, contacts and calendar client for Linux" />
    <published>2026-07-09T00:00:00+02:00</published>
  
    <updated>2026-07-09T00:00:00+02:00</updated>
  
    <id>https://kcore.org/2026/07/09/the-search-for-a-mail-client</id>
    <author>
      <name>Jan</name>
    </author>
  
    
    <category term="Technology &amp; IT" />
    
    <category term="Linux" />
    
  
  
    
    <category term="linux" scheme="tag" />
    
    <category term="email client" scheme="tag" />
    
    <category term="contacts" scheme="tag" />
    
    <category term="calendar" scheme="tag" />
    
    <category term="pim" scheme="tag" />
    
    <category term="personal information manager" scheme="tag" />
    
    <category term="email" scheme="tag" />
    
    <category term="mua" scheme="tag" />
    
    <category term="mail user agent" scheme="tag" />
    
    <category term="mailflow" scheme="tag" />
    
    <category term="kmail" scheme="tag" />
    
    <category term="thunderbird" scheme="tag" />
    
    <category term="evolution" scheme="tag" />
    
    <category term="roundcube" scheme="tag" />
    
    <category term="mailspring" scheme="tag" />
    
    <category term="bluemail" scheme="tag" />
    
    <category term="bulwark" scheme="tag" />
    
  
  <summary type="html"><![CDATA[I’ve been searching for an email client. Well, more than an email client - a piece of software (or interconnected pieces) that can handle email, calendaring and contacts - often referred to as a Personal Information Manager (or PIM). Either natively on Linux, or as a web client.  The main reason for this search is that I’m considering moving away from my current mail hoster, Fastmail. Not becau...]]></summary>
  
  <content type="html" xml:base="https://kcore.org/2026/07/09/the-search-for-a-mail-client/"><![CDATA[<p>I’ve been searching for an <a href="https://en.wikipedia.org/wiki/Email_client">email client</a>. Well, more than an email client - a piece of software (or interconnected pieces) that can handle email, calendaring and contacts - often referred to as a <a href="https://en.wikipedia.org/wiki/Personal_information_management#Tools">Personal Information Manager</a> (or PIM). Either natively on Linux, or as a web client.</p>

<p>The main reason for this search is that I’m considering moving away from my current mail hoster, <a href="https://join.fastmail.com/c093c10a">Fastmail</a>. Not because of the price (which is fair), not because of the service (which is stellar), not because of their webmail interface (which is one of the best PIM interfaces I’ve ever come across), but because their servers are hosted in the USA. Maybe a bit childish, but I’d prefer my stuff a bit farther away from that regime.</p>

<p>In my world email, calendaring and contacts go hand in hand. I send emails to contacts, I use multiple calendars to keep track of all I want to do, and I use email and contacts to share those calendar events. Having them separate doesn’t work.</p>

<p>Beyond having some form of integration, my list of ‘requirements’ isn’t <em>that</em> big:</p>

<ul>
  <li>Supporting standards. For email we have <a href="https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol">SMTP</a>, <a href="https://en.wikipedia.org/wiki/JSON_Meta_Application_Protocol">JMAP</a>, <a href="https://en.wikipedia.org/wiki/Internet_Message_Access_Protocol">IMAP</a> and <a href="https://en.wikipedia.org/wiki/Post_Office_Protocol">POP3</a>, <a href="https://en.wikipedia.org/wiki/CalDAV">CalDAV</a> for calendars and <a href="https://en.wikipedia.org/wiki/CardDAV">CardDAV</a> for contacts. Since I use multiple platforms, it <em>has</em> to use these standards.</li>
  <li>Having full-text search. Attachment search is nice to have, but not a dealbreaker.</li>
  <li>Having a modern look, with support for dark mode - not only for the interface, but also for the content of emails.</li>
  <li>Supporting multiple identities easily.</li>
  <li>Having a notion of conversations, and properly visualising them.</li>
  <li>Supporting mail filtering rules. If it can interact with <a href="https://en.wikipedia.org/wiki/Sieve_(mail_filtering_language)">Sieve</a> on the backend, even better.</li>
</ul>

<p>There are some optional features that I’d like, but could do without:</p>

<ul>
  <li>Showing contact images in the message list (or placeholders). Many modern clients do this these days.</li>
  <li>Snoozing of mails. Client side, not server side, I know, but it’s nice if it has it.</li>
</ul>

<p>All these criteria make it really hard to find a client that I want to use on a daily basis.</p>

<h2 id="native-clients">Native clients</h2>

<h3 id="kontact-suite"><a href="https://kontact.kde.org/">Kontact Suite</a></h3>

<p>This is a part of <a href="https://kde.org/">KDE</a>, my <a href="https://en.wikipedia.org/wiki/Desktop_environment">desktop environment</a> of choice. It brings together <a href="https://kontact.kde.org/components/kmail/">KMail</a>, <a href="https://kontact.kde.org/components/kaddressbook/">KAddressBook</a> and <a href="https://kontact.kde.org/components/korganizer/">Korganizer</a>.</p>

<p>While this suite of applications is technically very capable, the visual aspect of them is lacklustre. I originally started using KDE around 2000 (with <a href="https://en.wikipedia.org/wiki/K_Desktop_Environment_2">KDE 2.0</a>), and in many ways it feels like those applications haven’t had a UI refresh since. I stopped using KMail around 2009 and hadn’t looked at it since. I’m mindboggled by the fact that the <a href="https://discuss.kde.org/t/allow-removing-the-vertical-html-bar-in-kmail/20811">HTML bar</a> is still there in 2026.</p>

<p>Also, no support for dark mode mail content.</p>

<h3 id="thunderbird"><a href="https://www.thunderbird.net/en-US/">Thunderbird</a></h3>

<p>Probably the most promising of them all. Has dark mode support for UI and mail, handles contacts and calendaring fairly well. Interface still looks extremely outdated. Doesn’t feel pleasant to use. Dark mode theme is “ok”, but conversation threading is unclear. Contact images can be added using an extension, but that same extension causes Thunderbird to become unbearably slow.</p>

<h3 id="mailspring"><a href="https://www.getmailspring.com/">Mailspring</a></h3>

<p>Beautiful client, handles mails well. Beta support for contacts (I managed to crash it a few times), no calendar support as of yet.
Has AI bollocks, which fortunately you can ignore completely.</p>

<h3 id="bluemail"><a href="https://bluemail.me/">BlueMail</a></h3>

<p>I read a lot of good things about it, but never managed to get it to work - neither with the RPM nor the flatpak image. I don’t do snaps. Also proprietary, and includes AI bollocks it seems.</p>

<h3 id="evolution"><a href="https://en.wikipedia.org/wiki/GNOME_Evolution">Evolution</a></h3>

<p>The PIM for the <a href="https://www.gnome.org/">Gnome</a> desktop environment. Doesn’t fit in well with KDE, is extremely opinionated (which is the Gnome way but not my way) and does not support dark mode mail content.</p>

<h2 id="web-clients">Web clients</h2>

<h3 id="mailflow"><a href="https://mailflow.sh/">MailFlow</a></h3>

<p>I came across Mailflow in the weekly <a href="https://selfh.st/">SelfH.st</a> newsletter. It’s beautiful, has a good mix of features and it’s fast. Unfortunately, it has only barebones contact handling, and calendaring is still for the future. No support for dark mail content.</p>

<p>Definitely keeping an eye on it.</p>

<h3 id="roundcube"><a href="https://roundcube.net/">RoundCube</a></h3>

<p>A venerable email webclient, which works well for mail. Calendar and contacts are handled through plugins, which need separate configuration - sometimes not even through the actual web interface but through editing config files. Contact handling is mediocre at best. No support for dark mode emails, unless through another plugin.</p>

<p>I tested version 1.7.2, which is the latest at the time of writing, but it felt so slow and old.</p>

<h3 id="bulwark"><a href="https://bulwarkmail.org/">Bulwark</a></h3>

<p>A mail webclient made for the JMAP standard, and (usually?) paired with <a href="https://stalw.art/">Stalwart</a>. I connected this to my current <a href="https://join.fastmail.com/c093c10a">Fastmail</a> account, and it is absolutely brilliant. Unfortunately, this would mean that I’d have to self-host Stalwart somewhere.</p>

<p>So far, no dice. If you have any other recommendations, I’d be glad to hear them.</p>
]]></content>
  </entry>

  
  
  <entry>
    <title>Switching from LetsEncrypt to Actalis</title>
    <link href="https://kcore.org/2026/07/08/taking-back-control-webpresence-part7/" rel="alternate" type="text/html" title="Switching from LetsEncrypt to Actalis" />
    <published>2026-07-08T00:00:00+02:00</published>
  
    <updated>2026-07-08T00:00:00+02:00</updated>
  
    <id>https://kcore.org/2026/07/08/taking-back-control-webpresence-part7</id>
    <author>
      <name>Jan</name>
    </author>
  
    
    <category term="Technology &amp; IT" />
    
    <category term="Networking" />
    
  
  
    
    <category term="letsencrypt" scheme="tag" />
    
    <category term="acme" scheme="tag" />
    
    <category term="actalis" scheme="tag" />
    
    <category term="ssl" scheme="tag" />
    
  
  <summary type="html"><![CDATA[ACME SSL Certificates, made in Italy]]></summary>
  
  <content type="html" xml:base="https://kcore.org/2026/07/08/taking-back-control-webpresence-part7/"><![CDATA[<p><em>This is the seventh installment of a series of posts about taking back control of my web presence. In <a href="/2025/03/15/taking-back-control-webpresence-part1/">Part 1</a> I tackle hosting, in <a href="/2025/03/30/taking-back-control-webpresence-part2/">Part 2</a> I do things with DNS. In <a href="/2025/04/15/taking-back-control-webpresence-part3/">Part 3</a> I rediscover Proxmox, in <a href="/2025/04/30/taking-back-control-webpresence-part4/">Part 4</a> I move Mastodon around. In <a href="/2025/05/15/taking-back-control-webpresence-part5/">Part 5</a> I Tunnel All The Things with Pangolin and in <a href="/2025/06/15/taking-back-control-webpresence-part6/">Part 6</a> I sort out where to store code.</em></p>

<p>As I detailed in my previous posts, I used <a href="https://letsencrypt.org/">Let’s Encrypt</a>. But, as the astute reader can see, I’ve been wanting to reduce my dependency on non-European companies.</p>

<p>Let’s Encrypt was not high on the list of things to replace - it’s free, it works and it is a force for good. It being under US jurisdiction felt <em>mildly</em> annoying.</p>

<p>I recently came across <a href="https://actalis.com">Actalis</a>, a company based in Italy that offers a <a href="https://www.actalis.com/subscription">free plan</a> where you can get unlimited SSL certificates for domain validation via <a href="https://en.wikipedia.org/wiki/Automatic_Certificate_Management_Environment">ACME</a>.</p>

<p>Switching my stack over was as simple as registering an account and adding this to my <a href="https://caddyserver.com">Caddy</a> configuration:</p>

<div class="language-text highlighter-rouge"><div class="highlight"><pre class="highlight"><code>email my-email-address@domain.tld
acme_ca https://acme-api.actalis.com/acme/directory
acme_eab {
  key_id XxxxxxArihquYoJxxxxxx
  mac_key yyyyyyyyKPXMgkkxxxxxxLQaIuGhHQbbbbbb
}
</code></pre></div></div>

<p>(You’ll find both values in the <a href="https://www.actalis.com/manage-with-acme">Actalis console</a>.)
<img src="/assets/img/posts/2026/07/actalis_console.png" alt="The Actalis console listing the credentials for ACME" class="align-center" /></p>

<p>After reloading Caddy, I got an error: “Obtain: base64-decoding MAC key: illegal base64 data at input byte 43”. <a href="https://caddy.community/t/actalis-acme-illegal-base64-data-at-input-byte-43/33106">A quick search</a> taught me that I had to remove the padding (<code class="language-plaintext highlighter-rouge">=</code>) from <code class="language-plaintext highlighter-rouge">mac_key</code>.</p>

<p>I also had to update my <a href="https://en.wikipedia.org/wiki/DNS_Certification_Authority_Authorization">Certificate Authority Authorization (CAA)</a> DNS records to include <code class="language-plaintext highlighter-rouge">issue "actalis.it"</code>.</p>

<p>A <code class="language-plaintext highlighter-rouge">caddy reload</code> later, my sites were serving Actalis certificates.</p>

<p><img src="/assets/img/posts/2026/07/kcore_org_certificate.png" alt="A screenshot of the certificate for kcore.org, showing Actalis" class="align-center" /></p>
]]></content>
  </entry>

  
  
  <entry>
    <title>Integrating the Ikea Starkvind with Home Assistant using deCONZ</title>
    <link href="https://kcore.org/2026/05/10/ikea-skarkvind-deconz-homeassistant/" rel="alternate" type="text/html" title="Integrating the Ikea Starkvind with Home Assistant using deCONZ" />
    <published>2026-05-10T00:00:00+02:00</published>
  
    <updated>2026-05-10T00:00:00+02:00</updated>
  
    <id>https://kcore.org/2026/05/10/ikea-skarkvind-deconz-homeassistant</id>
    <author>
      <name>Jan</name>
    </author>
  
    
    <category term="Technology &amp; IT" />
    
    <category term="Home Automation" />
    
  
  
    
    <category term="home assistant" scheme="tag" />
    
    <category term="deconz" scheme="tag" />
    
    <category term="ikea starkvind" scheme="tag" />
    
  
  <summary type="html"><![CDATA[Ikea Starkvind and Home Assistant  We recently bought an Ikea Starkvind Air Purifier, which supports Zigbee. I wanted to find out what I could do with it from within Home Assistant, possibly automating when it runs and when not. I also wanted to add some UI elements, like the mushroom fan card or the air purifier card, both of which rely on there being a fan entity.  Zigbee integration with deC...]]></summary>
  
  <content type="html" xml:base="https://kcore.org/2026/05/10/ikea-skarkvind-deconz-homeassistant/"><![CDATA[<h2 id="ikea-starkvind-and-home-assistant">Ikea Starkvind and Home Assistant</h2>

<p>We recently bought an <a href="https://www.ikea.com/be/nl/p/starkvind-luchtreiniger-wit-smart-50461942">Ikea Starkvind</a> Air Purifier, which supports <a href="https://en.wikipedia.org/wiki/Zigbee">Zigbee</a>. I wanted to find out what I could do with it from within <a href="https://www.home-assistant.io/">Home Assistant</a>, possibly automating when it runs and when not.
I also wanted to add some UI elements, like the <a href="https://github.com/piitaya/lovelace-mushroom/blob/main/docs/cards/fan.md">mushroom fan card</a> or the <a href="https://github.com/denysdovhan/purifier-card">air purifier card</a>, both of which rely on there being a <a href="https://www.home-assistant.io/integrations/fan/">fan</a> entity.</p>

<h2 id="zigbee-integration-with-deconz">Zigbee integration with deCONZ</h2>

<p>I already had a <a href="https://phoscon.de/en/conbee2">ConbeeII</a> Zigbee USB controller in use with the <a href="https://www.dresden-elektronik.com/wireless/software/deconz.html">deCONZ</a> <a href="https://www.home-assistant.io/integrations/deconz/">Integration</a>. Pairing the Starkvind was a matter of telling the Phoscon Software (which comes with the deCONZ integration) to scan for new sensors and pushing the pairing button on the Starkvind.</p>

<p>Surprisingly enough, only three entities showed up in Home Assistant:</p>

<ul>
  <li>Air Purifier PM25</li>
  <li>Fan Mode</li>
  <li>Filter Runtime</li>
</ul>

<p><img src="/assets/img/posts/2026/05/deconz_ha_entities_starkvind_light.png" alt="The PM2.5, Configuration and Filter Time entities made available through deCONZ" class="align-center light" />
<img src="/assets/img/posts/2026/05/deconz_ha_entities_starkvind_dark.png" alt="The PM2.5, Configuration and Filter Time entities made available through deCONZ" class="align-center dark" />
<em>deCONZ entities exposed through Home Assistant for the Starkvind Air Purifier</em></p>

<p>When looking in the deCONZ application there were a lot more attributes:</p>

<p><img src="/assets/img/posts/2026/05/deconz_cluster_starkvind_light.png" alt="deCONZ cluster screenshot" class="align-center light" />
<img src="/assets/img/posts/2026/05/deconz_cluster_starkvind_dark.png" alt="deCONZ cluster screenshot" class="align-center dark" />
<em>deCONZ cluster information</em></p>

<p>The deCONZ integration uses a <a href="https://github.com/Kane610/deconz">python library for deconz</a>, and in <a href="https://github.com/Kane610/deconz/issues/322">issue #322</a> I found that only these three items were actually requested to be added. I have since requested some more, but it’s uncertain when and if those will be made available.</p>

<p>I came across <a href="https://oywin.notion.site/oywin/How-to-control-the-IKEA-STARKVIND-AirPurifier-via-REST-API-01bd799d848141d295256368f3ec478f">this blog post by OyWin</a>, detailing how they used the <a href="https://www.home-assistant.io/integrations/sensor.rest">REST sensors</a> to add their Starkvind into Home Assistant. While the approach was definitely the right way to go, I was not a fan of doing so many individual REST calls (one per sensor) as it’s not needed - Home Assistant can handle it in 1 call per REST-API target.</p>

<h2 id="deconz-rest-api">deCONZ REST-API</h2>

<p>Checking the <a href="https://dresden-elektronik.github.io/deconz-rest-doc/devices/ikea/starkvind_air_purifier/">deCONZ REST-API documentation for the Starkvind</a>, there are a lot more attributes available, published under different devices: ZHAAirPurifier and ZHAParticulateMatter</p>

<p>The ones I wanted were:</p>

<h3 id="zhaairpurifier">ZHAAirPurifier</h3>

<table>
  <thead>
    <tr>
      <th>Section</th>
      <th>Attribute</th>
      <th>Exposed via deCONZ integration</th>
      <th>R/O or R/W</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Config</td>
      <td>filterlifetime</td>
      <td>x</td>
      <td>Read/Write</td>
    </tr>
    <tr>
      <td>Config</td>
      <td>ledindication</td>
      <td>x</td>
      <td>Read/Write</td>
    </tr>
    <tr>
      <td>Config</td>
      <td>locked</td>
      <td>x</td>
      <td>Read/Write</td>
    </tr>
    <tr>
      <td>Config</td>
      <td>mode</td>
      <td>✓</td>
      <td>Read Write</td>
    </tr>
    <tr>
      <td>Config</td>
      <td>on</td>
      <td>x</td>
      <td>Read Only</td>
    </tr>
    <tr>
      <td>State</td>
      <td>deviceruntime</td>
      <td>x</td>
      <td>Read Only</td>
    </tr>
    <tr>
      <td>State</td>
      <td>filterruntime</td>
      <td>✓</td>
      <td>Read Only</td>
    </tr>
    <tr>
      <td>State</td>
      <td>lastupdated</td>
      <td>x</td>
      <td>Read Only</td>
    </tr>
    <tr>
      <td>State</td>
      <td>replacefilter</td>
      <td>x</td>
      <td>Read Only</td>
    </tr>
    <tr>
      <td>State</td>
      <td>speed</td>
      <td>x</td>
      <td>Read Only</td>
    </tr>
  </tbody>
</table>

<h3 id="zhaparticulatematter">ZHAParticulateMatter</h3>

<table>
  <thead>
    <tr>
      <th>Section</th>
      <th>Attribute</th>
      <th>Exposed via deCONZ integration</th>
      <th>R/O or R/W</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>State</td>
      <td>measured_value</td>
      <td>✓</td>
      <td>Read Only</td>
    </tr>
    <tr>
      <td>State</td>
      <td>airquality</td>
      <td>x</td>
      <td>Read Only</td>
    </tr>
  </tbody>
</table>

<p>Time to get those into Home Assistant.</p>

<h3 id="configuring-the-deconz-rest-api-port">Configuring the deCONZ REST-API port</h3>

<p>In order to be able to query the deCONZ REST-API, you need to make sure a port is configured in Home Assistant → Settings → Apps → deCONZ → Configuration
<img src="/assets/img/posts/2026/05/deconz_network_configuration_light.png" alt="deCONZ Network Configuration screenshot" class="align-center light" />
<img src="/assets/img/posts/2026/05/deconz_network_configuration_dark.png" alt="deCONZ Network Configuration screenshot" class="align-center dark" />
<em>deCONZ App Network Configuration</em></p>

<p>If this port is set you’ll be able to issue <code class="language-plaintext highlighter-rouge">http</code> queries to the URL of your Home Assistant installation on the port specified. In my case this is <code class="language-plaintext highlighter-rouge">http://home-assistant.internal:40850/</code></p>

<h3 id="finding-the-correct-api-urls">Finding the correct API urls</h3>

<p>To find the correct API endpoints to use go to Home Assistant → deCONZ → Phoscon. Open the hamburger menu on the left and pick Help → API Information
<img src="/assets/img/posts/2026/05/phoscon_api_information.png" alt="Phoscon API Information screenshot" class="align-center" />
<em>Phoscon API Information screen</em></p>

<p>In the subsequent screen, pick “Sensors” and look for “Ikea STARKVIND Air Purifier”. You should find two entries in the dropdown:
<img src="/assets/img/posts/2026/05/phoscon_api_information_sensors.png" alt="Phoscon API Information - Starkvind" class="align-center" />
<em>Phoscon API Information for the Starkvind Air Purifier</em></p>

<p>Once you click on one of the sensors, you will get a dump of what the API returns, and on top of that window, the API endpoint URL. In my example this reads:</p>

<p><code class="language-plaintext highlighter-rouge">//home-assistant.internal:8123/api/hassio_ingress/juXMtc1g4Z85iNwXSis58q2z7Kw7XO0Lz5k2X6cBsZ0/api/792DA42905/sensors/93</code>. The converted direct unauthenticated URL becomes <code class="language-plaintext highlighter-rouge">http://home-assistant.internal:40850/api/792DA42905/sensors/93</code>.
<img src="/assets/img/posts/2026/05/phoscon_api_information_zhaairpurifier.png" alt="Phoscon API Information - Starkvind ZHAAirPurifier" class="align-center" />
<em>Phoscon API information for the ZHAAirPurifier entity of the Starkvind Air Purifier</em></p>

<p><code class="language-plaintext highlighter-rouge">792DA42905</code> is your own API key, and <code class="language-plaintext highlighter-rouge">93</code> is the internal numbering of deCONZ for your sensor.</p>

<p>Now, this URL allows you to query the API from the <em>outside</em>. I did not need this as I wanted to run the queries from inside Home Assistant. You can find the internal url by going to Home Assistant → Settings → Devices &amp; services, selecting the deCONZ integration and picking the Conbee2. In the Service Info there is a “Visit” link, which shows you the internal hostname to use.
<img src="/assets/img/posts/2026/05/deconz_service_info_dark.png" alt="deCONZ Conbee2 Service Info screenshot" class="align-center dark" />
<img src="/assets/img/posts/2026/05/deconz_service_info_light.png" alt="deCONZ Conbee2 Service Info screenshot" class="align-center light" />
<em>deCONZ Conbee2 Service Information</em></p>

<p>This will usually be <code class="language-plaintext highlighter-rouge">core-deconz</code>, so the URL becomes <code class="language-plaintext highlighter-rouge">http://core-deconz:40850/api/&lt;apikey&gt;/sensors/&lt;sensor-id&gt;</code>.</p>

<h2 id="home-assistant-configuration">Home Assistant Configuration</h2>

<h3 id="creating-the-rest-sensors">Creating the REST sensors</h3>

<p>Using the URL assembled above I added the <a href="https://www.home-assistant.io/integrations/sensor.rest">sensor</a> and <a href="https://www.home-assistant.io/integrations/binary_sensor.rest">binary_sensor</a> entities to Home Assistant.</p>

<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code>
<span class="pi">-</span> <span class="na">rest</span><span class="pi">:</span>
  <span class="pi">-</span> <span class="na">resource</span><span class="pi">:</span> <span class="s">http://core-deconz:40850/api/792DA42905/sensors/93</span>
    <span class="na">binary_sensor</span><span class="pi">:</span>
      <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Ikea Starkvind Led Indication</span>
        <span class="na">value_template</span><span class="pi">:</span> <span class="s2">"</span><span class="s">{{</span><span class="nv"> </span><span class="s">value_json.config.ledindication</span><span class="nv"> </span><span class="s">}}"</span>
        <span class="na">unique_id</span><span class="pi">:</span> <span class="s">ikea_starkvind_led_indication</span>

      <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Ikea Starkvind Locked</span>
        <span class="na">value_template</span><span class="pi">:</span> <span class="s2">"</span><span class="s">{{</span><span class="nv"> </span><span class="s">value_json.config.locked</span><span class="nv"> </span><span class="s">}}"</span>
        <span class="na">unique_id</span><span class="pi">:</span> <span class="s">ikea_starkvind_locked</span>

      <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Ikea Starkvind Sensor On</span>
        <span class="na">value_template</span><span class="pi">:</span> <span class="s2">"</span><span class="s">{{</span><span class="nv"> </span><span class="s">value_json.config.on</span><span class="nv"> </span><span class="s">}}"</span>
        <span class="na">unique_id</span><span class="pi">:</span> <span class="s">ikea_starkvind_sensor_on</span>

      <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Ikea Starkvind Replace Filter</span>
        <span class="na">value_template</span><span class="pi">:</span> <span class="s2">"</span><span class="s">{{</span><span class="nv"> </span><span class="s">value_json.state.replacefilter</span><span class="nv"> </span><span class="s">}}"</span>
        <span class="na">unique_id</span><span class="pi">:</span> <span class="s">ikea_starkvind_replace_filter</span>

    <span class="na">sensor</span><span class="pi">:</span>
      <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Ikea Starkvind Filter Runtime</span>
        <span class="na">value_template</span><span class="pi">:</span> <span class="s2">"</span><span class="s">{{</span><span class="nv"> </span><span class="s">value_json.state.filterruntime</span><span class="nv"> </span><span class="s">}}"</span>
        <span class="na">unique_id</span><span class="pi">:</span> <span class="s">ikea_starkvind_filter_runtime</span>
        <span class="na">device_class</span><span class="pi">:</span> <span class="s">duration</span>
        <span class="na">unit_of_measurement</span><span class="pi">:</span> <span class="s">min</span>

      <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Ikea Starkvind Device Runtime</span>
        <span class="na">value_template</span><span class="pi">:</span> <span class="s2">"</span><span class="s">{{</span><span class="nv"> </span><span class="s">value_json.state.deviceruntime</span><span class="nv"> </span><span class="s">}}"</span>
        <span class="na">unique_id</span><span class="pi">:</span> <span class="s">ikea_starkvind_device_runtime</span>
        <span class="na">device_class</span><span class="pi">:</span> <span class="s">duration</span>
        <span class="na">unit_of_measurement</span><span class="pi">:</span> <span class="s">min</span>

      <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Ikea Starkvind Filter Lifetime</span>
        <span class="na">value_template</span><span class="pi">:</span> <span class="s2">"</span><span class="s">{{</span><span class="nv"> </span><span class="s">value_json.config.filterlifetime</span><span class="nv"> </span><span class="s">}}"</span>
        <span class="na">unique_id</span><span class="pi">:</span> <span class="s">ikea_starkvind_filter_lifetime</span>
        <span class="na">device_class</span><span class="pi">:</span> <span class="s">duration</span>
        <span class="na">unit_of_measurement</span><span class="pi">:</span> <span class="s">min</span>

      <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Ikea Starkvind Mode</span>
        <span class="na">value_template</span><span class="pi">:</span> <span class="s2">"</span><span class="s">{{</span><span class="nv"> </span><span class="s">value_json.config.mode</span><span class="nv"> </span><span class="s">}}"</span>
        <span class="na">unique_id</span><span class="pi">:</span> <span class="s">ikea_starkvind_mode</span>

      <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Ikea Starkvind Fan Speed</span>
        <span class="na">value_template</span><span class="pi">:</span> <span class="s2">"</span><span class="s">{{</span><span class="nv"> </span><span class="s">value_json.state.speed</span><span class="nv"> </span><span class="s">}}"</span>
        <span class="na">unique_id</span><span class="pi">:</span> <span class="s">ikea_starkvind_fan_speed</span>
        <span class="na">state_class</span><span class="pi">:</span> <span class="s">measurement</span>

      <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Ikea Starkvind Last Updated</span>
        <span class="na">value_template</span><span class="pi">:</span> <span class="s2">"</span><span class="s">{{</span><span class="nv"> </span><span class="s">value_json.state.lastupdated</span><span class="nv"> </span><span class="s">+</span><span class="nv"> </span><span class="s">'Z'</span><span class="nv"> </span><span class="s">}}"</span>
        <span class="na">unique_id</span><span class="pi">:</span> <span class="s">ikea_starkvind_lastupdated</span>
        <span class="na">device_class</span><span class="pi">:</span> <span class="s">timestamp</span>

</code></pre></div></div>

<h3 id="enabling-setting-the-led-indicator">Enabling setting the led indicator</h3>

<p>To be able to update the <code class="language-plaintext highlighter-rouge">ledindication</code>, I added a <a href="https://www.home-assistant.io/integrations/input_boolean/">binary helper</a> called <code class="language-plaintext highlighter-rouge">ikea_starkvind_ledindication</code> as a toggle, a <a href="https://www.home-assistant.io/integrations/rest_command/">rest_command</a> to set it, and an automation to bind the two together:</p>

<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code>
<span class="na">rest_command</span><span class="pi">:</span>
  <span class="na">ikea_starkvind_set_ledindication</span><span class="pi">:</span>
    <span class="na">url</span><span class="pi">:</span> <span class="s2">"</span><span class="s">http://core-deconz:40850/api/792DA42905/sensors/93"</span>
    <span class="na">method</span><span class="pi">:</span> <span class="s">put</span>
    <span class="na">content_type</span><span class="pi">:</span> <span class="s2">"</span><span class="s">application/json;</span><span class="nv"> </span><span class="s">charset=utf-8"</span>
    <span class="na">payload</span><span class="pi">:</span> <span class="s1">'</span><span class="s">{</span><span class="nv"> </span><span class="s">"config":</span><span class="nv"> </span><span class="s">{</span><span class="nv"> </span><span class="s">"ledindication":</span><span class="nv"> </span><span class="s">{{</span><span class="nv"> </span><span class="s">states("input_boolean.ikea_starkvind_ledindication")</span><span class="nv"> </span><span class="s">|</span><span class="nv"> </span><span class="s">bool</span><span class="nv"> </span><span class="s">|</span><span class="nv"> </span><span class="s">lower</span><span class="nv"> </span><span class="s">}}}}'</span>

</code></pre></div></div>

<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">alias</span><span class="pi">:</span> <span class="s">Ikea Starkvind - Sync Led Indication</span>
<span class="na">description</span><span class="pi">:</span> <span class="s2">"</span><span class="s">"</span>
<span class="na">triggers</span><span class="pi">:</span>
  <span class="pi">-</span> <span class="na">trigger</span><span class="pi">:</span> <span class="s">state</span>
    <span class="na">entity_id</span><span class="pi">:</span>
      <span class="pi">-</span> <span class="s">input_boolean.ikea_starkvind_ledindication</span>
<span class="na">actions</span><span class="pi">:</span>
  <span class="pi">-</span> <span class="na">action</span><span class="pi">:</span> <span class="s">rest_command.ikea_starkvind_set_ledindication</span>
    <span class="na">data</span><span class="pi">:</span> <span class="pi">{}</span>
<span class="na">mode</span><span class="pi">:</span> <span class="s">single</span>
</code></pre></div></div>

<h3 id="additional-sensors">Additional sensors</h3>

<p>I also added a <a href="https://www.home-assistant.io/integrations/template/#sensor">template</a> sensor to calculate the lifetime left of the filter:</p>

<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code>
<span class="na">template</span><span class="pi">:</span>
  <span class="pi">-</span> <span class="na">sensor</span><span class="pi">:</span>
      <span class="na">name</span><span class="pi">:</span> <span class="s">Ikea Starkvind Filter Lifetime Remaining</span>
      <span class="na">state</span><span class="pi">:</span> <span class="s2">"</span><span class="s">{{</span><span class="nv"> </span><span class="s">states('sensor.ikea_starkvind_filter_lifetime')</span><span class="nv"> </span><span class="s">|</span><span class="nv"> </span><span class="s">int</span><span class="nv"> </span><span class="s">-</span><span class="nv"> </span><span class="s">states('sensor.ikea_starkvind_filter_runtime')</span><span class="nv"> </span><span class="s">|</span><span class="nv"> </span><span class="s">int</span><span class="nv"> </span><span class="s">}}"</span>
      <span class="na">unique_id</span><span class="pi">:</span> <span class="s">ikea_starkvind_filter_lifetime_remaining</span>
      <span class="na">device_class</span><span class="pi">:</span> <span class="s">duration</span>
      <span class="na">unit_of_measurement</span><span class="pi">:</span> <span class="s">min</span>

</code></pre></div></div>

<h3 id="creating-a-fan-entity">Creating a Fan entity</h3>

<p>To use the premade cards I needed a fan entity. This can be created as a template, based off of the previously created entities:</p>

<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code>
<span class="pi">-</span> <span class="na">fan</span><span class="pi">:</span>
    <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s2">"</span><span class="s">IKEA</span><span class="nv"> </span><span class="s">Starkvind"</span>
      <span class="na">unique_id</span><span class="pi">:</span> <span class="s">ikea_starkvind_fan</span>
      <span class="na">availability</span><span class="pi">:</span> <span class="s2">"</span><span class="s">{{</span><span class="nv"> </span><span class="s">states('select.ikea_starkvind_fan_mode')</span><span class="nv"> </span><span class="s">not</span><span class="nv"> </span><span class="s">in</span><span class="nv"> </span><span class="s">['unknown',</span><span class="nv"> </span><span class="s">'unavailable']</span><span class="nv"> </span><span class="s">}}"</span>
      <span class="na">state</span><span class="pi">:</span> <span class="s2">"</span><span class="s">{{</span><span class="nv"> </span><span class="s">states('select.ikea_starkvind_fan_mode')</span><span class="nv"> </span><span class="s">!=</span><span class="nv"> </span><span class="s">'off'</span><span class="nv"> </span><span class="s">}}"</span>
      <span class="na">percentage</span><span class="pi">:</span> <span class="pi">&gt;</span>
        <span class="s">{% set map = {</span>
          <span class="s">'speed_1': 20, 'speed_2': 40, 'speed_3': 60,</span>
          <span class="s">'speed_4': 80, 'speed_5': 100</span>
        <span class="s">} %}</span>
        <span class="s">{{ map.get(states('select.ikea_starkvind_fan_mode'), 0) }}</span>
      <span class="na">preset_mode</span><span class="pi">:</span> <span class="pi">&gt;</span>
        <span class="s">{% if states('select.ikea_starkvind_fan_mode') == 'auto' %}auto{% endif %}</span>
      <span class="na">preset_modes</span><span class="pi">:</span>
        <span class="pi">-</span> <span class="s">auto</span>
      <span class="na">speed_count</span><span class="pi">:</span> <span class="m">5</span>
      <span class="na">turn_on</span><span class="pi">:</span>
        <span class="na">action</span><span class="pi">:</span> <span class="s">select.select_option</span>
        <span class="na">target</span><span class="pi">:</span>
          <span class="na">entity_id</span><span class="pi">:</span> <span class="s">select.ikea_starkvind_fan_mode</span>
        <span class="na">data</span><span class="pi">:</span>
          <span class="na">option</span><span class="pi">:</span> <span class="s">auto</span>
      <span class="na">turn_off</span><span class="pi">:</span>
        <span class="na">action</span><span class="pi">:</span> <span class="s">select.select_option</span>
        <span class="na">target</span><span class="pi">:</span>
          <span class="na">entity_id</span><span class="pi">:</span> <span class="s">select.ikea_starkvind_fan_mode</span>
        <span class="na">data</span><span class="pi">:</span>
          <span class="na">option</span><span class="pi">:</span> <span class="s2">"</span><span class="s">off"</span>
      <span class="na">set_percentage</span><span class="pi">:</span>
        <span class="na">action</span><span class="pi">:</span> <span class="s">select.select_option</span>
        <span class="na">target</span><span class="pi">:</span>
          <span class="na">entity_id</span><span class="pi">:</span> <span class="s">select.ikea_starkvind_fan_mode</span>
        <span class="na">data</span><span class="pi">:</span>
          <span class="na">option</span><span class="pi">:</span> <span class="pi">&gt;</span>
            <span class="s">{% if percentage == 0 %} off</span>
            <span class="s">{% elif percentage &lt;= 20 %} speed_1</span>
            <span class="s">{% elif percentage &lt;= 40 %} speed_2</span>
            <span class="s">{% elif percentage &lt;= 60 %} speed_3</span>
            <span class="s">{% elif percentage &lt;= 80 %} speed_4</span>
            <span class="s">{% else %} speed_5</span>
            <span class="s">{% endif %}</span>
      <span class="na">set_preset_mode</span><span class="pi">:</span>
        <span class="na">action</span><span class="pi">:</span> <span class="s">select.select_option</span>
        <span class="na">target</span><span class="pi">:</span>
          <span class="na">entity_id</span><span class="pi">:</span> <span class="s">select.ikea_starkvind_fan_mode</span>
        <span class="na">data</span><span class="pi">:</span>
          <span class="na">option</span><span class="pi">:</span> <span class="s2">"</span><span class="s">{{</span><span class="nv"> </span><span class="s">preset_mode</span><span class="nv"> </span><span class="s">}}"</span>

</code></pre></div></div>

<h2 id="home-assistant-cards">Home Assistant Cards</h2>

<p>I tried out a few cards to see what I liked.</p>

<h3 id="custom-purifier-card">Custom Purifier Card</h3>

<p>My first try was the custom <a href="https://github.com/denysdovhan/purifier-card">air purifier card</a> with this configuration:</p>

<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code>
<span class="na">type</span><span class="pi">:</span> <span class="s">custom:purifier-card</span>
<span class="na">entity</span><span class="pi">:</span> <span class="s">fan.ikea_starkvind</span>
<span class="na">aqi</span><span class="pi">:</span>
  <span class="na">entity_id</span><span class="pi">:</span> <span class="s">sensor.ikea_starkvind_air_quality_measured_value</span>
  <span class="na">unit</span><span class="pi">:</span> <span class="s">μg/m³</span>
<span class="na">stats</span><span class="pi">:</span>
  <span class="pi">-</span> <span class="na">entity_id</span><span class="pi">:</span> <span class="s">sensor.ikea_starkvind_filter_lifetime_remaining</span>
    <span class="na">value_template</span><span class="pi">:</span> <span class="s2">"</span><span class="s">{{</span><span class="nv"> </span><span class="s">(value</span><span class="nv"> </span><span class="s">|</span><span class="nv"> </span><span class="s">float(0)</span><span class="nv"> </span><span class="s">/</span><span class="nv"> </span><span class="s">60</span><span class="nv"> </span><span class="s">/</span><span class="nv"> </span><span class="s">24</span><span class="nv"> </span><span class="s">)</span><span class="nv"> </span><span class="s">|</span><span class="nv"> </span><span class="s">round(1)</span><span class="nv"> </span><span class="s">}}"</span>
    <span class="na">unit</span><span class="pi">:</span> <span class="s">days</span>
    <span class="na">subtitle</span><span class="pi">:</span> <span class="s">Filter Life Remaining</span>
<span class="na">shortcuts</span><span class="pi">:</span>
  <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Speed </span><span class="m">1</span>
    <span class="na">icon</span><span class="pi">:</span> <span class="s">mdi:weather-night</span>
    <span class="na">percentage</span><span class="pi">:</span> <span class="m">20</span>
  <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Speed </span><span class="m">2</span>
    <span class="na">icon</span><span class="pi">:</span> <span class="s">mdi:circle-slice-2</span>
    <span class="na">percentage</span><span class="pi">:</span> <span class="m">40</span>
  <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Speed </span><span class="m">3</span>
    <span class="na">icon</span><span class="pi">:</span> <span class="s">mdi:circle-slice-4</span>
    <span class="na">percentage</span><span class="pi">:</span> <span class="m">60</span>
  <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Speed </span><span class="m">4</span>
    <span class="na">icon</span><span class="pi">:</span> <span class="s">mdi:circle-slice-6</span>
    <span class="na">percentage</span><span class="pi">:</span> <span class="m">80</span>
  <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Speed </span><span class="m">5</span>
    <span class="na">icon</span><span class="pi">:</span> <span class="s">mdi:circle-slice-8</span>
    <span class="na">percentage</span><span class="pi">:</span> <span class="m">100</span>
  <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Auto</span>
    <span class="na">icon</span><span class="pi">:</span> <span class="s">mdi:brightness-auto</span>
    <span class="na">preset_mode</span><span class="pi">:</span> <span class="s">auto</span>

</code></pre></div></div>

<p>It ended up looking like this, which did not thrill me.</p>

<p><img src="/assets/img/posts/2026/05/lovelace_purifier_card_dark.png" alt="Custom Purifier Card" class="align-center dark" />
<img src="/assets/img/posts/2026/05/lovelace_purifier_card_light.png" alt="Custom Purifier Card" class="align-center light" />
<em>Air Purifier Card</em></p>

<h3 id="custom-cards">Custom cards</h3>

<p>I cobbled something together based on the <a href="https://github.com/piitaya/lovelace-mushroom/blob/main/docs/cards/fan.md">mushroom-fan-card</a>, the <a href="https://github.com/custom-cards/button-card">button-card</a>, the <a href="https://github.com/thomasloven/lovelace-template-entity-row">template-entity-row</a> and the <a href="https://github.com/MelleD/lovelace-expander-card">lovelace-expander-card</a>.</p>

<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code>
<span class="na">type</span><span class="pi">:</span> <span class="s">vertical-stack</span>
<span class="na">cards</span><span class="pi">:</span>
  <span class="pi">-</span> <span class="na">type</span><span class="pi">:</span> <span class="s">custom:mushroom-fan-card</span>
    <span class="na">entity</span><span class="pi">:</span> <span class="s">fan.ikea_starkvind</span>
    <span class="na">icon_animation</span><span class="pi">:</span> <span class="kc">true</span>
    <span class="na">primary_info</span><span class="pi">:</span> <span class="s">name</span>
    <span class="na">secondary_info</span><span class="pi">:</span> <span class="s">state</span>
    <span class="na">show_percentage_control</span><span class="pi">:</span> <span class="kc">true</span>
    <span class="na">collapsible_controls</span><span class="pi">:</span> <span class="kc">true</span>
    <span class="na">show_direction_control</span><span class="pi">:</span> <span class="kc">false</span>
    <span class="na">show_oscillate_control</span><span class="pi">:</span> <span class="kc">false</span>
  <span class="pi">-</span> <span class="na">type</span><span class="pi">:</span> <span class="s">horizontal-stack</span>
    <span class="na">cards</span><span class="pi">:</span>
      <span class="pi">-</span> <span class="na">type</span><span class="pi">:</span> <span class="s">custom:button-card</span>
        <span class="na">icon</span><span class="pi">:</span> <span class="s">mdi:circle-outline</span>
        <span class="na">entity</span><span class="pi">:</span> <span class="s">fan.ikea_starkvind</span>
        <span class="na">show_name</span><span class="pi">:</span> <span class="kc">false</span>
        <span class="na">aspect_ratio</span><span class="pi">:</span> <span class="s">1/1</span>
        <span class="na">tap_action</span><span class="pi">:</span>
          <span class="na">action</span><span class="pi">:</span> <span class="s">call-service</span>
          <span class="na">service</span><span class="pi">:</span> <span class="s">fan.set_percentage</span>
          <span class="na">data</span><span class="pi">:</span>
            <span class="na">percentage</span><span class="pi">:</span> <span class="m">0</span>
          <span class="na">target</span><span class="pi">:</span>
            <span class="na">entity_id</span><span class="pi">:</span> <span class="s">fan.ikea_starkvind</span>
        <span class="na">styles</span><span class="pi">:</span>
          <span class="na">card</span><span class="pi">:</span>
            <span class="pi">-</span> <span class="na">background-color</span><span class="pi">:</span> <span class="pi">|-</span>
                <span class="s">[[[</span>
                  <span class="s">return entity.state === 'off'</span>
                    <span class="s">? 'rgba(var(--rgb-state-active-color), 0.2)'</span>
                    <span class="s">: 'var(--ha-card-background)';</span>
                <span class="s">]]]</span>
          <span class="na">icon</span><span class="pi">:</span>
            <span class="pi">-</span> <span class="na">color</span><span class="pi">:</span> <span class="pi">|-</span>
                <span class="s">[[[</span>
                  <span class="s">return entity.state === 'off'</span>
                    <span class="s">? 'var(--state-active-color)'</span>
                    <span class="s">: 'var(--secondary-text-color)';</span>
                <span class="s">]]]</span>
      <span class="pi">-</span> <span class="na">type</span><span class="pi">:</span> <span class="s">custom:button-card</span>
        <span class="na">icon</span><span class="pi">:</span> <span class="s">mdi:weather-night</span>
        <span class="na">entity</span><span class="pi">:</span> <span class="s">fan.ikea_starkvind</span>
        <span class="na">show_name</span><span class="pi">:</span> <span class="kc">false</span>
        <span class="na">aspect_ratio</span><span class="pi">:</span> <span class="s">1/1</span>
        <span class="na">tap_action</span><span class="pi">:</span>
          <span class="na">action</span><span class="pi">:</span> <span class="s">call-service</span>
          <span class="na">service</span><span class="pi">:</span> <span class="s">fan.set_percentage</span>
          <span class="na">data</span><span class="pi">:</span>
            <span class="na">percentage</span><span class="pi">:</span> <span class="m">20</span>
          <span class="na">target</span><span class="pi">:</span>
            <span class="na">entity_id</span><span class="pi">:</span> <span class="s">fan.ikea_starkvind</span>
        <span class="na">styles</span><span class="pi">:</span>
          <span class="na">card</span><span class="pi">:</span>
            <span class="pi">-</span> <span class="na">background-color</span><span class="pi">:</span> <span class="pi">|-</span>
                <span class="s">[[[</span>
                  <span class="s">return entity.state === 'on' &amp;&amp; entity.attributes.percentage === 20</span>
                    <span class="s">? 'rgba(var(--rgb-state-active-color), 0.2)'</span>
                    <span class="s">: 'var(--ha-card-background)';</span>
                <span class="s">]]]</span>
          <span class="na">icon</span><span class="pi">:</span>
            <span class="pi">-</span> <span class="na">color</span><span class="pi">:</span> <span class="pi">|-</span>
                <span class="s">[[[</span>
                  <span class="s">return entity.state === 'on' &amp;&amp; entity.attributes.percentage === 20</span>
                    <span class="s">? 'var(--state-active-color)'</span>
                    <span class="s">: 'var(--secondary-text-color)';</span>
                <span class="s">]]]</span>
      <span class="pi">-</span> <span class="na">type</span><span class="pi">:</span> <span class="s">custom:button-card</span>
        <span class="na">icon</span><span class="pi">:</span> <span class="s">mdi:circle-slice-2</span>
        <span class="na">entity</span><span class="pi">:</span> <span class="s">fan.ikea_starkvind</span>
        <span class="na">show_name</span><span class="pi">:</span> <span class="kc">false</span>
        <span class="na">aspect_ratio</span><span class="pi">:</span> <span class="s">1/1</span>
        <span class="na">tap_action</span><span class="pi">:</span>
          <span class="na">action</span><span class="pi">:</span> <span class="s">call-service</span>
          <span class="na">service</span><span class="pi">:</span> <span class="s">fan.set_percentage</span>
          <span class="na">data</span><span class="pi">:</span>
            <span class="na">percentage</span><span class="pi">:</span> <span class="m">40</span>
          <span class="na">target</span><span class="pi">:</span>
            <span class="na">entity_id</span><span class="pi">:</span> <span class="s">fan.ikea_starkvind</span>
        <span class="na">styles</span><span class="pi">:</span>
          <span class="na">card</span><span class="pi">:</span>
            <span class="pi">-</span> <span class="na">background-color</span><span class="pi">:</span> <span class="pi">|-</span>
                <span class="s">[[[</span>
                  <span class="s">return entity.state === 'on' &amp;&amp; entity.attributes.percentage === 40</span>
                    <span class="s">? 'rgba(var(--rgb-state-active-color), 0.2)'</span>
                    <span class="s">: 'var(--ha-card-background)';</span>
                <span class="s">]]]</span>
          <span class="na">icon</span><span class="pi">:</span>
            <span class="pi">-</span> <span class="na">color</span><span class="pi">:</span> <span class="pi">|-</span>
                <span class="s">[[[</span>
                  <span class="s">return entity.state === 'on' &amp;&amp; entity.attributes.percentage === 40</span>
                    <span class="s">? 'var(--state-active-color)'</span>
                    <span class="s">: 'var(--secondary-text-color)';</span>
                <span class="s">]]]</span>
      <span class="pi">-</span> <span class="na">type</span><span class="pi">:</span> <span class="s">custom:button-card</span>
        <span class="na">icon</span><span class="pi">:</span> <span class="s">mdi:circle-slice-4</span>
        <span class="na">entity</span><span class="pi">:</span> <span class="s">fan.ikea_starkvind</span>
        <span class="na">show_name</span><span class="pi">:</span> <span class="kc">false</span>
        <span class="na">aspect_ratio</span><span class="pi">:</span> <span class="s">1/1</span>
        <span class="na">tap_action</span><span class="pi">:</span>
          <span class="na">action</span><span class="pi">:</span> <span class="s">call-service</span>
          <span class="na">service</span><span class="pi">:</span> <span class="s">fan.set_percentage</span>
          <span class="na">data</span><span class="pi">:</span>
            <span class="na">percentage</span><span class="pi">:</span> <span class="m">60</span>
          <span class="na">target</span><span class="pi">:</span>
            <span class="na">entity_id</span><span class="pi">:</span> <span class="s">fan.ikea_starkvind</span>
        <span class="na">styles</span><span class="pi">:</span>
          <span class="na">card</span><span class="pi">:</span>
            <span class="pi">-</span> <span class="na">background-color</span><span class="pi">:</span> <span class="pi">|-</span>
                <span class="s">[[[</span>
                  <span class="s">return entity.state === 'on' &amp;&amp; entity.attributes.percentage === 60</span>
                    <span class="s">? 'rgba(var(--rgb-state-active-color), 0.2)'</span>
                    <span class="s">: 'var(--ha-card-background)';</span>
                <span class="s">]]]</span>
          <span class="na">icon</span><span class="pi">:</span>
            <span class="pi">-</span> <span class="na">color</span><span class="pi">:</span> <span class="pi">|-</span>
                <span class="s">[[[</span>
                  <span class="s">return entity.state === 'on' &amp;&amp; entity.attributes.percentage === 60</span>
                    <span class="s">? 'var(--state-active-color)'</span>
                    <span class="s">: 'var(--secondary-text-color)';</span>
                <span class="s">]]]</span>
      <span class="pi">-</span> <span class="na">type</span><span class="pi">:</span> <span class="s">custom:button-card</span>
        <span class="na">icon</span><span class="pi">:</span> <span class="s">mdi:circle-slice-6</span>
        <span class="na">entity</span><span class="pi">:</span> <span class="s">fan.ikea_starkvind</span>
        <span class="na">show_name</span><span class="pi">:</span> <span class="kc">false</span>
        <span class="na">aspect_ratio</span><span class="pi">:</span> <span class="s">1/1</span>
        <span class="na">tap_action</span><span class="pi">:</span>
          <span class="na">action</span><span class="pi">:</span> <span class="s">call-service</span>
          <span class="na">service</span><span class="pi">:</span> <span class="s">fan.set_percentage</span>
          <span class="na">data</span><span class="pi">:</span>
            <span class="na">percentage</span><span class="pi">:</span> <span class="m">80</span>
          <span class="na">target</span><span class="pi">:</span>
            <span class="na">entity_id</span><span class="pi">:</span> <span class="s">fan.ikea_starkvind</span>
        <span class="na">styles</span><span class="pi">:</span>
          <span class="na">card</span><span class="pi">:</span>
            <span class="pi">-</span> <span class="na">background-color</span><span class="pi">:</span> <span class="pi">|-</span>
                <span class="s">[[[</span>
                  <span class="s">return entity.state === 'on' &amp;&amp; entity.attributes.percentage === 80</span>
                    <span class="s">? 'rgba(var(--rgb-state-active-color), 0.2)'</span>
                    <span class="s">: 'var(--ha-card-background)';</span>
                <span class="s">]]]</span>
          <span class="na">icon</span><span class="pi">:</span>
            <span class="pi">-</span> <span class="na">color</span><span class="pi">:</span> <span class="pi">|-</span>
                <span class="s">[[[</span>
                  <span class="s">return entity.state === 'on' &amp;&amp; entity.attributes.percentage === 80</span>
                    <span class="s">? 'var(--state-active-color)'</span>
                    <span class="s">: 'var(--secondary-text-color)';</span>
                <span class="s">]]]</span>
      <span class="pi">-</span> <span class="na">type</span><span class="pi">:</span> <span class="s">custom:button-card</span>
        <span class="na">icon</span><span class="pi">:</span> <span class="s">mdi:circle-slice-8</span>
        <span class="na">entity</span><span class="pi">:</span> <span class="s">fan.ikea_starkvind</span>
        <span class="na">show_name</span><span class="pi">:</span> <span class="kc">false</span>
        <span class="na">aspect_ratio</span><span class="pi">:</span> <span class="s">1/1</span>
        <span class="na">tap_action</span><span class="pi">:</span>
          <span class="na">action</span><span class="pi">:</span> <span class="s">call-service</span>
          <span class="na">service</span><span class="pi">:</span> <span class="s">fan.set_percentage</span>
          <span class="na">data</span><span class="pi">:</span>
            <span class="na">percentage</span><span class="pi">:</span> <span class="m">100</span>
          <span class="na">target</span><span class="pi">:</span>
            <span class="na">entity_id</span><span class="pi">:</span> <span class="s">fan.ikea_starkvind</span>
        <span class="na">styles</span><span class="pi">:</span>
          <span class="na">card</span><span class="pi">:</span>
            <span class="pi">-</span> <span class="na">background-color</span><span class="pi">:</span> <span class="pi">|-</span>
                <span class="s">[[[</span>
                  <span class="s">return entity.state === 'on' &amp;&amp; entity.attributes.percentage === 100</span>
                    <span class="s">? 'rgba(var(--rgb-state-active-color), 0.2)'</span>
                    <span class="s">: 'var(--ha-card-background)';</span>
                <span class="s">]]]</span>
          <span class="na">icon</span><span class="pi">:</span>
            <span class="pi">-</span> <span class="na">color</span><span class="pi">:</span> <span class="pi">|-</span>
                <span class="s">[[[</span>
                  <span class="s">return entity.state === 'on' &amp;&amp; entity.attributes.percentage === 100</span>
                    <span class="s">? 'var(--state-active-color)'</span>
                    <span class="s">: 'var(--secondary-text-color)';</span>
                <span class="s">]]]</span>
  <span class="pi">-</span> <span class="na">type</span><span class="pi">:</span> <span class="s">custom:expander-card</span>
    <span class="na">title</span><span class="pi">:</span> <span class="s">Details</span>
    <span class="na">cards</span><span class="pi">:</span>
      <span class="pi">-</span> <span class="na">type</span><span class="pi">:</span> <span class="s">entities</span>
        <span class="na">entities</span><span class="pi">:</span>
          <span class="pi">-</span> <span class="na">entity</span><span class="pi">:</span> <span class="s">sensor.ikea_starkvind_last_updated</span>
            <span class="na">name</span><span class="pi">:</span> <span class="s">Last Updated</span>
          <span class="pi">-</span> <span class="na">entity</span><span class="pi">:</span> <span class="s">input_boolean.ikea_starkvind_ledindication</span>
            <span class="na">name</span><span class="pi">:</span> <span class="s">Led Indicator</span>
          <span class="pi">-</span> <span class="na">entity</span><span class="pi">:</span> <span class="s">sensor.ikea_starkvind_air_quality</span>
            <span class="na">name</span><span class="pi">:</span> <span class="s">Air Quality Indicator</span>
          <span class="pi">-</span> <span class="na">type</span><span class="pi">:</span> <span class="s">custom:template-entity-row</span>
            <span class="na">state</span><span class="pi">:</span> <span class="pi">&gt;-</span>
              <span class="s">{{ states('sensor.ikea_starkvind_air_quality_measured_value') }}</span>
              <span class="s">µg/m³</span>
            <span class="na">name</span><span class="pi">:</span> <span class="s">Air Quality</span>
            <span class="na">icon</span><span class="pi">:</span> <span class="s">mdi:bacteria-outline</span>
          <span class="pi">-</span> <span class="na">entity</span><span class="pi">:</span> <span class="s">binary_sensor.ikea_starkvind_replace_filter</span>
            <span class="na">name</span><span class="pi">:</span> <span class="s">Replace Filter</span>
          <span class="pi">-</span> <span class="na">type</span><span class="pi">:</span> <span class="s">custom:template-entity-row</span>
            <span class="na">name</span><span class="pi">:</span> <span class="s">Filter Life Remaining</span>
            <span class="na">state</span><span class="pi">:</span> <span class="pi">|-</span>
              <span class="s">{{ (states('sensor.ikea_starkvind_filter_lifetime_remaining') |</span>
                  <span class="s">float(0) / 60 / 24)| round(1) }} days</span>
            <span class="na">icon</span><span class="pi">:</span> <span class="s">mdi:timelapse</span>
    <span class="na">animation</span><span class="pi">:</span> <span class="kc">false</span>
    <span class="na">clear-children</span><span class="pi">:</span> <span class="kc">false</span>

</code></pre></div></div>

<p>This one I kept :)</p>

<p><img src="/assets/img/posts/2026/05/lovelace_custom_folded_dark.png" alt="Custom card configuration" class="align-center dark" />
<img src="/assets/img/posts/2026/05/lovelace_custom_folded_light.png" alt="Custom card configuration" class="align-center light" />
<em>Collapsed custom card</em></p>

<p><img src="/assets/img/posts/2026/05/lovelace_custom_unfolded_dark.png" alt="Custom card configuration" class="align-center dark" />
<img src="/assets/img/posts/2026/05/lovelace_custom_unfolded_light.png" alt="Custom card configuration" class="align-center light" />
<em>Unfolded custom card</em></p>
]]></content>
  </entry>

  
  
  <entry>
    <title>A new theme</title>
    <link href="https://kcore.org/2026/04/01/a-new-theme/" rel="alternate" type="text/html" title="A new theme" />
    <published>2026-04-01T00:00:00+02:00</published>
  
    <updated>2026-04-01T00:00:00+02:00</updated>
  
    <id>https://kcore.org/2026/04/01/a-new-theme</id>
    <author>
      <name>Jan</name>
    </author>
  
    
    <category term="Life &amp; Musings" />
    
    <category term="Site Updates" />
    
  
  
    
    <category term="blog" scheme="tag" />
    
    <category term="kcore.org" scheme="tag" />
    
    <category term="static" scheme="tag" />
    
    <category term="jekyll" scheme="tag" />
    
    <category term="site" scheme="tag" />
    
    <category term="chirpy" scheme="tag" />
    
    <category term="minimal mistakes" scheme="tag" />
    
  
  <summary type="html"><![CDATA[My static blog to-do list kept growing, so I decided to do something about it.  I’ve switched from Minimal Mistakes to Chirpy as a theme, because it offers built-in dark/light theme support and has share-to-Mastodon functionality. At the same time I’ve done some spring cleaning in my posts - moved some really old stuff off to the side.  In the end it was more work than I had anticipated:     Re...]]></summary>
  
  <content type="html" xml:base="https://kcore.org/2026/04/01/a-new-theme/"><![CDATA[<p>My static blog to-do list kept growing, so I decided to do something about it.</p>

<p>I’ve switched from <a href="https://github.com/mmistakes/minimal-mistakes/">Minimal Mistakes</a> to <a href="https://chirpy.cotes.page/">Chirpy</a> as a theme, because it offers built-in dark/light theme support and has share-to-Mastodon functionality. At the same time I’ve done some spring cleaning in my posts - moved some really old stuff off to the side.</p>

<p>In the end it was more work than I had anticipated:</p>

<ul>
  <li>Re-categorising everything since I had conflated tags and categories with Minimal Mistakes - it is a lot more forgiving and you can add as many categories as you want, but Chirpy doesn’t work that way</li>
  <li>Figuring out how to add a custom font to have my CodeBerg icon</li>
  <li>Reworking the <code class="language-plaintext highlighter-rouge">feed.xml</code> file so the output is more like what Minimal Mistakes generates - avoiding RSS readers to mark the old posts as new</li>
  <li>Cleaning out the <a href="https://jekyllrb.com/docs/front-matter/">front matter</a> which contained left-overs from my <a href="/2019/06/26/a-new-home/">wordpress to jekyll migration</a></li>
  <li>Adjusting the markdown heading level so it shows up properly in the table of content</li>
  <li>Linted everything using <a href="https://rumdl.dev">rumdl</a></li>
  <li>Implemented some quality of viewing things of Chirpy</li>
  <li>Replaced a bunch of dead links with links to the <a href="https://archive.org">Internet Archive</a> <a href="https://web.archive.org/">Wayback Machine</a></li>
  <li>Adjusted a bunch of images to be usable in a dark-theme environment</li>
  <li>Probably some other stuff that I forgot about</li>
</ul>

<p>I’m happy with the end result. If you’re reading this via RSS, you shouldn’t notice much ;)</p>
]]></content>
  </entry>

  
  
  <entry>
    <title>Upgrading Plausible from 1.5.1 to 3.2.0</title>
    <link href="https://kcore.org/2026/03/26/upgrading-plausible-from-1.5.1-to-3.2.0/" rel="alternate" type="text/html" title="Upgrading Plausible from 1.5.1 to 3.2.0" />
    <published>2026-03-26T00:00:00+01:00</published>
  
    <updated>2026-03-26T00:00:00+01:00</updated>
  
    <id>https://kcore.org/2026/03/26/upgrading-plausible-from-1.5.1-to-3.2.0</id>
    <author>
      <name>Jan</name>
    </author>
  
    
    <category term="Technology &amp; IT" />
    
    <category term="Linux" />
    
  
  
    
    <category term="plausible" scheme="tag" />
    
    <category term="analytics" scheme="tag" />
    
    <category term="clickhouse" scheme="tag" />
    
    <category term="migration" scheme="tag" />
    
    <category term="postgres" scheme="tag" />
    
  
  <summary type="html"><![CDATA[I’m one of the (main) sysadmins of a forum running phpBB. It also uses Plausible, a self-hosted web analytics tool, so we have some grasp where our users come from.  My main focus is dealing with the underlying virtual hardware and OS - the forum software is updated by someone else, and Plausible was installed and then promptly forgotten about 3 years ago by yet another person.  While doing som...]]></summary>
  
  <content type="html" xml:base="https://kcore.org/2026/03/26/upgrading-plausible-from-1.5.1-to-3.2.0/"><![CDATA[<p>I’m one of the (main) sysadmins of a forum running <a href="https://www.phpbb.com/">phpBB</a>. It also uses <a href="https://plausible.io/self-hosted-web-analytics">Plausible</a>, a self-hosted web analytics tool, so we have some grasp where our users come from.</p>

<p>My main focus is dealing with the underlying virtual hardware and OS - the forum software is updated by someone else, and Plausible was installed and then promptly forgotten about 3 years ago by yet another person.</p>

<p>While doing some maintenance work I asked the person who had installed if they were keeping it updated, to which the answer was <em>does it need updating?</em> … so I decided to have a look.</p>

<p>There were a few issues with the way it was running</p>

<ul>
  <li>Installed on the wrong server (we have a few)</li>
  <li>Running on a non-standard web port (can be blocked by certain firewalls)</li>
  <li><em>very</em> old (version <a href="https://github.com/plausible/analytics/releases/tag/v1.5.1">1.5.1</a>)!</li>
</ul>

<h2 id="upgrading-plausible">Upgrading Plausible</h2>

<p>Moving and upgrading Plausible seemed simple enough:</p>

<ul>
  <li>Reinstalling it as per the <a href="https://github.com/plausible/community-edition/">Getting Started instructions on the GitHub page</a></li>
  <li>Exporting the Postgres database, and importing it</li>
  <li>Copying over the <a href="https://clickhouse.com/">Clickhouse</a> database</li>
  <li>Executing a migration to the v2 schema (required for <a href="https://github.com/plausible/analytics/releases/tag/v2.0.0">Plausible 2.0.0</a>)
.. but I hit a few snags along the way.</li>
</ul>

<h3 id="reinstalling-plausible">Reinstalling Plausible</h3>

<p>This step is easy: just follow the <a href="https://github.com/plausible/community-edition/">Getting Started instructions on the GitHub page</a> guide, adjusting where necessary.</p>

<h3 id="exporting-and-importing-the-postgres-database">Exporting and Importing the Postgres database</h3>

<p>This is documented on the <a href="https://github.com/plausible/community-edition/wiki/Upgrade-PostgreSQL">Plausible Wiki</a>, but you can find instructions on how to do this all over the web. Pretty standard <code class="language-plaintext highlighter-rouge">pg_dump</code> and <code class="language-plaintext highlighter-rouge">psql &lt; file</code>.</p>

<p>On the old machine:</p>

<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code>docker compose stop plausible
docker compose <span class="nb">exec </span>plausible_db sh <span class="nt">-c</span> <span class="s2">"pg_dump -U postgres plausible_db &gt; plausible_db.bak"</span>
docker compose <span class="nb">cp </span>plausible_db:plausible_db.bak plausible_db.bak
</code></pre></div></div>

<p>Copy the <code class="language-plaintext filepath highlighter-rouge">plausible_db.bak</code> over to the new machine</p>

<p>On the new machine:</p>

<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code>docker compose <span class="nb">exec </span>plausible_db createdb <span class="nt">-U</span> postgres plausible_db
docker compose <span class="nb">cp </span>plausible_db.bak plausible_db:plausible_db.bak
docker compose <span class="nb">exec </span>plausible_db sh <span class="nt">-c</span> <span class="s2">"psql -U postgres -d plausible_db &lt; plausible_db.bak"</span>
docker compose up <span class="nt">-d</span>
</code></pre></div></div>

<h3 id="copying-the-clickhouse-database">Copying the Clickhouse database</h3>

<p>This one was slightly more involved - as there are actually two migrations that need to happen:</p>

<ul>
  <li>upgrading Clickhouse from 22.6 to 24.12 (handled by Clickhouse itself)</li>
  <li>doing a migration from <code class="language-plaintext highlighter-rouge">event_v1</code> to <code class="language-plaintext highlighter-rouge">event_v2</code> tables for Plausible</li>
</ul>

<p>I am not familiar with Clickhouse whatsoever, and the many paths I tried to take to export and import the data all ended in problems.
The final option - which worked - was to copy the actual container volume over - the one stored on the old server in <code class="language-plaintext filepath highlighter-rouge">/var/lib/docker/volumes/hosting_event-data</code> to the new machine under <code class="language-plaintext filepath highlighter-rouge">/var/lib/docker/volumes/plausible_event-data</code>.</p>

<blockquote class="prompt-warning">
  <p>Remember to first <strong>stop</strong> the clickhouse event container before copying the files!</p>
</blockquote>

<p>After this I started the Plausible containers, and executed the migration:</p>

<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code>docker compose <span class="nb">exec </span>plausible bin/plausible rpc Plausible.DataMigration.NumericIDs.run
</code></pre></div></div>

<p>This worked, but when testing my new Plausible install I kept getting weird errors and Plausible would crash:</p>

<div class="language-text highlighter-rouge"><div class="highlight"><pre class="highlight"><code>plausible-1  | ** (exit) an exception was raised:
plausible-1  |     ** (Ch.Error) Code: 47. DB::Exception: Identifier 's0.source' cannot be resolved from table with name s0. In scope SELECT toUInt64(round(uniq(s0.user_id) * any(_sample_factor))) AS visitors, if(empty(s0.source), 'Direct / None', s0.source) AS dim0 FROM sessions_v2 AS s0 WHERE (s0.site_id = _CAST(154, 'Int64')) AND (s0.start &gt;= _CAST(1756929600, 'DateTime')) AND (s0.timestamp &gt;= _CAST(1757534400, 'DateTime')) AND (s0.start &lt;= _CAST(1759953599, 'DateTime')) GROUP BY dim0 ORDER BY visitors DESC, dim0 ASC LIMIT _CAST(0, 'Int64'), _CAST(9, 'Int64'). (UNKNOWN_IDENTIFIER) (version 25.8.2.29 (official build))
plausible-1  | 
plausible-1  |         (ecto_sql 3.12.1) lib/ecto/adapters/sql.ex:1096: Ecto.Adapters.SQL.raise_sql_call_error/1
plausible-1  |         (ecto_ch 0.6.0) lib/ecto/adapters/clickhouse.ex:323: Ecto.Adapters.ClickHouse.execute/5
plausible-1  |         (ecto 3.12.5) lib/ecto/repo/queryable.ex:232: Ecto.Repo.Queryable.execute/4
plausible-1  |         (ecto 3.12.5) lib/ecto/repo/queryable.ex:19: Ecto.Repo.Queryable.all/3
plausible-1  |         (plausible 0.0.1) lib/plausible/stats/query_runner.ex:48: Plausible.Stats.QueryRunner.execute_main_query/1
plausible-1  |         (plausible 0.0.1) lib/plausible/stats/query_runner.ex:40: Plausible.Stats.QueryRunner.run/2
plausible-1  |         (plausible 0.0.1) lib/plausible/stats/breakdown.ex:40: Plausible.Stats.Breakdown.breakdown/5
plausible-1  |         (plausible 0.0.1) lib/plausible_web/controllers/api/stats_controller.ex:481: PlausibleWeb.Api.StatsController.sources/2
</code></pre></div></div>

<p>Searching I came across <a href="https://github.com/plausible/analytics/discussions/5794#discussioncomment-14646542">Github discussion #5794</a>, which pointed me in the correct direction - apparently there’s a <a href="https://github.com/plausible/analytics/blob/master/rel/overlays/migrate.sh">migration script</a> being run when Plausible starts and this interferes with the other upgrades.</p>

<p>Solution:</p>

<ul>
  <li>stopping Plausible completely</li>
  <li>temporarily removing the <code class="language-plaintext highlighter-rouge">&amp;&amp; /entrypoint.sh db migrate</code> part from the <code class="language-plaintext highlighter-rouge">command</code> line in <code class="language-plaintext filepath highlighter-rouge">compose.yaml</code></li>
  <li>copying back the old pre-upgraded Clickhouse database</li>
  <li>starting Plausible (and ignoring any errors)</li>
  <li>executing the data migration for v2 (see above)</li>
  <li>shutting down Plausible</li>
  <li>restoring the <code class="language-plaintext highlighter-rouge">command</code> line in <code class="language-plaintext filepath highlighter-rouge">compose.yaml</code></li>
  <li>starting up Plausible again</li>
</ul>

<p>At this point Plausible did the secondary migration and everything started up without errors.</p>
]]></content>
  </entry>

  
  
  <entry>
    <title>CrossFit, and why you should try it too.</title>
    <link href="https://kcore.org/2025/12/31/crossfit/" rel="alternate" type="text/html" title="CrossFit, and why you should try it too." />
    <published>2025-12-31T00:00:00+01:00</published>
  
    <updated>2025-12-31T00:00:00+01:00</updated>
  
    <id>https://kcore.org/2025/12/31/crossfit</id>
    <author>
      <name>Jan</name>
    </author>
  
    
    <category term="Life &amp; Musings" />
    
    <category term="Personal" />
    
  
  
    
    <category term="crossfit endgame" scheme="tag" />
    
    <category term="functional fitness endgame" scheme="tag" />
    
    <category term="core" scheme="tag" />
    
    <category term="wod" scheme="tag" />
    
    <category term="foundations" scheme="tag" />
    
    <category term="fitness" scheme="tag" />
    
  
  <summary type="html"><![CDATA[When we moved to our new home, we looked for a new place to exercise. While we had been spoiled with a gym at the end of our old street, our new location required a half-hour commute, which quickly turned working out into a chore.  Instead, we opted to build a “home gym-ish”. We purchased an elliptical trainer and a Concept2 RowErg which were regularly used, and some weights. While working out ...]]></summary>
  
  <content type="html" xml:base="https://kcore.org/2025/12/31/crossfit/"><![CDATA[<p>When we moved to our new home, we looked for a new place to exercise. While we had been spoiled with a gym at the end of our old street, our new location required a half-hour commute, which quickly turned working out into a chore.</p>

<p>Instead, we opted to build a “home gym-ish”. We purchased an <a href="https://en.wikipedia.org/wiki/Elliptical_trainer">elliptical trainer</a> and a <a href="https://www.concept2.com/ergs/rowerg">Concept2 RowErg</a> which were regularly used, and some weights.
While working out at home has its benefits (open 24/7, no commute, better music, shower access!) it still got a bit boring after a while.</p>

<p>I’ve never been a fan of running, and after my hip replacement it even felt completely off. Cycling is a means of transport to me - not a sport I enjoy.
Don’t get me wrong: they are both fantastic for the cardiovascular system and building endurance, but they do not tick the “total-body” sport box. Running is high-impact, which is great for bone density in the legs, but it doesn’t do much for the upper body. Cycling on the other hand is a non-weight-bearing, low-impact sport that is gentle on the joints but can actually lead to lower bone density over time because your skeleton isn’t being “stressed” enough to stay strong.</p>

<p>Back in early 2021, I noticed a new <a href="https://www.crossfit.com/">CrossFit</a> box had opened in our little town called <a href="https://endgamefunctionalfitness.com/">CrossFit Endgame</a>. I went to a try-out class, but it being the height of <a href="https://en.wikipedia.org/wiki/COVID-19_pandemic_in_Belgium">COVID-19</a> restrictions, classes were outdoor and limited to 4 people. Add the fact that it was winter, I left feeling extremely self-conscious and out of shape after that class and my general feeling was kind of ‘meh’, so I didn’t pursue it.</p>

<p>Fast forward to the end of 2021 - my partner had started CrossFit in <a href="https://www.crossfitgent.com/">CrossFit Gent</a> as a perk of teaching yoga classes in that box. Seeing the progress she was making I felt <del>peer-pressured</del> quietly inspired (read: she didn’t do/say anything, it was all me :P) so in May 2022 I contacted the local box again, asking to do another try-out class. My idea was to buy a voucher for 10 sessions, and see after that, but the owner (Jasper) talked me into getting a subscription for half a year, 1 class per week - the reasoning being that a subscription creates a habit, while a voucher usually just sits in a pocket gathering dust.</p>

<p>I took the bait and signed up.</p>

<p>One of the things that won me over was how infinitely scalable everything is. Coming in with mobility issues in one hip and a full replacement of another (due to <a href="https://en.wikipedia.org/wiki/Legg%E2%80%93Calv%C3%A9%E2%80%93Perthes_disease">Legg–Calvé-Perthes</a>), I was worried about certain movements, but the coaches helped offering adjustments for the movements where necessary, scaling to my abilities, needs and level - whether it’s the weight on the bar or the complexity of the movement, they make sure you’re challenged but safe.</p>

<p>Those first few weeks I discovered muscles I didn’t know I had and they were all complaining - loudly. Eventually the complaining lessened and the Tuesday workouts became therapy - I’d walk in frustrated from work and walk out completely zen. It turns out, lifting heavy things with friends is cheaper than a therapist and twice as rewarding. Dropping heavy things is therapeutic on its own!</p>

<p>During that first half year I made a lot of new friends, got inspired by our coaches and learned many new movements - still being very mediocre at them at best :P</p>

<p>After those six months I did not hesitate and subscribed for a year of unlimited classes. I started going twice a week (Tuesday and Thursday evening), sometimes (as time permitted) adding a <a href="https://en.wikipedia.org/wiki/Core_(anatomy)">core</a>-focused class to the mix. A temporal increase in soreness, but my body adjusted, reducing the days of soreness. I started noticing that I could do more, everything around the house - even the simplest of chores - felt easier!</p>

<p>By the end of 2023 a programming change was made which allowed me to pick up another class on Friday evening - a good way to start the weekend. Fast forward to today: I routinely go to 5 classes a week - Foundations, WODs and Core. Around that time the box rebranded to Endgame Functional Fitness, dropping the official CrossFit affiliation for ethical and financial reasons, though the methods and amazing community stayed exactly the same.</p>

<p><img src="/assets/img/posts/2025/12/box-checkins.png" alt="Box check-ins over time" class="align-center" /></p>

<p>It has become a part of who I am. Stronger, fitter, saner, happier and very grateful that Jasper took that gamble of opening up a box in a town he’d never heard of. And one of the best perks? Coach Ona, the super sweet Border Collie :)</p>

<p><img src="/assets/img/posts/2025/12/ona.jpg" alt="Ona, the border collie" class="align-center" /></p>
]]></content>
  </entry>

  
  
  <entry>
    <title>Obtaining the Citrix Cleanup Tool</title>
    <link href="https://kcore.org/2025/11/22/citrix-cleanup/" rel="alternate" type="text/html" title="Obtaining the Citrix Cleanup Tool" />
    <published>2025-11-22T00:00:00+01:00</published>
  
    <updated>2025-11-22T00:00:00+01:00</updated>
  
    <id>https://kcore.org/2025/11/22/citrix-cleanup</id>
    <author>
      <name>Jan</name>
    </author>
  
    
    <category term="Technology &amp; IT" />
    
    <category term="Windows" />
    
  
  
    
    <category term="windows" scheme="tag" />
    
    <category term="citrix" scheme="tag" />
    
  
  <summary type="html"><![CDATA[For $reasons there was a Citrix Workspace installation on my partner’s computer. This installation hadn’t been used in forever, and I did not manage to get rid of it either (uninstalling would fail, upgrading would fail).  Citrix publishes a Citrix Cleanup tool, which for some obscure reason they’ve decided to put behind a login-wall. Only if your company has an account with Citrix you can obta...]]></summary>
  
  <content type="html" xml:base="https://kcore.org/2025/11/22/citrix-cleanup/"><![CDATA[<p>For $reasons there was a <a href="https://www.citrix.com/downloads/workspace-app/">Citrix Workspace</a> installation on my partner’s computer. This installation hadn’t been used in forever, and I did not manage to get rid of it either (uninstalling would fail, upgrading would fail).</p>

<p>Citrix publishes a <a href="https://support.citrix.com/external/article/CTX137494/receiver-cleanup-utility.html">Citrix Cleanup</a> tool, which for some obscure reason they’ve decided to put behind a login-wall. Only if your company has an account with Citrix you can obtain it directly.</p>

<p>Luckely there’s an easy way to obtain it: Download the latest Citrix Workspace app, and unpack the downloaded file using eg. <a href="https://www.7-zip.org/">7-Zip</a>. You’ll find the Cleanup Tool within :)</p>
]]></content>
  </entry>

  
  
  <entry>
    <title>Using IPv6 outside of Docker with Docker</title>
    <link href="https://kcore.org/2025/09/25/docker-ipv6/" rel="alternate" type="text/html" title="Using IPv6 outside of Docker with Docker" />
    <published>2025-09-25T00:00:00+02:00</published>
  
    <updated>2025-09-25T00:00:00+02:00</updated>
  
    <id>https://kcore.org/2025/09/25/docker-ipv6</id>
    <author>
      <name>Jan</name>
    </author>
  
    
    <category term="Technology &amp; IT" />
    
    <category term="Linux" />
    
  
  
    
    <category term="virtualisation" scheme="tag" />
    
    <category term="networking" scheme="tag" />
    
    <category term="linux" scheme="tag" />
    
    <category term="docker" scheme="tag" />
    
    <category term="ipv6" scheme="tag" />
    
    <category term="containers" scheme="tag" />
    
  
  <summary type="html"><![CDATA[I recently activated IPv6 on my Netcup VPS, and in the process of setting it up on all my LXCs I noticed that for “reasons” the IPv6 default route would vanish after starting Docker (switching it all over to Podman is on my TODO list), effectively breaking the IPv6 connectivity on this LXC.  After some digging this seems to be a security thing: docker will enable forwarding on (eg.) eth0, but s...]]></summary>
  
  <content type="html" xml:base="https://kcore.org/2025/09/25/docker-ipv6/"><![CDATA[<p>I <a href="/2025/09/15/proxmox-sdn-ipv6/">recently activated IPv6</a> on my <a href="https://www.netcup.com/en/?ref=270183">Netcup</a> VPS, and in the process of setting it up on all my LXCs I noticed that for “reasons” the IPv6 default route would vanish after starting Docker (switching it all over to Podman is on my TODO list), effectively breaking the IPv6 connectivity on this LXC.</p>

<p>After some digging this seems to be <a href="https://github.com/docker/docs/pull/10940#issuecomment-637437540">a security thing</a>: docker will enable forwarding on (eg.) <code class="language-plaintext highlighter-rouge">eth0</code>, but setting <code class="language-plaintext highlighter-rouge">forwarding=1</code> will make the kernel ignore <a href="https://docs.netgate.com/pfsense/en/latest/services/dhcp/ipv6-ra.html">router advertisements</a>.</p>

<p>What are Router Advertisements? As per the pfSense documentation:</p>

<blockquote>
  <p>In IPv6, hosts locate a router through Router Advertisement (RA) messages sent from routers instead of by DHCP; IPv6-enabled routers that support dynamic address assignment are expected to announce themselves on the network to all clients. As such, DHCPv6 does not include any gateway information. So clients can obtain their addresses from DHCPv6 or SLAAC, but unless they are statically configured, they always locate their next hop by using RA packets sent from available gateways.</p>
</blockquote>

<p>In the linux kernel this is controlled through the <a href="https://www.kernel.org/doc/html/latest/networking/ip-sysctl.html"><code class="language-plaintext highlighter-rouge">accept_ra</code> sysctl</a>:</p>

<div class="language-text highlighter-rouge"><div class="highlight"><pre class="highlight"><code>accept_ra - INTEGER
    Accept Router Advertisements; autoconfigure using them.

    It also determines whether or not to transmit Router Solicitations. If and only if the functional setting is to accept Router Advertisements, Router Solicitations will be transmitted.

    Possible values are:
        0 - Do not accept Router Advertisements.
        1 - Accept Router Advertisements if forwarding is disabled.
        2 - Overrule forwarding behaviour. Accept Router Advertisements even if forwarding is enabled.

    Functional default:
            enabled if local forwarding is disabled.
            disabled if local forwarding is enabled.
</code></pre></div></div>

<p>To get router advertisements working again while forwarding is enabled, we need to set it to 2.</p>

<p>Setting <code class="language-plaintext highlighter-rouge">net.ipv6.conf.eth0.accept_ra=2</code> in <code class="language-plaintext filepath highlighter-rouge">/etc/sysctl.d/99-docker.conf</code> didn’t help much: it seems that Docker will overwrite this setting too. So I opted instead to create a new <a href="https://systemd.io/">systemd</a> service file called <code class="language-plaintext filepath highlighter-rouge">/etc/systemd/system/docker-ipv6-route.service</code> to reset this value:</p>

<div class="language-ini highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nn">[Unit]</span><span class="w">
</span><span class="py">Description</span><span class="p">=</span><span class="s">Set accept_ra=2 after Docker starts</span>
<span class="py">After</span><span class="p">=</span><span class="s">docker.service</span>
<span class="py">Requires</span><span class="p">=</span><span class="s">docker.service</span>
<span class="w">
</span><span class="nn">[Service]</span><span class="w">
</span><span class="py">Type</span><span class="p">=</span><span class="s">oneshot</span>
<span class="py">ExecStart</span><span class="p">=</span><span class="s">/usr/sbin/sysctl -q net.ipv6.conf.eth0.accept_ra=2</span>
<span class="w">
</span><span class="nn">[Install]</span><span class="w">
</span><span class="py">WantedBy</span><span class="p">=</span><span class="s">multi-user.target</span>
</code></pre></div></div>

<p>It’s a dirty hack, but it works. Let’s see what happens when I move this setup to Podman, later.</p>
]]></content>
  </entry>

</feed>
