Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The HTML5 integration does not respect the "silent" option #23733

Open
4 tasks done
redge76 opened this issue Jan 14, 2025 · 0 comments
Open
4 tasks done

The HTML5 integration does not respect the "silent" option #23733

redge76 opened this issue Jan 14, 2025 · 0 comments

Comments

@redge76
Copy link

redge76 commented Jan 14, 2025

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

The HTML5 integration does not respect the "silent" option when sending browser notifications. A sound is always played when a notification is displayed.

I attempted to display a notification with the "silent" option enabled using the following tools, which successfully suppressed the sound:

Notification Generator
Web Push Book Notification Examples

However, with the Home Assistant integration, the following behavior was observed:

Chrome on Windows: A sound is always played.
Chrome on Android: A sound is always played.
Firefox on Windows: A sound is always played.

Describe the behavior you expected

Notifications with the "silent" option should not play any sound.

Steps to reproduce the issue

1.Register a web client with steps in "Setting up your browser" here : https://www.home-assistant.io/integrations/html5/
2. go to Developer tools->Actions and use the following YAML

action: notify.html5
data:
  message: My message
  title: This is a test title
  data:
    silent: "true"

or

action: notify.html5
data:
  message: My message
  title: This is a test title
  data:
    silent: true
  1. A notification is displayed on all the registerd browser and a sound is played.

What version of Home Assistant Core has the issue?

Core: 2025.1.2 Frontend: 20250109.0

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue?

chrome 131.0.6778.265 (Build officiel) (64 bits)

Which operating system are you using to run this browser?

Windows & android

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

In documentation, the silent option is not listed in the "Data " subsection but in the "Overrides" it is said that:

You can pass any of the parameters listed here in the data dictionary.

The silent option is described in referenced web page

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

No branches or pull requests

1 participant