Power from a DC transformer for LED lights

You’ll need an adaptor to convert from 24VDC to 5VDC. One approach is to use a dashcam wiring kit, a common automotive accessory for powering dashcams and other 5VDC gadgets. There have been lots of articles posted on the forum on this approach. There are dashcam wiring kits available that will handle both 12V and 24V input voltages, which is what you’d need to use with a 24VDC LED light power supply.