Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT Client plugin - no message variable in Automate available #87

Open
fuslwusl opened this issue Feb 12, 2022 · 1 comment
Open

MQTT Client plugin - no message variable in Automate available #87

fuslwusl opened this issue Feb 12, 2022 · 1 comment

Comments

@fuslwusl
Copy link

I have installed the MQTT Client App that is also a Tasker plugin that can be selected as plugin in Automate.
I want to use the Speak block with the Input argument Message containing the mqtt message of this Tasker plugin.

I configured the Plug-in-event "Message Arrived" from the MQTT Client.
MQTT Events are recognized an i can use "Say" on every mqtt event with a fixed Message "Text". But i cannot get the mqtt message as variable "message" when i configured it in the plugin named "message". In Tasker i can use this variable "message" without a problem. But in Automate there seems to be no variable "message" available that contains the mqtt message.

Is there a way to get the contents of the mqtt message? I just want to use speak or toast outputting the mqtt message as text.

@mikulik86
Copy link

In Automate you have to first crate the variable using e.g. "Set variable" block, where you set the desired name, in your case "message" and value can stay empty. Then you can use the Plug-in-event, where you fill in the variable name ("message") and in the block settings you have to check "Allow plug-in to assign any variable".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants