Timer list
The Timer list integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] lets other integrations provide multiple countdown timers within one entityAn entity represents a sensor, actor, or function in Home Assistant. Entities are used to monitor physical properties or to control other entities. An entity is usually part of a device or a service. [Learn more]. Each timer has its own ID, optional name, duration, and status. You can manage individual timers with actions and react to changes with automation triggers.
Building block integration
This timer list is a building block integration that cannot be added to your Home Assistant directly but is used and provided by other integrations.
A building block integration differs from the typical integration that connects to a device or service. Instead, other integrations that do integrate a device or service into Home Assistant use this timer list building block to provide entities, services, and other functionality that you can use in your automations or dashboards.
If one of your integrations features this building block, this page documents the functionality the timer list building block offers.
Timer list does not create a list on its own. A providing integration supplies the list and manages when its timers finish. The existing Timer helper remains separate. Assist timers are not converted to timer list entities by this integration.
Timer list states
The stateThe state holds the information of interest of an entity, for example, if a light is on or off. Each entity has exactly one state and the state only holds one value at a time. However, entities can store attributes related to that state such as brightness, color, or a unit of measurement. [Learn more] of a timer list entity is the number of active timers in the list. Paused, finished, and canceled timers do not count toward this number. A list with only paused or archived timers has a state of 0.
A list can also have these states:
-
Unavailable (
unavailable): The entity is currently unavailable. -
Unknown (
unknown): The state is not yet known.
Timer statuses
Each timer has one of these statuses:
-
Active (
active): The timer is counting down. -
Paused (
paused): The timer has stopped counting down and keeps its remaining time. -
Finished (
finished): The timer has ended, either because its time elapsed or because it was finished early. -
Cancelled (
cancelled): The timer has ended without a finished event.
New timers start immediately. Finished and canceled timers remain in the list as archived items. The providing integration can remove older archived items. You can also remove a timer explicitly, regardless of its status.
Timer details
Use the Get timers action to read the items in a list. Automation triggers provide the same details for the timer that changed. Timers are items within a list, not separate entities or entity attributes.
The returned fields are:
-
timer_id: The unique ID used to select the timer in actions. -
name: The optional name, ornullwhen no name was set. -
status: One ofactive,paused,finished, orcancelled. -
created_duration: The original duration in seconds. This does not change when time is added or subtracted. -
total_duration: The largest remaining duration the timer has had, in seconds. It never decreases and is never less thancreated_duration. It can be used as the total for a progress display. -
created_at: When the timer was created. -
finishes_at: When an active timer will finish, ornullfor other statuses. -
paused_remaining: The remaining time in seconds while paused, ornullfor other statuses. -
ended_at: When the timer finished or was canceled, ornullbefore it ends. -
remaining: The remaining time in seconds when the response or trigger was generated. This value does not update continuously. It is0for finished and canceled timers.
Timestamps use ISO 8601 format in UTC.
List of triggers
The Timer list integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] provides the following triggers. Each link below opens a dedicated page with examples, fields, and a step-by-step UI walkthrough.
-
Timer cancelled (
timer_list.timer_cancelled) Triggers when a timer is canceled. -
Timer created (
timer_list.timer_created) Triggers when a timer is created. -
Timer finished (
timer_list.timer_finished) Triggers when a timer finishes. -
Timer paused (
timer_list.timer_paused) Triggers when a timer is paused. -
Timer time changed (
timer_list.timer_time_changed) Triggers when time is added to or subtracted from a timer. -
Timer resumed (
timer_list.timer_unpaused) Triggers when a paused timer resumes.
For an overview of every trigger across all integrations, see the triggers reference.
List of actions
The Timer list integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] provides the following actions. Each link below opens a dedicated page with examples, parameters, and a step-by-step UI walkthrough.
-
Add time (
timer_list.add_time) Adds time to an active or paused timer. -
Cancel timer (
timer_list.cancel_timer) Cancels a timer without finishing it. -
Create timer (
timer_list.create_timer, can return data) Creates a timer and starts it immediately. -
Finish timer (
timer_list.finish_timer) Finishes a timer early. -
Get timers (
timer_list.get_timers, returns data) Returns timers from a list, optionally filtered by status. -
Pause timer (
timer_list.pause_timer) Pauses an active timer. -
Remove timer (
timer_list.remove_timer) Removes a timer from a list. -
Subtract time (
timer_list.subtract_time) Subtracts time from an active or paused timer. -
Resume timer (
timer_list.unpause_timer) Resumes a paused timer.
For an overview of every action across all integrations, see the actions reference.
Timer list automation examples
These automations work together: one starts a named timer, and the other sends a notification when that timer finishes. They require a timer list supplied by an integration, a kettle switch, and a notification entity. Replace the entity IDs with your own.
You don’t need to edit YAML to use these examples. Copy a YAML snippet from this page, open the visual automation editor in Home Assistant, and press Ctrl+V (or Cmd+V on Mac). Home Assistant automatically converts the pasted YAML into the visual editor format, whether it’s a full automation, a single trigger, a condition, or an action.
Automation: start a tea timer when the kettle stops
When the kettle switches off, start a three-minute timer named Tea. This requires a kettle integration that exposes a switch.
-
Trigger: State changes from
ontooff-
Target: Kettle (
switch.kettle)
-
Target: Kettle (
-
Action: Create timer
-
Target: Kitchen timers (
timer_list.kitchen) - Duration: Three minutes
- Name: Tea
-
Target: Kitchen timers (
YAML for this automation
alias: "Start a tea timer when the kettle stops"
triggers:
- trigger: state
entity_id: switch.kettle
from: "on"
to: "off"
actions:
- action: timer_list.create_timer
target:
entity_id: timer_list.kitchen
data:
duration: "00:03:00"
name: "Tea"
Automation: send a notification when the tea timer finishes
React to the Tea timer created by the preceding automation. Other timers on the kitchen list do not match the name condition.
-
Trigger: Timer finished
-
Target: Kitchen timers (
timer_list.kitchen)
-
Target: Kitchen timers (
-
Condition: Template, timer name equals
Tea -
Action: Send a notification message
-
Target: My Device (
notify.my_device)
-
Target: My Device (
YAML for this automation
alias: "Notify when tea is ready"
triggers:
- trigger: timer_list.timer_finished
target:
entity_id: timer_list.kitchen
conditions:
- "{{ trigger.timer.name == 'Tea' }}"
actions:
- action: notify.send_message
target:
entity_id: notify.my_device
data:
message: "Your tea timer has finished."