Updated API doc

This commit is contained in:
Paulus Schoutsen 2014-10-19 18:44:06 -07:00
parent 9979a3266e
commit 7c17987585

View File

@ -242,10 +242,8 @@ Returns a dict with as keys the events and as value the number of listeners.
```json ```json
{ {
"event_listeners": { "state_changed": 5,
"state_changed": 5, "time_changed": 2
"time_changed": 2
}
} }
``` ```
@ -254,15 +252,13 @@ Returns a dict with as keys the domain and as value a list of published services
```json ```json
{ {
"services": { "browser": [
"browser": [ "browse_url"
"browse_url" ],
], "keyboard": [
"keyboard": [ "volume_up",
"volume_up", "volume_down"
"volume_down" ]
]
}
} }
``` ```
@ -270,8 +266,8 @@ Returns a dict with as keys the domain and as value a list of published services
Returns a dict with as keys the entity_ids and as value the state. Returns a dict with as keys the entity_ids and as value the state.
```json ```json
{ [
"sun.sun": { {
"attributes": { "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"
@ -280,13 +276,13 @@ Returns a dict with as keys the entity_ids and as value the state.
"last_changed": "23:24:33 28-10-2013", "last_changed": "23:24:33 28-10-2013",
"state": "below_horizon" "state": "below_horizon"
}, },
"process.Dropbox": { {
"attributes": {}, "attributes": {},
"entity_id": "process.Dropbox", "entity_id": "process.Dropbox",
"last_changed": "23:24:33 28-10-2013", "last_changed": "23:24:33 28-10-2013",
"state": "on" "state": "on"
} }
} ]
``` ```
**/api/states/&lt;entity_id>** - GET<br> **/api/states/&lt;entity_id>** - GET<br>