Skip to content
caiosweet edited this page Nov 13, 2022 · 2 revisions

Examples Google

Google Boolean option

Activate Google and send the same message as the text notifications.

service: script.my_notify
data:
  message: Message for text and google
  google: true

Media player list

service: script.my_notify
data:
  google:
    message: test more Google.
    media_player: media_player.red,media_player.black2
    volume: 0.5

Send separate messages for TTS and Text notifications

service: script.my_notify
data:
  notify: telegram
  message: Message only for telegram
  google:
    message: Message only for Google.
    media_player: media_player.red
    volume: 0.6

Send a custom message only for Google

service: script.my_notify
data:
  notify: 0
  google:
    message: Speek only Google.
    volume: 0.6
service: script.my_notify
data:
  notify: 0
  message: Speek only Google.
  google: true

Mode

service: script.my_notify
data:
  google:
    mode: "{{is_state('sun.sun', 'above_horizon')}}"
    message: "message test with condition"

Priority

service: script.my_notify
data:
  notify: false
  google:
    priority: true
    message: This message will always play
Clone this wiki locally