2017-08-30 10:00:00.068 [WARN ] [lipse.smarthome.io.net.exec.ExecUtil] - Execution failed (Exit value: -559038737. Caused by java.io.IOException: Cannot run program "/var/lib/openhab2/scripts/iphone.sh" (in directory "."): error=2, No such file or directory)
2017-08-30 10:00:00.125 [WARN ] [lipse.smarthome.io.net.exec.ExecUtil] - Execution failed (Exit value: -559038737. Caused by java.io.IOException: Cannot run program "/var/lib/openhab2/scripts/iphone.sh" (in directory "."): error=2, No such file or directory)
2017-08-30 10:00:00.138 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Find My iPhone: The argument 'state' must not be null or empty.
Strange, now the only thing I can think of is for you to actually try to run that shell script on the command line (as the openhab user). e.g.
/var/lib/openhab2/scripts/iphone.sh foo bar
and see what happens. If I read the docu to the exec binding right (honestly, I don’t use that binding myself), an absolute path should be possible, they have examples like “/bin/bash something.sh”. See the example with “uptime” at the end of the docu (you are using exec1, right? the OH2 version doesn’t seem to have the ‘execCommandLine’ action…)
Where can I find the latest jar of the network binding with the fix?
For arping, do I need to add the device MAC ID to the thing or just the ip of the device? (The demo documentation shows only the option of using hostname ip).
and it seems that it doesn’t work for me. The binding is working and devices that respond to ping do work, but devices that don’t respond to ping doesn’t work (status is off). When I run ‘arping’ from command line to the device I do get ping. Any idea why?
(This also happens with the version Thom pointed me too)
Please have a look at the thing properties (eg via PaperUI). They should tell you about the recognized arping, because there are multiple existing. arping need to run without sudo on the command line.
Regarding providing the IP or MAC: You only provide the IP, arping does the rest for us.
I have tested the binding with the iputils arping, You are using Thomas version. They should both work, but we need to confirm the recognised version. Please have a look at the thing properties in paperui.
Properties are read-only and I have used them for this binding instead of the log to show all kind of information.