mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 22:06:50 +00:00
Fix API doc
This commit is contained in:
parent
5e3995562c
commit
98902ef548
@ -123,9 +123,11 @@ Expects a JSON object that has atleast a state attribute:
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"state": "below_horizon",
|
"state": "below_horizon",
|
||||||
|
"attributes": {
|
||||||
"next_rising": "07:04:15 29-10-2013",
|
"next_rising": "07:04:15 29-10-2013",
|
||||||
"next_setting": "18:00:31 29-10-2013"
|
"next_setting": "18:00:31 29-10-2013"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Return code is 200 if the entity existed, 201 if the state of a new entity was set. A location header will be returned with the url of the new resource. The response body will contain a JSON encoded State object.
|
Return code is 200 if the entity existed, 201 if the state of a new entity was set. A location header will be returned with the url of the new resource. The response body will contain a JSON encoded State object.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user