Hi all. I’m new to HA but have done lots of other monitoring. I’m having an issue with rounding to 1 decimal place. I’ve read lots about how to do it in the YAML config but it refuses to work. Text format understood and I’ve proven the syntax with the template editor:
{{ states('sensor.inside_temperature') | float | round(1) }}
but I don’t know how to make it part of the device config. I’ve tried a bunch of ways but don’t get it. I have:
# My try of OID setup 05/04/2026
- platform: snmp
host: 192.168.1.100
community: public
name: "Inside Temperature"
baseoid: 1.3.6.1.4.1.3815.1.2.2.1.1.2.1.1.2.1
device_class: "temperature"
unit_of_measurement: "C"
value_template: "{{ states('sensor.inside_temperature') | float | round(1) }}"
Some attempt renders 0.0 but that’s not the correct temp, other variations remove the value from from my dashboard entirely. Am I placing the template in the correct place in the YAML config?
TIA
Jamie