mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-09 18:36:29 +00:00
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:
parent
7ae2346834
commit
afc44b25f3
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user