Variables from MQTT Client by Webneurons

Mclovin024

New member
I was hoping someone could provide some insight on how to use the varmqtttopic and varmessage fields when using this plugin as a trigger. Currently I'm not able to get the topic or message stored into a MD variable. I have tried creating local or global variables with the exact name but when i trigger the macro the variables(string) remain empty and the message is not saved it a way that is usable within MD. This would be fantastic for real time alerts from my security cameras that support MQTT messaging. Any help would be appreciated. Also the variable field in the plugin does not permit special characters so things like [lv=message] or %message are not an option here.
 

FrameXX

Well-known member
Also the variable field in the plugin does not permit special characters so things like [lv=message] or %messag
Unfortunately this is not a MacroDroid fault. Some plugin triggers allow to save trigger variables and MacroDroid supports this and shows a setup window on where to save these variables. Do you get this window after setting up a plugin trigger?

View attachment 2424
 

Mclovin024

New member
Unfortunately there is only 1 screen that asks for information and i have attached it below, i am familiar with that additional screen with other plugins i use like AMdroid Touchtask and httpshortcuts but MQTT client didnt offer this option.



1647499407162.png1647499738910.png
 

dsnz

Well-known member
hm.. do you use hivemq cloud ?
in that case and if you can wait some days, I could try it over the weekend (I don't have any mqtt devices but I could play with all setup) and perhaps see if I could help
 

Mclovin024

New member
hm.. do you use hivemq cloud ?
in that case and if you can wait some days, I could try it over the weekend (I don't have any mqtt devices but I could play with all setup) and perhaps see if I could help
Thanks for offering to help. If your willing I can create another HiveMQ account with events/messages from an MQTT device and provide you a device credential so you play around with real data.
 

Mclovin024

New member
I was poking around on the Github for this app and seem to see a few open issues that are related to my problem. Not sure if they are helpful in indentifying what needs to be don't to get the variables to work. The app dev seems to have there source code listed but don't know what is all involved in taking an app that has variables that work with tasker and making it compatible with MD.

MQTT Client plugin - no message variable in Automate available​


Varmqtttopic assistance with tasker​

 

Mclovin024

New member
Unfortunately this is not a MacroDroid fault. Some plugin triggers allow to save trigger variables and MacroDroid supports this and shows a setup window on where to save these variables. Do you get this window after setting up a plugin trigger?

View attachment 2424
yeah I understand that this is not a issue with macrodroid but am crurious to what can be done to fix work around it.

Has anyone ever though or tired to make an app simular to MDHelper that will pretend to be tasker and capture variables from unsupported apps and pass them along to macrodroid. Not sure something like this is possible or how involved it would be to develop. Would be nice to have something that offers universal compatibility with tasker plugins vs relying on the original dev to code in support for MD.
 
Top