Hi @rr19-hub,
I don’t use tasker, so I cannot help you so much. If you have problems with the authentication, you could check this tutorial: ⚙️ Using Tasker with Home Assistant (V2)
Or you could also use webhooks to trigger automations in Home Assistant: Automation Trigger - Home Assistant instead of communicating directly.
I hope at least I helped you a bit.