vetzki
Philosoph
- 1.751
So in etwa hab ich das gemeint (du musst den intent ja jeweils nur 1x senden)
Profile: Ping Gerät xyz (42)
State: Wifi Connected [ SSID:* MAC:* IP:* ]
Time: From 00:00 every 2m Till 23:59
Enter: PingXYZ (63)
A1: Run Shell [ Commanding -W 3 -c 5 -s 0 192.168.178.20|grep -q "100% packet loss"
echo $? Timeout (Seconds):0 Use Root:Off Store Output In:%pingxyz Store Errors In: Store Result In: ]
A2: If [ %pingxyz eq 1 ]
A3: Send Intent [ Action:Ein Cat:None Mime Type: Data: Extra: Extra: Package: Class: Target:Broadcast Receiver ] If [ %Strom neq 1 ]
A4: Variable Set [ Name:%Strom To:1 Do Maths:Off Append:Off ]
A5: Else If [ %pingxyz eq 0 ]
A6: Send Intent [ Action:Aus Cat:None Mime Type: Data: Extra: Extra: Package: Class: Target:Broadcast Receiver ] If [ %Strom neq 0 ]
A7: Variable Set [ Name:%Strom To:0 Do Maths:Off Append:Off ]
A8: End If
Profile: Ping Gerät xyz (42)
State: Wifi Connected [ SSID:* MAC:* IP:* ]
Time: From 00:00 every 2m Till 23:59
Enter: PingXYZ (63)
A1: Run Shell [ Commanding -W 3 -c 5 -s 0 192.168.178.20|grep -q "100% packet loss"
echo $? Timeout (Seconds):0 Use Root:Off Store Output In:%pingxyz Store Errors In: Store Result In: ]
A2: If [ %pingxyz eq 1 ]
A3: Send Intent [ Action:Ein Cat:None Mime Type: Data: Extra: Extra: Package: Class: Target:Broadcast Receiver ] If [ %Strom neq 1 ]
A4: Variable Set [ Name:%Strom To:1 Do Maths:Off Append:Off ]
A5: Else If [ %pingxyz eq 0 ]
A6: Send Intent [ Action:Aus Cat:None Mime Type: Data: Extra: Extra: Package: Class: Target:Broadcast Receiver ] If [ %Strom neq 0 ]
A7: Variable Set [ Name:%Strom To:0 Do Maths:Off Append:Off ]
A8: End If