MQTT I/O Juggler setup help

I’ve setup the I/O juggler to detect when the status of PIN3 changes. (using a Teltonika UPS BAT120). I’m using a RUT360 with Firmware R_00.07.09.3

When I am on the RUT - Services > Input/Output > Status page, I can see the ‘State’ change when I take the power supply in/out of the UPS.

In I/O Juggler:
General - (enabled)
Input - Configurable In/Out (3)
Pin trigger Falling (enabled)

Conditions -
type > I/O
I/O > Configurable Input/Output (3)
State > Low

Assuming the above is set up correctly.
Actions - MQTT
TOPIC - UPS
Hostname - …eu.hivemq.cloud
Port - 8883
Keepalive - 60
QoS - (0)
User/pass - (as set and tested in HiveMQ)
TLS - Off

I can test the settings in HiveMQ - working fine, test message is delivered.
When I un/plug the UPS in I can see the ‘Status’ change in the RUT. But no MQTT gets delivered to HHiveMQ?

I have installed the MQTT application on the RUT and configured the ‘Publisher’ section with the same details as above, but this didn’t solve the issue.
There is nothing in the RUT logs to show MQTT activity. Not sure if there is a CLI folder location for MQTT logs though.

Any help?

Hi grafixmaster,

Welcome to Teltonika Networks Community!

Firstly, we need to make sure that action is being triggered once conditions are met. To locally test that, add another action that will change the state of Pin 4 (Configurable Output). Please confirm that once Pin3 change state to Low, Pin 4 change its state as well.

If it is working as expected, then our next thing to check is the connectivity between the device and your MQTT Broker.

Running logread -f will also help as it will show that the actions are executed.
image

Let me know if this helps.

Regards,

Thanks - the IO Pins were working as expected. Good advise for checking the issue this way. Issue was my internet connection doing some strange NATing or firewall rules. (another teltonika)

Onto my next project - RS485 Passthorugh !

This topic was automatically closed 40 hours after the last reply. New replies are no longer allowed.