diff --git a/Wemos-D1-Mini-and-DHT11-Shield-Humidity-&-Temperature.md b/Wemos-D1-Mini-and-DHT11-Shield-Humidity-&-Temperature.md index 2b758bb8..1206f303 100644 --- a/Wemos-D1-Mini-and-DHT11-Shield-Humidity-&-Temperature.md +++ b/Wemos-D1-Mini-and-DHT11-Shield-Humidity-&-Temperature.md @@ -14,4 +14,35 @@ In the Configuration -> Configure Module page, select the following: ### Tasmota Main After reboot of the device the temperature and humidity are displayed. - \ No newline at end of file + + +### OpenHab configuration + +sonoff.items: +``` + // DHT-6 + Number DHT6_Temp "Bathroom DHT-6 [%.1f °C]" + (gTemperature,gTemperatureRoom) + { mqtt="<[broker:tele/sonoff-dht-6/SENSOR:state:JSONPATH($.DHT11.Temperature)]" } + Number DHT6_Humidity "Bathroom DHT-6 [%.1f %%]" + (gHumidity) + { mqtt="<[broker:tele/sonoff-dht-6/SENSOR:state:JSONPATH($.DHT11.Humidity)]" } + Switch DHT6_Reachable "DHT-6 reachable" + (gReachable) + { mqtt="<[broker:tele/sonoff-dht-6/LWT:state:MAP(reachable.map)]" } + Number DHT6_RSSI "DHT-6 RSSI [%d %%]" + (gRSSI) + { mqtt="<[broker:tele/sonoff-dht-6/STATE:state:JSONPATH($.Wifi.RSSI)]" } +``` + +sonoff.sitemap +``` + Frame { + Text item=DHT6_Temp labelcolor=[DHT6_Reachable == "ON" = "green",DHT6_Reachable == "OFF" = "red"] { + Text item=DHT6_Temp + Text item=DHT6_Humidity + Text item=DHT6_Reachable + Text item=DHT6_RSSI + } + } +``` \ No newline at end of file