endallas
(David)
September 17, 2017, 1:09pm
1
I’m trying to control hassio from tasker but it’s not quite doing what I want.
From the ha service menu the dimming works perfectly.
But when sending http packet with the same json from tasker the lights just turn on with the last dimming level.
Using in tasker:
Server:
http://192.168.1.199:8123/api/services/light/turn_on
Data/file:
{“entity_id”:“light.sovrum”,“brightness_pct”:“50”}
I’ve also tried with just brightness without successes
endallas
(David)
September 18, 2017, 3:23pm
2
OK, solved!
if anyone is interested i found the solution here.
I am trying to get tasker to turn on a single light using an HTTP Post task.
My task settings are
Server:Port
http://xxx.xxx.x.xxx:8123/api/services/light/turn_on?api_password=MYPASSWORD
Data / File
{
"entity_id": "light.kitchen"
}
User Agent
application/json
The task connects but it is turning on all the lights, not just light.kitchen. When fired from the services menu of HAss it works just fine. I’ve found a few similar threads but the ones with examples have used pictures that are…
And it was to add application/json to content type in tasker