I'm new here but have been using ESPeasy for some time. I love the firmware but have some suggestions for the road map. I would like to update my nodes through MQTT instead of using the WebGUI. MQTT is able to carry quite a lot of data and if I could just send my settings/config (+ rules?) file as a JSON message it would be a lot easier to do the procedure more automatically. Maybe even send a firmware path for future updates.
Another thing I have created in order to have ALL my nodes respond on commands is to use MQTT import and "sniff" for the topic "cmdMQTT". I have the cmdMQTT retained at server with the value of 1, that means that everytime a node is started/booted it will signal out it's IP number (see rules below). Any suggestions is welcomed!
Rules (you might add more numbers for more responses):
Code: Select all
on sniff#cmdMQTT=1 do
Publish %sysname%/IP,%ip%
endon
on sniff#cmdMQTT=2 do
Publish %sysname%/Time,%systime%
endon
PS2. You all know that leading forward flash is considered bad practice in MQTT topic format. Link>>
Don’t use a leading forward slash
It is allowed to use a leading forward slash in MQTT, for example /myhome/groundfloor/livingroom. But that introduces a unnecessary topic level with a zero character at the front. That should be avoided, because it doesn’t provide any benefit and often leads to confusion.