Hi, I’m playing around with HomeyScript, I know it’s possible to use a Homey Web API instance inside the script. I know there’s a documentation available at https://developer.athom.com/docs/api/HomeyAPI.html. But I can’t find a way to create a notification using that API - there are methods to see notifications (HomeyAPI.ManagerNotifications .getNotifications()
), event delete them… but not to create. Am I missing something?
No you are not missing anything.
From the Web API you are not able to create notification afaik.
It need to be done by a HomeyApp https://apps.developer.athom.com/Notification.html
await Homey.flow.runFlowCardAction({
uri: "homey:flowcardaction:homey:manager:notifications:create_notification",
id: "homey:manager:notifications:create_notification",
args: {text: "Text"},
});