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:
Raman Gupta 2020-01-20 01:16:12 -05:00 committed by Paulus Schoutsen
parent 0d1b6a2f6f
commit dc828d4e7b

View File

@ -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.
> :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:
```json