Having some issues and I’m pretty sure it’s down to my configuration. I’ve got a wemos d1 setup with 1 relay and an input from a magnetic door contact. These are both working fine on the tasmota gui. When I connect them to openhab the relay is working perfectly so I can press activate on my sitemap on the garage door and it opens and closes. There part I have an issue with is the magnetic contact. The contact is setup as a switch on the tasmota and controls a dummy relay showing at POWER2 Here is my configuration, can anyone see if I’ve made a mistake please.
Sitemap
Switch item=Garage_Door_Opener mappings=[ON="Activate"]
Switch item=Garage_Door_Opener_Status mappings=[OFF="Open", ON="Closed"]
Things
Thing mqtt:topic:Garage_Door_Opener "Garage Opener" (mqtt:broker:MQTTBroker) {
Channels:
Type switch : relay1 "Power" [
commandTopic="cmnd/Garage_Door_Opener/POWER1",
on="ON",
off="OFF"
]
Type switch : relay2 "Door Contact" [
stateTopic="stat/Garage_Door_Opener/POWER2",
on="ON",
off="OFF"
]
}
Items
Switch Garage_Door_Opener "Garage Opener" <garagedoor> [ "Switchable" ] {channel="mqtt:topic:Garage_Door_Opener:relay1"}
Switch Garage_Door_Opener_Status "Garage Status" <garagedoor> {channel="mqtt:topic:Garage_Door_Opener:relay2"}
Thank you in advance