Microsoft Teams
The Microsoft Teams
platform allows you to send notifications from Home Assistant to a team channel in Microsoft Teams
Please note that Microsoft announced the retirement of the Office 365 connectors within Microsoft Teams. Existing connectors will continue to work until December 2025
Setup
To send a notification to teams, you need to add the Incoming Webhook app to your team channel. When the app is added, you will receive a webhook URL that needs to be added to your configuration.yaml
configuration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more].
Configuration
To add the Microsoft Teams platform to your installation, add the following to your configuration.yaml
configuration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more] file:
notify:
- platform: msteams
url: https://outlook.office.com/webhook/<ID>
Microsoft Teams service data
The following attributes can be placed inside data
for extended functionality.
Data attribute | Optional | Description |
---|---|---|
image_url |
yes | Attach an image to the message. |
The image must be an HTTPS URL, and as outlined by Microsoft in the Documentation
Example for posting file from URL:
title: Title of the message.
message: Message that will be added.
data:
image_url: URL_OF_IMAGE