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.
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?
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?
Very interesting contributions, thanks! I have a weird problem with name resolving by Tasker.
I’m using HA on a Macbook, running in a Virtualbox image supplied by HA. That image is using a Docker setup. Everything is working fine out of the box.
However, resolving the default URL (http://homeassistant.local:8123) gives an error in Tasker:
java.net.UnknownHostException: Unable to resolve host homeassistant.local. No address associated with hostname.
When I replace the “homeassistant.local” by the real IP-address of the HA server, then I get another error:
401: Unauthorized.
When I execute both methods in API-tester on an iOS device, the Rest-API is called successfully and the light goes on or off, depending on the service I’m using. Unfortunately, with the same API-tester on my (Tasker) Android I get the same errors.
So, from an iOS device this process is working fine, but from Android it fails.
Has anyone a brilliant idea how to resolve this in a simple way? I’m no Docker man, it should preferably be done on my (non rooted) Android phone ![]()
Any help would be appreciated!
Firstly, Amazing Tutorial.
Am a HA noob and this was a life saver to try and get the integration working.
Hopefully this is a quick question…
Instead of using “entity_id” to call single devices, is it possible to call a Label ?
For example, I have a number of lights in the house, all with the label “lights”.
I want to turn the entire house off when I leave home.
Is it possible to trigger a label ? if not, is there another way to do it without having to set a “light.turn_off” for each device ?
action: light.turn_off
data:
entity_id: all



