Hi all,
Is there a way to determine if a new ESP comes on the network, that I can get which new ESP is now on the network? I want to save to DB (using nodeRED) the ones announcing itself, maybe with a workflow to first approve once announcement have been made, and every time ESP's signs onto the network, (say after a power loss) check if I know about it, and create necessary actions as result (on nodeRed, with MQTT).
Maybe this is a change request, if no other way this can be done?
Maybe then, the announcements goes to 'sensors/espeasy/announceESP/#' MQTT channel, and it delivers a json formatted string with the following fields:
1) name; 2) unit number; 3) IP address; 4) build; 5) Mac addresses; ESP chi id.
ESP 'announcement' when coming onto network
Moderators: grovkillen, Stuntteam, TD-er
ESP 'announcement' when coming onto network
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.
Re: ESP 'announcement' when coming onto network
Per haps you can use a rules event?
Like this. I have no experience at all with NodeRed, so may be I write nonsense here.
On System#Boot do //When the ESP boots, do
Publish <topic>,<value>
endon
Like this. I have no experience at all with NodeRed, so may be I write nonsense here.
On System#Boot do //When the ESP boots, do
Publish <topic>,<value>
endon
Re: ESP 'announcement' when coming onto network
Did not think of that, well done !!!!
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.
Re: ESP 'announcement' when coming onto network
But I still think this could be a good function, with the rules, will have to add it in every time when flashing a new ESP, by hand...
and I still do not have the 5 fields using a rule:
1) name; 2) unit number; 3) IP address; 4) build; 5) Mac addresses; ESP chip id.
and I still do not have the 5 fields using a rule:
1) name; 2) unit number; 3) IP address; 4) build; 5) Mac addresses; ESP chip id.
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.
Re: ESP 'announcement' when coming onto network
BertB wrote:Per haps you can use a rules event?
Like this. I have no experience at all with NodeRed, so may be I write nonsense here.
On System#Boot do //When the ESP boots, do
Publish <topic>,<value>
endon
Who is online
Users browsing this forum: Bing [Bot] and 28 guests