PhracturedBlue / ESP8266MQTTMesh

Self-assembling Mesh network built around the MQTT protocol supporting OTA
GNU General Public License v3.0
264 stars 79 forks source link

Node Friendly Name and Is Node Alive? #64

Open hubshi opened 5 years ago

hubshi commented 5 years ago

Make sure you have the latest version of ESP8266MQTTMesh before reporting an issue.

Please Provide the following information:

If you are you using platformio or Arduino, which one? Arduino

Description of problem:

Thank you for this wonderful piece of software which helped me to build my dream network of home automation. I have 2 questions:

  1. Is it possible to assign Nodes a friendly name like "Kitchen Temperature" etc. ? so instead of using the device id which become difficult sometimes to understand .

  2. Is it possible to track if a particular Node is Online or Not.

I am using Node-Red for routing and visualization and Internal Mosquito MQTT Broker.

Best Regards.

simone1999 commented 4 years ago

hi, for your Name Issues i would suggest you to take Node Red and just "map" the device ID to a more meaningful Name, you could even only subscribe to the normal Nodes with your "mapper" Flow and resend the Packets with the newly mapped Names, and just subscribe to this retransmitted Packages with the rest of your Node Red Stuff.

by the Way i am quite interrested in what home Automation stuff you are doing with this System, how manny Nodes you have and if you are only using Node Red itself or other software together with Node Red as well.

simone1999 commented 4 years ago

oh, and my fork of this Project (will be largely updatet the next days) implements an ping option, so you can ping the Nodes and receive a msg back if it is reachable. I also used this in my Node Red and IOBroker Configuration to track when a node turns off , which sadly happens way to often at the moment for me, but hopefully will be fixed in the next days in my fork. (Link to my Fork: ESP8266MQTTMesh)

eporocrail commented 4 years ago

@simone19999 Would you be so kind to let us know when your fork is updated. Where I am going to publish my model railroad system I would prefer to exclude that nodes of the network are closing down as much as possible. Regards Ellard

simone1999 commented 4 years ago

hi, my fork is now updated, manny Stability Issues are solved now, and from my homenetwork i can ensure you that it helped a lot stability wise! the ping feature was also added a long time ago, yust isn't documented yet (kind of all changes i made till now). To use the Ping, you simply have to send the Node anny payload to its Topic with the subtopic "Ping" and it will respond i think with the outtopic and suptopic "Ping" and as a payload it has a 1. To track every node just send the "Ping" to "esp8266-in/broadcast/Ping" so every node receives it and answers. Then you can build routines (maybe in Node-Red) to track if every Node respondet to your ping.

Hope my Fork helps you, and most importantly: have Fun!!!

eporocrail commented 4 years ago

Hi,

Bootsequence looks much cleaner