From 70a2a98c02e841b6eb0fc46c0774fe7c9aff3fb5 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Mon, 29 Feb 2016 18:10:21 -0800 Subject: [PATCH] Add TLS config options for mFi sensors and switches --- source/_components/sensor.mfi.markdown | 6 +++++- source/_components/switch.mfi.markdown | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/source/_components/sensor.mfi.markdown b/source/_components/sensor.mfi.markdown index c7dcc96257a..58b25e26ea6 100644 --- a/source/_components/sensor.mfi.markdown +++ b/source/_components/sensor.mfi.markdown @@ -24,12 +24,16 @@ sensor: port: PORT username: USERNAME password: PASSWORD + use_tls: true + verify_tls: true ``` Configuration variables: - **host** (*Required*): The IP address or hostname of your mFi controller. -- **port** (*Optional*): The port of your mFi controller. Defaults to 6443. +- **port** (*Optional*): The port of your mFi controller. Defaults to 6443 for TLS, otherwise 6080. - **username** (*Required*): The mFi admin username. - **password** (*Required*): The mFi admin user's password. +- **use_tls** (*Optional*): If true, use TLS to contact the mFi controller. Defaults to true. +- **verify_tls** (*Optional*): Set this to false if your mFi controller has a self-signed certificate. Defaults to true. diff --git a/source/_components/switch.mfi.markdown b/source/_components/switch.mfi.markdown index 353a6d6a2c0..7c0bd1c582b 100644 --- a/source/_components/switch.mfi.markdown +++ b/source/_components/switch.mfi.markdown @@ -24,6 +24,8 @@ sensor: port: PORT username: USERNAME password: PASSWORD + use_tls: true + verify_tls: true ``` Configuration variables: @@ -32,4 +34,5 @@ Configuration variables: - **port** (*Optional*): The port of your mFi controller. Defaults to 6443. - **username** (*Required*): The mFi admin username. - **password** (*Required*): The mFi admin user's password. - +- **use_tls** (*Optional*): If true, use TLS to contact the mFi controller. Defaults to true. +- **verify_tls** (*Optional*): Set this to false if your mFi controller has a self-signed certificate. Defaults to true.