Sensibo Won't Turn On In Previous State

Whenever I turn on my AC unit with Sensibo, it turns on, then switches to the cool state.
Is there a way to just have the system turn on and not automatically switch to another state? I just want it to turn on and have it run the previous state it was in when last ran.

This is what my configuration.yaml looks like:

  - platform: template
    switches:
      ac:
        friendly_name: "AC"
        value_template: "{{ is_state('climate.gym_a_c', 'cool') or is_state('climate.gym_a_c', 'heat') or is_state('climate.gym_a_c', 'dry') or is_state('climate.gym_a_c', 'fan_only') }}"
        turn_on:
          service: climate.set_hvac_mode
          target:
            entity_id: climate.gym_a_c
          data:
            hvac_mode: "on"
        turn_off:
          service: climate.set_hvac_mode
          target:
            entity_id: climate.gym_a_c
          data:
            hvac_mode: "off"

Have you tried interfacing to it with the Generic Thermostat or possibly one of the custom thermostats available on HACS or in the Blueprint Exchange. Good possibility someone has figured out the recipe on this already.
Generic thermostat - Home Assistant.