MQTT heating control in Gladys Assistant v4.11.2!

Hello everyone!

New version of Gladys Assistant today :slight_smile:

Today I’m releasing a long-awaited new feature: heating control :fire:

Kapture 2022-10-14 at 13.29.54

For now it’s only the first step of this iteration: the native type « Target temperature » is now available for use, in the MQTT integration only.

Now I’m calling on all integration developers: it’s possible to integrate these devices into Gladys by assigning them the category THERMOSTAT and the type TARGET_TEMPERATURE :slight_smile:

Feel free to ask if you have any questions.

No more freezes when deleting a device

Many of you have noticed that when you delete a device in Gladys, Gladys often becomes unavailable following the deletion.

The explanation is simple: when deleting a device in Gladys, Gladys must delete the entire state history of that device.

For very verbose devices, these states can number in the millions, and occupy one or several gigabytes on your disk.

Deleting millions of rows in the database, sometimes on a slow disk (like a micro-SD card), takes time and saturates these users’ disk bandwidth, causing the Gladys interface to become unresponsive…

Not great in terms of user experience!!

From now on, Gladys will detect when a device has too many states to be deleted « all at once », and will display the following message:

Gladys will meanwhile delete the states in the background, small block by small block, to avoid the freezes we’ve seen in the past!

Once the deletion is finished, the user can return to this screen and delete the device for good.

The full CHANGELOG is available here .

How to update?

If you installed Gladys with the official Raspberry Pi OS image, your instances will update automatically in the coming hours. This can take up to 24 hours — don’t panic.

If you installed Gladys with Docker, make sure you’re using Watchtower (See the documentation )

5 Likes

@_Will_71 I just saw that you deleted your message but I’m replying anyway in case someone else can’t find the device type

Are you on Gladys Plus? If so, don’t hesitate to do one or two hard refreshes of the page (F5) to update the PWA. Gladys is a progressive web app that updates in the background, but sometimes you need a little refresh to switch to the new version :slight_smile:

I just tested on my side; I do see the type when typing:

Yes I wrote too quickly, after refreshing it’s OK. Thanks for your reply :smiley:

However, I still have a remark.

I can’t see the decimal value!
image

When I press + or -, you can tell there’s a decimal value but you can’t see it.

Ah, what’s your screen resolution?

I am on a 1920x1080 resolution

And on my phone you can see that the 6 in the 16 is cut off

Ok I see! At worst, rename your thermostat to a shorter name in the meantime :smiley:

There aren’t many options: if there’s less space, either I truncate the title or I remove the buttons, but those buttons were actually useful on mobile :sweat_smile:

Okay, I’ll rename it.

No change with the renaming
image

Okay, that’s a real problem! I’ll take a look.

I’m bothering you with my bugs right now :face_savoring_food:

1 Like

Okay on my end

I’ve run the tests again but there’s something strange.

When I put the thermostat in my room’s device box with all the other devices the display is not correct
![IMG_20221017_141214|254x500](upload://e

1 Like

I’m starting to understand — actually this box lines up all the elements with each other so that it’s visually tidy (it’s well done!! :grinning_face_with_smiling_eyes:), so it’s the longest name that decides the size of the left part, that makes sense!

1 Like

It all makes sense :grinning_face:.

So I tried it on my tablet dedicated to Gladys. And there the display isn’t any better. The resolution is 768x1024.

1 Like

Excellent! It’s « THE » feature I was missing. Thank you for offering this to us before winter — you’ve just made people at home very happy! :slight_smile:

1 Like