Hi,
I was planning to use a NodeMCU v2 (ESP8266) (with usb charger) and add these sensors: The Ultimate Raspberry Pi & Maker Store … ure-sensor
They have a digital output. I wanted to connect 5 of these sensors to different GPIOs of one NodeMCU.
Then I wanted to integrate the NodeMCU with the sensors into OpenHAB2. I did read that I need to do that with MQTT.
Can anybody confirm if it is possbible to use several sensors on one NodeMCU with ESPEasy and integrate it with MQTT in OpenHab2? I just need digital output of the sensors.
Getting the mqtt into openhab is no problem, the other half of your questions is better asked at the espeasy project. Have not tried that project as I like to program the devices myself which if you do that then multiple sensors are possible. If you need a working mqtt set of rules to copy find my milight thread in the solutions area of this forum.
I’ve used NodeMCU with 4 sensors (RF proximity, humidity, temp and voltage) and MQTT for sending sensor data to a Mosquitto broker running on Ubuntu 17.10 server. It’s quite easy to get it all working. I used this link as a starting point and developed from there. Alas, I cannot share the code as I do not have the intellectual property rights (commercial project), but I think you are dead on with respect to the technologies you’ve selected.
Although, I did not connect anything to OpenHab in this project, that should not be any problem.