Snmp sensor -> picture is not updated

Hi all,

I have the following problems. I have 2 snmp sensors:
first:

- platform: snmp
  name: cisco_2960x_temp
  version: "2c"
  community: public
  host: 192.168.77.5
  baseoid: 1.3.6.1.4.1.9.9.13.1.3.1.3.1008
  value_template: "{{value}}"
  default_value: 28
  unit_of_measurement: "°C"
  picture: >
        {% set state = states('sensor.cisco_2960x_temp') %}
        {% if state | is_number and 0 < state | int <= 30 %}
          /local/temperature2.png
        {% else %}
          /local/temperature2_high.png
        {% endif %}

second:

- platform: snmp
  name: eaton_9sx_upsInternalTemp
  version: "1"                
  community: public        
  host: 192.168.77.12
  baseoid: 1.3.6.1.4.1.534.1.6.1.0
  value_template: "{{value}}"
  unit_of_measurement: "°C"  
  picture: >
        {% set state = states('sensor.eaton_9sx_upsInternalTemp') %}
        {% if state | is_number and 0 < state | int <= 10 %}
          /local/temperature2.png
        {% else %}
          /local/temperature2_high.png
        {% endif %}

in first case picture is not updating at all, it uses the default icon
in the second case it works. (see the attachment)

Any ideas why?

I also created template sensor based on snmp:

- platform: template
  sensors:
    cisco_2960x_temp_a:
      value_template: "{{ states('sensor.cisco_2960x_temp') }}"
      entity_picture_template: >
        {% set state = states('sensor.cisco_2960x_temp') %}
        {% if state | is_number and 0 < state | int <= 30 %}
          /local/temperature2.png
        {% else %}
          /local/temperature2_high.png
        {% endif %}

but during the restart I see

looks that it isn’t updating from the reference value of sensor.cisco_2960x_temp
but me just needed to wait a little bit more after all the processes are started and everything is loaded