Closed mrhsiao closed 4 years ago
Same for me. @beele Can you help us?
25/5/2020, 15:54:55 HOOBS listening on port 8080.
25/5/2020, 15:55:06 Loaded plugin "homebridge-unifi-protect-camera-motion".
25/5/2020, 15:55:06 The requested platform "UnifiProtectMotion" was not registered by any plugin.
25/5/2020, 15:55:06 Your config.json is requesting the platform "UnifiProtectMotion" which has not been published by any installed plugins.
25/5/2020, 15:55:06 Bridge is running on port 51826.
Thank you!
Did you guys use:sudo npm install homebridge-unifi-protect-camera-motion -g --unsafe-perm=true
to install the plugin?
Are you running V1.X.X of homebridge? Older versions are no longer supported.
@beele I'm currently running everything on HOOBS. I've done the update as the previous ones, without any kind of issue. This time seems that there's an error in the update
@beele I've just made a fresh install of HOOBS and the plugin. I've encountered the same problem as before. Here the output:
25/6/2020, 23:20:45 Loaded plugin "homebridge-unifi-protect-camera-motion".
25/6/2020, 23:20:45 The requested platform "UnifiProtectMotion" was not registered by any plugin.
25/6/2020, 23:20:45 Your config.json is requesting the platform "UnifiProtectMotion" which has not been published by any installed plugins.
25/6/2020, 23:20:45 Bridge is running on port 51826.
25/6/2020, 23:22:03 Got SIGINT, shutting down Bridge...
25/6/2020, 23:22:12 Loaded plugin "homebridge-unifi-protect-camera-motion".
25/6/2020, 23:22:12 The requested platform "UnifiProtectMotion" was not registered by any plugin.
25/6/2020, 23:22:12 Your config.json is requesting the platform "UnifiProtectMotion" which has not been published by any installed plugins.
25/6/2020, 23:22:12 Bridge is running on port 51826.
What does your config look like? What node/homebridge/plugin versions are you using?
What does your config look like? What node/homebridge/plugin versions are you using?
@beele Here my config:
{
"server": {
"port": 80,
"origin": "*",
"autostart": 0,
"home_setup_id": "X-HM://0023ISYWY82JP",
"polling_seconds": 5
},
"client": {
"default_route": "status",
"inactive_logoff": 30,
"theme": "hoobs-dark",
"locale": "en",
"temp_units": "celsius",
"country_code": "IT",
"postal_code": "20143"
},
"bridge": {
"name": "HOOBS",
"port": 51826,
"pin": "031-45-154",
"username": "25:95:D8:D1:E5:78"
},
"description": "",
"ports": {},
"accessories": [],
"platforms": [
{
"platform": "UnifiProtectMotion",
"plugin_map": {
"plugin_name": "homebridge-unifi-protect-camera-motion"
},
"name": "Unifi protect cameras & motion sensors",
"unifi": {
"controller": "https://192.168.1.254",
"controller_rtsp": "https://192.168.1.254:7443",
"username": "XXX",
"password": "XXX",
"motion_interval": 5000,
"motion_repeat_interval": 30000,
"motion_score": 50,
"enhanced_motion": false,
"enhanced_motion_score": 50,
"enhanced_classes": [
"person"
],
"save_snapshot": false,
"debug": false
},
"googlePhotos": {
"upload_gphotos": false,
"auth_redirectUrl": "http://localhost:8080/oauth2-callback",
"auth_clientId": "",
"auth_clientSecret": ""
},
"videoConfig": {
"maxStreams": 2,
"maxWidth": 1024,
"maxHeight": 576,
"maxFPS": 15,
"maxBitrate": 3000,
"vcodec": "libx264",
"packetSize": 376,
"audio": false,
"additionalCommandline": "-protocol_whitelist https,crypto,srtp,rtp,udp"
},
"videoProcessor": ""
}
]
}
Node at version v12.16.3, plugin at 0.3.4, I can only find the HOOBS version that is 3.2.6
Can you provide a full log when you start up homebridge, cause this is most likely caused by an error when loading the plugin
Can you provide a full log when you start up homebridge, cause this is most likely caused by an error when loading the plugin
@beele do i need just to activate the verbose mode? can you give me in case the right command to have the full log of the startup sequence of homebridge? thank you
Add the debug: true field to the config and then just pipe the homebridge output to a .txt file (redact where needed) and add it here
0.4.1 has been released. I've got it running on my rbpi 4 with lastest homebridge and config-ui
{
"platform": "UnifiProtectMotion",
"name": "Unifi protect cameras & motion sensors",
"unifi": {
"controller": "https://IP_OF_CLOUDKEY_GEN_2:PROTECT_UI_PORT",
"controller_rtsp": "rtsp://IP_OF_CLOUDKEY_GEN_2:RTSP_PORT",
"username": "USERNAME",
"password": "PASSWORD",
"motion_interval": 5000,
"motion_repeat_interval": 30000,
"motion_score": 0,
"enhanced_motion": true,
"enhanced_motion_score": 55,
"enhanced_classes": [
"person"
],
"save_snapshot": false,
"enable_motion_trigger": true,
"enable_doorbell_for": [],
"debug": false,
"debug_network_traffic": false
},
"googlePhotos": {
"upload_gphotos": false,
"auth_clientId": "CLIENT_ID",
"auth_clientSecret": "CLIENT_SECRET",
"auth_redirectUrl": "http://localhost:8080/oauth2-callback"
},
"videoConfig": {
"vcodec": "h264_omx",
"audio": true,
"maxStreams": 2,
"maxWidth": 1920,
"maxHeight": 1080,
"maxFPS": 15,
"mapvideo": "0:1",
"mapaudio": "0:0",
"maxBitrate": "3000",
"packetSize": 188,
"additionalCommandline": "-protocol_whitelist https,crypto,srtp,rtp,udp"
}
}
where you can replace h264_omx with h264 when not running on a rbpi
continued in #66
The requested platform "UnifiProtectMotion" was not registered by any plugin. Your config.json is requesting the platform "UnifiProtectMotion" which has not been published by any installed plugins.