mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 10:17:51 +00:00
Updated API doc
This commit is contained in:
parent
9979a3266e
commit
7c17987585
12
README.md
12
README.md
@ -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,7 +252,6 @@ 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"
|
||||||
],
|
],
|
||||||
@ -262,7 +259,6 @@ Returns a dict with as keys the domain and as value a list of published services
|
|||||||
"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/<entity_id>** - GET<br>
|
**/api/states/<entity_id>** - GET<br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user