home-assistant.io/source/_components/notify.matrix.markdown
Lukas Barth 69405f1edc Add matrix documentation (#5019)
* Add matrix documentation

* Try to use new config tags

* Use new config tag

* ⬆️ Added ha_version tag

* ⬆️ ha_release -> 0.68

* update version number
2018-05-05 13:05:15 -04:00

1.6 KiB

layout title description date sidebar comments sharing footer logo ha_category ha_release
page Matrix Instructions on how to add Matrix notifications to Home Assistant. 2016-10-11 23:51 true false true true matrix.png Notifications 0.32

The matrix platform allows you to deliver notifications from Home Assistant to a Matrix room. Rooms can be both direct as well as group chats.

{% linkable_title Configuration %}

To enable Matrix notifications in your installation, you first need to configure the Matrix component. Then, add the following to your configuration.yaml file:

# Example configuration.yaml entry
notify:
  - name: NOTIFIER_NAME
    platform: matrix
    default_room: ROOM_ID_OR_ALIAS

Configuration variables:

  • name (Optional): Setting the optional parameter name allows multiple notifiers to be created. The default value is notify. The notifier will bind to the service notify.NOTIFIER_NAME.
  • default_room (Required): The room all messages will be sent to, when no other target is given.

The target room has to be precreated, the room id can be obtained from the rooms settings dialog. Rooms by default have a canonical id of the form "!<randomid>:homeserver.tld", but can also be allocated aliases like "#roomname:homeserver.tld". Make sure to use quotes around the room id or alias to escape special characters (!, and #) in YAML. The notifying account may need to be invited to the room, depending on the individual rooms policies.

To use notifications, please see the getting started with automation page.