RasbPi 3 B+
openHABian 4.19.66
openHAB 2
Greetings everyone so I flashed Tasmota onto a NodeMCU v3, and hooked up a DTH11 (temp & humidity sensor) to it, which works fine, however I’m having trouble with the configuration for openHAB. I already had a look through some posts here, and the Tasmota article, and tried to configure it through both PaperUI and the config files, without much luck.
Comunity articles: Openhab binding tasmota
Tasmota article: https://tasmota.github.io/docs/#/integrations/openHAB
Config files:
//Things file
Bridge mqtt:broker:SenBroker "SenBroker" [ host="192.168.0.97", port=1883, secure=false, clientID="SenBroker"]
{
Thing topic NodeMCU "NodeMCU" {
Channels:
Type number : Humidity [stateTopic="cmnd/tasmota/", transformationPattern="JSONPATH:$.DHT11.Humidity"]
Type number : Temperature [stateTopic="cmnd/tasmota/", transformationPattern="JSONPATH:$.DHT11.Temperature"]
}
}
//Items file
//Lighting Relays
Switch channel1 "Living Room" <lightbulb> [ "Switchable" ] { gpio="pin:23 activelow:yes initialValue:high" }
Switch channel2 "Kitchen" <lightbulb> [ "Switchable" ] { gpio="pin:24 activelow:yes initialValue:high" }
Switch channel3 "Bath" <lightbulb> [ "Switchable" ] { gpio="pin:17 activelow:yes initialValue:high" }
Switch channel4 "Bedroom 1" <lightbulb> [ "Switchable" ] { gpio="pin:27 activelow:yes initialValue:high" }
Switch channel5 "Bedroom 2" <lightbulb> [ "Switchable" ] { gpio="pin:22 activelow:yes initialValue:high" }
Switch channel6 "Bedroom 3" <lightbulb> [ "Switchable" ] { gpio="pin:16 activelow:yes initialValue:high" }
Switch channel7 "Garage" <lightbulb> [ "Switchable" ] { gpio="pin:19 activelow:yes initialValue:high" }
Switch channel8 "Exterior" <lightbulb> [ "Switchable" ] { gpio="pin:26 activelow:yes initialValue:high" }
//Ambient Sensors
Number Temperature "Temperature [%s °C]" <temperature> {channel="mqtt:topic:SenBroker:NodeMCU:Temperature"}
Number Humidity "Humidity [%s %]" <humidity> {channel="mqtt:topic:SenBroker:NodeMCU:Humidity"}
sitemap home label="SmartHome"
{
Frame label='Demo'
{
Switch item=channel1
Switch item=channel2
Switch item=channel3
Switch item=channel4
Switch item=channel5
Switch item=channel6
Switch item=channel7
Switch item=channel8
Text item=Temperature
Text item=Humidity
}
}