Skip to content

Add the option to chime after timer is finished - #83

Open
austinliuu wants to merge 1 commit into
ArikShemesh:mainfrom
austinliuu:main
Open

Add the option to chime after timer is finished#83
austinliuu wants to merge 1 commit into
ArikShemesh:mainfrom
austinliuu:main

Conversation

@austinliuu

Copy link
Copy Markdown

#82

Code generated with help from Codex and tested on my local HA instance
image

@ArikShemesh

Copy link
Copy Markdown
Owner

Hey @austinliuu, thanks for the contribution. But currently there's a fundamental browser limitation with the requested feature.

Browsers block audio unless the user has interacted with the page first. Your code primes the AudioContext when the user clicks Start, which works, but only if the timer was started in the same browser session.

If the timer was started from another device, or the page was reloaded while the timer was running, no user gesture has occurred in the current session. When the timer hits zero, the browser silently blocks the chime with no error or feedback to the user.

Two additional smaller issues:

AudioContext is never closed when the card is removed from DOM, causing a resource leak across dashboard navigation.
Oscillator nodes are never disconnected after oscillator.stop().

@L0bit0

L0bit0 commented Jun 15, 2026

Copy link
Copy Markdown

does the integration launch any event when it ends? as a workarround an automation to launch an alrt can be created, but we need to deiferentiate between this integration or any manula action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants