Issue with Android command execution from Home Assistant

Hi there,
I’m having trouble getting my phone to switch to silent mode via Home Assistant. I tried sending the command “commandvolumemute” (I also tested “commandringermode_silent”), but nothing happens — I only receive the message as a notification on my device.

I looked through the Home Assistant app settings on my phone to enable command execution, but I couldn’t find any relevant options. I also checked Android permissions and accessibility settings, but still no luck.

I’m using a Moto G75 running Android 15.
Any ideas on how to properly enable command execution or troubleshoot this?

Thanks in advance!

What exactly did you try?

Could you tell us how you are integrating your phone with Home Assistant?

I think you would probably need something like Llamalab Automate or Tasker running on the phone - the HA app is mostly about dashboards and sensors.

That is not true.
HA app (sorry Home Assistant companion app for mobile phones and tablets, since there is a name change coming we need to be clear) can do a lot more.
I use it daily to set the phone to dnd or a specific ring volume. But I believe it requires Android.

1 Like

Ah, sorry. I’ve never tried anything like that.

“Commandringermode_silent” in a notification sounds like an integration of some kind - I was trying to clarify which one.

Checking if you have reviewed the docs and sent the commend in the correct format?

1 Like

Thanks for the link. You learn something every day! :grin:

1 Like
alias: Silenciar celular a las 23:30
description: ""
triggers:
  - at: "23:30:00"
    trigger: time
actions:
  - data:
      message: command_ringer_mode
      data:
        command: command_ringer_mode
        ringer_mode: silent
    action: notify.mobile_app_moto_e32
mode: single

Sorry for the delay. I’ve just shared the automation I want to create. I want the phone to go silent, but nothing happens— I only receive a message with the command. I tried several commands, but it’s the same result

"I corrected it to this:

yaml

actions:
  - data:
      message: command_ringer_mode
      data:
        command: vibrate
    action: notify.mobile_app_moto_e32

and it worked perfectly! When it arrived, it asked me to grant permissions, and it worked! Thanks!"

1 Like