home-assistant / android

:iphone: Home Assistant Companion for Android
https://companion.home-assistant.io/
Apache License 2.0
2.17k stars 609 forks source link

Assign script to button on Wear OS #3499

Open soloam opened 1 year ago

soloam commented 1 year ago

Is your feature request related to a problem? Please describe. On Wear OS we can assign action to the buttons, I can see that it's possible do trigger the assistant for example, or I can for example open a app like google pay, I can also open HA assistant. It would be nice if we could assign to a button a script in HA.

Describe the solution you'd like A way to select a script to run o button press on the watch

Describe alternatives you've considered, if any None

Additional context Tested on my Samsung Watch 5 Pro

dshokouhi commented 1 year ago

Those button assignments are meant to open apps and not trigger an action without opening anything. I am not sure how this will work with that said. Assist works because it is a launcher shortcut that opens the assist UI.

soloam commented 1 year ago

I know that tasker solved a similar problem installing on android a secondary app. This app when called triggers some actions. So a idea would be to install a secondary app on wearos that could be called and that app could be bound to a action on Home Assistant, like toggle a entity or running a script. I know that it's better said than done! But it's a idea.

soloam commented 1 year ago

Do you think that something this would be possible? This is the secondary app of tasker

Screenshot_20230509-230741.png