Created
September 9, 2020 12:53
-
-
Save peyanski/0f336e6dffe9296cc101a41eb8b7f0c2 to your computer and use it in GitHub Desktop.
Home Assistant Developer Tools Fun YAML snippets to test Actionable Notifications in Companion App
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# simple notification test | |
notify.mobile_app_kiril_s_iphone | |
message: subscribe | |
# click to open url | |
title: "Open my website" | |
message: "URL" | |
data: | |
url: https://peyanski.com | |
# iOS only - message w/o sound | |
message: "Ding-dong" | |
data: | |
push: | |
sound: none | |
# iOS only | |
# Pre-installed notification | |
https://companion.home-assistant.io/docs/notifications/notification-sounds#pre-installed-notification-sounds | |
message: “Actionable Notifications starting in a bit” | |
data: | |
push: | |
sound: "US-EN-Morgan-Freeman-Starting-Party-Mode.wav" | |
# iOS example, available for Android but with slightly different payload. | |
# https://companion.home-assistant.io/docs/notifications/notification-attachments | |
message: "My Logo" | |
data: | |
attachment: | |
url: "https://peyanski.com/wp-content/uploads/2019/11/My_Way_Logo-KP-shadow_metal-K-150x150.png" | |
content-type: png | |
hide-thumbnail: false | |
# camera live preview example | |
message: Motion Detected in the Yard | |
data: | |
attachment: | |
content-type: jpeg | |
push: | |
category: camera | |
entity_id: camera.reolink410w_1_front_door |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment