I am using the mcsMQTT plugin with great pleasure for a number of years now (Many thanks Michael). Many relative cheap power plugs are in my house, all flashed with tasmota. One thing that is sometimes needed, is to connect to the web interface of a tasmota device. In the beginning I used the /INFO2:IPAddress field in a homeseer device. This gave two challenges: 1) You always have to type the ipaddress in a new browser window to connect and 2) the /INFO2:IPAddress is not up to date. This is only send during the boot of a tasmota device and can later change if you use DHCP.
I solved 1 in the following way (by making the devicestring in homeseer clickable. It will open the webUI of tasmota in a new browser window):
To make the devicestring clickable do this in mcsMQTT: create a device with the ipaddress:
And make the following regular expression (RegEx):
for copy/past: (.+)
for copy/past: <a href="http://$1"target="_blank">$1</a>
2) To fix the updating of the ipaddress you need to use this topic (status 5 in tasmota) and have it updated regularly:
btw: first execute the STATUS 5 command in the console of your tasmota device so it sends the STATUS 5 message to mcsMQTT
Unfortunately the status 5 is not send automatically by tasmota. I created the following 2 rules to do that:
# create rule
rule1 on rules#timer=1 do status 5 endon on rules#timer=1 do ruletimer 600 endon
# enable rule
rule1 ON
#Send status 5 on boot
rule2 on System#Boot do ruletimer1 1 endon
rule2 ON
You can send this to your device using the publication list function of mcsMQTT (or type it in the console of your tasmota device)
Hoop this is useful for anyone. Or let me know if you have a better way.
Regards,
Bart
(btw: I don't use the %prefix% on my tasmota devices, so your topics my look different)
I solved 1 in the following way (by making the devicestring in homeseer clickable. It will open the webUI of tasmota in a new browser window):
To make the devicestring clickable do this in mcsMQTT: create a device with the ipaddress:
And make the following regular expression (RegEx):
for copy/past: (.+)
for copy/past: <a href="http://$1"target="_blank">$1</a>
2) To fix the updating of the ipaddress you need to use this topic (status 5 in tasmota) and have it updated regularly:
btw: first execute the STATUS 5 command in the console of your tasmota device so it sends the STATUS 5 message to mcsMQTT
Unfortunately the status 5 is not send automatically by tasmota. I created the following 2 rules to do that:
# create rule
rule1 on rules#timer=1 do status 5 endon on rules#timer=1 do ruletimer 600 endon
# enable rule
rule1 ON
#Send status 5 on boot
rule2 on System#Boot do ruletimer1 1 endon
rule2 ON
You can send this to your device using the publication list function of mcsMQTT (or type it in the console of your tasmota device)
Hoop this is useful for anyone. Or let me know if you have a better way.
Regards,
Bart
(btw: I don't use the %prefix% on my tasmota devices, so your topics my look different)
Comment