Thermostat: request for improvements

Got it, I now have the right image with your modifications.


The filter works very well.
I was able to select the elements of my Salon PAC very simply:

I selected several temperature sensors but no humidity:

By checking the filter to display everything, I saw that the room names appeared before the features:


What is interesting is that even without the filter, you can see the rooms.

→ I suggest that the features be sorted in alphabetical order starting with the room name and not the sensor name

Heating State (Optional)
In my case, my PAC does not seem to have this type of element except for the On/Off, but I don’t see it in the list, maybe because it is used in the power supply



On the other hand, I monitor the operating status of the external unit via a toroid for power tracking (via a Legrand Ecocompteur), so I know if the unit is running or not.
I have 4 splits in the house and all 4 are connected to the same external unit, it seems difficult to know which split is turning on or not, except via the On/Off switch.
By the way, are we talking about heating state only or does this also include cooling?

Regarding the thermostat:

  • I love the icons that move when you hover over them :slight_smile:
  • the device setpoint follows the thermostat setpoint perfectly
  • changing the setpoint starts the PAC without clicking on one of the icons → normal behavior?
  • if I click on stop, the PAC stops
  • if I click on comfort, the PAC starts with the setpoint set in the thermostat configuration
  • when I force the PAC into cooling mode, the thermostat seems to switch the PAC back to heating → normal behavior?
  • regarding the opening sensor, it’s great but same comment as @Nagromdark for the timing, something adjustable with 1 minute by default would be great.

From what I understood, you need a thermostat for heating and one for cooling, right?
No way to have a switch that toggles between the two? Especially for reversible PACs, not simple radiators.

I haven’t tested the schedule yet, it will be this week or this weekend.
In any case, well done :ok_hand: !!

Thanks a lot @mutmut for this very complete test, and glad that the image finally works :grinning_face_with_smiling_eyes:

Feature sorting
You’re right: for now, the lists are not sorted. They keep the order in which Gladys returns the devices, and the room name is displayed first when you activate « all rooms ». Alphabetical sorting by room, then by device, would make the lists much more readable. I’ll look into adding it to the PR.

Heating state (optional)
This field is only for display: it’s the widget’s halo that indicates whether the device is running. It has no effect on the regulation. If it remains empty, the widget estimates the state by comparing the temperature and the setpoint. In your case, I advise you to leave it empty.

  • Your On/Off does not appear in this list because MELCloud reports it as an air conditioning feature, not as a switch. That’s why we find it in Power, and that’s where it should be. In any case, a running heat pump doesn’t mean it’s heating: at the target temperature, it stays On while the compressor is off.
  • The field only accepts an « on/off » state (a contact) or a thermostat operating state. A power measurement like that of your ecocounter is not accepted. And since your 4 splits share the same outdoor unit, we wouldn’t be able to know which one is running anyway.
  • For your question: yes, this state also covers cooling. It indicates « the equipment is running », whether for heating or cooling.

Your observations on the thermostat side

  • Changing the setpoint starts the heat pump: yes, that’s intentional. Turning the dial means « I want this temperature now », like on a Netatmo or a Tado. Gladys therefore turns the device back on, sets the correct mode, and then sends the setpoint. If a schedule is active, this manual setting lasts for the time chosen in the config (until the next slot or a fixed duration), and then the schedule takes over.
  • Forcing the air conditioning on the heat pump puts it back into heating mode: that’s also normal behavior. A thermostat in heating mode puts the device back into heating mode at each regulation cycle, i.e. approximately every minute, if it has been changed next to it.
  • Delay on opening sensors: noted, it’s the same request as @Nagromdark. I plan to include it in a future PR, adjustable, and I’ll keep your suggestion of 1 minute by default.
  • For humidity, as it’s just information, I haven’t added it, but we could also add multiple sensors to average them.

Heating and air conditioning
Today, a thermostat works in one direction only: heating or cooling. This choice is made in its configuration. However, be careful: do not create two thermostats on the same heat pump. They would fight each other, each resetting its mode and setpoint at each cycle. For a reversible heat pump, the simplest solution is a single thermostat, whose mode you change in the config according to the season.
A heating/air conditioning button directly on the widget for reversible heat pumps is a good idea, but for now this case has not been taken into account. Probably in a future PR, I’ll note it.

I’m waiting for your feedback on the schedule :+1:

Hello

Is it possible to switch a thermostat from one schedule to another, for example to automatically switch from the regular schedule to the school holiday schedule, and then back to the normal schedule?

The idea would be to be able to manage several operating modes for the same radiators, without having to manually change the times each time the period changes.

The ideal would even be to be able to have several schedules, for example:

  • A schedule for school periods;
  • A schedule for school holidays;
  • A specific schedule in case of prolonged absence, when I go on vacation for a week;
  • Possibly, other schedules adapted to particular situations.

The goal would be to be able to automatically select the schedule suitable for the situation, thanks to triggers or scenes, while keeping the same thermostat and the same radiators.

I understand the interest, but for now, no, it’s not possible.
I’m looking into how I can manage this, as it’s something I’d like to be able to do too.
I’ll keep you updated as soon as I’ve made progress on the subject.

@Will_71 I posted a small review with Fable 5.1 High on the PR! (with the code-review skill) :slight_smile:

I’ll check over the weekend, I have 2 other PRs to open on the thermostats, one to add a parameter to manage a delay before turning off the heating when a door or window is opened and another to be able to choose from a scene the schedule you want to apply to a thermostat. To change from work schedule to vacation schedule, for example.

Hi

I’m going to make a somewhat frivolous request ^^
First of all, I love this thermostat, it’s exactly what I was expecting from Gladys, I made this request in January after Pierre-Gilles asked the community about any missing features in Gladys. For me, it’s perfect :slight_smile:

To make it even more visually appealing, would it be possible to add an « animation » to the temperature setting? Let me explain:

When selecting a temperature via a heating mode, the display jumps from one temperature to another in one frame. Would it be possible to add an animation that would gradually lower or raise the orange display?

That’s it for my modest contribution, I admit that when we get to this point, we’re already pretty far along ^^
Thanks for everything

Z.

I’m already fixing the points raised and I’ll see what I can do about it.
Thanks for the feedback.

@Nagromdark, @mutmut,
Here are the new parameters for the opening delay before shutdown

The PR

If you want to test, let me know and I’ll publish an image

Is this configurable per opening or is it global?

It’s a global parameter

Well, I don’t know if it’s possible, but personally, a 30-second delay for the windows would be enough for me. On the other hand, for the front door, I’d prefer a longer delay, around 2 minutes.

The ideal would be to be able to set a different delay depending on the type of opening. ???

The PR for changing the schedule of one or more thermostats in a house from a scene

I’m looking into what can be done

@Prof_Techno, I looked into it more closely.

Today, the delay is set by thermostat in this PR, and each thermostat only has one opening sensor. If your front door and windows are connected to different thermostats (the entrance on one side, the living room or bedrooms on the other), you can already have what you’re asking for: 2 minutes on the entrance thermostat, 30 seconds on the others.

It only gets complicated if a single room has a door and a window on the same thermostat. For that, we first need to be able to add multiple opening sensors to a thermostat. That’s in another PR (#3200), not yet merged.

As soon as it’s merged, I’ll pick up the delay PR (#3218) to make it adjustable sensor by sensor, next to each one in the thermostat configuration.

Hi, thanks for these improvements.

I have a bug to report: in one scene I noticed that when I control the thermostat to ask it to switch to away mode, it doesn’t work. However, if I ask it to return to schedule, it does work.

Thanks for your feedback, I’ll look into it over the weekend

Thanks for the feedback! I’ve looked at the code and reworked the test scenario: on my end, the transition to Away mode works per scene, so I’m missing a bit of context:

  • Is your thermostat virtual or external (and what device)?
  • Does it follow a schedule? If so, what time is the next slot when the scene runs?
  • What exactly do you observe: the Away button doesn’t light up, the setpoint doesn’t change, or does it go back to the schedule a bit later?
  • Can you check the logs at the time of the scene? There should be a line Thermostat: preset away set on ….

Note: a preset chosen from a scene works as an exception, it only lasts until the next slot in the schedule. That could explain what you’re seeing.

I have a question, I have a fgs224 and on node-red I made a virtual device

But I don’t know how to add it to the switch.
Is it an oversight? Or an idea of how to do it?

Basically I have 4 heating modes via the pilot wire
Eco, comfort, HG and stop.

How to do it with this feature?

I have a sonoff for the temperature and a sonoff for the window opening.
Thanks in advance :flexed_biceps:

The pilot wire is not yet integrated. A PR is in progress. The first version was just for a contactor.