Programming PBM on relais

I have 3 floors
Floor 0 : 1 push button - 1 light
Floor 1: 2 push buttons (left and right)- 1 light
Floor 3: 1 push button - 1 light

I would do the following:
For all lights: short = 5min and long pressing light cont

If I push the button on floor 0 => light of floor 0 and floor 1
If I push the left button on floor 1 => light of floor 0 and floor 1
If I push the right button on floor 1=> light of floor 1 and 2
If I push te button on floor 2 => light of floor 1 and 2

I programmed the following:

  • light Floor 0 with PBM function : push button on floor 0 and left button on floor 1
  • light floor 1 with PBM function : push button on floor 0 , left button on floor 1, right button on floor 1 and button on floor 2
  • light floor 2 with PBM function : push button on floor 2 and right button on floor 1

Everything works fine but if for example light on floor 0 and 1 is working and I push the right button on floor 1. Light on floor 1 is going out and light on floor 2 is working. In this case all the 3 lights must working
If the light on floor 0 and 1 is out, there is no problem

Can anybody help?

thx

This is a classic problem.
If the relay is OFF then it is turned ON and if it is ON then it is turned OFF, when the button is pressed
It is clear that it will only work in some cases, as you describe.
A possible solution is to use the ST1 timer. This one only turns on, it does not turn off when the button is pressed.
It will turn off after a preset time, or you can provide an ‘OFF’-button.