Issue with MQTT Client Plugin

Post your questions and help other users.

Moderator: Martin

Post Reply
Hepor
Posts: 2
Joined: 11 May 2017 16:43

Issue with MQTT Client Plugin

Post by Hepor » 11 May 2017 19:24

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.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Issue with MQTT Client Plugin

Post by Martin » 11 May 2017 20:42

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

Hepor
Posts: 2
Joined: 11 May 2017 16:43

Re: Issue with MQTT Client Plugin

Post by Hepor » 11 May 2017 21:25

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! :)

alexsahka
Posts: 12
Joined: 25 Apr 2014 18:47

Re: Issue with MQTT Client Plugin

Post by alexsahka » 13 Nov 2017 18:56

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

Post Reply