From 3cc342eed27d73a178214c0f76579cc944ac7a6e Mon Sep 17 00:00:00 2001 From: Mountain-Eagle Date: Thu, 1 Sep 2022 15:48:39 +1000 Subject: [PATCH] Add files via upload --- mk-blindcontrol.items | 10 ++++++++++ mk-blindcontrol.sitemap | 6 ++++++ mk-blindcontrol.things | 21 +++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 mk-blindcontrol.items create mode 100644 mk-blindcontrol.sitemap create mode 100644 mk-blindcontrol.things diff --git a/mk-blindcontrol.items b/mk-blindcontrol.items new file mode 100644 index 0000000..444ee66 --- /dev/null +++ b/mk-blindcontrol.items @@ -0,0 +1,10 @@ +////You need to modify the groups to match your setup (GF_Kitchen, Blinds, RollerBlind, G_Restore), (GF_Kitchen, LWT) +//Back Door Blind + +Dimmer Blind_Back_Door "Back Door Blind [%s]" (GF_Kitchen, Blinds, RollerBlind, G_Restore) { autoupdate="false", alexa="Lighting", ga="Light" } +String Blind_Back_Door_Reachable "Back Door Blind " (GF_Kitchen, LWT) +String Blind_Back_Door_Speed "Back Door Speed" (GF_Kitchen, Blinds, RollerBlind, G_Restore) { autoupdate="false", alexa="Lighting", ga="Light" } +Number Back_Door_rssi "Back Door Blind [%d %%]" (GF_Kitchen, RSSI) +Number Blind_Back_Door_battery_charge "Charge Capacity [%.1f %%]" (GF_Kitchen) +Number Blind_Back_Door_battery_voltage "Battery Voltage [%.1f V]" (GF_Kitchen) +Number Blind_Back_Door_discharge_time "Discharge Time [%.1f Min]" (GF_Kitchen) diff --git a/mk-blindcontrol.sitemap b/mk-blindcontrol.sitemap new file mode 100644 index 0000000..ab067f3 --- /dev/null +++ b/mk-blindcontrol.sitemap @@ -0,0 +1,6 @@ + Switch item=Blind_Back_Door label="Back Door Blind" icon="rollershutter" mappings=[0="Open", 50="Half", 100="Close"] + Switch item=Blind_Back_Door_Speed label="Blind Speed" icon="rollershutter" mappings=[SLOW="SLOW", FAST="FAST"] + Slider item=Blind_Back_Door + Text item=Blind_Back_Door_Reachable label="Back Door Blind" icon="switch" + Text item=Back_Door_rssi label="Back Door Blind Rssi" icon="qualityofservice" + \ No newline at end of file diff --git a/mk-blindcontrol.things b/mk-blindcontrol.things new file mode 100644 index 0000000..170f798 --- /dev/null +++ b/mk-blindcontrol.things @@ -0,0 +1,21 @@ +Bridge mqtt:broker:mosquitto "Mosquitto" [ host="192.168.0.200", port=1883, secure=false, username="openhabian", password="openhab", clientID="openHAB3" ]{ + + + + + ////You need to edit the topic names to suit your setup, ie change the "BlindControl2" +///Back Door Blind + Thing topic MK-BlindControl2 "MK-BlindControl-2" @ "Back Door" { + Channels: + Type string : reachable "Reachable" [ stateTopic="tele/BlindControl2/LWT" ] + Type dimmer : power "Power" [ stateTopic="stat/BlindControl2/STATE", commandTopic="cmnd/BlindControl2/POWER" ] + Type string : speed "Speed" [ stateTopic="stat/BlindControl2/SPEED", commandTopic="cmnd/BlindControl2/SPEED" ] + Type number : rssi "WiFi Signal Strength" [ stateTopic="tele/BlindControl2/STATE", transformationPattern="JSONPATH:$.Wifi.RSSI" ] + Type number : battcap "Battery Charge " [ stateTopic="tele/BlindControl2/STATE", transformationPattern="JSONPATH:$.ChargeCapacity" ] + Type number : distime "Discharge Time" [ stateTopic="tele/BlindControl2/STATE", transformationPattern="JSONPATH:$.RemainingTime" ] + Type number : battvolt "Battery Voltage" [ stateTopic="tele/BlindControl2/STATE", transformationPattern="JSONPATH:$.BattVoltage" ] + + } + +} +