How To: A guide to setting up Synology Chat as a notification platform

Hey there,

Here is a 10m video on how to use the Synology chat platform via webhooks to send HA notifications and image attachments to the Synology mobile app on iOS and Android. The chat platform was updated in 0.82.0 to support file_url: so you can now send your camera snapshots to your device. Very cool and totally free of any subscription fees!

- platform: synology_chat
  name: hass_synochat
  resource: !secret Syno_webhook_URL

And a demo script to test it. Pop an image in your www folder under /images called test.jpg.

test_syno_chat:
  alias: 'Test image send to Syno Chat'
  sequence:
    - service: notify.hass_synochat
      data:
        message: Test image attachment from Hassio
        data:
          file_url: http://ha_server_ip:8123/local/images/test.jpg #/config/www/images/test.jpg

And lastly, an automation I use to notify when someone pushes the doorbell (Xaiomi button)

  alias: 'Announce Doorbell'
  hide_entity: false
  trigger:
      platform: event
      event_type: click
      event_data:
        entity_id: binary_sensor.switch_doorbell
        click_type: single
  action:
    - service: tts.google_say
      entity_id:
        - media_player.kitchen_home
        - media_player.gaming_room_home
        - media_player.ensuite_speaker
      data_template:
        message: "Someone is at the front door"
    - service: camera.snapshot
      data:
          entity_id: camera.front_porch
          filename: '/config/www/images/front_porch.jpg'
    - service: notify.hass_synochat
      data:
        message: "The doorbell was pushed"
        data:
          file_url: "http://ha_server_ip:8123/local/images/front_porch.jpg"

N.B Make sure you turn off battery management for the Synology chat platform app on your device otherwise you won’t get near instant notifications.

4 Likes

Awesome - I was just wondering how I could do this - excellent!

1 Like

@maxandersen Thanks for the feedback and you’re welcome.

Oops. This has now broken in 0.83.2. Automations/scripts with file_url: included will not send at all now. Have let the developer know. Comment out the section below temporarily to get your messages going again.

    data:
      file_url:

EDIT: Now fixed in 0.84.1

Interesting! Does synology chat have any reliance on any type of cloud or is it all between your device and your NAS

No cloud, that’s what I love. Just comms between your app and your NAS. The chat app is logged in remotely to your NAS just like DS-Photos or DS-Cam.

FYI, the ability to use the local file path such as http://hassio_server_ip:8123/local/images/front_porch.jpg as attachments is back in 0.84.1. Don’t know why but it works again. Yay.

Great guide! Could something similar be done to let you know when downloads have completed with download manager?

Thanks. You might be able to use one of these?



though 4 years back, seems this is broken now. Anyone to confirm or is this integration nolonger in use

nevermind, wrong image that was cached by browser, confused the shit out of me.

All good. I moved to Telegram so not using it any more as trying to consolidate all my system notifications into one platform and Telegram seems to be widely accepted.

Ow nice, I’m trying a lot of different ones. Was fan of Pushbullet, but keep exceeding the monthly 500 for free. Why is telegram your choice? ( Tried myself chat ang Discord, but not convinced for either )

I have a lot of Docker containers on my Synology NAS and I’ve found that most that support notifications support Telegram, that’s why the move. I’ve tried them all like you. :grin:

Do the individual containerized services need to support Telegram, or you channel everything through some notification engine (in a container by itself I suppose)?

I’d be interested in notifications of container management itself, like start/stop/errors, new versions available, etc.

Been looking into this GitHub - RafhaanShah/Container-Mon: Get notified when your Docker containers are unhealthy

Which telegram did you end up with btw, broadcast only or something else?

Polling. You basically have two installs with Telegram. The main config and then whether you want polling, broadcast or webhooks.

Under my notify.yaml

- platform: telegram
  chat_id: !secret telegram_chat_id

Configuration.yaml

telegram_bot:
  - platform: polling
    api_key: !secret telegram_api
    allowed_chat_ids:
      - !secret telegram_chat_id