HADashboard Switch for ON, Switch for OFF

Hi,

I have RF light switches. I cannot query the state, so the only way to control the light is by explicitly ON OFF commands, which means button for ON & button for OFF.

Current switch button has two states, ON / OFF but this canot be used in my case. The only solution that I found so far is to use script button and assign script for each state. I have ~ 20 lights so I need 40 scripts just to control from HADashboard.

Another restriction is that I must have two buttons on screen which take more space.

Is there another way which is more generic and consumes less “overhead”?

Thx