Teltonika RUT mqtt config

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

This is the information from the router manufacturer:

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

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

Trying to follow the directions, I created a mqtt sensor like this:

 - platform: mqtt
   name: "Teltonika RUT240 temp"
   state_topic: "router/111887•••••/temperature"

This sensor always provides the “unknown” value…
Can someone help me?

I figured it out! Just in case you’re still stuck - I followed the flow chart on Monitoring via MQTT - Teltonika Networks Wiki and realised that you need to first publish to topic “router/get” the payload “temperature” and your subscriber (Home Asisstant) will recieve the temperature value at your sensor topic above. To do it regularly, just create an automation using the MQTT Publish service to regularly publishes “router/get” “temperature” as above so the routers listening publish their latest temperature.

The slightly longer explanation - first you need to publish to topic “router/get” payload “id” just to make sure you get your id correct - which will be returned on the topic “router/id” with the serial/id as the payload. You can use the general “router/get” above to ask all the routers on the network to publish - but if you just want a response from a single router - you can instead publish to topic “router/111887•••••/temperature” payload “temperature” just to seek an update from that individual router.

Hope that makes sense!


Hi! Could you give me a complete example of automation? Didn’t you have to create MQTT sensors?
I have no idea how to do it…

Hello, I wish you a happy new year. Unfortunately I haven’t been able to get MQTT working for the Teltonika Router yet.

Hi, create a “bridge connection” on the teltonika mqtt-broker to your home-assistant server with remote id “core-mosquitto”, your user and pass set in the mqtt-settings of home-assistant.
Add an topic called “router/yourrouterserial123456/#” to the “bride connection”.
Enable it.
Configure the mqtt-publisher to point to your local broker of the teltonika and start it. If this was already done, restart(!) it.
Go to the routers console:

opgk update
opkg install mosquitto-client-nossl

Create a script on the router, which is calling the topics you want. This is mine:

/usr/bin/mosquitto_pub -h -p 1883 -t router/get -m temperature
/usr/bin/mosquitto_pub -h -p 1883 -t router/get -m operator
/usr/bin/mosquitto_pub -h -p 1883 -t router/get -m signal
/usr/bin/mosquitto_pub -h -p 1883 -t router/get -m network
/usr/bin/mosquitto_pub -h -p 1883 -t router/get -m connection
/usr/bin/mosquitto_pub -h -p 1883 -t router/get -m wan
/usr/bin/mosquitto_pub -h -p 1883 -t router/get -m uptime
/usr/bin/mosquitto_pub -h -p 1883 -t router/get -m name
/usr/bin/mosquitto_pub -h -p 1883 -t router/get -m digital1
/usr/bin/mosquitto_pub -h -p 1883 -t router/get -m digital2
/usr/bin/mosquitto_pub -h -p 1883 -t router/get -m analog
/usr/bin/mosquitto_pub -h -p 1883 -t router/get -m pin3
/usr/bin/mosquitto_pub -h -p 1883 -t router/get -m pin4

Run this script with cron, for example every minute, to get the data on your h-a server.

I had figured out this a cuple of minutes ago an not testet it jet over a longer time. I hope this helps :slight_smile:

Did it work?

I am planning to buy a RUTX50 but there is no integration for HA. So this might be a partial solution.

1 Like

Doesnt work on my RUTX50 but could be that I am not skilled enough to follow all steps without missing out a not mentioned one.

Are you happy with the RUTX50? You have a 5G SIM card in it?

So far, yes. Needed it for more connected wifi devices. Mostly it runs with 4G because we do not have 5G at home. On the road it is fast, but I guess a 4G router like the RUTX14 will be suitable for that too.

Thanks! For me it’s the same plus I will try 5G for speed. I suppose to have 5G but not sure how stable it is but it will have 4G fall back. So let’s see.

I have a Huawei now with a nice integration. That I will miss. Are you using RMS which comes with Teltonika ?

Yes RMS is a great tool for monitoring the health of the Teltonika.

I did try again and I get some login attempts from the router. But always this result:

2023-03-17 20:05:36: New client connected from as core-mosquitto (p1, c0, k60, u'mqtt-user').
2023-03-17 20:05:36: New connection from on port 1883.
2023-03-17 20:05:37: Client <unknown> closed its connection.
2023-03-17 20:05:37: New connection from on port 1883.
2023-03-17 20:05:37: Client <unknown> disconnected, not authorised.
2023-03-17 20:05:37: New connection from on port 1883.
2023-03-17 20:05:37: New connection from on port 1883.

Tried to put up new user but nothing changed! Any ideas? @Chris19 ?

Do you need a subscription for it and is it free for one router?

1 Like

You do need a subscription for RMS, and they have various levels of credit which can be a bit confusing. I was initially buying monthly credits, but switched to a 10 year service pack (10 years of RMS remote access tied to one router) which is a pretty damn good deal if you consider the hassle of remote access without RMS.

I got it from here, same day response, but there are numerous RMS dealers:


Incidentally … RMS remote access to the router WebUI is cool but the real power feature is the remote CLI … with this I can ssh into anything on my local network. which is a massive bonus.

1 Like

Thanks man!! This is very good to know. So if you buy the pack the credits actually appear in the RMS?

What about the remote CLI. Is that part or integrated in the RMS?

1 Like

Yes, if you buy credits / the 10yr pack / etc. etc. you are given a code from the retailer which you enter into the RMS website. After that, you assign those credits / pack to a specific device and job done.

Also yes, WebUI and CLI remote access are both default services for every device in RMS.

I think every new Teltonika device comes with 1 month of free RMS, so I suggest getting connected first, test everything works before buying credits. Any Q’s just ask me.

1 Like

Many thanks!! And I might have still some questions !:pray::pray:

Sure, hit me in here, DM, or check the Teltonika user forum –

Thanks! I am already community member :+1: