import ???
rule "anything it doesnot matter"
when
Item power received command ON
then
executeCommandLine(âirsend SEND_ONCE ~/akaitv.conf KEY_POWERâ)
end
it does not work.it says it says it is executing command but in actual anything does not happen.as i had not imported anything.please tell what to do as i even tried to execute this(( "sudo cp ~/akaitv.conf ~/checking.conf ))) but it does not do anything.so i think there is need of a binding.to be imported
It depends on your file structure and where you save your TV.sh file. If saved in scripts and youâre running OH2, then /opt/openhab/conf/scripts/TV.sh should work.
so there is problem with working of openhab as it seems to working fine from command line.i have changed the script for making a file workingcheck but it does not form anything
is there need to download anythiing as i am had installed only openhab,neither of his addons and neither any demo. and even in one tutorial it wasmention you need java-jdk.i had not even downloaded that
Iâm getting crazy⊠I have openhab 2 installed with distro. Everything works well but I canât run any script.
I think it is a problem of permission. Openhab is installed on raspberry pi and automatically started at boot as service.
If I execute the script from account pi it works, if I do that using the openhab UI the command is received but nothing happensâŠ
The owner and the group of the script file is openhab.
I donât know what to do anymore⊠If someone can help me I will be very grateful
Thank you all
I think you have to have the openhab exec binding installed for executeCommandLine to work. If you installed openhab with apt-get, then you should install the binding with apt-get too:
sudo apt-get install openhab-addon-binding-exec
If you didnât use apt-get to install openhab, you can probably just copy this addon to your addons directory:
org.openhab.persistence.exec-1.8.3.jar
or whatever version of openhab youâre using.
@lorenzo81 mentioned that he is using openHAB 2. Bindings are not installed using apt with OH2 anymore. In order to install the Exec binding, simply go into PaperUI and install it from there.
Problems with exec are quite common as a lot has to be remembered. Please follow the link posted by @Ken_Van_Camp and be sure to look at the openhab.log. If you do not make progress, post your Exec line here.