Notifications for Android TV / Fire TV
Android TV 通知 和 Fire TV 通知 的通知集成。您可以使用此集成将通知发送到您的 Android TV 设备。包含消息内容的叠加层将显示可配置的秒数,然后再次消失。还支持发送图像(例如安全摄像头)和自定义图标。图标本质上与图像相同(支持 Android TV 支持的任何图像格式),但图标显示得较小且位于通知左侧,而图像则较大且位于通知上方。
这些通知在您的 Android TV 设备的全局范围内。无论哪个应用程序正在运行,它们都会显示。
设置此功能时请注意,有两个应用程序:一个用于您的智能手机发送通知(此平台不需要),另一个用于您的 Android TV 设备接收通知。 Android TV 设备商店中提供的应用程序是显示从 Home Assistant 发送的通知所需的应用程序。应用内购买仅适用于Android智能手机客户端,因此从Home Assistant推送通知时没有任何限制。
Configuration
To add the Notifications for Android TV / Fire TV service to your Home Assistant instance, use this My button:
Manual configuration steps
- Browse to your Home Assistant instance.
- Go to Settings > Devices & services.
- In the lower-right corner, select Add integration.
- From the list, select Notifications for Android TV / Fire TV.
- Follow the instructions on screen to complete the setup.
Actions
Action: Notify
notify.[name_of_your_tv] 操作会向您的 Android TV 发送通知。可以在通知操作的数据字段内指定以下选项:
这是一个完全自定义的 YAML,您可以在“data”内部使用来测试最终通知的外观(要在操作中使用它,请查看本页末尾的示例):
发送图像和图标的操作数据
图像和图标的操作数据示例:
具有操作、完整配置的自动化示例:
Please note that path is validated against the allowlist_external_dirs in the configuration.yaml.

