Android shortcut to HA script?

I explicit asked for a solution that does not require cloud nor exposing HA to the public internet.
I’m looking for a local solution only.

And how can I do this? As written I only have google assistant on my android smartphone. I do not own a google home device.

Then why are you using Google?? Google isn’t local.

Well when I’m at home, I want to say “google, do this and that”, and this should trigger HA scripts. Locally. As I cannot expose the HA port to the web, neither would I register for a paid cloud…

I you want, I’m looking for the “alexa echo -> emulate_hue” way, but with google assistant on my smartphone.

Set up Google Assistant as per the docs, you don’t need to use the Cloud Service. Google Assistant runs on your android phone. When you expose entities from Home Assistant to your Google Assistant, you’ll be able to control them from your phone with the Google Home app (voice and by tapping inside the app).

And how can I actually expose entities from HA to GA and make it discover them?
Eg for alexa with emulate_hue, I can add the Hue Hub in Alexa Echo.

But how for google?

Newsflash: Google doesn’t do “local”. Google Assistant REQUIRES the internet, and cannot communicate locally with your Home Assistant.

Why not?

OK.

No web, because I have a very bad IPv6 ISP. Plus security concerns. I’d rather not going to implement this, before exposing a web port.

Then cloud is your only option to use Google Assistant with Home Assistant.

You’re right I should’ve been more clear. Obviously Google Assistant is still going to be using their own cloud service, it’s not going to happen locally but in the integration there’s two different types and one is configurable very easily of you have Home Assistant cloud service. I’m just saying you can use the other method :+1:

If you’re adamant about keeping it 100% local, you can use Tasker and Autovoice to send API calls to the local IP of your HA instance. You just can’t use Google Assistant.

Well but with “Home Assistant cloud service” you mean the paid cloud? If so, as written I won’t go for it…

Why? You don’t like to help support the project you are using?

As for now it’s just a pet project, and I don’t know if it will be growing or run out in about half a year.
Plus, and which is my major concern. I won’t be exposing anything into a cloud for security. No matter which cloud it is. As eg my doors are controlled with smart locks, the risk is too high for me.

I will have a look into tasker autovoice then.

I remember reading something about the Almond add-on as well. I looked and it’s description is ‘The Open, Privacy-Preserving Virtual Assistant’. I’m not sure of the details but could be worth investigating.

OK…

Perhaps you don’t understand how the HA cloud stuff works, but whatever.

AutoVoice unfortunately is no longer supported by google home.

Question: if I add a Google Home Mini into my smarthome, can it receive triggers that I say into my android phone using “ok google”, and then trigger a HA script?

I never said to use Autovoice and Google home.

Autovoice > API call to HA

Again, only if you expose your instance to the internet or use HA Cloud…This is the ONLY way to be able to talk to Google and have it do something in HA. Again, if you want to use Google, you have to expose your instance or use Cloud.

That’s the reason why I am on IOS and not android…
With Siri Shortcuts you can just configure the “voice command” you want to trigger any home assistant script from you phone without any cloud exposure.

Hi,

Hope you managed to do what you were searching. I was just trying to do the exact same thing as you yesterday and found out there is a very simple solution (that probably didn’t exist back in 2020 :wink: )

Just create an Android widget for “Service” and write “script”. All your scripts will be listed.