From 84edd69c96cfdeadaa4051156996f28aded561f9 Mon Sep 17 00:00:00 2001 From: Ollo Date: Fri, 15 Jan 2021 20:21:57 +0100 Subject: [PATCH] Describe OpenHAB2 --- Readme.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Readme.md b/Readme.md index 08e6c33..c84c38f 100644 --- a/Readme.md +++ b/Readme.md @@ -43,3 +43,16 @@ Determine the IP address of your clock and execute the following script: ** 0-255,0-255,0-255 Background color is set to decimal representation of red, green an blue * **basetopic**/cmd/telnet ** ignored Stop MQTT server and start telnetserver at port 23 + +## OpenHAB2 +Tested MQTT with binding-mqtt 2.5.x +### Configuration +``` +Thing mqtt:topic:wordclock "Wordclock" (mqtt:broker) @ "MQTT" { + Channels: + Type dimmer : dim "Dimming" [ stateTopic="basetopic/brightness", commandTopic="basetopic/cmd/single" ] + Type string : cmd "Command" [ commandTopic="basetopic/cmd/single" ] + Type switch : active "Active" [ commandTopic="basetopic/cmd/single" ] + Type colorRGB : background "Background" [ stateTopic="basetopic/background", commandTopic="basetopic/cmd/single", on="28,0,0", off="0,0,0" ] +} +```