Add hint for headers

This commit is contained in:
Fabian Affolter 2016-10-29 10:15:48 +02:00
parent 476bb5eade
commit d137e4c761
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -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.