Why don't you write mysensors library for ESP8266 similar to the nRF one ?
-
I was about to ask the same question - why there's no possibility of using NodeMCU ESP8266 with MySensors in official way, as it's the simple way to deploy sensor network in home :-) for most users.
I'd like to cover my 2nd location with sensor network, can't decide either to order nodemcu's or go with Arduino.
The worst part for me is that there's no clear instruction how to flash nano's with custom firmware, so they can be updated via OTA. -
I found the following info which is looking promising
ESP made easy -
I
m still wondering, why there is no possibility to make nodes (only!) with ESP 8266 instead of an arduino and the wellknown radios. You must only connect the voltage and the sensor(s) and you have finished! The are very cheap and can be flashed by IDE. Other projects do consider this facts, here it gives only some experimental stuff. It is for my opinion much easyer than soldering this radios. Dont understand! -
Use the ESP Gateway sketch.
Remove the NRF-radio define. Present your sensors and start sending data like in any other example.Can you elaborate on this a bit more? I have a "standard" mysensors setup with various nrf24-based nodes and a serial gw.
How can I add an esp8266 node to this setup? I understand that I need to use the sketch and present the sensors as usual.
But how the existing serial gw is going to "hear" the ESP node?
Or I need an Ethernet GW to be able to add esp node? -
How to add another (esp) gateway depends on the controller you're using. It will not join your current serial gateway.
-
Got it, thx. Just to clarify: if I want eg 5 x esp8266 nodes, do I need to add them as 5 gateways, or I add one as a a gateway and other 4 connect to it?
-
@korttoma said:
as 5 gateways.
Hello everybody, sorry to step in and to resume an hold thread, but I was reading it and I'm not sure if the initial question was answered, so I will try to rephrase that adding my contribution.
Rf nodes communicate between them using a mesh network and using the best route between them to send messages. Now, I suppose the question was: can I create a node using Wifi transport and not RF ? Of course using ESP8266 and not Arduino+RF.
Ok, it's clear the ESP can be used as a gateway, and it's also clear we can add sensors to that gateway. But I imagine this is not the solution. Gateways rely on the Access Point they connect to (SSID and PW). If the AP is momentary not available, sensors will go offline. And Wifi connection to AP usually drops, so that's not a rulable solutions to implement nodes.I'm evaluating a similar solution: creating a mess network of sensors using ESP8266. I've looked around the web, and found that a few works are going on on mesh network using the ESP, but none are a definite solution. Expressif has published a a Mesh SDK, (https://espressif.com/sites/default/files/documentation/30a-esp8266_mesh_user_guide_en.pdf), but it doesn't seem to address completely the problem, or by the way could not find sample installations. Another library (https://github.com/Coopdis/easyMesh) has been developed, but development seems now stopped, and the main problem is that each ESP in the mesh publish his different SSID, while a single SSID for all the mesh would be desirable.
All that said, I would like to understand if you're going to investigate using the ESP8266 as a node (not a gateway). That would probably require using a low-level network communication between ESP, but I'm not a network expert, so can't really say.
It would be really interesting. It would allow to create a complete mesh network of sensors/actuators using only ESP
Thanks for attention.
Antonio
-
@korttoma said:
as 5 gateways.
Hello everybody, sorry to step in and to resume an hold thread, but I was reading it and I'm not sure if the initial question was answered, so I will try to rephrase that adding my contribution.
Rf nodes communicate between them using a mesh network and using the best route between them to send messages. Now, I suppose the question was: can I create a node using Wifi transport and not RF ? Of course using ESP8266 and not Arduino+RF.
Ok, it's clear the ESP can be used as a gateway, and it's also clear we can add sensors to that gateway. But I imagine this is not the solution. Gateways rely on the Access Point they connect to (SSID and PW). If the AP is momentary not available, sensors will go offline. And Wifi connection to AP usually drops, so that's not a rulable solutions to implement nodes.I'm evaluating a similar solution: creating a mess network of sensors using ESP8266. I've looked around the web, and found that a few works are going on on mesh network using the ESP, but none are a definite solution. Expressif has published a a Mesh SDK, (https://espressif.com/sites/default/files/documentation/30a-esp8266_mesh_user_guide_en.pdf), but it doesn't seem to address completely the problem, or by the way could not find sample installations. Another library (https://github.com/Coopdis/easyMesh) has been developed, but development seems now stopped, and the main problem is that each ESP in the mesh publish his different SSID, while a single SSID for all the mesh would be desirable.
All that said, I would like to understand if you're going to investigate using the ESP8266 as a node (not a gateway). That would probably require using a low-level network communication between ESP, but I'm not a network expert, so can't really say.
It would be really interesting. It would allow to create a complete mesh network of sensors/actuators using only ESP
Thanks for attention.
Antonio
@antlomb
My personal opinion: when inititial euforia about ESP8266 has ended, people started to realize that the chip is actually not that reliable for solid tasks like home automation.
Besides, it has huge problems with deep sleep and even if they are fixed, the module reboots on every wake-up consuming a lot on start up