I have been trying to get router (RUTX50) data into HomeAssistant using Modbus protocol. In short I have been able to get:
- Signal Strength
- System Temperature
- Cell ID
- GSM Bands
- RSRP, RSRQ and SINR
I have tried in the same way to poll Data received and sent this month with:
So this is what I did on the router:
and for the requested data:
If I do the test it returns data which could make sense. I can't fully test it but it could be all right.
Then on the HA side I have made this yaml configuration:
- name: TeltonikaRutOS
- name: "RUTX: Mobile Signal Strength" #aka sensor.rutx_mobile_signal_strength
- name: "system_temperature" #aka sensor.system_temperature
- name: "bytes received mtd"
- name: "bytes sent mtd"
- name: "RUTX: ExtraModBus" #aka sensor.rutx_extramodbus aka /tmp/regfile
address: 1024 #I have no idea why the router creates register 1025, but Home Assistant needs 1024
The coding for bytes sent and received are slightly different to understand the different behaviour but bytes_sent_mtd is the most complete. Where signal strength and system temperature are consistent and not giving issues I can't get consistent numbers for bytes received and sent. They flip/flop all over the place and I can't figure out where I seem to be off.. The data HA vs Router are not the same in the first place and where the router return rather consistent numbers gives HA numbers which don't make sense.
what do I miss?