I can report success! It took me a while to understand what this was all about - I am not a developer/coder 🙈 - but with your step by step instructions and reading the relevant pages in the manual did it.
In the end my FSUIPC entries were
[Buttons.iFly B737 MAX8]
0=PM,25,CL8:R,0 -{Lua iFlyTaxiRwyON}-
1=PM,24,CL7:R,0 -{Lua iFlyTaxiRwyOFF}-
2=BA000=0 PH,5,CPDome_Light_Up,0 -{Preset Control}-
3=BA000=1 PH,5,CPDome_Light_Up,0 -{Preset Control}-
4=BA000=2 PH,5,CPDome_Light_Down,0 -{Preset Control}-
5=BA000=2 PH,5,C1152,50 -{pause (ms)}-
6=BA000=2 PH,5,CPDome_Light_Down,0 -{Preset Control}-
[LvarOffsets.iFly B737 MAX8]
1=L:VC_Dome_Light_Display_VAL=UB0xA000
The minimum delay that made it work was 50ms, anything shorter was not successful, Maybe some useful information for other iFly customers.
I have to say that without your help there would have be no way for me figuring this out through offsets. The LUA scripts were already a challenge and I needed you correcting my code on how a LUA script reads information from the SIM!
After learning these things now I am a few steps ahead and I can use the knowledge for future programming. Thanks!!