A compact countdown timer for Home Assistant: a slider dashboard card, a
countdown that runs in the browser (the backend is event driven, like the
built-in timer: no per-second states in the recorder), an expiry sound and expiry actions
that run on the server, and voice control (Assist) with English and
Hungarian sentences.
One download installs everything: the integration, the
custom:slider-timer-card dashboard card and the expiry sound.
Requires Home Assistant 2026.5 or newer. License: MIT.
The card idle (set the duration with the sliders), running and paused. Shown with the Hungarian interface; the card follows your Home Assistant language.
- Click the button above, or open Settings → Marketplace, choose
Custom repositories from the three-dot menu and add
https://github.com/kleinweiss/slider-timerwith the type Integration. - Download Slider Timer and restart Home Assistant.
Copy custom_components/slider_timer into your configuration directory as
/config/custom_components/slider_timer/ and restart Home Assistant.
-
Settings → Devices & services → Add integration → Slider Timer. Give the timer a name (it becomes the device name), the default duration and – if you want one – the expiry sound (media player, sound file, time window) and the expiry actions. Every field can be changed later on the integration's Configure page. Add as many timers as you like.
-
Add the card to a dashboard – it shows up in the card picker as Slider Timer Card, or in YAML:
type: custom:slider-timer-card
That is all it takes. With several timers,
name:orentity:(the status sensor) selects one; the visual editor lists them.
The integration serves the card at /slider_timer/slider-timer-card.js and adds
it as a dashboard resource by itself (?v=<version>, so browsers pick up new
versions). There is nothing to copy into www/.
YAML-mode dashboard resources: Home Assistant does not let integrations change YAML resources. Add this to
lovelace: resources:instead:- url: /slider_timer/slider-timer-card.js?v=1.1.0 type: module
The bundled expiry sound is /slider_timer/sounds/slider_timer_finish.flac
(the default Sound file); any other media ID, such as /local/… or
media-source://…, works too.
Per timer (the entity IDs follow your installation's language):
| Entity | What it does |
|---|---|
sensor.<name>_status |
idle / active / paused. This is the control entity: the services target it. Attributes: duration, duration_seconds, remaining, remaining_seconds (the value at the last event: the full duration while running, the frozen remainder while paused) and ends_at. |
sensor.<name>_ends_at |
The moment of expiry (a timestamp; empty unless running). The Home Assistant UI shows it as a live "in 4 minutes". |
number.<name>_hours, _minutes, _seconds |
The default duration – the length slider_timer.start uses when you do not give one. |
binary_sensor.<name>_active |
On while the timer is running or paused. |
The state of a timer changes only when something happens: start, pause,
resume, cancel, expiry. A running timer is described by its absolute ends_at
moment; the countdown is computed from it where it is shown – the card does it
in the browser, the ends_at sensor is rendered live by the Home Assistant UI.
A running timer therefore writes nothing to the recorder and sends nothing to
the dashboards until its next event. For the remaining time in a template
(while the timer is running), use ends_at:
{{ (as_datetime(state_attr('sensor.kitchen_status', 'ends_at')) - now()).total_seconds() | int }}Every service targets the status sensor:
- action: slider_timer.start
target:
entity_id: sensor.kitchen_status
data:
minutes: 10 # optional: hours / minutes / seconds
media_player: media_player.kitchen # optional, overrides the setting
actions: # optional, overrides the setting
- action: light.turn_on
target:
entity_id: light.kitchenslider_timer.pause, slider_timer.resume and slider_timer.cancel take no
data; slider_timer.set sets the default duration without starting.
Events, following the built-in timer integration: slider_timer_started,
slider_timer_paused, slider_timer_resumed, slider_timer_cancelled,
slider_timer_finished.
The expiry sound and actions run on the server, so the dashboard may be closed when the timer expires. Outside the configured time window neither runs; if the window's start equals its end, there is no time limit. A timer that expired while Home Assistant was down returns idle without playing the sound.
The integration registers its own intents, with Hungarian and English sentences
(it copies sentences/<language>/slider_timer.yaml into
/config/custom_sentences/<language>/ by itself, and never overwrites an
existing file).
| What you say (example) | What it does |
|---|---|
| „Indítsd el a konyhai időzítőt 10 percre" (start the kitchen timer for 10 minutes) | Start with the given duration |
| „Indítsd el az időzítőt" (start the timer) | Start with the value of the hour / minute / second entities |
| „Szüneteltesd az időzítőt" (pause the timer) | Pause |
| „Folytasd az időzítőt" (resume the timer) | Resume |
| „Állítsd le az időzítőt" / „Töröld az időzítőt" (stop / delete the timer) | Cancel |
| „Mennyi van még hátra?" (how much is left?) | The remaining time |
- The card now comes with the integration. The hand-added
/local/slider-timer-card/slider-timer-card.jsresource is switched over to the bundled copy automatically; afterwards you can delete/config/www/slider-timer-card/. - The entity keys became English. Existing timers are migrated on the first start: your entity IDs, names and history stay exactly as they were.
- A timer that used the old default sound
(
/local/Chat_Sounds/slider_timer_finish.flac) is switched to the bundled one.
pip install pytest-homeassistant-custom-component
pytestThe Validate workflow runs the Marketplace (HACS) check, hassfest and the tests on every push.

