FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
565 views 3 comments
by anonymous

Hi, I have a Teltonika RUT240 router, and I would like to configure MQTT to view router information on Home Assistant.

In the router settings → Mqtt menu, I configured as follows:

In the Mosquitto log (in Home Assistant), I see that the Teltonika router (192.168.1.1) has connected to the Home Assistant’s mqtt broker.

But I can't see any data, I also tried with Mqtt explorer and other tools

2 Answers

0 votes
by

Hi,

Could you confirm in Broker's logs that the subscriber is also connected? 

Try subscribing to a generic topic using the wildcard: router/<serial_number>/#

Ask for data in the topic: get/<serial_number>/command  

Specify in the message: signal (As an example to get the Signal strength in dBm). Replace <serial_number> by your RUT's serial number.

Check the Monitoring via MQTT article for more information on other parameters as well as examples on how to subscribe and publish using mosquitto: https://wiki.teltonika-networks.com/view/Monitoring_via_MQTT 

Anthony

by anonymous

would you please put some simple screenshots?  I'm not able

by

Hi,

The publish message image above is correct. In order to see the value replied you have to subscribe to the topic: router/<serial_number>/signal

Anthony

0 votes
by anonymous

NOT WORKING.

No massage 

by
Hi Kame,

MQTT is a Publication and Subscription protocol. The Publication settings from first image was correct to request data (signal value in dBm in this case). Now to get the reply you have to Subscribe to the topic mentioned on previous answer. I see in this last image that you are creating another Publication message, please set the subscription first.

This procedure is well explained on the wiki article: https://wiki.teltonika-networks.com/view/Monitoring_via_MQTT

Regards