-
Notifications
You must be signed in to change notification settings - Fork 6
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
Support for Notifiers #38
Comments
There is a REST API to create new notifications. However, it requires a user JWT, rather than an OAuth token, so it's not super practical for an add-on to use it. Of note, though, is that the LG TV adapter (which I created) actually does have a separate action for the toast message, in addition to the notifier, so you could easily support that by adding support for action inputs. https://github.com/WebThingsIO/lg-tv-adapter/blob/master/lib/lg-tv-device.js#L56-L64 |
That sounds perfect! Then we should be able to get toasts for the LG TV adapter running soon. However, I still think that notifiers are really worth implementing, so the problem with the user token remains. |
You could technically do this by reading them directly from the database, if you're just importing.
Correct, this requires a user JWT.
That's an interesting question. This probably ties into WebThingsIO/gateway#787
|
It would be great if one could use macros to send notifications, just as rules can. This includes browser notifications as well as adapter specific notifications (as in #37).
Unfortunately, I have no clue how to implement this, and the W3C Web Thing API draft (where I looked up some stuff for the implementation of interaction with things) is not helpful this time. Maybe @mrstegeman can help?
The text was updated successfully, but these errors were encountered: