Answer the question
In order to leave comments, you need to log in
How to combine esp8266 modules into a single smart home network?
I thought about something like this:
Is it possible to mesh several wi-fi relays and a NodeMCU board in a similar way?
So, to manage all devices through a single web interface.
As planned, NodeMCU once every (second) will send the status of devices ('/ledon', '/ledoff', etc.) to the relay, and they, in turn, will switch devices (on / off the light) and send back the changed status device (lamp on).
At the same time, as planned, all relays communicate only with the main NodeMCU board.
upd: thanks everyone for the ideas
Answer the question
In order to leave comments, you need to log in
Yes, according to your scheme, you can do it. You can read about the mesh network here , on the same site there are good lessons on a web server with a websocket. But you need to understand that you will have to write a lot, the system will turn out to be isolated, incompatible with others. You can write and get a gateway on the main esp mqtt client, but you still have to support the system yourself. It is much easier and cheaper to use the same sonof, home assistant has integration for sonof on native firmware. In addition, the performance of the web server on the ESP leaves much to be desired.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question