Remote Control Midi, buttons as on/off switches

Getting started with remote control using MIDI. One thing I don’t see how to configure. My MIDI pad has a bunch of pressure/velocity sensitive buttons, these function the same way as piano keys sending note on and note off messages.

I was able to expose the “visibility” property on a light and setup one of the buttons so when I press it the light comes on, on release the light goes out. Is there any way to configure this as a push-on push-off instead? Ie:press/release the button and the light comes on, press/release it again and it switches off?

Also my note on message includes the velocity the key was struck in the MessageData2 field but I don’t seem to be able to get “range” to work on it. It will return 1 for a light touch and up to 127 for a hard one. I’ve tried mapping this 0-127 to 0-40.0 lux on a light, but it only gives me 40 regardless of what MessageData2 has in it. Would like to use this to flash a light so a soft touch gives a little light and a hard hit gives a big flash, but it doesn’t seem to be paying attention to this field in NoteON.