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 192.168.1.1 -p 1883 -t router/get -m temperature
/usr/bin/mosquitto_pub -h 192.168.1.1 -p 1883 -t router/get -m operator
/usr/bin/mosquitto_pub -h 192.168.1.1 -p 1883 -t router/get -m signal
/usr/bin/mosquitto_pub -h 192.168.1.1 -p 1883 -t router/get -m network
/usr/bin/mosquitto_pub -h 192.168.1.1 -p 1883 -t router/get -m connection
/usr/bin/mosquitto_pub -h 192.168.1.1 -p 1883 -t router/get -m wan
/usr/bin/mosquitto_pub -h 192.168.1.1 -p 1883 -t router/get -m uptime
/usr/bin/mosquitto_pub -h 192.168.1.1 -p 1883 -t router/get -m name
/usr/bin/mosquitto_pub -h 192.168.1.1 -p 1883 -t router/get -m digital1
/usr/bin/mosquitto_pub -h 192.168.1.1 -p 1883 -t router/get -m digital2
/usr/bin/mosquitto_pub -h 192.168.1.1 -p 1883 -t router/get -m analog
/usr/bin/mosquitto_pub -h 192.168.1.1 -p 1883 -t router/get -m pin3
/usr/bin/mosquitto_pub -h 192.168.1.1 -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 