Need some help setting up a keypad.

Hi.
Trying to get the keypad to do the following:
Example: button number 1 should do the following: ( lets say this is linked to Output 1 as a fuel pump)
Output 1 off: no light
Output 1 on: first light on
Output 1 fault: second light on
This is quite easy. But here comes the hard part ( for me at least)
Button number 1 should be able to turn on and off output 1 ( toggle) ( no matter what )
Output 1 will also be controlled by a canbus signal from the ecu, so that it starts if the PDM sees a rpm signal from the ecu.
So just to be clear:
button should be able to start the pump to prime\test the pump, lighting up first light
If PDM sees a rpm signal, it Should light up first light
If driver wants, he should be able to turn the output of even if the engine is running. ( override )
If output 1 trips for some reason light number 2 should light up.
Do anyone have a guide or some info on how to set this up?
Trying to get the keypad to do the following:
Example: button number 1 should do the following: ( lets say this is linked to Output 1 as a fuel pump)
Output 1 off: no light
Output 1 on: first light on
Output 1 fault: second light on
This is quite easy. But here comes the hard part ( for me at least)
Button number 1 should be able to turn on and off output 1 ( toggle) ( no matter what )
Output 1 will also be controlled by a canbus signal from the ecu, so that it starts if the PDM sees a rpm signal from the ecu.
So just to be clear:
button should be able to start the pump to prime\test the pump, lighting up first light
If PDM sees a rpm signal, it Should light up first light
If driver wants, he should be able to turn the output of even if the engine is running. ( override )
If output 1 trips for some reason light number 2 should light up.
Do anyone have a guide or some info on how to set this up?