Switch template with or value

HI all. Have a question regarding switch template. I have a switch when i switch it on it changes to hvac_mode to heat. However I would like to have an or function so that the switch is recognized as “on” when the hvac_mode can also be cold etc…

After some testing the below is working however I was wondering if there was a better way. I like “{{ is_state(‘climate.lounge’, ‘heat’, 'cool) }}”??

This currently works:

    lounge_heating:
      value_template: "{{ is_state('climate.lounge', 'heat',) or is_state('climate.lounge', 'cool',) }}"
      turn_on:
      - service: climate.set_hvac_mode
        data:
          entity_id: climate.lounge
          hvac_mode: heat
      turn_off:
      - service: climate.turn_off
        entity_id: climate.lounge