Hi All,
I’ve managed to use the SNMP sensor to monitor the LAN ports on my router to display traffic info. The info is displayed in bits. Is there a way to change that to MB of GB? I don’t think the SNMP sensor can convert to datatypes as in multiplying the retieved IOD field by 0.00000125 to change to MB. Any ideas?
So, my question is then, is this correct? I now have sensor.nas_in and sensor.nas_in_2… Is there no way to nest the template sensor into the snmp sensor? I have issues with the value template as rounding doesn’t work all the time, it will only multiply and then not round
Yes, and I would also suggest using a different name for your template sensor than the one you are drawing the values from to keep things straight in the future.
Hi Guys, thanks for the replies, I’ve made some tweaks and have taken your advice, seems alright, but I’ve got a couple more questions:
Sensor readings are displayed in groups and their output is sometimes not rounded off correctly. I’ll get a reading of 20.17 and when it reruns it displays as 20.100000000000009. Why is this? (Not sure if this has anything to do with it, but I also get these values from openweathermap when the temperature or pressure monitors run)
Could it be because SNMP sensors run prior to the Template sensors. Shouldn’t they run as nested or child sensors e.g
1 - SNMP Sensor A
a - SNMP Template A
2 - SNMP Sensor B
a - SNMP Template B
Oh and is there any way to run 1 SNMP Sensor to pull all the values instead of having to run 8. There can be quite a backlog if Homeassistant becomes complex…