Here I am again, a month later. Are you used to these monthly release cycles yet? Hello, 2021.5! Nice to see you this May!
I would say this release is a bit less feature rich compared to the previous release (which was epic, in my opinion!). But it is not a bad thing!
Some really good stability improvements have been introduced this release! Not the hot new items you want to explore immediately, but these fundamental things will really help our systems now and in the future. Making this release an upgrade that would be a smooth sail for most of us (check the breaking changes).
The most visual part changed this release can be found in the facelift that the integrations dashboard got. Oh, and the new color modes for lights is an amazing improvement as well!
May… For me, that feels like the summer is slowly trying to make its appearance and I’m looking forward to it 🕶. Do you have a summer Home Automation project figured out yet?
Oh, and don’t forget to tune into the release party live stream later today! (Spoiler alert: I’ve heard we might have a special guest, only Paulus didn’t want to tell me who it is…)
2021.5 Stream Party on YouTube: https://www.youtube.com/watch?v=bvAKUz-bmqU
There is a database upgrade in this release, but worry not as database upgrades now happen in the background and no longer prevent Home Assistant from starting. During migration, Home Assistant will prevent being restarted or stopped until the migration has been completed.
And if you have ever had to wait for the recorder to shut down, worry no more as Home Assistant can now shut down successfully, even when the database is broken.
Talking about broken databases: if you have ever had database corruption of your SQLite database, you probably know how much of a pain it is to get things back up and running again. We recently added live recovery to allow Home Assistant to recover and start a new database when the recorder encountered corruption when saving events or states to the database. This release extends this live recovery to work during migration and purge. This also means no more waiting for a database check on unclean shutdown!
Finally, the recorder performance has been improved by reducing the write frequency.
Ever wondered why starting up Home Assistant took so long?
Stop wondering, as you can now see which integration is delaying startup as the integration taking the longest time to set up is now displayed when Home Assistant is starting.
!(upload://kqAe9ANV06sooO0PLaE0YqL0hMk.png) Screenshot of Home Assistant reporting integrations that are being set up.
And in case you missed those notifications, you can always check the information panel afterward.
!(upload://sW9yJofMDDUjMDnr15FGDrcX6ER.png) Screenshot of information panel showing integration set up times.
This My button brings you right to it:
So, why didn’t Home Assistant restart when you press the restart button? This question we have seen quite a few times and was a rather annoying occurrence that has been improved.
The restart button now provides feedback! So you know right away if a restart can’t happen because of invalid configuration, broken integration or database upgrade in progress.
We adjusted timeouts and fixed a few places where shutdown would block forever, for example, when restarting Home Assistant the configuration gets checked and there was a case that could hang in this check forever.
This means restarts are faster now! As more parts of Home Assistant now cancel/react to the shutdown procedure better than before (from the Month of What the Heck).
We also audited the top 35 integrations to make sure they stop polling on stop. Thanks for turning on analytics!
The Integrations dashboard has been updated to have a more compact look and provide more useful information.
For example, it now shows the state of the integration and in case of a failure, it will now tell you why that is.
!(upload://6bxwFm08bN3U6Zp5cRhzg0fkuWA.png) Screenshot of the updated integrations dashboard.
Additionally, you can now recognize integrations that rely on the cloud (they show a little cloud label) and integrations that are installed as custom integration (they show a little package label).
We now have support for RGBWW, RGBW and many more color modes!
Previously, we relied mainly on HS (Hue Saturation) & Brightness (HSB/HSV) and colors in Home Assistant was based on that. But now, an integration can provide the actual color mode an light supports. This allows Home Assistant (and integrations) to adjust the behavior for the light better.
For example, the frontend will adjust the color picker based on the color mode of the light. The more info dialog for lights have been modernized to support this change:
!(upload://bjy4hyQ3Ze9Ujk5C94ac5ZMSKwH.png) Screenshot of the updated more info dialog for lights.
Please notes, that at this moment not all integrations are able to support color modes yet. However, all lights do have an nice updated UI as in the screenshot.
In the previous release, we introduced a trigger-based template sensor. This release extends on that features by adding support for trigger-based binary sensors using templates.
Trigger-based binary sensors can also be configured with an
This will automatically turn a binary sensor state to
off after the specified
template: - trigger: - platform: event event_type: netatmo_event event_data: type: movement binary_sensor: - name: "Motion" # We use auto_off, so just set it to true on each trigger state: "true" device_class: motion # Automatically turn off 60 seconds after the last event auto_off: 60
Some other ideas:
We are now using both DockerHub and the new GitHub Container Registry.
If you want to use the new GitHub Container Registry, just use:
Our core images are now also signed with CodeNotary and allowing you to check the integrity of our images.
CodeNotary is a distributed Ledger solution using the immudb as a database for built-in cryptographic proof and verification.
If you are running the Home Assistant Operating System or a Supervised installation type, we already check the integrity of our distributed content. If you running the Container installation, you can install the VCN tool.
Now you can use it like so:
docker pull ghcr.io/home-assistant/home-assistant:2021.5.0 vcn authenticate --org home-assistant.io docker://ghcr.io/home-assistant/home-assistant:2021.5.0
This will tell/confirm that the image you have, is actually created and shipped by the Home Assistant project.
There is much more juice in this release; here are some of the other noteworthy changes this release:
- Are you in meetings a lot? The new mutesync integration shows if you’re in a meeting and if you’re muted in Home Assistant. This will unlock some cool do-not-disturb automations.
- We did an audit of memory leaks and fixed a couple of generic cases in our core codebase. But also fixed over 15 cases during unload/reload in popular integrations.
- The TTS service by Home Assistant Cloud now uses an improved bitrate, making it sound even more impressive.
- ClimaCell now supports the v4 API. So, I’ve you’ve wanted to test it out you can now actually use it with the new API keys. Thanks @raman325!
- If you are into templating, we now have
max()available as functions in Jinja templates.
- The AdGuard integration now supports multiple instances thanks to @eifinger.
- When viewing your logs in the frontend, the log entry will tell you if the log was created by a custom integration.
- If you have a Sonos Move or Sonos Roam, you can now see their battery level and charging state. Thanks for that @hufman and @jjlawren.
- Template covers now can have an opening and closing state, which was added by @bdr99, thanks for that!
- The ZHA integration now has configuration options in the UI, allowing you to set things like default transition times for your lights. Thanks @dmulcahey!
- The Z-Wave JS integration now allows you to re-interview a device from the UI thanks to @cgarwood.
- @cgarwood didn’t stop there, you can now opt-in for sending Z-Wave JS telemetry to the Z-Wave JS project to help them out. This can be turned on in the Z-Wave JS configuration panel.
This is a companion discussion topic for the original entry at https://www.home-assistant.io/blog/2021/05/05/release-20215/