What is the command line you are using in pimatic shell?
-
the same…
in the shell:
pi@raspberrypi:~ $ onkyo MVLUP
TX-NR626: MVL08
pi@raspberrypi:~ $ onkyo MVLUP
TX-NR626: MVL0Amy rule in pimatic
https://www.imagevenue.com/ME137MGFthe error after push
error [pimatic]: Error on evaluation of rule condition of rule av-laut: undefined
error [pimatic]: rule av-laut error executing an action: Error: Command failed: onkyo MVLUP
/bin/sh: 1: onkyo: not found
https://www.imagevenue.com/ME137MGG -
thats the error messages with python3 and i try with only python same effekt
i think its a problem with the path … but i dont know how to fix it or analyse the Problem…error [pimatic-shell-execute]: [ShellActionHandler] Error: Command failed: python3 onkyo MVLUP
python3: can’t open file ‘onkyo’: [Errno 2] No such file or directory
error [pimatic]: rule av-laut error executing an action: Error: Command failed: python3 onkyo MVLUP
python3: can’t open file ‘onkyo’: [Errno 2] No such file or directory -
I have testet with adjustment the rule
Rule:
execute “python3 /home/pi/.local/bin/onkyo MVLUP”Error:
55error [pimatic-shell-execute]: [ShellActionHandler] Error: Command failed: python3 /home/pi/.local/bin/onkyo MVLUP
Traceback (most recent call last):
File “/home/pi/.local/bin/onkyo”, line 6, in <module>
from eiscp.script import run
ModuleNotFoundError: No module named ‘eiscp’Or it’s an installation error over pip? For years with easy_install I have no problems with the Skript
-
Some progress, but not solved.
What if you add setting the environment variable ‘path’ in the script
Action part of the rule: execute “export PATH=${PATH}:/home/pi/.local/bin” and execute "python3 ankyo MVLUP …"
Or put those 2 commandlines in a shell script and execute that. -
tested same result, a pity, because with the script I was quickly notified if the input had changed, this could be evaluated nicely and the devices switched on automatically. with both plugins that are available, I do not get this feedback because they disconnect and only reconnect when you press a onkyobutton in pimatic like vol +
error [pimatic]: rule av-laut error executing an action: Error: Command failed: /home/pi/onkyoMVLUP.sh
Traceback (most recent call last):
File “/home/pi/.local/bin/onkyo”, line 6, in <module>
from eiscp.script import run
ModuleNotFoundError: No module named ‘eiscp’ -
no, I didn’t, but it was actually a clean basic installation with a clean installation of the script with this lines
but i will set up a completely new system with pimtaic for testingsudo apt install python3-pip
pip3 install https://github.com/miracle2k/onkyo-eiscp/tarball/master
export PATH=${PATH}:/home/pi/.local/bin
onkyo --discover
TX-NR626 192.168.1.234:60128