presence detection help
Posted: Thursday 10 August 2017 11:55
Hi
I am new to scripting but with some copy-pasting and a lot of trial and error I managed to get some things working already.
Today I tried to get the presence detection script working which I found on the wiki. But I get an error with the arping method:
10:39:19- script started.
10:39:19- according to domoticz, 192.168.0.99 is offline
arping: invalid option -- 'W'
10:39:20- 192.168.0.99 offline, waiting for it to come back
arping: invalid option -- 'W'
arping: invalid option -- 'W'
If I use the normal ping method I can get the script to work, but when my phone goes in standby the switch turns off.
I used the ''arp -an" command and in this list my phone gets detected.
Can someone point me in the right direction to solve this problem?
Thanks
I am new to scripting but with some copy-pasting and a lot of trial and error I managed to get some things working already.
Today I tried to get the presence detection script working which I found on the wiki. But I get an error with the arping method:
10:39:19- script started.
10:39:19- according to domoticz, 192.168.0.99 is offline
arping: invalid option -- 'W'
10:39:20- 192.168.0.99 offline, waiting for it to come back
arping: invalid option -- 'W'
arping: invalid option -- 'W'
If I use the normal ping method I can get the script to work, but when my phone goes in standby the switch turns off.
I used the ''arp -an" command and in this list my phone gets detected.
Can someone point me in the right direction to solve this problem?
Thanks