Hello everyone!
Version 4.83.0 is available! ![]()
After the major release 4.82 (activity log + MQTT), this version focuses on reliability, performance, and some very concrete daily improvements, especially for installations with a lot of history, and for Gladys Plus.
Activity Page: Instant Display, Even on Large Databases
On an installation with hundreds of millions of states, filtering activity on an infrequent category (openings, buttonsâŠ) could freeze the interface for several tens of seconds.
The Activity page now loads the history in progressive time windows: the first events are displayed immediately, and the search continues in the background with a banner of the type « Searching for activity â {month}⊠».
On a database of 448 million states, a « Openings » filter that took 20â33 s to respond now displays the first results in ~100 ms.
Thanks to @Terdious for this work!
Automatic Cleanup of Orphaned States (DuckDB)
Since the migration of histories to DuckDB, a bug caused the « no longer keep history » purge of a feature, as well as the deletion of devices in some cases, not to clean up states correctly in DuckDB.
Result: « zombie » states (features without history, or already deleted features) could accumulate for years without anyone noticing, until the arrival of the activity log.
This release fixes the purge, and runs once at startup a background job that cleans up orphaned states, gently (in batches, with pauses), to avoid saturating the CPU or blocking the rest of Gladys.
On a test installation, 45 million orphaned states were thus purged. You can follow the progress in Settings â Tasks.
Thanks again to @Terdious!
Gladys Plus: 2FA Flow Redesigned
The entire Gladys Plus two-factor authentication flow has been reworked to better handle many small unpleasant cases that had been reported to me (missing configuration, code errors, going back, etc.).
Donât hesitate to give me your feedback on 2FA. I really want it to be simpler for beginner users, and I am aware that the authentication steps remain a bit complex for a non-technical user.
A next step would be to add recovery codes, to be able to reset the 2FA yourself in case of loss of the phone or the authentication app.
Gladys Plus Restoration: No More Temporary Account
When restoring a backup from the registration screen, Gladys previously created a temporary local account with hardcoded credentials. If the flow was interrupted or failed, this account could remain, block registration⊠and leave an instance in a painful state.
This temporary account has been removed. Restoration works without creating a local user, and instances already « blocked » by an old temporary account are automatically healed at startup.
Scenes: Duration in Seconds on State Trigger
On the Device State Change trigger, the option « run after the condition has been valid for⊠» only offered minutes.
You can now choose seconds or minutes, practical for reacting quickly (ex.: « if movement remains detected for 10 seconds »).
Existing scenes remain in minutes by default.
Interface
- Dashboard: widget types are sorted alphabetically according to the interface language (thanks @Will_71)
- Scenes: same for trigger and action lists (thanks @Will_71)
- MQTT: excessive vertical spacing corrected in the device list
- Activity: horizontal scroll of filters improved on Windows
- Scenes: correction of a black gap on multi-line variable chips
- HomeKit: temperature color values out of bounds (ex. LED strips) are now bounded to the max HomeKit (500 mireds), which avoids HAP warnings of the type « characteristic was supplied illegal value »
Technical
- DuckDB Migration: switch from the
duckdbpackage (deprecated) to@duckdb/node-api. Same engine, same.duckdbfiles: no data migration on the user side. Precompiled binaries replace native compilation. - Automatic publication of the Gladys Plus front-end after a production release
Thanks to Contributors
A big thanks to @Terdious and @Will_71 for their contributions to this version, and thanks to the entire community for your feedback and your tests, especially those of you who run Gladys on very large history databases: itâs thanks to you that we can validate these performances in real conditions.
As always, Gladys updates automatically within 24 hours if you use Watchtower, otherwise you can do it in one click in the settings.
Donât forget to configure Telegram to receive an alert on your phone when Gladys updates!











