Hi to all,
I’m trying to integrate tasker with HA, and I installed the HA Plug-In for tasker.
I have followed all the instructions to configure the plu-in:
Server Configuration:
Generate a Long-Lived Access Token in Home Assistant.
- Create a new Task in Tasker.
- Add an Action: ‘Plugin’ > ‘Home Assistant Plug-In for Tasker’ to the Task.
- Tap the edit button by ‘Configuration’.
- Tap the ‘+’ button near the top right to add a new Home Assistant server.
- Enter the details for your Home Assistant server. The Base URL must include the protocol, and not a trailing backslash (eg:
https://my.home-assistant.com
). - Test the server, then click ‘Save’.
When I press the Check Server button all is ok and “connection seccessfull” has beed displayed.
Then:
Call A Service
- Create a new Task in Tasker.
- Add the Action ‘Plugin’ > ‘Home Assistant Plug-In for Tasker’ > ‘Call Service’ to the Task.
- Select a Server, or add a new one as above.
- Select a Service, and optionally enter Service Data in JSON format.
Here I fullfill with the following data:
service: switch.toogle
service data (JSON,optional): {“entity_id”: “switch.suitejose_luz_techo”} - Test the Service call, then click ‘Save’.
When I test the service tasker show the following message:
JSON error
I tested exactly the same in developer_tools in HA and the switch works perfectly. I can’t see any error in the JSON format.
Ges State:
This option works OK and I can get the state of different devices.
Please any help about this?.
Thanks in advance.