-
-
Notifications
You must be signed in to change notification settings - Fork 433
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
Custom notifications with Home Assistant #1235
Comments
Sure, can you share with me what the payload looks like? Is it truely the same except for just the URL itself? Here is what we support now:
Perhaps additionally supporting (keeping backwards compatibility)::
I can also add more then one service name in the URL too if the access token is always the same:
|
Thanks for your reply. To call any of the notify services only requires you know its service name. Everything else is the same So whereas just now the url called is
which create a persistent notification. To call one of the other notify services for example my-servicename, requires you call
so only the url is changed. The same bearer token works in both cases. In your example, this would be servicename1=notify and servicename2=my-servicename. or you could restrict this to only hitting the notify endpoints by accepting a single service name and appending it to
which might be safer. Hope this helps - if you need anything else let me know. Thanks again for the great project! |
💡 The Idea
The current notification for HA uses the service persistent_notification/create and works really well.
However within HA it is possible to create custom notifications that are sent to various devices e.g. TV, phone etc. as popups. This can be done using these devices services, and notifications groups.
it is simple to call these using for example curl with the long-lived token but calling a different url e.g.
http://homeassistant.local:8123/api/services/notify/servicename
This is so similar to the existing code, I thought it might be possible to add this in by allowing a custom path to be given in the configuration that would bypass the persistent_notification/create path.
I think it would be a great addition but appreciate you may not think so, but thanks for taking the time to read this.
if I can provide anything else to support this enhancement let me know.
🔨 Breaking Feature
The text was updated successfully, but these errors were encountered: