Vacuum fan Speed

I try to take the figure of the speed of the fan. Of the vacuum cleaner. I tried this command - but it does not help me a lot. I’d love to help please.

sensor:
    - platform: template
      sensors: 
        wall_e_fan_speed:
          friendly_name: Wall-E Speed
          value_template: '{{ states.vacuum.mi_robot_vacuum.fan_speed.lower() }}'

Try this and see if it works.

 value_template: "{{ state_attr('vacuum.mi_robot_vacuum', 'fan_speed') }}"

You can copy and paste all but the value template: into developer tools → template and you should see the text ‘silent’

1 Like

thanks a lot for the answer.

Works wonderfully.