Send variable to HA via http post api


I am using Tasker on Android to trigger an automation with automation.trigger in an HTTP Post API call which works fine. But is there any option to submit a variable via http post to homeassistant in the automation?

Maybe something like:

"entity_id": "automation.check_weather"

I would suggest using a script instead of an automation. Then you can invoke the script via the REST API, including passing data. See Calling a service, and Passing variables to scripts.