i have myself a light switch controller, the same one that john built in episode #25, ive spent the past 2 day trying to get it to work, but i just cant seam to wrap my head around how to get it to work with MQTT. from my understanding (correct me if im wrong.
String messageString = String(panelId) + “-” + String(buttonArray[buttonId]);
//String topicString = “device/” + String(panelId) + “/button”;
String topicString = “buttons”;
This part that publishes to MQTT would publish to buttons/20-41, if the panel id was 20 and button 41? or have i just completely confused myself in this
i think im battling a few issues here, the other being the actual connection to Mosquitto from openhab.
any help is much appreciated
EDIT, i have got openHab and the light-switch controller (ethermega) now talking to mosquitto, just not in the same topic by the looks of things
Edit 2, @jon Might actually have the most help here, im sure im sitting right on the answer, more then likely ive just set up my broker incorrectly. or rules