Fan Template Set Percentage Error

I templated a fan for direct control of an AC Infinity exhaust fan that has power level settings 0-10. I don’t know why a fan entity isn’t just provided by the integration, but it isn’t.

I can turn the fan on and off from either end without issue and the speed level in HA updates when I change the speed on the AC Infinity controller.

When I change the speed in HA, it changes successfully on the AC Infinity controller. But, in HA, the percentage changes to reflect the setting (e.g. “90”) but the level bar does not move to the set position.

I also receive the following error ~20 seconds after making the change:

Here is the template:

  - platform: template
      test_exhaust:
        friendly_name: "Test Exhaust"
        unique_id: "switch_exhaust_test"
        value_template: "{{ is_state('binary_sensor.acinfinitycontroller_port_1_state', 'on') }}"
        percentage_template: "{{ (states('number.acinfinitycontroller_port_1_on_power')|float/0.1)|round(0) }}"
        turn_on:
          action: select.select_option
          target:
            entity_id: select.acinfinitycontroller_port_1_active_mode
          data:
            option: "On"
        turn_off:
          action: select.select_option
          target:
            entity_id: select.acinfinitycontroller_port_1_active_mode
          data:
            option: "Off"
        set_percentage:
          action: number.set_value
          target:
            entity_id: number.acinfinitycontroller_port_1_on_power
          data:
            value: "{{ (percentage/10)|int }}"
        speed_count: 10

I’ve tried with and without switching the set_value to an integer.

Any ideas?