user35264: What is the best wired way to communicate between multiple NodeMCU ESP8266 boards for home automation.
Every room should get at least a light, temp, PIR and xx relay modules to switch things on and off.
To connect all these sensors the GPIOs from one NodeMCU are sometimes not enough.
To reach this goal I planned to install in every room one NodeMCU as gateway and multiple NodeMCU as nodes for my sensors. The gateway will receive and forward information from/to my openHAB center via MQTT messaging.
I thought to use an RS-485 2-Wire connection between my sensor nodes and the room gateway. The gateway from my room will be connected via wifi or wired cable to my network.
I2C seems more to be for communication directly on PCBs or only short wiring.
Do you have any suggestions for me, is my plan possible? Any better ideas?

user4143: If you really wanted wired communication then yes, RS-485 is the way to go. 
In any installation where you will be running cables in the vicinity of mains wiring you will have noise. I2C is very bad with noise and not a good choice for any off-board wiring. RS-485, however, owing to the balanced line nature of the signalling, is designed to reject common mode noise such as is induced by mains wiring.
I would ask, though, why use ESP8266 as remote wired nodes? It seems a real waste to use a WiFi module for wired communication - a smaller, simpler, lower powered board (Arduino Micro / Mini maybe [3.3V, 8MHz version for simplicity of interfacing]) would be far more suitable for such a role.

35264: <p>What is the best <strong>wired</strong> way to communicate between multiple <strong>NodeMCU ESP8266</strong> boards for home automation.</p>

<p>Every room should get at least a light, temp, PIR and xx relay modules to switch things on and off.</p>

<p>To connect all these sensors the GPIOs from one NodeMCU are sometimes not enough.</p>

<p>To reach this goal I planned to install in every room one NodeMCU as gateway and multiple NodeMCU as nodes for my sensors. The gateway will receive and forward information from/to my <strong>openHAB</strong> center via <strong>MQTT</strong> messaging.</p>

<p>I thought to use an <strong>RS-485</strong> 2-Wire connection between my sensor nodes and the room gateway. The gateway from my room will be connected via wifi or wired cable to my network.</p>

<p>I2C seems more to be for communication directly on PCBs or only short wiring.</p>

<p>Do you have any suggestions for me, is my plan possible? Any better ideas?</p>
 4143: <p>If you really wanted wired communication then yes, RS-485 is the way to go. </p>

<p>In any installation where you will be running cables in the vicinity of mains wiring you will have noise. I2C is very bad with noise and not a good choice for any off-board wiring. RS-485, however, owing to the balanced line nature of the signalling, is designed to reject common mode noise such as is induced by mains wiring.</p>

<p>I would ask, though, <em>why use ESP8266 as remote wired nodes?</em> It seems a real waste to use a WiFi module for wired communication - a smaller, simpler, lower powered board (Arduino Micro / Mini maybe [3.3V, 8MHz version for simplicity of interfacing]) would be far more suitable for such a role.</p>
