I am newbie to almost everything, forgive me if I really asking something stupid,
I final flash to sonoff, and able to read MQTT from mossiquitto, also by command to to remote on/off,
now the problem is how to integrate to openHab, I have installed MQTT binding (loolks no gui to setup), In MQTT-Binding and some other Guide all mention openhab.cfg, problem is I don’t found it, is these the difference way on openhab to openhabian?
Please any expert may spend little time on me and let me know how to get it works?
openhab.cfg is the binding configuration file from openHAB1, which is splitted into individual binding config files in openHAB2. You will find more information about that in the docs:
For MQTT: the config you have found for the MQTT part in openhab.cfg has to be transferred into mqtt.cfg (you have to create that file manually) and the prefix mqtt: has to be removed (as explained in the docs mentioned above).
assuming the broker you have setup is named mosquitto.
Be aware that because of [quote=“hamwong, post:48, topic:15024”]
I am newbie to almost everything
[/quote]
the MQTT binding is not the easiest to set up
thanks for helping me by sihui and seaside, so appreciate especially I see there is answer when I just wake up
so many thing to dig on openhab as I just found Karaf Console when I click into the page you refer, and found why some Guide have console command start with “openhab>” now I get it.
I got a stupid question, is it openhabian is totally same as openhab, all the file location and config storage is same as openhab standalone install pack? as I always get confused when I found Guide/demo on google, their store location can’t found in mine, I need to clarify due to OH version issue or due to openhabian
I get sonoff works on “things” now, I able to get it show in Homekit and control (just not getting status, don’t know why yet), I want to know does MQTT items need to create “Things” like “Wemo Siwtch” first? or set it up in sitemap?
currently I still not able to get control under OH2, only through homekit. to OH2 itmes and get linked
No, MQTT is a 1.x Binding. Only 2.x Bindings create things and channels.
For configuration of the MQTT binding strictly follow:
Yes, there is no difference between an openHAB2 version in openHABian and an openHAB2 version installed through apt-get or manually.
openHABian has in addition to that a lot of features and config options available if you are not familiar with setting up a Linux based operating system together with openHAB2 on a Raspberry Pi platform.
I get sonoff works, with status on homekit although I don’t know how I actually make it work.
Thanks for all the support, really helps and save me lot of time.
Is mqtt the only way to communicate with a sonoff device in openhab or is there another firmware where i don´t need mqtt? Maybe controll with http-binding?
There probably is but MQTT is really the best option to consider here. MQTT is an amazing piece in the IoT puzzle. Are you afraid to add yet another component to your home automation system?