A little bit confused. Want to run an epson-eiscp commands from https://github.com/miracle2k/onkyo-eiscp
It states that it is a This is a Python library to control and interact with Onkyo receivers over the network. It is also a ready-made command line script you can use without knowing how to program.
So i wonder where should i install it. Should it be under pi user or it is better of going into virtual enviroment and installing it there under homeassistant user?
Thanks. Guess this is not the right board to ask - but this time nothing is working. Maybe somebody here can help. Are there any steps to be taken outside the virtual enviroment?
(homeassistant_venv) homeassistant@home:/$ onkyo --discover
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/bin/onkyo", line 7, in <module>
from eiscp.script import run
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/eiscp/__init__.py", line 6, in <module>
from core import eISCP
ImportError: No module named 'core'
Did you solve this?
I just installed Onkyo eiscp in the same virtual environment as home assistant.
Earlier i hade onkyo eiscp outside of the virtual environment.
Created file.py and launched it with python3 file.py from hass. This worked fine.
But now, when it is in the virtual environment i can’t launch the file.
file.py looks like this
import eiscp
# Create a receiver object, connecting to the host
receiver = eiscp.eISCP('192.168.1.10')
# Turn the receiver on, select PC input
receiver.command('zone2.power=on')
receiver.command('zone2.volume=40')
receiver.command('zone2.selector=pc')
receiver.disconnect()
If I try it from command line it works if i enter my virtual environment first