mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-11-14 13:30:55 +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:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user