Complete Thermostat feature

@pierre-gilles Here is currently how it is handled.

  1. First you must add a device with the Setpoint Temperature functionality in MQTT

  2. Add the widget to the dashboard


  3. Choose the thermostat device

  4. Choose the device to measure the temperature

  5. Choose the device to measure humidity (optional)
    If not chosen, humidity will not be displayed.

  6. Choose the ON/OFF switch (for now I only have switches but I will add pilot wire modules)

Advanced options

  1. Choose the operating mode

  2. Choose the calculation type (for now only ON/OFF is functional => but I still need to run tests and verify all the parameters)

  3. Temperature settings: I retrieve the min, max and unit from the MQTT device


  4. Set calculation using hysteresis

  5. Preset temperatures (I plan to make this optional and if not provided the thermostat will be manual only)

Thermostat OFF

Thermostat in comfort (switch OFF)

Thermostat in comfort (switch ON)

Today the setting data is linked to the « virtual » device so if a second thermostat is created in another dashboard or by another person the data are synchronized.

As discussed, making it an integration could be simpler for displaying all settings, adding thermostats, creating schedules and sharing with all family members.

3 Likes

Anyway, @Will_71, I really like what you’re building there.

And I’m responding to your discussions about a full integration, like for energy monitoring: that would be great, but I think that an initial integration of your control widget, without having thought everything through yet, would allow us to get ‹ field › feedback with a first version, and then consider how to go further.

1 Like

[quote="StephaneB, post

Ok, as @StephaneB suggests, that could be a good way to validate the direction it’s taking. However, I think configuring the thermostat directly in the dashboard configuration is likely to cause problems.

In the user’s mental model, the dashboard configuration is purely cosmetic: it serves to represent Gladys, not to define her behavior.

If multiple users configure different dashboards with different thermostats, it becomes difficult to understand the expected behavior:

  • will there be multiple conflicting thermostats?
  • will changing user A’s dashboard affect user B’s?

Similarly, asking users to go through the MQTT integration to use the thermostat seems complex to me :sweat_smile:. The MQTT integration is currently the only Gladys integration aimed at a truly « tech » audience, while the thermostat feature is clearly a feature for the general public.

I think it would be preferable to move this configuration into a dedicated « Thermostat » integration, which would handle everything: automatic creation of the device, operating modes, and eventually scheduling, etc.

What do you think?

1 Like

I was already convinced of it.

1 Like

And following on that, it seemed to me that this is exactly what you were criticizing about the Home Assistant (HA) system @Will_71 (which I also agree with). So precisely, if Gladys manages this creation of a « virtual » device itself, like with the Energy Monitoring integration, Gladys will do better than HA and keep its commitment to simplicity for the user!!

Edit :

You replied before me :sweat_smile: Nice! ^^

1 Like

I like the idea that device creation would be automatic and that it will simplify adding a thermostat.

2 Likes

I didn’t do much today, just asked the AI to generate images for the integration thumbnail
Here are some examples:




If you have any ideas, feel free to share

The first one is very good!

Here is option 1 in the integration selection

1 Like

Super clean! Good idea to use AI for the thumbnail :slight_smile:

1 Like

We could take the opportunity, without urgency, to standardize this page, right? I find that the mix of logos/photos/2D/3D isn’t the most aesthetically pleasing…

I’m starting to dream: a small touchscreen with only the thermostat integration in each of my bedrooms. That way, I wouldn’t need the Aqara W100 anymore.

:star_struck:

2 Likes

Maybe we should add « Generic » next to « Thermostat », since the image could suggest that it’s meant for a specific type of thermostat. And why not add a small Gladys logo on the thermostat?

I put it in the text below the title thermostat virtuel; it may not be visible enough.

2 Likes

Ok I

That doesn’t bother me, but if it’s important to you, you

2 Likes

Here is an overview of my progress (not yet functional to provide an image)

The thermostat on the integration page:

Configuration page where you can create or edit thermostats:

Thermostat settings page (I still have adjustments to make here):
The thermostat device is created automatically without needing to create a virtual MQTT device or anything else. @Terdious you’re going to be pleased

Schedules management page:
Here it’s possible to create new schedules, delete them, duplicate them, or edit them. I plan to add a search and sort bar (A-Z)

Schedule editing view:

Editing a day of the week:

Add / edit a time slot:

Ability to copy the day to one or multiple days of the week:
image

Add thermostat to the dashboard:

Dashboard edit mode with:

  • Choice of the widget title
  • Choice of the thermostat (created in the thermostat integration)
  • Choice of the schedule: manual mode or schedule mode. Ultimately I’d like the schedule choice to be controllable by scenes.

Thermostat view in the dashboard:
The comfort time slot is active

Switching to schedule mode with the night time slot (here I need to change the blue which shows up very poorly)

In schedule mode it’s possible to force a manual mode for a period of time (currently defined in the settings). I might add this time setting to the dashboard — it’s more convenient to be able to choose it at the moment you change the temperature manually.

Thermostat view in manual mode:

7 Likes

Instead of « Thermostat feature (setpoint) » I would put « Choice of the thermostat (created in the thermostat integration) » as you indicated above the image — I find that clearer.