Home Assistant logo

Home Assistant – Quick and dirty fixes

This post was most recently updated on February 24th, 2022.

3 min read.

This article documents the quick and dirty fixes and patches that I have found for Home Assistant. I’m trying to document all the things that are not complicated enough to warrant an actual blog post themselves somewhere, and this page is as good a place as any.

Hopefully, these tips end up being helpful to someone else as well!

My favorite thoughtful workarounds to fix Home Assistant 🤠

What if my lovelace-weather-card-chart suddenly misses all charts?

First, make sure your weather integration still works by checking on the entity/sensor values that you’re expecting to use.

Second, update your lovelace-weather-card-chart version either using HACS or manually.

If that’s all good but the issue still exists, overwrite the weather-card-chart.js in /www or /www/hacsfiles (or wherever your local version of the file is stored) by using this forked version (for whatever reason, it worked for me):
https://github.com/scstraus/lovelace-weather-card-chart/blob/e25acb9fbcd44f61da3e08d61b2ef7911840e82b/weather-card-chart.js

How to add a second Worx Landroid to my Home Assistant?

If you have installed one of the great (but unofficial) Worx Landroid integrations to your Home Assistant, you might already be aware that getting everything to work with just one robot is pretty easy.

But what happens when you get another one? You might find out, that it’s not quite as easy to add the second one – I sure did.

But here’s the short answer on how to do it:
1) Remove the integration (comment the lines in configuration.yaml & remove the add-on using HACS)
2) Duplicate the entries in the entity registry (you need to make sure you have each entity for each one of your landroids – by name), and then
3) Reinstall the integration.

How to add Sonoff devices to your Home Assistant?

Based on my very preliminary understanding, there are 3 options – a slightly custom Zigbee local polling implementation, a super simple wifi/cloud-based solution, or the out-of-the-box option (which only works with supervised installations).

I went with the middle option, and boy was that simple. Essentially, you add the devices using eWeLink app, and then add cloud integration to sonoff to your configuration.yaml like this:
sonoff:
username: !secret sonoff_username
password: !secret sonoff_password
sensors: [temperature, humidity, power, current, voltage, rssi]


Any time your Home Assistant is rebooted, it fetches an updated device list and generates entities for them.

Some basics about the configuration are detailed here: https://smarthomehobby.com/sonoff-home-assistant-integration/

Of the other options, the first one is described in these links:
https://www.digiblur.com/2020/07/how-to-use-sonoff-zigbee-bridge-with.html
https://community.home-assistant.io/t/sonoff-zbbridge-sonoff-zigbee-bridge-from-itead/187346

And the last – out-of-the-box solution – is introduced here:
https://sonoff.tech/product-review/tutorial/how-to-add-your-sonoff-devices-on-home-assistant/

How to add styles to pretty much any lovelace card?


By using Card Mod:
https://github.com/thomasloven/lovelace-card-mod

Here’s a sample:


A copy-pasteable version is in Appendix 1.

How to fix adding Foscam integration failing?

Foscam integration refuses to be added if you have a long, strong, beautiful password. Try changing it into something that’s 10 characters, tops, and won’t contain any exotic characters, and it’ll probably work.

Try adding a new account “test” with password “test” to verify, for example. And then change it to something a bit more sensible, but not too difficult, because… You know, Foscam.

What if my ClimaCell integration suddenly stops working?

That’s normal – all current (as of August 2021) Home Assistant versions that use the out-of-the-box integration is built originally for v3 of the ClimaCell (or Tomorrow.io) API. This causes a couple of issues:

1) If you originally configured your integration with v3, after your v3 subscription/plan expires, it can’t be renewed. See here for how to get a new one for v4 (after which you’ll need to reconfigure the integration):
https://www.koskila.net/no-way-to-renew-a-climacell-api-subscription-what-do

2) The out-of-the-box integration for ClimaCell is built to stay within 500 queries per day (the limit for v3). For v4, the limit is in fact just 100 – so the integration will only work for a few hours, and then fail fantastically (make all your entities unavailable). While we’re waiting for a graceful solution (see my issue on GitHub), as a workaround you can block access to ClimaCell APIs (api.tomorrow.io and data.climacell.co) using a firewall, save for a few hours a day (so you’ll still get some updates, but not constantly updated weather data – sorry).

Other Home Assistant -related posts:

(Well, this article AND others, to be exact – but that’s how WordPress works, so…)

  • How to update RAM on Synology DS423+?

    How to update RAM on Synology DS423+?

    This post was most recently updated on February 24th, 2022. Time for something completely different: Hardware stuff. In this article, I’ll explain how to upgrade Synology DS423+ NAS’s RAM memory, which super-cheap RAM memory I used, and a little bit about how I ended up with this device in the…Continue reading Home Assistant – Quick…


  • How to work around Docker failing to access WSL on Windows?

    How to work around Docker failing to access WSL on Windows?

    This post was most recently updated on February 24th, 2022. So, I’m an occasional developer (and a frequent scripter), so I occasionally need to, well, develop stuff. And quite often I need Docker for packaging whatever I’m trying to push out there, or possibly to run someone else’s containers on…Continue reading Home Assistant – Quick…


  • How to pick the cheapest hours of electricity using Home Assistant?

    How to pick the cheapest hours of electricity using Home Assistant?

    This post was most recently updated on February 24th, 2022. Time to write about Home Assistant for a change! I’ve been using the home automation platform for a couple of years now and while it’s immensely powerful, you also run into all kinds of issues. I could rant in length…Continue reading Home Assistant – Quick…


  • How to find out dependency versions in your .csproj files using PowerShell?

    How to find out dependency versions in your .csproj files using PowerShell?

    This post was most recently updated on February 24th, 2022. This article explains our solution to a very particular use case. We needed to go through .csproj files, find certain dependencies from them, and then figure out their versions. And all of this needed to happen in an Azure DevOps…Continue reading Home Assistant – Quick…


  • How to install Home Assistant on Synology NAS (DSM 7.2)?

    How to install Home Assistant on Synology NAS (DSM 7.2)?

    This post was most recently updated on February 24th, 2022. This article explains how to install Home Assistant on your Synology NAS device using Container Manager and Web Station. This probably applies to DSM 7.2+ on any somewhat modern Synology DiskStation device. A lot of the steps also apply if…Continue reading Home Assistant – Quick…


  • Azure DevOps pipelines suddenly failing with “##[error]#0 building with default instance using docker driver”

    Azure DevOps pipelines suddenly failing with “##[error]#0 building with default instance using docker driver”

    This post was most recently updated on February 24th, 2022. Another (possibly?) timely and weird one here! This article explains how to work around Azure DevOps suddenly stopping to play nice with Docker and the rest of our tooling and causing all builds to fail with oddly non-descript error messages.…Continue reading Home Assistant – Quick…


  • How do Airthings sensors work with Home Assistant?

    How do Airthings sensors work with Home Assistant?

    This post was most recently updated on February 24th, 2022. This article describes some of my experiences with Airthings air quality sensors, especially when used with Home Assistant. I’m using a couple of sensors to keep an especially close eye on CO2, Radon and air pressure, in addition to temperature…Continue reading Home Assistant – Quick…


  • How to fix disconnected Sonoff Zigbee sensors in Home Assistant?

    How to fix disconnected Sonoff Zigbee sensors in Home Assistant?

    This post was most recently updated on February 24th, 2022. This article explains how to fix and reconnect Sonoff Zigbee sensors in Home Assistant, after they have mystically disconnected themselves. The neatness of this solution is that while the eWelink app will assign your sensors a new device id any…Continue reading Home Assistant – Quick…


  • How to configure your Smart Home wifi devices that fail to connect due to a weak wifi signal?

    How to configure your Smart Home wifi devices that fail to connect due to a weak wifi signal?

    This post was most recently updated on February 24th, 2022. This article describes a solution to a problem that I have had with pairing different Smart Home devices with my app or some cloud service using wifi. Weirdly, wifi can be strong enough to provide connectivity to any of the…Continue reading Home Assistant – Quick…


  • The simplest fixes to “500 (Internal Server Error)” from Azurite

    The simplest fixes to “500 (Internal Server Error)” from Azurite

    This post was most recently updated on February 24th, 2022. This quick blog post explains a couple of very simple fixes – essentially, user errors – to a simple problem that you might run into with Visual Studio when developing the latest of your cool Azure bits. Well, to be…Continue reading Home Assistant – Quick…


  • Solving “invalid reference format.” when trying to run almost any docker commands

    Solving “invalid reference format.” when trying to run almost any docker commands

    This post was most recently updated on February 24th, 2022. So another simple one. (I just seem to run into all of the issues whenever I try to do the simplest thing with Docker!) Or with anything, I guess – but yeah, that’s another article then. This time about any…Continue reading Home Assistant – Quick…


  • Upgrade from WSL 1 to WSL 2 in Windows 10 to fix Docker

    Upgrade from WSL 1 to WSL 2 in Windows 10 to fix Docker

    This post was most recently updated on February 24th, 2022. Okay – another one of the topics that I’m explaining probably more to myself than whoever’s reading this later. But that’s why I write this blog, so please bear with me. 🙂 Anyway, onto the actual issue at hand! I…Continue reading Home Assistant – Quick…


  • How to move the Home Assistant SQLite database in Docker on Windows?

    How to move the Home Assistant SQLite database in Docker on Windows?

    This post was most recently updated on February 24th, 2022. This article explains how you can move your Home Assistant’s SQLite database files to another location by mapping them to another volume in Docker. Using Docker on Windows. Which might not be a smart move, but it’s one I went…Continue reading Home Assistant – Quick…


  • How to fix “exec user process caused: no such file or directory” in Docker on Windows?

    How to fix “exec user process caused: no such file or directory” in Docker on Windows?

    This post was most recently updated on February 24th, 2022. Another one in the series of “random things that break when you try to run Docker on Windows”! I was just minding my own business, trying to run an Azure IoT Edge custom module – a Docker container, really –…Continue reading Home Assistant – Quick…


  • How to run SQL commands in a Postgre SQL Docker container?

    How to run SQL commands in a Postgre SQL Docker container?

    This post was most recently updated on February 24th, 2022. This article will explain how to run your arbitrary SQL commands against a Postgre SQL database running in a Docker container in Windows. That should be super simple, but since I never remember anything like this by heart, I had…Continue reading Home Assistant – Quick…


  • How to solve Vmmem consuming ungodly amounts of RAM when running WSL?

    How to solve Vmmem consuming ungodly amounts of RAM when running WSL?

    This post was most recently updated on February 24th, 2022. This was another (luckily pretty shallow) rabbit hole down some corporate IT and weird default configurations by our favorite tech-daddy Microsoft. In this article, I will describe one possible reason for a process called Vmmem.exe consuming enough RAM to crash…Continue reading Home Assistant – Quick…


  • Home Assistant – Quick and dirty fixes

    Home Assistant – Quick and dirty fixes

    This post was most recently updated on February 24th, 2022. This article documents the quick and dirty fixes and patches that I have found for Home Assistant. I’m trying to document all the things that are not complicated enough to warrant an actual blog post themselves somewhere, and this page…Continue reading Home Assistant – Quick…


  • No way to renew a ClimaCell API subscription – what to do?

    No way to renew a ClimaCell API subscription – what to do?

    This post was most recently updated on February 24th, 2022. One day I suddenly realized that my Home Assistant’s ClimaCell integration had stopped working. That was weird – it had been running just fine for a while. I had signed up for a ClimaCell developer account at developer.tomorrow.io (or whatever…Continue reading Home Assistant – Quick…


  • Docker-compose fails on Windows with “Error while fetching server API version: (2, ‘CreateFile’, ‘The system cannot find the file specified.’)”

    Docker-compose fails on Windows with “Error while fetching server API version: (2, ‘CreateFile’, ‘The system cannot find the file specified.’)”

    This post was most recently updated on February 24th, 2022. Once again, I come to you with a surprisingly opaque problem and offer to share my bemusingly simple solution. That should be a dedicated series on my blog – although on second thought, perhaps lobbing 90% of my articles under…Continue reading Home Assistant – Quick…


  • Gotchas when configuring Home Assistant on Docker on Windows

    Gotchas when configuring Home Assistant on Docker on Windows

    This post was most recently updated on February 24th, 2022. What a nice headline, right? 😅 One day, I thought I’d give Home Assistant a try! And obviously, I couldn’t just make things easy and run it in a Linux virtual machine or my Raspberry Pi – instead, obviously, I…Continue reading Home Assistant – Quick…


References & appendices

Appendix 1 – sample

This sample shows how to use card-mod on a custom weather-card-chart.

type: 'custom:weather-card-chart'
title: Weekly forecast
weather: weather.climacell_daily
style: |
  div.main {
	display: none !important;
  }
  div.attributes {
	display: none !important;
  }
mm
5 4 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments