Lua scene to execute hex - worked in UI5 but not UI7?


I had a number of scene to change my hdmi input via a hex command onUI5 but when I save the same scene in UI 7 it doesnt work. See attached screengrab (bottom line missing on ui7 just due to screensize). Can anyone advise on what i need to change - " get “scene failed”