mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Add /api/discovery_info
This commit is contained in:
parent
03fcde950a
commit
99ca3bb5cf
@ -273,6 +273,25 @@ $ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
||||
http://localhost:8123/api/error_log
|
||||
```
|
||||
|
||||
#### {% linkable_title GET /api/discovery_info %}
|
||||
Retrieve about the discovery feature.
|
||||
|
||||
```json
|
||||
{
|
||||
"base_url": "http://192.168.1.2:8123",
|
||||
"location_name": "My home",
|
||||
"requires_api_password": true,
|
||||
"version": "0.19.0"
|
||||
}
|
||||
```
|
||||
|
||||
Sample `curl` command:
|
||||
|
||||
```bash
|
||||
$ curl -X GET -H "x-ha-access: mypass" \
|
||||
http://localhost:8123/api/discovery_info
|
||||
```
|
||||
|
||||
#### {% linkable_title POST /api/states/<entity_id> %}
|
||||
Updates or creates the current state of an entity.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user