Besides setting different midi channels, so the one device could ignore unwanted commands, your pedal likely accepts CC and/or PG commands, while for lights you could use note numbers to trigger the scenes, so plenty measures to make sure there isn’t issues.
Depending on your lighting app/hardware, many iPad based apps may just accept ANY midi channel (Omni) but usually actual hardware could be set to only one dedicated channel.
My Helix is set to channel 1, my mixer to 16 and my lighting app I set the controller to 13, not sure if it’ll make a difference on the lighting app but me helix and mixer ignore what’s doesn’t get sent on their respective channels.