Waboodoo / HTTP-Shortcuts

Android app to create home screen shortcuts that trigger arbitrary HTTP requests
https://http-shortcuts.rmy.ch
MIT License
1.06k stars 108 forks source link

Google Assistant utilization #413

Open Twiityy opened 5 months ago

Twiityy commented 5 months ago

I turned on the option to use Google Assistant on my shortcut, but there isn't a way shown on how to use it. I checked the documentation and didn't find anything about it. My question is how can you use Google Assistant for activating a shortcut?

Waboodoo commented 5 months ago

The Google Assistent integration was added only recently and is still experimental, meaning that it is not fully tested and may not work properly. I don't use Google Assistent myself, so I'm also not super familiar with how it works or what an integration should look like.

The idea is that once you enable the checkbox in your shortcut's "Trigger & Execution Settings", that shortcut should be advertised to Google Assistent and you should be able to run it via commands like "Run [name of shortcut]" or "Execute [name of shortcut]". If that does not work, then I currently don't have any leads on what to do, it might be that there's still some bug or misconfiguration.

Twiityy commented 5 months ago

I tried with those trigger words and in response it said "OK", but nothing happened afterwards. Perhaps it's something on my end that it didn't work. I did say the exact name of the shortcut though. Hope this helps somehow.

Waboodoo commented 5 months ago

Can you check whether the shortcut was triggered, by opening the app and selecting "Troubleshooting" from the menu and then opening the "Event History" from there? If it triggered, you should be seeing recent logs about your shortcut there.

Another thing you could try is selecting "Allow Displaying Over Other Apps" from the "Troubleshooting" screen and enabling that. This sometimes fixes issues with the Tasker integration, maybe it helps here too.

Twiityy commented 5 months ago

I did that, the same thing happened even after turning on Display over other apps. It shows nothing in the Event History. I also turned off Battery Optimization, but once again, nothing happened.

Waboodoo commented 5 months ago

That is odd. So it seems your command doesn't even reach the app, so I'm not sure how I can even debug this. I've gone through the documentation again and couldn't find out what might be wrong. (Google has really made this difficult to test... -.-)

Waboodoo commented 4 months ago

Unfortunately, looking at the state of decay of /r/GoogleAssistantDev and the fact that the dev tooling for testing Google Assistant integration doesn't work anymore, it seems that Google doesn't care much about developer experience with their assistant. As such, I'm out of ideas on what (if anything) I can do here to make this feature work and will for now not spend more time on it.