Hallo boomx,
vielen Dank für Deine schnelle Antwort.
Ich komme damit ehrlich gesagt nicht richtig zurecht.
local IP = User:PW@mobotix/control/rcontrol?action=sigout&profile=~Door'
local PORT = 80
local versuche = 1
local iconOFFLINE = "181" -- ANPASSEN; Gerät ist offline
local iconONLINE = "180" -- ANPASSEN; Gerät ist online
local iconCHECK = "179" -- ANPASSEN; Gerät wird angepingt
if (result == true) then
fibaro:debug(IP.. ':' .. PORT .. ' wurde gefunden.')
fibaro:call(fibaro:getSelfId(), "setProperty", "currentIcon", iconONLINE)
else
fibaro:debug(IP.. ':' .. PORT .. ' wurde nicht gefunden.')
fibaro:call(fibaro:getSelfId(), "setProperty", "currentIcon", iconOFFLINE)
fibaro:call(2, "sendEmail", IP.. " ist derzeit nicht erreichbar")
end
Icons benötige ich nicht. Daher können ja die iconXXX-Zeilen weg.
Aber wie reduziere ich das Skript, damit nur die Seite aufgerufen wird?
Viele Grüße,
Thorsten