--Fonction trouvée sur http://easydomoticz.com/forum/viewtopic.php?f=10&t=7147 function getDevNameByIdx(devIdx) for i, v in pairs(otherdevices_idx) do if v == devIdx then return i end end return 0 end