Update websocket.md (#958)

Added missing optional "target" key in Calling a service section and changed "service_data" key with better examples.
This commit is contained in:
Codestian
2021-06-29 00:15:34 +08:00
committed by GitHub
parent 7ae2346834
commit afc44b25f3

View File

@@ -227,6 +227,11 @@ This will call a service in Home Assistant. Right now there is no return value.
"service": "turn_on", "service": "turn_on",
// Optional // Optional
"service_data": { "service_data": {
"color_name": "beige",
"brightness": "101"
}
// Optional
"target": {
"entity_id": "light.kitchen" "entity_id": "light.kitchen"
} }
} }