Need help with ESP8266 Node in MQTT Network
-
Hi guys,
I would like to add an ESP8266 WIFI Node to my existing NRF24 MQTT Network. I´ve set up a Mosquitto broker on my LAN connected Raspberry pi with openhab2 running on it acting as the controller.
Unfortunately I have no idea where to start to include the new WIFI node to talk to my controller. Does someone know a tutorial could give me some code examples of where to start?Thanks in advance!
-
@siod
ESPEasy Settings for Sonoff Devices in an Openhab2 installation – 18:12
— Blair ThompsonSonoff configured as 2-way switch – 04:19
— Pete Stothers
-
well, this looks quiet interesting, but I think I´m quicker if I just use my actual Arduino IDE setup and some lines of code to achieve my goal because I feel more comfortable wit this IDE...
But I will have a look at ESPEasy anyway, thanks for that!!
edit: Do I have to upload the ESP8266 Gateway Code to every ESP8266 Node?
What I actually want to achieve is to build a IR Sender which sends IR commands to my TV or other IR devices that where sent by openhab.
-
@siod
Maybe your task is done by somebody:
IR_MQTT_OPENHABOr with ESPeasy look at this post:
link textAnd this thread:
link text
-
edit: Do I have to upload the ESP8266 Gateway Code to every ESP8266 Node?
Yes, you do have to. Just use seperate MQTT topics for every node/gateway.
I suppose you're looking for the MySensors / MQTT integration in general?
-
Is the ESP8266 flashed and working? Are you able to see the MQTT messages on the broker?
(https://www.mysensors.org/build/mqtt_gateway) -
You may connect the Mosquitto with OpenHAB via the (generic) MQTT binding (search the forum about how this could be achieved) or via the MySensors binding for OpenHAB2.
-
-
Hi guys,
thanks to both of you! Thanks @TimO for the general information and thanks to @kimot for finding the exact solution for what I was looking for. Awesome!!
I will give it a try as soon as possible...