Add hint for headers
This commit is contained in:
parent
476bb5eade
commit
d137e4c761
1 changed files with 2 additions and 1 deletions
|
@ -97,7 +97,7 @@ sensor:
|
|||
|
||||
The Home Assistant [API](/developers/rest_api/) exposes the data from your attached sensors. If you are running multiple Home Assistant instances which are not [connected](/developers/architecture/#multiple-connected-instances) you can still get information from them.
|
||||
|
||||
If the Home Assistant instance in the resource variable is protected by an API password, you can append `?api_password=YOUR_PASSWORD` to the resource url to authenticate.
|
||||
If the Home Assistant instance in the resource variable is protected by an API password, you can append `?api_password=YOUR_PASSWORD` to the resource URL to authenticate or use `headers:`.
|
||||
|
||||
```yaml
|
||||
sensor:
|
||||
|
@ -107,6 +107,7 @@ sensor:
|
|||
value_template: {% raw %}'{{ value_json.state }}'{% endraw %}
|
||||
unit_of_measurement: "°C"
|
||||
```
|
||||
|
||||
### {% linkable_title Accessing a HTTP authentication protected endpoint %}
|
||||
|
||||
The REST sensor supports HTTP authentication and customized headers.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue