Adding Timer for Climate control

Would love to see if a timer option is added to the climate entity, so we can easily set a timer for cool / heat for x mins we have set.

Thanks for considering.

You can easily automate this.

my understanding is that you need to create a helper, set a time, create one automaton to start the timer and turn something on, and then create another automation when the timer finishes to turn the thing off……?

Also how about this time I want to turn it off in 30 mins, and next time in 45 mins ? how easy can it be done by the timer entity ?

Yes, indeed, create a timer helper.
One automation is enough:

Trigger : when something change to on (cool/heat or a toggle helper)
Action :

  1. set timer (to a number helper for exemple)
  2. start timer
  3. wait for timer state to be idle
  4. do what you want after your waiting time

With the set, you can change it easily from one execution to the other.
You can even put the timer in an entity card so you have a “beautiful” countdown, as I did.

image

In this image, you see the timer status, circled in red, and the number helper (10 minutes) that I use for my automation :slight_smile:

EDIT: Don’t forget to vote for your feature

if I could use “wait” I don’t need to wait a timer to lapse but just wait ……

the issue with “wait” is that it does not survive a restart or let’s say, you edit the automation. that’s why timer was revised to save its state and is able to restore upon restart. and that’s why I mentioned you actually need to use 2 automations for timer to work properly……

But i’m not talking about timer vs wait here, I’m talking about integrating timer function into the climate entity directly so there is a field in the climate card, which we can set the time and so it will turn off the climate when time is up ….

this is particularly useful when you have a dashboard mounted on the wall when you want to, e.g turn on the air con for 30 mins but next
time you want an hr or something like that, all within the climate card itself

I got your point but as the timer object already exists and can be attached to anything, including the climate entities, with automations, don’t expect the feature to be developed soon (but, again, vote for it).

And, as you stated, timer survives to restart so you can slightly change my code to

Trigger :

  1. when something change to on (cool/heat or a toggle helper) (name: start)
  2. when timer status change to idle (name: stop)

Action :

  • If triggered by start
    1. set timer (to a number helper for exemple)
    2. start timer
  • if triggered by stop
    do what you want when time is over

Showing a slider in a stack-in-card will be an elegant solution for your wall mounted dashboard like

  1. climate entity
  2. buttons to on / off / heat / cool
  3. the slider
  4. the timer

But there is no accounting for taste :slight_smile:

you are just combing 2 automations into 1 by using “if” to separate them so you are cheating ; )

anyway thanks for reminding me to vote, but hopefully my suggestion is popular enough so one vote doesn’t make a different

Like in every election: every vote counts