mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-09 02:16: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",
|
||||
// Optional
|
||||
"service_data": {
|
||||
"color_name": "beige",
|
||||
"brightness": "101"
|
||||
}
|
||||
// Optional
|
||||
"target": {
|
||||
"entity_id": "light.kitchen"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user