Make calls and receive text messages with Home assistant

Hello everyone
I present to you my new goal with Home assistant. My goal is to be able to receive and send phone calls with my cell phone but also receive and send text messages from my cell phone via a Home Assistant

With this code, it pretty much works

service: notify.mobile_app_redmi
data:
  message: "command_activity"
  data:
    intent_action: "android.intent.action.DIAL"
    intent_uri: "tel:+330085453300"

the problem is that my Home Assistant application must be activated for it to work. When I say activate it means being open and my phone is not on standby (Watch the video)
moreover, how to automatically press the “Appeler” button afterwards?

2 Likes

Are you trying to send an automated voice message or are you going to start talking into the phone after you dial the number?

If it’s the former I use Twilio for that. And it can send both text messages (SMS) and voice messages. But I don’t think it can receive anything. But your own phone can do that.

if it’s the latter then how much time/effort does it save you to have HA dial the number?

I going to start talking into the phone after you dial the number
As I am disabled in all four limbs and I am independent with computers, using a Home Assistant would allow me to be able to call while using an Android smartphone.

Sorry, I didn’t think of that use case. Please excuse my privileged thinking.

A member of the French forum helped me a lot.
This is what we managed to do

type: custom:stack-in-card
title: Appel
cards:
  - type: horizontal-stack
    cards:
      - type: horizontal-stack
        cards:
          - type: entities
            entities:
              - entity: input_text.callnumber
                icon: mdi:numeric
          - show_name: true
            show_icon: true
            icon: mdi:delete
            icon_height: 30px
            type: button
            tap_action:
              action: call-service
              service: script.1708328864120
              target: {}
  - type: horizontal-stack
    cards:
      - type: custom:button-card
        name: '1'
        styles:
          card:
            - width: 50px
            - height: 50px
            - color: '#44739e'
      - type: custom:button-card
        name: '2'
        styles:
          card:
            - width: 50px
            - height: 50px
            - color: '#44739e'
      - type: custom:button-card
        name: '3'
        styles:
          card:
            - width: 50px
            - height: 50px
            - color: '#44739e'
  - type: horizontal-stack
    cards:
      - type: custom:button-card
        name: '4'
        styles:
          card:
            - width: 50px
            - height: 50px
            - color: '#44739e'
      - type: custom:button-card
        name: '5'
        styles:
          card:
            - width: 50px
            - height: 50px
            - color: '#44739e'
      - type: custom:button-card
        name: '6'
        styles:
          card:
            - width: 50px
            - height: 50px
            - color: '#44739e'
  - type: horizontal-stack
    cards:
      - type: custom:button-card
        name: '7'
        styles:
          card:
            - width: 50px
            - height: 50px
            - color: '#44739e'
      - type: custom:button-card
        name: '8'
        styles:
          card:
            - width: 50px
            - height: 50px
            - color: '#44739e'
      - type: custom:button-card
        name: '9'
        styles:
          card:
            - width: 50px
            - height: 50px
            - color: '#44739e'
  - type: horizontal-stack
    cards:
      - type: custom:button-card
        name: '*'
        styles:
          card:
            - width: 50px
            - height: 50px
            - color: '#44739e'
      - type: custom:button-card
        name: '0'
        styles:
          card:
            - width: 50px
            - height: 50px
            - color: '#44739e'
      - type: custom:button-card
        name: '#'
        styles:
          card:
            - width: 50px
            - height: 50px
            - color: '#44739e'
  - type: horizontal-stack
    cards:
      - type: horizontal-stack
        cards:
          - show_name: true
            show_icon: true
            icon_height: 20px
            icon: mdi:phone
            type: button
            tap_action:
              action: call-service
              service: script.1708328864120
              target: {}


At the same time, I tried to further improve the system. As you can see, I added numbers so I can type from the numbers in the input.

So I think there are two things left for the system to be at its best. First, when I type my number with the keyboard, it is displayed in the input
and leave the +33 by default (Placeholder). Secondly,
make the “delete” button (the trash can)


This way, if I make a mistake in my number, I can delete it

Thanks in advance to those who will help me with the rest of my development.