LogicMachine Forum
MQTT Client app - Printable Version

+- LogicMachine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Application Store (https://forum.logicmachine.net/forumdisplay.php?fid=11)
+--- Thread: MQTT Client app (/showthread.php?tid=5609)

Pages: 1 2 3 4 5


RE: MQTT Client app - Daniel - 07.04.2026

What are the settings in MQTT explorer and what in our app?


RE: MQTT Client app - Daniel - 07.04.2026

Try pinging broker from System-Status-Network utilities


RE: MQTT Client app - Fahd - 07.04.2026

I can ping from the broker to the lm5 but i cant do the other way


RE: MQTT Client app - Daniel - 07.04.2026

Check network settings for correct gateway and DNS. It is LM who is connecting to broker.


RE: MQTT Client app - Fahd - 07.05.2026

Hi, I am sending KNX objects to MQTT using the MQTT Client app on LM5.
I would like the payload to be published in JSON format like this:

{
"value": "<object value>",
"dataUnit": "<object unit>",
"state": true
}

Please how can i do it ?


RE: MQTT Client app - admin - 07.05.2026

Can be done using a conversion script in the app but it must be done for each object separately. Depending on the object count it might make more sense to make a separate script for publishing object values.
Code:
return json.encode({   value = value,   dataUnit = 'data-units',   state = true })



RE: MQTT Client app - Fahd - 07.05.2026

(07.05.2026, 12:54)admin Wrote: Can be done using a conversion script in the app but it must be done for each object separately. Depending on the object count it might make more sense to make a separate script for publishing object values.
Code:
return json.encode({   value = value,   dataUnit = 'data-units',   state = true })
Thaanks


RE: MQTT Client app - Fahd - 05.06.2026

Hey,
I have a 1-bit GRP address with MQTT direction set to Both. Reading works fine in both directions, but writing has a problem:

Send false via MQTT → LM5 gets true
Send true via MQTT → LM5 gets true

My script:
return json.encode({
value = value,
dataUnit = ' ',
state = value
})
Tried removing the state field too, same result.

Writing from lm5 works fine ,


RE: MQTT Client app - Daniel - 05.06.2026

What is the data format do you expect in MQTT for true and false?


RE: MQTT Client app - admin - 05.06.2026

Set JSON value path to value


RE: MQTT Client app - Fahd - 05.06.2026

(05.06.2026, 09:50)admin Wrote: Set JSON value path to value

same , 

https://streamable.com/pw3spz

please watch this , https://streamable.com/pc235o


RE: MQTT Client app - Daniel - 05.06.2026

Do you have any script in the 'In (From MQTT)' you should remove it and as admin mention just put value in JSON value path in topic config.


RE: MQTT Client app - Fahd - 05.06.2026

(05.06.2026, 10:50)Daniel Wrote: Do you have any script in the 'In (From MQTT)'  you should remove it and as admin mention just put value in JSON value path  in topic config.

After those changes i cant control the object from mqtt, https://streamable.com/qq4ket


RE: MQTT Client app - Daniel - 05.06.2026

See this
https://app.screencast.com/6OFlzxeNzQcuk


RE: MQTT Client app - admin - 05.06.2026

Boolean <-> string conversion ON/OFF strings must be empty. JSON value path must be set to value


RE: MQTT Client app - Fahd - 05.06.2026

Thanks