I've tried integrating MQTT into an Automagic setup.
I'm using this app: https://play.google.com/store/apps/deta ... .mqttclpro
When I try to use the "Publish MQTT Message" plugin action of the app to send an MQTT message, there's a pop-up notifying me that the app have crashed, and no message is sent.
I've tried to use it with Tasker with the same configuration, and it works, so I'm assuming it's a problem with Automagic's Tasker plugin integration, which is why I brought this up here.
It seems to occur with any configuration at all, even if the app is not connected to an MQTT broker in the first place.
The logs don't show anything except that the plugin action have started or ended execution.
Potentially notable is that the plugin configuration resets every time you want to edit it. It does appear properly in the auto-generated action name, but the override settings are blank.
I hope you can help me with this issue.
My Automagic version is 1.32
My problem persisted both on a Nexus 5X running Android 7.1.1 and a Nexus 5 running Android 6.0.1
If you need any further information to take care of this issue, I'd be glad to provide it.
Issue with MQTT Client Plugin
Moderator: Martin
Re: Issue with MQTT Client Plugin
Hi,
The plugin implements the plugin protocol in a wrong way. I'm very surprised that Tasker supports this. I'm curious, does replacing variables by Tasker in the message work?
I'll contact the developer of the plugin so he can fix it.
Regards,
Martin
The plugin implements the plugin protocol in a wrong way. I'm very surprised that Tasker supports this. I'm curious, does replacing variables by Tasker in the message work?
I'll contact the developer of the plugin so he can fix it.
Regards,
Martin
Re: Issue with MQTT Client Plugin
Hey,
Thank you for your quick response.
I haven't done too much work with Tasker, so I'm not sure how exactly you'd go about replacing variables there.
However, there is a video, presumably by the plugin's author, showcasing its use. In the video, he uses "%BATT" as the message, which is then properly replaced with the battery percentage.
https://www.youtube.com/watch?v=i8d_ueG6R-g
I guess I'll have to wait a bit for completely integrating my phones into my MQTT network, as I don't know enough about the technical side of things to make the necessary contributions to the project on GitHub myself.
Nevertheless, thank you very much again for your assistance!
Thank you for your quick response.
I haven't done too much work with Tasker, so I'm not sure how exactly you'd go about replacing variables there.
However, there is a video, presumably by the plugin's author, showcasing its use. In the video, he uses "%BATT" as the message, which is then properly replaced with the battery percentage.
https://www.youtube.com/watch?v=i8d_ueG6R-g
I guess I'll have to wait a bit for completely integrating my phones into my MQTT network, as I don't know enough about the technical side of things to make the necessary contributions to the project on GitHub myself.
Nevertheless, thank you very much again for your assistance!

Re: Issue with MQTT Client Plugin
Have you tried to use the MQTT Publisher (Tasker plugin) https://goo.gl/aEmyGK ?
It works for me.
It works for me.