Here are a few basic button pistons mainly to be used for single button devices but code easily be modified to handle more buttons.
The first one is just a off and on with each button press and also a held option which in this piston turned off every downstairs light of course you can change this all in the defined area. Import code “276x”
This one is a little different has it turns off or on or set level on lights depending on the current state of those said lights this is mainly to give you idea’s on what you can do with just a single button. Import code “x6ekr”