thanks for the reply, but still no luk, it works in terminal and text file is updatet but the sensor in OR isn't
now i was thinking of using java code in the rules, is it possible to use something like this
rule " homechecker"
timer(int: 5s)
function getIpStatus(){
String ipAddress = "192.168.0.20";
InetAddress inet = InetAddress.getByName(ipAddress);
if (inet.isReachable(5000))
{
execute.command("homeStatus on.(on)"); /* i switch a virtual relaycontact
}
else {
execute.command("homeStatus off.(off)");
}
}
Op maandag 19 augustus 2019 14:20:34 UTC+2 schreef Robnas: