I don’t get your comment, either way the template I produced will return the result you’re looking for while accounting for binary sensors that do not have the icon attribute.
I don’t, the config posted above is all that’s in that particular package.
I do, in other packages, like below with over 20 sensors.
template:
- sensor:
- name: Large Tank Temperature
unit_of_measurement: "°F"
device_class: temperature
state: "{{ '%+.1f'|format(state_attr('climate.itc_308_wifi_thermostat', 'current_temperature')) }}"
Then it should be showing up. The syntax is correct. There’s nothing wrong with the syntax, so I’d look towards your packages. Also, you could always restart instead of reload.