j'ai fait ce tout petit script qui fonctionne (le group comprends 4 yeelight+ 1 strip)
Code : Tout sélectionner
commandArray = {}
if (devicechanged['sensor_cine_led'] == 'On') then
commandArray['Group:led_cine']='On'
elseif (devicechanged['sensor_cine_led']=='Off') then
commandArray['Group:led_cine']='Off'
end
return commandArray2018-09-04 11:12:00.235 Error: EventSystem: in led_cine_lua: [string "commandArray = {}
..."]:2: attempt to index global 'devicechanged' (a nil value)
Si quelqu'un peut m'expliquer ?
merci