Use case
Im trying to retrieve Notifications by using HomeyAPI in a reactive Web Application and can successfully retrieve those with Homey.notifications.getNotifications().
Usage question
getNotifications() returns all notifications, where Im only interested in getting notifications after given date (for instance only for today). I can filter response myself, but the response is quite large which slows down request and processing time. This method takes a Notification as filter parameter, but I guess you cant use filter expressions?
are there any possibilities to subscribe on Notifications and get these pushed, like using event emitters for device capabilities (makeCapabilityInstance())?
If the answer on these two questions is that it is not possible to filter on dateCreated property and it is not possible to subscribe on new notifications, it will mean that I need to do polling every 5 seconds or so (as Notifications are important to me) and potentially unnecessary overload HomeyAPI - and deal with slow performance.
I would like some advices from the Athom core team on this.
athom-api version: 2.1.196 Homey software version: 2.5.1
Use case Im trying to retrieve Notifications by using HomeyAPI in a reactive Web Application and can successfully retrieve those with
Homey.notifications.getNotifications()
.Usage question
getNotifications()
returns all notifications, where Im only interested in getting notifications after given date (for instance only for today). I can filter response myself, but the response is quite large which slows down request and processing time. This method takes aNotification
as filter parameter, but I guess you cant use filter expressions?are there any possibilities to subscribe on Notifications and get these pushed, like using event emitters for device capabilities (
makeCapabilityInstance()
)?If the answer on these two questions is that it is not possible to filter on
dateCreated
property and it is not possible to subscribe on new notifications, it will mean that I need to do polling every 5 seconds or so (as Notifications are important to me) and potentially unnecessary overload HomeyAPI - and deal with slow performance.I would like some advices from the Athom core team on this.