What is the secret of thermostate -> preset_mode

Hi all,
in the thermostate card i have on the bottom left mode: heat and on the bottom right preset: none (or holiday, shedule or frost protect).

In automations i can find the “preset mode” as second criteria too. But nowhere else i can find the “preset mode”. in autmoations i wouldlike it to use as a trigger but can’t find it.

On my Dashboard i don’t want the thermostate card, because it’s to big and it’s to easy to do a not wanted click. When adding only some values i can’t find the preset mode, but when it’s wrong (one wrong click on the thermostate itself) the automations wouldn’t work but there seems no way to show the preset mode as value, only to see if it’s wrong.

sory for my horrible english, i’m trying it hard :grimacing: :grin:

many thanks for every tip.

Preset mode is an attribute of the climate entity. Use an automation trigger off the entity attribute updating.

If you go to Developer Tools/States/ & put in “climate” or “thermostat” or “climate.thermostat” probably depending on your thermostat, you’ll see on the right all the information related to the thermostat. You can set most of these (preset_mode & temperature are the most useful). In my system, whenever the preset_mode changes I write the mode into a input_text variable so that I can call it back up again if I need to. I used to change the preset_mode for Away, Home & Sleep (one thing you have to play around with capitals or no capitals for names of mode), depending on whether I had guests or not. These days I run an hourly automation that changes the temperature based on what the mode is, whether the house is occupied & whether I have guests. Very useful. Good luck.

Use a state trigger.

triggers:
  - trigger: state
    entity_id: climate.your_thermostat_here
    attribute: preset_mode
    to: 'holiday'

Also as you seem to be relying on device triggers you should read this: Why and how to avoid device_ids in automations and scripts