I'm able to install the plugin but it does not control my projector in Home app
docgould3 opened this issue · comments
Hello,
I’ve been trying to set up the jvc home bridge plugin you helped design.I’ve tried to follow the instructions but it doesn’t seem to be working. In home app, the device is installed but it does not detect the correct state of the projector, nor can it turn it on or off. I don’t see any error messages in the log section of HOOBS. I’ve got a couple of questions I was hoping you can answer.
-
I think I was able to successfully installl the JVC package remote package via the HOOBS terminal.
-
Python. I’m a coding novice and had not even hear about python until I looked it up for this plugin. I’ve downloaded python (v 3.9) onto my laptop. How do I figure out the python path that I need to for the plugin? As of right now, the application is installed in my application folder. I’ve tried a path to that and also "/.local/lib/python3.9” and "/usr/local/bin/python3”.
-
Is there a way to designate which port on the JVC it communicates with. While also trying to get another IP remote app (Roomie remote) to control the projector, my research discovered that I needed to use port 20554. Once I set that in the Roomie Remote app, I was able to control the projector.
-
Any other suggestions of what I can try to get your plugin to control my projector?
I appreciate any advice you can offer.
Jason
You need to determine the path to the python executable and use this for python_path
configuration property.
On the terminal, does this give you anything:
which python3
if so, use that.
What is the path where Python is installed? Do you see any executable files in there?
What about if you just type:
python3
?
The port is not configurable currently, but the underlying python module uses 20554 by default so that should be fine.
So/Library/Frameworks/Python.framework/Versions/3.11/bin/python3
is the executable and is the value you should use for python_path
.
But try running the python file just from the command line without Homebridge first e.g.
Assuming the homebridge plugin is installed in /homebridge/node_modules/homebridge-jvc-projector
and replacing <projector_ip>
with the correct value something like this:
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 /homebridge/node_modules/homebridge-jvc-projector/dist/get_power_state.py <projector_ip>
Should be what the plugin invokes to check the power state.
Wherever you have installed hombridge, the plugin and python...
yes - python needs to be installed with the homebridge plugin and homebridge.
I can't really step you through installing python on a raspberry pi. It should be fairly straightforward to find some instructions on google though.
No screenshot provided.
If you’re configuring the plug-in surely it is already installed. Why are you trying to install it again?!
No screenshot again... use the web UI instead of attaching to an email response!
I don't know anything about hoobs. How do you usually install homebridge plugins?
That looks like you you are logged in as user hoobs
which doesn't have permission to write to /usr/lib
.
Usually you would install as root
user in this case by doing:
sudo npm install -g homebridge-jvc-projector