i want to update my automation to make give me the option to call certain numbers. Im making an emergency notification for me and my wife to choose to call each other or 911. i want to make it a tap action. I cant find any documentation on how to do it. I asked chat gpt and it gave me this for an example:
actions: - action: "URI" title: "CALL 911" uri: "tel://911" - action: "URI" title: "CALL Robert" uri: "tel://xxxxxxxx"
#phone calls
1 messages · Page 1 of 1 (latest)
command_activity
"intent_action": "android.intent.action.CALL"
"intent_uri":"tel: 911"
If you send conmand_screen_on 1st, you can make the phone dial automatically even while locked.
If you just want to bring the number up in the dialer ready for you to press call, change CALL to DIAL. CALL actually places the call for you.
`push:
sound:
name: default
critical: 1
volume: 1
actions:
- action: command_activity
title: CALL 911
intent_action: android.intent.action.CALL
intent_uri: tel:911 - action: URI
title: CALL PRECIOUS
uri: tel://xxxxxx`
Still didnt work. took me to HA app
sequence:
- action: notify.mobile_app_XXX
metadata: {}
data:
message: command_screen_on - action: notify.mobile_app_XXX
metadata: {}
data:
message: command_activity
data:
intent_action: android.intent.action.CALL
intent_uri: "tel: XXX"
alias: Call me
description: ""