mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 23:06:58 +00:00
Update /apt/history
This commit is contained in:
parent
90b8600c74
commit
3f3828e009
@ -192,7 +192,7 @@ $ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
||||
-H "Content-Type: application/json" http://localhost:8123/api/services
|
||||
```
|
||||
|
||||
#### {% linkable_title GET /api/history %}
|
||||
#### {% linkable_title GET /api/history/period/<timestamp> %}
|
||||
Returns an array of state changes in the past. Each object contains further details for the entities.
|
||||
|
||||
```json
|
||||
@ -227,13 +227,13 @@ Sample `curl` commands:
|
||||
```bash
|
||||
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
||||
-H "Content-Type: application/json" \
|
||||
http://localhost:8123/api/history/period/2016-02-06
|
||||
http://localhost:8123/api/history/period/2016-12-29T00:00:00+02:00
|
||||
```
|
||||
|
||||
```bash
|
||||
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
||||
-H "Content-Type: application/json" \
|
||||
http://localhost:8123/api/history/period/2016-02-06?filter_entity_id=sensor.temperature
|
||||
http://localhost:8123/api/history/period/2016-12-29T00:00:00+02:00?filter_entity_id=sensor.temperature
|
||||
```
|
||||
|
||||
#### {% linkable_title GET /api/states %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user