mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-08 09:56:30 +00:00
Add note under /api/states API endpoint section to distinguish between state updates and service calls (#390)
* add note under states API endpoint to distinguish between stateupdates and service calls * update docs per review * grammar * remove word
This commit is contained in:
parent
0d1b6a2f6f
commit
dc828d4e7b
@ -349,6 +349,8 @@ $ curl -X GET -H "Authorization: Bearer ABCDEFGH" \
|
|||||||
|
|
||||||
Updates or creates a state. You can create any state that you want, it does not have to be backed by an entity in Home Assistant.
|
Updates or creates a state. You can create any state that you want, it does not have to be backed by an entity in Home Assistant.
|
||||||
|
|
||||||
|
> :info: NOTE: This endpoint sets the representation of a device within Home Asistant and will not communicate with the actual device. To communicate with the device, use the [POST /api/services/<domain>/<service>](#post-apiservicesltdomainltservice) endpoint.
|
||||||
|
|
||||||
Expects a JSON object that has at least a state attribute:
|
Expects a JSON object that has at least a state attribute:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
|
Loading…
x
Reference in New Issue
Block a user