TV = Net.FHttp(IP_HC2, 80);
TV:setBasicAuthentication("admin", "hasło");
r, s, e = TV:GET("/api/plugins/callUIEvent?deviceID=546&elementName=POWER_Button&eventType=onReleased HTTP/1.1");
if tonumber(s) > 300 then
fibaro:debug("błąd, status = "..s);
else
fibaro:debug("OK - Wciśnięto klawisz POWER - Status = "..s); -- wyłączenie telewizora Samsung TV
end