Hi.
I got permanently all those notifications by my Diskstation through e-mail, which started to annoy me. So I investigated how I could improve this process. There is an app by Synology for push notifications but since I try to bundle all my smart home notifications in the HA companion app, I found a way to do that. The whole setup takes less than 5 minutes. You can also use this to do other things in Homeassistant, like trigger automations based on Synology notifications etc.
First go to the Synology Control Panel → Notification → Push Service → Application Webhooks → Manage Webhooks.
Add a new webhook and select Custom.
Choose any provider name and a subject. The subject will be the first line of the notification. I just left it as is.
Then enter the URL of your HA webhook (more information here: Automation Trigger - Home Assistant).
The header section should be already pre-filled to send JSON:
In the request body add a field and give it a name (e.g. Message)
Specify that this field you added is the Message Content
In Homeassistant set up an automation to process the incoming webhook data. Here is my example, where I just forwarded the notification to my companion app:
trigger:
- platform: webhook
webhook_id: some_hook_id
condition: []
action:
- service: notify.mobile_app_florian
data:
title: Synology
message: "{{trigger.json.Message}}"