Two Buttons to a switch for controlling Air conditioner in my car

Hello, I want to control my air conditioning in my car (start and stop the air conditioning via Homekit). Currently I have an addon that maps the buttons for the air conditioning in my homeassistant.
The goal would be to make a switch out of both buttons for now.
For this I thought I could create a switch in homeassistant from the buttons that contains both buttons (on / off).

But I think if I build a switch, it will activate all the time for example the on command of the air conditioner and if I press the off switch it will trigger the off button every time.

Someone has an idea?