Lovelace Button for switching lights on & off

Hi all i want to create a button in Lovelace which i can press and some lights will be switched on.
So good so far this can be done via activating a scene.
But i want also that if i press this button again (state off) that afterwards the light will be switched off.

This is the topic where i do not know how i can do this. Do i need 2 sceens and how can i swich with one button between it?
It would be great if you can help me and give me some help.
Thanks in advance

If you only want to turn a group of lights on or off, put them in a light group. This will act as one light which you can toggle on/off with a tap on the icon / button.

If you want the lights to have specific brightnesses and/or colours:

Instead of a scene, create a script that uses the choose action. If the lights are off, turn them on to the states you want. If the lights are on, turn them off.

Call the script from the button tap action.