Open nickpdawson opened 3 years ago
I'll take a look tomorrow and see if I can reproduce this.
I just merged a PR to the python application from another contributor, so maybe that fix is related to this. Sorry for not seeing this sooner! Need to fix my email notifications or something since I missed a few issues and PRs.
@nickpdawson
I haven't been able to reproduce this yet, but noticed a few things. First, I am using a pretty old version of Homebridge since I only use it for this one accessory: 0.4.50
. Also, my configuration looks pretty different from yours. I'm not super familiar with Homebridge configuration so it's possible that these end up meaning the same thing, or it's a difference in Homebridge versions. Here's my config:
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:41",
"port": 51826,
"pin": "031-45-154",
"room": "Kitchen"
},
"description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",
"ports": {
"start": 52100,
"end": 52150,
"comment": "This section is used to control the range of ports that separate accessory (like camera or television) should be bind to."
},
"accessories": [
{
"accessory": "MyKettle",
"room": "Kitchen",
"name": "Kettle"
}
]
}
The biggest difference is that my kettle is in accessories
instead of platforms
.
Additionally, I don't think it is correct that the plugin defaults to 8080. In the code, until a recent PR updating the configuration, all calls to the api.py
Python service use http://localhost:8000
and the Python api.py
runs on port 8000. Maybe there is an issue from changing ports?
Actually, what operating system are you running on? AFAIK, it only works on Linux due to the bluepy
dependency in the Python program.
If you could share the logs from api.py
that could be useful.
I'm getting errors in home bridge when I try and issue a command. Also worth noting, the plug-in defaults to using port 8080 but the apy.py script defaults to 8000. I use 8000 in my HB setup.
here's my config:
here's the errors: