Hi, I succesfully use Telegram for my HASS notification to my Android phone, and I know I can associate to a Telegram group a specific tone, but I do prefer to receive a full call.
Because for very important alert messages from HASS for me the Telegram text message, even with a specific sound, its not enough, wish to receive something like a call: a not ending sound until I pick up the phone.
Just make the automation continue to send the notification over and over until you send back an acknowledge. Telegram lets you send back responses to HA
There is a good example of how to use the inline keyboard responses here
Call a script as the action. Get the script to repeat until the condition becomes false (ie: once you send the telegram response). I have an example somewhere but not handy right now unfortunately
I use a priority setting in Pushover (so in the automation in HAss, there is a priority parameter) for when my house alarm goes off. This sound will sound on my phone whatever the state of the phone is (even if on silent or do not disturb)
the first script below can be called as the action of your automation. note that this is just from my collection of code snippets from this forum, not currently in use by me and everything except the ‘script:’ line needs to indented 2 spaces (just due to me copy/pasting from the forum)
script: # the below is not indented correectly relative to this line
alias: Fire Alarm
sequence:
- service: media_player.volume_set
data:
entity_id: media_player.kitchen_speaker, media_player.googlehome1023
volume_level: '0.90'
- service: tts.google_say
data:
entity_id: media_player.kitchen_speaker, media_player.googlehome1023
message: 'Fire Alarm, Evacuate'
- delay:
seconds: 2
- service: media_player.play_media
data:
entity_id: media_player.kitchen_speaker, media_player.googlehome1023
media_content_id: https://xxxxxxxxxxxx/local/submarine_diving_alarm.mp3
media_content_type: 'audio/mp3'
- delay:
seconds: 1
- service: script.turn_on
data:
entity_id: script.fire_alarm_loop
alias: Fire Alarm loop
sequence:
- delay:
# time for flash light off
seconds: 2
- service: script.turn_on
data:
entity_id: script.fire_alarm
in this case the script fires a local sound but you can change it to your notify service
well the idea is to have continuous notifications (like when you receive a call, the ring does not stop, until you answer the phone), but yes maybe 4 seconds … will try
Well as far as I know, you need something for the telegram response to switch, and need to allocate an entity_id to it. You then use that to break the loop with the condition. I haven’t yet tried the telegram responses myself so I could be wrong, but that’s how the examples I linked earlier are done. I’m in central Australia and its 2123. Have to get up for work at 0445
But now, I have the following 2 automations that take care of everything when one of my smoke detectors triggers (oh, and I combined the message and the off button in a single message):