I'm finding that MqttPublish doesn't seem to work when you use a variable for the data. Here is an example that looks like it works from the logs but nothing gets published to the topic in Mqtt:
Macro|
SetVariable|test_bjv~atv!
MqttPublish|theater/source~{{test_bjv}}!
But just calling MqttPublish like this does work:
Macro|
MqttPublish|theater/source~atv!
Here are the logs for the failure case:
12/03/2024 00:21:23.21 · DEBUG · Server.doCommand - {{server_selectedmacro}} from dashboard-fx-l367
12/03/2024 00:21:23.21 · DEBUG · Server.doCommand - macro.test
12/03/2024 00:21:23.21 · DEBUG · Server.doCommand - SetVariable|test_bjv~atv from dashboard-fx-l367
12/03/2024 00:21:23.21 · DEBUG · Server.doCommand - MqttPublish|theater/source~{{test_bjv}} from dashboard-fx-l367
12/03/2024 00:21:23.21 · DEBUG · Server.doCommand - MqttPublish|theater/source~atv
Please Log in or Create an account to join the conversation.