From 3fbb07d8c67d3a73e536a620359bc0f84f8df86f Mon Sep 17 00:00:00 2001 From: Fabian Wolter Date: Sun, 15 Nov 2020 21:41:45 +0100 Subject: [PATCH] [lcn] doc: add .things example (#9031) Signed-off-by: Fabian Wolter --- bundles/org.openhab.binding.lcn/README.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/bundles/org.openhab.binding.lcn/README.md b/bundles/org.openhab.binding.lcn/README.md index da4232e58..b3f0ae492 100644 --- a/bundles/org.openhab.binding.lcn/README.md +++ b/bundles/org.openhab.binding.lcn/README.md @@ -96,7 +96,7 @@ Basic data like the names of all LCN modules in the bus, can be read out by open If not all LCN modules get listed on the first run, click on the refresh button to start another scan. When adding a module by discovery, the new *Thing*'s UID will be a combination of segment and module id using the following format: -*SM* where *segmentId* and *moduleId* are formatted as three-digit numbers with leading zeros. +`SM` where `segmentId` and `moduleId` are formatted as three-digit numbers with leading zeros. ### Discover PCK Gateways @@ -423,7 +423,21 @@ LEDs do not support the *OnOffCommand* and respectively the *Switch* Item type, ## Full Example -Config .items +Config `.things` + +``` +Bridge lcn:pckGateway:myPCHK [ hostname="192.168.123.123", port=4114, username="myUser", password="myPassword", mode="native200" ] { + Thing module M99 "M99 MyModule" [ moduleId=99, segmentId=0 ] { + Channels: + Rollershutter : rollershutterrelay#1 "My twisted rollershutter relay" [ invertUpDown = true ] + Contact : binarysensor#6 [ invertState=true ] + Number : rvarsetpoint#1 [ unit="temperature" ] + Number : variable#3 [ unit="temperature" ] + } +} +``` + +Config `.items` ``` // Dimmer Outputs @@ -496,7 +510,7 @@ Switch M10_KeyLockA1 {channel="lcn:module:b827ebfea4bb:S000M010:keylocktablea#1" Switch M10_KeyLockD5 {channel="lcn:module:b827ebfea4bb:S000M010:keylocktabled#5"} ``` -Config .sitemap +Config `.sitemap` ``` sitemap lcn label="My home automation" {