Finally I want to use all 4 buttons for different actions (all roller shutters up/down and all roller shutters in the groundfloor up/down).
Now every button does the same (I press and I got the message 1 and 0). I know, that is pressed and leave the button. All 4 buttons works now exaclty that way.
How can I set up button1 for action shutter up and button2 for shutter down and button3 and button4 for other actions?
Hello, that’s exactly what I want too. Button 1 should turn on a lamp, button 2 should turn it off, button 3 should make it brighter and button 4 darker. Where do I put the lamp in? I have no idea about such codes. Can someone please help me?
Now you can either create an automation for each button. The trigger for this automation would be “button_pressed”. All parameters are documented in the Binary Sensor paragraph of the page I linked.
The ID in the trigger field will get converted to decimal though after saving, this is normal though.
If your lamps aren’t available as Devices, you could call the service “light.turn_on” and pass the parameter “brightness_step” or “brightness_step_pct” - have a look here: https://www.home-assistant.io/integrations/light/#service-lightturn_on