Add verify_sll option (#889)

This commit is contained in:
Fabian Affolter 2016-09-04 11:41:10 +02:00 committed by GitHub
parent 333766a037
commit 4e8407cd56
2 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,7 @@ binary_sensor:
name: REST GET binary sensor
sensor_class: opening
value_template: '{% raw %}{{ value_json.state }}{% endraw %}'
verify_ssl: False
```
or for a POST request:
@ -61,6 +62,7 @@ Configuration variables:
- **sensor_class** (*Optional*): The [type/class](/components/binary_sensor/) of the sensor to set the icon in the frontend.
- **value_template** (*Optional*): Defines a [template](/topics/templating/) to extract the value.
- **payload** (*Optional*): The payload to send with a POST request. Usualy formed as a dictionary.
- **verify_ssl** (*Optional*): Verify the certification of the endpoint. Default to True.
<p class='note warning'>
Make sure that the URL matches exactly your endpoint or resource.

View File

@ -39,6 +39,7 @@ sensor:
payload: '{ "device" : "heater" }'
name: REST POST sensor
unit_of_measurement: "°C"
verify_ssl: False
```
Configuration variables:
@ -49,6 +50,7 @@ Configuration variables:
- **payload** (*Optional*): The payload to send with a POST request. Depends on the service, but usually formed as JSON.
- **name** (*Optional*): Name of the REST sensor.
- **unit_of_measurement** (*Optional*): Defines the unit of measurement of the sensor, if any.
- **verify_ssl** (*Optional*): Verify the certification of the endpoint. Default to True.
<p class='note warning'>
Make sure that the URL matches exactly your endpoint or resource.