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

Examples Mobile

Mobile notification with TTS - Mode 1

service: script.my_notify
data:
  title: Attenzione casa a fuoco
  message: Prova tts App
  notify: mobile_app_oneplus_a5010 # CHANGE ME
  call_no_annuncio: 1
  mobile:
    tts: true
    ttl: 0
    priority: high
    media_stream: alarm_stream

Mobile notification with TTS - Mode 2

service: script.my_notify
data:
  title: Attenzione casa a fuoco
  message: Prova tts App
  notify: mobile_app_oneplus_a5010 # CHANGE ME
  call_no_annuncio: 1
  mobile:
    tts_text: Prova TTS casa a fuoco
    ttl: 0
    priority: high
    media_stream: alarm_stream

Mobile critical notification

service: script.my_notify
data:
  title: Attenzione
  message: 'Attenzione casa a fuoco'
  notify: mobile_app_XXX # CHANGE ME
  mobile:
    ttl: 0
    priority: high
    media_stream: alarm_stream

Mobile actionable notifications

service: script.my_notify
data:
  title: Attenzione
  message: 'Attenzione casa a fuoco'
  notify: mobile_app_XXX # CHANGE ME
  mobile:
    actions:
      - action: "ALARM" # The key you are sending for the event
        title: "Sound Alarm" # The button title