From 8f835ce456165c7672c8c660e8383e71ef3bb068 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 14 May 2018 22:35:54 +0200 Subject: [PATCH] Update and switch to new style (#5363) --- source/_components/sensor.skybeacon.markdown | 26 +++++++++++++++++--- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/source/_components/sensor.skybeacon.markdown b/source/_components/sensor.skybeacon.markdown index d4e95bb97ff..01d34fe65ba 100644 --- a/source/_components/sensor.skybeacon.markdown +++ b/source/_components/sensor.skybeacon.markdown @@ -14,6 +14,8 @@ ha_iot_class: "Local Polling" The `skybeacon` sensor platform supports [CR2477](http://cnsky9.en.alibaba.com)-powered [iBeacon](https://en.wikipedia.org/wiki/IBeacon)/eddystone sensors that come with temperature/sensor module. +## {% linkable_title Configuration %} + To use your Skybeacon sensor in your installation, add the following to your `configuration.yaml` file: ```yaml @@ -26,8 +28,24 @@ sensor: - humidity ``` -- **mac** (*Required*): The MAC address of your sensor. You can find this be running `hcitool lescan` from command line. -- **monitored_conditions** array (*Required*): The parameters that should be monitored. - - **temperature**: Temperature at the sensor's location. - - **humidity**: Humidity at the sensor's location. +{% configuration %} +mac: + description: "The MAC address of your sensor. You can find this be running `hcitool lescan` from command line." + required: true + type: string +name: + description: The name of the Skybeacon sensor. + required: false + type: string + default: Skybeacon +monitored_conditions: + description: The parameters that should be monitored. + required: false + type: map + keys: + temperature: + description: Temperature at the sensor's location. + humidity: + description: Humidity at the sensor's location. +{% endconfiguration %}