Thermostat: request for improvements

Hi @mutmut,

Thanks, it’s actually very clear: your message contains 4 topics, and you’ve identified 2 real bugs.

1. The time change and the « Comfort until 13:00 »

These two comments are related. In your schedule, Sunday’s Comfort starts at 14:00, but the thermostat displays 13:00. This is not a coincidence: the calculation of the restart time does not take into account the time change. Between Saturday noon and Sunday 14:00, 27 hours pass this night (we fall back one hour), and the thermostat counts 26. It will therefore resume the schedule one hour too early, at 13:00.

This is a bug, also present in the current version of Gladys, not just in the test image. I will fix it in a separate PR.

By the way, I will add the day in the banner when the restart is not today (« until tomorrow 14:00 »), to avoid the confusion you had.

2. The heat pump turned on by remote control during an « Off » slot

We had addressed part of the issue: turning off the heat pump with the remote control turns off the thermostat, and turning it back on restarts it if it was stopped from Gladys. Your case is different: the thermostat is not turned off, it follows the schedule and the current slot is « Off ». This case had been left aside, hence the heat pump turning off one minute later.

Your request makes sense: turning it on with the remote control would be taken as a manual change, valid until the next slot in the schedule, just like when you modify the setpoint. I will add it. One exception: if a window is open, it keeps priority.

3. The restart time that does not follow a modification of the schedule

Well spotted too. The restart time is calculated when you force the mode, and it is no longer recalculated afterwards. If you add a slot earlier in the schedule, the thermostat still waits for the old one. I will fix it so that it is recalculated with each modification of the schedule.

I will let you know as soon as it’s in the test image.

What a joy, we’re going to have a thermostat to manage heat pumps perfectly :heart_eyes:

Back after new tests and new image from 2026-10-25 17:46:49:

It works very well, you turn it on with the remote and it turns on the thermostat.
However, we should have Manual mode until but it displays the Comfort mode from the schedule (in my test because I was in Comfort before turning off the PAC).

Another point about the refresh of the thermostat setpoint temperature:

  • I am in Comfort mode (21°C) → it displays Comfort until
  • I decrease by 1°C (20°C) → it displays Manual mode until
  • I click on the cross to exit manual mode (or another automatic mode) → it goes back to Comfort mode BUT it keeps the 20°C setpoint while the actual setpoint goes back to 21°C
  • I refresh the page or wait 1 minute → the thermostat setpoint temperature goes back to 21°C.

It works, you just need to refresh the page if you modify the schedule on a second page, there is no automatic refresh, no problem.

New remark about the schedule:

  • I want to modify the Off mode on Monday evening (to J+1 12h) to switch to Comfort mode (and therefore have Comfort from Monday to Tuesday 12h):
  • when saving, it only modifies on the same day and not on the next day:
  • and I have the Off mode from 12h to 22:10 on Tuesday while it should be 12h on Monday and not Tuesday
  • however, when refreshing the page, it comes back to normal with the +1d on Monday.

I don’t know if it’s already in there but it doesn’t seem to work:


Hi @mutmut,

Thanks for these new tests, as usual super precise!

Your image is from 25/10 and only contains the PR « clim / PAC ». Some of what you saw has already been fixed elsewhere. I’ll go through it point by point:

  1. PAC turned on by remote control during a « Stop » slot
    Great that it works! For the « Comfort until » banner instead of « Manual mode until »: this comes from your previous request. A setting equal to that of a preset turns on this preset. Your PAC restarted at 21 °C, the Comfort setting, so the widget displayed « Comfort ».
    During a « Stop » slot, this is misleading, as the schedule is not in Comfort. This is fixed: during a « Stop » slot, the banner now displays « Manual mode until… ». Elsewhere, the rule remains the same: a setting adjusted on the PAC that matches a preset always turns on its icon.

  2. The setting remaining at 20 °C after the cross
    Well spotted, this is a real bug, already present in the current version of Gladys. When exiting manual mode, the widget ignored all settings received for a few seconds, including the 21 °C sent by the server. The setting is now displayed immediately.

  3. The schedule not refreshing from one page to another
    No automatic refresh between two pages for now, as you saw.

  4. The Monday evening slot changed to Comfort
    This is a display bug in the editor, already fixed in the PR for the « All day » option. Your new Monday Comfort touched that of Tuesday morning, and the editor merged the two. Monday 09:00 → Tuesday 12:00 was more than 24 h and could only be written as « 09:00 → 12:00 ». The recorded schedule was correct, which is why everything returned after refreshing. The merge is now limited to 24 h, and I replayed your case to check.

  5. « Until tomorrow »
    This is in the correction of the time change, which was integrated into Gladys today. It was simply not in your image.

Good evening,

I just noticed a small bug, or rather a display refresh issue.

When I’m in manual mode with a setpoint of 18 °C, then switch back to automatic mode, the displayed temperature remains at 18 °C, even though the automatic schedule calls for a different temperature.

If I refresh the page, the correct value appears. However, everything else works correctly: the heating follows the schedule as expected, and the heating icon turns on or off as it should.

It seems that the displayed temperature does not update immediately when switching from manual to automatic mode.

@Prof_Techno wouldn’t this correspond to your issue by any chance?

Hi everyone,

Two new features for the thermostat will soon be ready to test in dev images, before I open the PRs:

  1. Reversible heat pump: heating and cooling on a single thermostat
    Until now, a heat pump that heats in winter and cools in summer required two thermostats. Now, one is enough:
  • in the thermostat configuration, check « Reversible heat pump (heating and air conditioning) »;
  • the preset table then displays two columns, Heating and Air Conditioning, with default values suitable for air conditioning (Comfort 24 °C, Eco 26 °C…);
  • the widget displays a small Heating / Air Conditioning selector. The schedule remains the same: a « Comfort » slot takes the heating temperature in winter and the air conditioning temperature in summer;
  • when changing usage, an ongoing override is canceled (a heating setting doesn’t make sense in air conditioning), and the current preset is kept;
  • if the heat pump is turned off, changing usage does not turn it on: it will restart in the correct mode at the next startup;
  • if you switch the unit to air conditioning from its remote control, the thermostat follows automatically;
  • a scene can make the switch, for example « on May 1st, switch to air conditioning ».
  1. Presence sensors
    Like for window sensors, you can add one or more motion or presence detectors to a thermostat:
  • when no sensor sees anyone for a delay (30 min by default), the thermostat switches to an absence preset (Eco by default, or Night, Away, Frost Protection);
  • it only does this if it’s more economical: it will never heat more than planned (or cool more in air conditioning);
  • as soon as someone is detected, the normal preset returns immediately;
  • a manual setting on the dial is not touched, and an open window, a stop, or an Off slot remain prioritized;
  • the widget displays « No one seen since HH:MM — Eco », and the « active preset » changes, which allows scenes to react.

@mutmut, the reversible heat pump should interest you first! A test image for each dev is coming. Your feedback is welcome, especially on a real heat pump (remote control, MELCloud…) and on Zigbee detectors.

Thanks!

@mutmut,
Here is the image with the management of reversible heat pumps, thanks in advance for your feedback,

willde71/gladys-test:thermostat-reversible-PAC

For information, you have in this image, all the thermostat corrections that Pierre-Gilles validated.

Thanks @Will_71 that’s great!
I’ll test it this afternoon :smiling_face:

My test feedback :slight_smile:

When saving, it doesn’t keep the box checked after refreshing the page, and therefore not 2 columns afterward for the presets and everything else.

And I didn’t see anything about the presence sensors :confused:

Thanks for your feedback.

For your image, you just have yesterday’s master + the PAC dev.

The presence sensors are another dev. So if you want to test this part, it will be another dev image.

Let me know if you want to test this part and I’ll generate the image for the sensors as well.

I didn’t really understand if the reversible PaC button should work or not in this image, but in any case, it doesn’t work on save, and I recovered the image this morning.

For the sensors, no need, I saw that PG had started testing them.

For the sensors, it’s not possible, I haven’t created the PR yet, so he couldn’t start the tests!

What I meant about the image I gave you is that I updated Gladys’s master last night and did the development of the reversible heat pump on top of it.

So in Gladys’s master, you have the latest developments that have been validated by Pierre-Gilles, which include all my previous PRs on the thermostat + developments from other people.

I’ll take care of what isn’t working tonight. I’ll keep you updated as soon as I have a new image to show you.

Thanks for the feedback! Good catch: the checkbox was saved, but the form wasn’t re-read on reload, hence the unchecked box and a single column. It’s fixed, a new image is coming.

Hello!

I think there’s a design issue with Apple…

Normal behavior below, on Android:

But on the iPad, I’m not sure this is the intended behavior:

So throw your iPad in the trash and get an Android tablet. :rofl:

No, I’m joking, I’ll see how I can fix this problem. I’ll let you know if I find a solution. However, I’ll need your help because I don’t have any Apple products at home to test.

It’s just recycling, I’m not going to send it back, poor thing :wink:

@GBoulvin, this is a Safari-specific bug: the flame „breathes“ (it grows then returns), and Safari incorrectly calculates the center of this enlargement on the iPad, so it slides down with each pulse.
The snowflake in climate mode had the same issue.
This is fixed in this PR:

fix(thermostat): keep the gauge's flame in place on Safari by William-De71 · Pull Request #3300 · GladysAssistant/Gladys · GitHub.

I tested it on the Safari engine, but not on a real iPad.
If you can test with the image below, your feedback will be very helpful.

willde71/gladys-test:thermostat-safari

Indeed, on the iPad the flame whistles like a canary :joy: