Closed Tony763 closed 9 months ago
Syntax for set_available
changed:
This works:
snd = {
"id": id_msg,
"type": "call_service",
"domain": "virtual",
"service": "set_available",
"service_data": {
"value": event["state"]
},
"target": {
"entity_id": id_
}
}
This error occur not just with websocket, I can simulate it inside Developer tools > Services
Firing empty service shows request to define entity_id
, device_id
or area_id
in target
or data
.
Adding entity _id
inside target
works as expected:
But adding entity _id
inside data
as suggested by HA fail with error from above:
(b
is probably first letter from binary_sensor.aqua_bdoor
)
I had to change some stuff around to make the UI Mode work. I'll take another look.
I'll fix it. I need to check if entity_id is a list or not.
Should be fixed by #98 and it's in the latest Alpha.
I had actually forgot to specify a schema for the service.
Let me know if it works for you.
Yes, this works. Thank You :slightly_smiling_face:
Hi @twrecked, I am unable to set availability of entity trough websocket. This worked in 0.6.x.
Example websocket payload: