Add camera proxy endpoint
This commit is contained in:
parent
7363a3c664
commit
05b63799b2
1 changed files with 11 additions and 2 deletions
|
@ -273,6 +273,16 @@ $ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
|||
http://localhost:8123/api/error_log
|
||||
```
|
||||
|
||||
#### {% linkable_title GET /api/camera_proxy/camera.<entity_id> %}
|
||||
Returns the data (image) from the specified camera entity_id.
|
||||
|
||||
Sample `curl` command:
|
||||
|
||||
```bash
|
||||
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD"\
|
||||
http://localhost:8123/api/camera_proxy/camera.my_sample_camera?time=1462653861261 -o image.jpg
|
||||
```
|
||||
|
||||
#### {% linkable_title GET /api/discovery_info %}
|
||||
Retrieve about the discovery feature.
|
||||
|
||||
|
@ -288,9 +298,8 @@ Retrieve about the discovery feature.
|
|||
Sample `curl` command:
|
||||
|
||||
```bash
|
||||
$ curl -X GET -H "x-ha-access: mypass" \
|
||||
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
||||
http://localhost:8123/api/discovery_info
|
||||
```
|
||||
|
||||
#### {% linkable_title POST /api/states/<entity_id> %}
|
||||
Updates or creates the current state of an entity.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue