From ec5f03b3066fcf578f7299bec88f696de45de4af Mon Sep 17 00:00:00 2001 From: endor <1937941+endor-force@users.noreply.github.com> Date: Wed, 13 Mar 2019 12:46:06 +0100 Subject: [PATCH] Update tellstick to match with new sensor configuration (#8716) * Updated to match with new sensor configuration Sensor configuration will now use static identifiers instead of ID number to set the name of named sensors. * Update source/_components/tellstick.markdown Co-Authored-By: endor-force <1937941+endor-force@users.noreply.github.com> --- source/_components/tellstick.markdown | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/source/_components/tellstick.markdown b/source/_components/tellstick.markdown index 59c145c9b1c..828b8ade735 100644 --- a/source/_components/tellstick.markdown +++ b/source/_components/tellstick.markdown @@ -108,10 +108,19 @@ sensor: required: false type: string only_named: - description: Only show the named sensors. Set to `true` to hide sensors. + description: Only add and include specified sensors. If this is not specified all sensors will be imported and the names will be based on each sensor's ID number. required: false default: false - type: boolean + type: list + keys: + id: + description: The ID-number of the sensor to include. + required: true + type: integer + name: + description: Specify the name of the selected sensor. + required: true + type: string temperature_scale: description: The scale of the temperature value. required: false @@ -134,11 +143,13 @@ In this section you find some real-life examples of how to use this sensor. # Example configuration.yaml entry sensor: - platform: tellstick - 135: Outside - 21: Inside - only_named: true temperature_scale: "°C" datatype_mask: 1 + only_named: + - id: 135 + name: Outside + - id: 21 + name: Inside ``` ## {% linkable_title Switch %} @@ -151,4 +162,4 @@ To use your TellStick device, you first have to set up your [Tellstick hub](#con # Example configuration.yaml entry switch: - platform: tellstick -``` \ No newline at end of file +```