One button to toggle between two switches

Read the documentation and find the service to trigger an automation instead of turning it on. Then delete the off section.

Hello, can I ask, I have 2 scripts for turning on and off the aircon using broadlink, how do I make a button that can toggle either on or off? At the moment I have 2 buttons.

Hello @tom_l ,

I have applied this in so many automations but as @Jihad stated, we need a single entity or button that will toggle between two scenes or scripts when the button is switched on or off.

This issue is being faced with Tuya remote buttons and similarly for broadlink, Today i am foced to add two buttons, one for turning the ac scene on and another to turn it off