Go to configuration, automations… create new automation with any name, by trigger select your button name and if you want to use long, double or single click.
After that select the acton (for example, to turn off one light).
Go to configuration, automations… create new automation with any name, by trigger select your button name and if you want to use long, double or single click.
After that select the acton (for example, to turn off one light).