I first would like to thank everyone in this forum as well as the developers. I have been considering home automation for a while and when I discovered sonoff decided to give it a shot. I’ve read the openhab manual (every word) at least 3 times, the tasmoda wiki a lot, and everything I can find on mqtt and mosquitto.
I have Openhab 2.1 and mosquitto installed on a Pi B+ through openhabian. I can Ssh in, and I can “Hello World”. I have Tasmota flashed to 1 sonoff basic installed on an extension cord and can toggle it through it built in web page.
I have installed the mqtt binding and the mqtt action in the paper UI. My config files are as follows:
Hello,
I would use a MQTT-Client like MQTTLens to check whitch part of the communication fails.
You can see, if and what openHAB sends and can try to switch the Sonoff manualy.
I think also, you don’t need MQTT Action.
I dont know tasmoda but ESPEasy may be a alternative and it doesn’t need a .thinks-definition.
My mqtt.cfg
I have never seen a thing been defined using the mqtt binding. I believe that this is wrong and it won’t work.
Did you find any material giving such an example?
no need for that. delete that file. MQTT is a 1.x binding and doesn’t use the concept of Things (this is valid only for 2.x bindings)
Your configs look good but you are using 2 (switch type) items with the same name (cord1)… don’t do that
Why do you need another item bound to the network channel?
@Dim
Thank you I’ve already read and exercised your linked topic. @hr3
Thank you. Trying to figure out MQTTLens now. And, thank you for the example item.