How to call a home assistant script from Android native automations?

my Samsung has routines and automations. Not SmartThings, actual android automations like when you get into a location or receive a notification.

I’m trying to call home assistant from it, I added a shortcut on home assistant and was able to call from an android automation but instead of running the script it opens the script page so I can click run, and I have to unlock the screen first.

Is there a way to launch a script directly from an automation?

I don’t know if it’s possible using routines, but it is possible using Tasker

Have you considered using the Home Assistant Native App?

I am using, however I need to trigger something with my samsung smarttag2, which triggers the routines with a notification, and routines should trigger home assistant

Tested on my Samsung S23 routine:

Create an automation webhook:

  • enable the GET method
alias: Test webhook
description: ""
triggers:
  - trigger: webhook
    allowed_methods:
      - POST
      - PUT
      - GET
    local_only: true
    webhook_id: hass
conditions: []
actions:
  - action: assist_satellite.announce
    metadata: {}
    data:
      message: Hello
    target:
      entity_id: assist_satellite.hassmic_wyoming
mode: single

Outcome

It simply browse the website in background kinda… >w<

for me it didn’t work when the screen was locked