Event Juggler action MQTT - retained messages?

Hello, I’m setting up I/O reporting on TRB140 (v00.07.18.3). I have pins set up as inputs and then MQTT actions defined in Event Juggler to send MQTT messages on any level change.

That works mostly as expected, but there does not seem to be an option to set “retained” flag to the MQTT messages. Is it possible such feature could be added, or is it hidden somewhere else maybe?

That would be very usefull for our use case - the inputs are detecting AC ON and Battery LOW signals on battery-backed power supply. When we loose connection to the site, we need to know if it is due to power loss. If messages were retained, we could simply subscribe to the topic and see the last message from the TRB. Otherwise we would have to set up some active monitoring so we can “retain the information” ourselves.

Greetings,

The retain flag is not currently supported on this device. However, it may be possible to achieve similar functionality by implementing a custom script. You can find more information and guidance on custom scripts at the following link:

Please note that writing or troubleshooting custom scripts falls outside the scope of our technical support, and such implementations would need to be handled independently.

Additionally, if the issue was caused by a power loss, you should be able to confirm this by checking the system logs. In such cases, it should say device rebooted after unexpected shutdown

Best Regards,
Justinas