Hi all, first project and quite new to all this, so all help appreciated.
I wanted to create a simple remote switch for a light in OpenHab, which will communicate through MQTT to an esp8266 which is running arduino on.
However, I can't find any info online about how to se these up for a on/off switch.
I can get the esp8266 to connect to my network, and have the openhab demo all working, but I don't know how to get the things to speak to each other. I'm new to openhab, so not sure what needs to be in the 'items' or 'rules' page. The openhab sitemap is just a switch.
Also, not sure what is needed in the ardiuno scetch to receive commands from openhab.
If anyone can offer any adivce, or knows of a guide for this I would be really greatful.