Hello everyone!
It’s Monday, it’s the day of a new Gladys Assistant 4 release: v4.0.7 ![]()
This update brings a highly anticipated new feature, as well as numerous performance improvements, especially for instances with many devices (hey @Terdious :p), and Gladys Plus users!
(whom I thank once again for supporting the project!)
1) The ability to inject variables into scenes.
I have updated the documentation, it is now possible to inject a variable into a message in scenes.
Read the documentation: Envoyer un message | Gladys Assistant
Demo:
2) Improvement of performance and stability of sensor data writes
For those who have large installations, I had noticed a bottleneck when inserting new sensor values.
A transaction in the Gladys backend slowed down the entire insertion, and was not very useful because, in the end, given the write rate, it caused more harm than benefit.
After reworking the API route, we achieve really solid performance, and consistent over time. Your Gladys instance can now handle hundreds of writes per second without any difficulty ![]()
3) Improvement of Gladys Plus performance
You are about fifty to use Gladys Plus, the paid offer that I propose, which offers remote access to Gladys Assistant, end-to-end encrypted, as well as automatic backups.
Recently, we realized with a few members that the Gladys Plus remote access service was slower than usual, with requests taking around 500-600ms whereas we previously saw figures more around 50-60ms.
I spent a full day investigating, and I discovered that some internal function calls of Gladys (local) took a long time due to DB-level LOCKs.
In order to improve these performances, I decided to remove some database calls, and instead, query the RAM cache (much faster!) where we store some frequently accessed data in Gladys.
Since this change, we have returned to ultra-fast and powerful queries ![]()
The complete changelog is available on GitHub.
How to update?
If you installed Gladys with the official Raspbian image, your instances will update automatically in the coming hours. This can take up to 24 hours, no panic.
If you installed Gladys with Docker, check that you are using Watchtower (See the documentation)
Bravo to everyone who participated in this release!
