From 4e8407cd56fadb6976a4a1ea8b39ac640de1717d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 4 Sep 2016 11:41:10 +0200 Subject: [PATCH] Add verify_sll option (#889) --- source/_components/binary_sensor.rest.markdown | 2 ++ source/_components/sensor.rest.markdown | 2 ++ 2 files changed, 4 insertions(+) diff --git a/source/_components/binary_sensor.rest.markdown b/source/_components/binary_sensor.rest.markdown index 7ef84e74f77..1be2b677cf1 100644 --- a/source/_components/binary_sensor.rest.markdown +++ b/source/_components/binary_sensor.rest.markdown @@ -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.

Make sure that the URL matches exactly your endpoint or resource. diff --git a/source/_components/sensor.rest.markdown b/source/_components/sensor.rest.markdown index aae1513a326..1d919c161a4 100644 --- a/source/_components/sensor.rest.markdown +++ b/source/_components/sensor.rest.markdown @@ -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.

Make sure that the URL matches exactly your endpoint or resource.