Hue Get Dimming level

Hello,

how can I get the brightness of my hue Buld, with LUUP ?

My code

local device=24
local switchOnOff = luup.variable_get(“urn:upnp-org:serviceId:Dimming1”, “GetLoadLevelTarget”, device)
if (switchOnOff == “50”)

My other test

local lightLevel = luup.variable_get(“urn:upnp-org:serviceId:Dimming1”, “LoadLevelStatus”, 24)
if (lightLevel == “50”)

but ERROR : Error in lua for scenes and events :frowning:

Thank you

I’m a noob in Luup :frowning: