Light and Switch countdown timer funtion

Hi
Would like to know if could be added to a light and switch an additional countdown/timer function in the pop-up UI similar to the brightness slider or drop down list ??


Thanks Andrew

you can do that now
just not in the popup

off the topic but same

when washing finish hangout timer start 10min count down if I dont open washing door it restart

- id: 8e10272d-5447-433f-b7f8-f267eaa66fee
  alias: "Timerfinish"
  trigger:
  - platform: event
    event_type: timer.finished
    event_data:
      entity_id: timer.hangout
  action:
    - service: notify.alexa_media
      data_template:
        data:
          type: announce
        target:
          - media_player.bedroom
          - media_player.lounge
          - media_player.office
          - media_player.garage
        message: 'I have all ready told you to hang out the washing'
    - service: timer.start
      target:
        entity_id: timer.hangout

when door open

- id: 183e2dbf-5077-4a3b-a4cc-88a38106ed46
  alias: Washing Door Open
  initial_state: true
  trigger:
    - platform: state
      entity_id: binary_sensor.washing_door
      to: 'on'
  condition:
    condition: and
    conditions:
      - condition: state
        entity_id: timer.hangout
        state: active

  action:
    - service: timer.cancel
      target:
        entity_id: timer.hangout

I would do something a input select (dropdown) help only cause you can get the time formatting right

get the idea

then have a start timer input_boolean (toggle)

then the automation would be

when starttimer turnon

start timer base on dropdown list

1 Like

I second this idea, it’s quite common on “end user” systems (sonoff, smart home).

And the suggestion is faaaaaar from the ideal, timers are a headache to configure: you must create the helper, then create an automation triggered by each of the timer events, then you must write the event details all by hand, then write the action for each of the events… Oh geez, this could be VERY simplified.
Not to mention timers have a fixed duration; if you want multiple options of duration, you’ll need a single freaking timer for each of those. There’s a misleading timer.change service which actually adds/subtracts from a running timer - you can’t use it to change arbitrarily the duration of a timer.

You can modify a timer’s duration using timer.start to set a new arbitrary duration.