⚙️ Using Tasker with Home Assistant (V2)

Just curious why I can’t this to work. The first picture is running from HA webpage and works perfectly. The second is my tasker plugin. What do I have formatted wrong in Tasker plugin? I get Eroorn400? I appreciate any help you guys can give, I have a feeling it’s something quite simple.

Second picture

Wow, I knew it was simple. Didn’t put seconds in the times!

Hi. I am always getting Error 400: Bad request.

Service and template works in Home Assistant, but un tasker I always get the same error.

Any help?

Does anyone know how to open a specific dashboard in HA APP using tasker?

Did you find any solution to this?
I am getting the same “Error 400: Bad request”, and my service works fine. I also used the YAML to JSON converter, and it looks OK.

Ahh, I found my issue.

When using the JSON copyer, I just converted 1:1 with the settings i made in the service menu at HA.
Replacing all that, with just the entity_id, fixed my issue. So “Parameter 1” is what I want my “Parameter 2” to do for me.

how did you make such icons for tasker tasks?

I made a copy of the mushroom card icons in CorelDraw and exported it to PNG. I used KWGT to place them as a widget.

I wish the HTTP Request action in Tasker could work with SSL certificates, too (feature request here).

At the moment it just returns a 400 error (no required SSL certificate was sent) and this feature could allow to avoid using a VPN to control Home Assistant!

Excellent. Works for me on my old Galaxy S6 running rooted Android 7. The home assistant plugin stopped working for me due to SSL certificate expThe only thing I can’t do so far is send the contents of a variable to an input_text entity.

No error but HA doesn’t update

{
    "entity_id": "input_text.leaf_car_google_map",
    "value": "%LEAFGOOGLEMAP"
}

SOLVED

Reply to myself, the input_text paramaters in HA was set too short so it couldn’t accept the huge URL 100 characters wasn’t enough

Hello @bokub ! Thanks so much for posting this! When I call a HA service, I get the following error in Tasker: javax.net.ssl.SSLException: Unable to parse TLS packet header.

I am passing the following Parameter 2 after converting the YAML from Home Assistant Service to JSON:

{“service”:“google_assistant_sdk.send_text_command”, “data”: {“command”: “Set Living Room between 70 and 73”}}

Am I doing something wrong?

SSLException means it has something to do with HTTPs.

Are you sure about the URL of your home assistant instance?

I double checked and my URL is HTTP instead. I updated the URL and now the error message is Error: 400 Bad Request

@bokub , I can get to HA using the URL after changing it to HTTP so I know it’s correct now but still getting 400 Bad Request error.

@bokub
Hey, thanks for this instruction; I’ve been using it quite regularly, but I still have a small issue, probably my own fault…

I very regularly get this error:

Tasker
Error
javax.net.ssl.SSLHandshakeException: connection closed

Now, I assume this is too fast, so I already slowed it down to 30,000 ticks. It runs 80% of the time okay, but occasionally drops this error. I would like to know if it’s because I’m hammering the API, and if so, what the rate limit is. If not, what else could it be?