hjdhjd / homebridge-doorbird

Homebridge plugin for Doorbird
Apache License 2.0
54 stars 14 forks source link

Homebridge 1.0.x error message #45

Closed dsully closed 4 years ago

dsully commented 4 years ago

With Homebridge 1.0.x, there is an error message in the logs:

May  1 09:48:55 server homebridge[732140]: [5/1/2020, 9:48:55 AM] [DoorBird] Initializing DoorBird platform...
May  1 09:48:55 server homebridge[732140]: [5/1/2020, 9:48:55 AM] One of your plugins incorrectly registered an external accessory using the platform name (DoorBird) and not the plugin identifier. Please report this to the developer!
May  1 09:48:55 server homebridge[732140]: [5/1/2020, 9:48:55 AM] DoorBird is running on port 20183.`
brownad commented 4 years ago

Check the plugin name used in your config matches up to the example config

Sent from my iPhone

On 1 May 2020, at 17:51, Dan Sully notifications@github.com wrote:

With Homebridge 1.0.x, there is an error message in the logs:

May 1 09:48:55 server homebridge[732140]: [5/1/2020, 9:48:55 AM] [DoorBird] Initializing DoorBird platform... May 1 09:48:55 server homebridge[732140]: [5/1/2020, 9:48:55 AM] One of your plugins incorrectly registered an external accessory using the platform name (DoorBird) and not the plugin identifier. Please report this to the developer! May 1 09:48:55 server homebridge[732140]: [5/1/2020, 9:48:55 AM] DoorBird is running on port 20183.` — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

CameronVIE commented 4 years ago

Same error here! DoorBird does not show up when i try to add it in HKit.

platforms": [ { "platform": "DoorBird", "cameras": [ { "name": "DoorBird", "doorbird_ip": "", "doorbird_username": "", "doorbird_password": "", "cmd_doorbell": "", "cmd_motionsensor": "", "videoConfig": { "source": "-re -f mjpeg -i http://yyyyyyyyyyy:xxxxxxxxxx@aaa.bbb.ccc.ddd/bha-api/video.cgi", "stillImageSource": "-i http://aaa.bbb.ccc.ddd:80/bha-api/image.cgi?http-user=yyyyyyy&http-password=xxxxxxxxx", "maxStreams": 4, "maxWidth": 800, "maxHeight": 600, "maxFPS": 15, "port": 5005 } } ] },

thanx alot

peer69 commented 4 years ago

Same here. Plugin still works as before though.

mrhund commented 4 years ago

Platform and Name are not allowed to be the same string. Try different ones.

peer69 commented 4 years ago

While the sample config file shows platform and name as the same in my config those are different. This doesn’t seem to be the issue for me.

mrhund commented 4 years ago

Sorry, you are right - found the issue in the code and fixed it for me. Will create a Pull Request.

brownad commented 4 years ago

published v0.0.7 thanks @mrhund (again)

brownad commented 4 years ago

@dsully feel free to close if you're happy with the changes. Thanks @mrhund for smashing this one

peer69 commented 4 years ago

Works for me. Thank you guys for fixing this so fast!

dsully commented 4 years ago

Looks good here too.