Comme cela, ca ne fonctionne pas non plus :
local HC2 = Net.FHttp("192.168.0.199", 54243);
local result, status, errorCode = HC2:GET("/device.xml");
if errorCode == 0 then
if tonumber(status) == 200 then
fibaro:debug('Status: ON')
fibaro:setGlobal("FbxHD_etat", 1)
fibaro:call(EtatFbxPlayer, "setProperty", "ui.EtatFbxPlayer.value", On)
else
fibaro:debug('Status: OFF or In Standby Mode')
fibaro:setGlobal("FbxHD_etat", 0)
end
else
fibaro:debug('Connection refused')
fibaro:setGlobal("FbxHD_etat", 0)
end
L'Id de l'etiquette est bien EtatFbxPlayer