Restart Google Home Mini script

Hello guys!

I was wondering if there is a way to send a restart command (maybe shell command?) to a Google Home Mini over local network?

Sometimes a few of mine becomes unresponsive, even when talking directly to them, and restarting seems to fix the problem. It would be great to create a script to send a restart command to all of them.

Thanks a lot!

You can invoke a POST request against the API
endpoint: http://192.168.2.246:8008/setup/reboot
data:

{
  "params": "now"
}
1 Like

Hello sir! Thanks for your quick response.

Just tried this without success (using rest_command):

ghm_suite_reboot:
  url: http://192.168.1.60:8008/setup/reboot
  method: POST
  payload: '{"params": "now"}'

I get this error on log: Error 400 on call http://192.168.1.60:8008/setup/reboot.

Any idea what is not right?

Thanks a bunch.

Sorry…
You need to set the content type

content_type: 'application/json'

1 Like

Amazing job! Worked like a charm now:

ghm_suite_reboot:
  url: http://192.168.1.60:8008/setup/reboot
  method: POST
  content_type: 'application/json'
  payload: '{"params": "now"}'

Thanks a lot sir, this will help a great deal. Have a great day!

1 Like

Hello again @ludeeus!

Just following this issue: https://github.com/home-assistant/home-assistant/issues/24815

Looks like this solution of restarting all of mine GHM devices lasted for a couple of days hahaha

Let’s see if there are some kind of workaround this problem. I was loving to use the alarm information on an automation that wakes me up slowly by playing sounds of birds with gradual volume increase, 20 minutes before the alarm :frowning:

Thanks for your help mate!

Don’t get your hopes up.

From what I can tell the API now require certificate authentication for the calls.

to solve the auth issue… is quite hectic.

Hi, I was trying to do the same thing. To restart my google homes from time to time. But it’s not working…

configuration.ymal:

rest_command:
# restarting google home
  gh_reboot:
    url: http://192.168.1.251/setup/reboot
    method: POST
    content_type: 'application/json'
    payload: '{"params": "now"}'

and then I run this in an automation. But I get a client error (if im using :8009 (my GHs port) im getting it too). Any tips?

Hello! Please note that this API is broken for months now. Please refer here: https://github.com/rithvikvibhu/GHLocalApi/issues/39

Hi, as far as I can see the API is now working again, but the script still does not work, does anyone have an update on how to make a google home unit to reboot? I would prefer not to connect them to “smart switches” to make that happen…

1 Like

Can anyone tell me if this is still possible. Have tichome mini devices that stop streaming radio every so often and a reboot fixes it. Smart plug isn’t an option as they have a battery so turning them off and on isn’t an option.

Thanks

I also wish this was possible (as rebooting Google Nest Hubs / Minis sometimes mitigates problems).