I turn to you because I’m struggling a little to manage my arduino cards from OpenHAB. Would anyone here know how to point me?
I have two arduino mega 2560 cards that I would like to manage since OH. One corresponds to all my inputs (54 inputs) and the other to all my outputs (54 outputs). I installed MQTT and each arduino card has an ethernet shield. It’s after that I’m confused. How to receive all my inputs / outputs on OH? Surely you have to upload a sketch on the arduino to ask all this but I am a little lost. I found this topic that help me to setup MQTT in the sketch but I don’t know what is useful in my case.
Can someone help me configure all of this correctly?
Yes, I downloaded the arduino library and added the MQTT binding to OpenHAB but I’m lost in the configuration of my arduino sketch. How do I get the status of my entry pin 1 from OH? Or, how do I send a pin out state from OH? …
I had uploaded the sketch “basic” (content in the library) but it does not help me too much.
It’s probably very simple and I may be a little silly but impossible to understand how to send or receive a pin state.