colinbendell / homebridge-blink-for-home

Blink For Home Camera Homebridge plugin
MIT License
88 stars 27 forks source link

Blink Plugin-installation crashes homebridge #7

Closed Ron0815 closed 3 years ago

Ron0815 commented 3 years ago

I use Homebridge (latest version) on a RaspberryPi 3 B and have installed the blink-plugin via Homebridge UI-X (latest version) in order to be able to use my Blink XT2 on Homekit. Unfortunately, the installation of the plugin destroys my Homebridge installation every time (that means: it leads to the fact that the config.js can no longer be found after restarting Homebridge). The error is reproducible. Before I'll try again and get this result again, I hope someone here can help me. What can be the reason and what do I have to do? Thanks a lot for any support ... Best regards

colinbendell commented 3 years ago

That's very odd. Can you walk me through the process of your install? The install itself is handled by homebridge (download from npm, splash the config screen, save to config.js -- all are done by homebridge not through the plugin). If you can, can you show the console output in the process?

I've personally found that config.js gets corrupted when I'm running out of disk or am about to run out of life on the SD Card. Might be worth a check on that too.

Ron0815 commented 3 years ago

Thx for your prompt reaction. I'll do that after work tonight und get in touch again.

Ron0815 commented 3 years ago

To be prepaired: what do I have to do exactly to show the console output in the process? Is it sufficient to copy the log file that Homebridge generates after installing the plugin? (As you see I'am an absolute beginner)

colinbendell commented 3 years ago

No worries. The logs from homebridge is exactly what I would be looking for. (Make sure you remove any credentials before posting)

On Wed, Oct 28, 2020 at 10:06 Ron0815 notifications@github.com wrote:

To be prepaired: what do I have to do exactly to show the console output in the process? Is it sufficient to copy the log file that Homebridge generates after installing the plugin? (As you see I'am an absolute beginner)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/colinbendell/homebridge-blink-for-home/issues/7#issuecomment-717956653, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMMERNA36C5WJG52S5TXXLSNAQPTANCNFSM4TCJQKWA .

Ron0815 commented 3 years ago

Okay, I'll do so.

Ron0815 commented 3 years ago

So here it is: Loading logs using "custom" method... CMD: journalctl -o cat -n 500 -f -u homebridge

Started Node.js HomeKit Server. [9/26/2020, 15:17:08] Loaded config.json with 0 accessories and 3 platforms. [9/26/2020, 15:17:08] --- [9/26/2020, 15:17:10] Loaded plugin: homebridge-camera-ffmpeg@3.0.3 [9/26/2020, 15:17:10] Registering platform 'homebridge-camera-ffmpeg.Camera-ffmpeg' [9/26/2020, 15:17:10] --- [9/26/2020, 15:17:10] Loaded plugin: homebridge-config-ui-x@4.27.2 [9/26/2020, 15:17:10] Registering platform 'homebridge-config-ui-x.config' [9/26/2020, 15:17:10] --- [9/26/2020, 15:17:10] Loaded plugin: homebridge-homematic@0.1.231 [9/26/2020, 15:17:10] Registering platform 'homebridge-homematic.HomeMatic' [9/26/2020, 15:17:10] --- [9/26/2020, 15:17:10] Loading 3 platforms... [9/26/2020, 15:17:10] [Config] Initializing config platform... [9/26/2020, 15:17:10] [Config] Spawning homebridge-config-ui-x with PID 498 [9/26/2020, 15:17:10] [HomeMatic CCU] Initializing HomeMatic platform... [9/26/2020, 15:17:10] [HomeMatic CCU] [Core] merging configurations [9/26/2020, 15:17:10] [HomeMatic CCU] Homematic Plugin Version 0.1.231 [9/26/2020, 15:17:10] [HomeMatic CCU] Plugin by thkl https://github.com/thkl [9/26/2020, 15:17:10] [HomeMatic CCU] Homematic is a registered trademark of the EQ-3 AG [9/26/2020, 15:17:10] [HomeMatic CCU] Please report any issues to https://github.com/thkl/homebridge-homematic/issues [9/26/2020, 15:17:10] [HomeMatic CCU] running in production mode [9/26/2020, 15:17:10] [HomeMatic CCU] will connect to your ccu at 192.168.xxx.xx [9/26/2020, 15:17:10] [HomeMatic CCU] IMPORTANT !! Starting this version, your homematic custom configuration is located in /var/homebridge/homematic_config.json [9/26/2020, 15:17:10] [HomeMatic CCU] [RPC] using xmprpc for communication with BidCos-RF [9/26/2020, 15:17:10] [HomeMatic CCU] init RPC for BidCos-RF. [9/26/2020, 15:17:10] [HomeMatic CCU] [RPC] Can not fetch IP [9/26/2020, 15:17:10] [HomeMatic CCU] init RPC for VirtualDevices. [9/26/2020, 15:17:10] [HomeMatic CCU] [RPC] Can not fetch IP [9/26/2020, 15:17:10] [HomeMatic CCU] [RPC] using xmprpc for communication with BidCos-Wired [9/26/2020, 15:17:10] [HomeMatic CCU] init RPC for BidCos-Wired. [9/26/2020, 15:17:10] [HomeMatic CCU] [RPC] Can not fetch IP [9/26/2020, 15:17:10] [HomeMatic CCU] init RPC for HmIP-RF. [9/26/2020, 15:17:10] [HomeMatic CCU] [RPC] Can not fetch IP [9/26/2020, 15:17:10] [Camera FFmpeg] Initializing Camera-ffmpeg platform... [9/26/2020, 15:17:10] [Camera FFmpeg] [Reo001] Configuring cached bridged accessory... [9/26/2020, 15:17:10] [Camera FFmpeg] [Reo002] Configuring cached bridged accessory... [9/26/2020, 15:17:10] [HomeMatic CCU] Error Error: connect ENETUNREACH 192.168.178.69:8181 - Local (0.0.0.0:0)while executing rega script Write('PONG') [9/26/2020, 15:17:10] [HomeMatic CCU] if undefined is PONG CCU is alive [9/26/2020, 15:17:10] [HomeMatic CCU] Error Error: connect ENETUNREACH 192.168.xxx.xx:8181 - Local (0.0.0.0:0)while executing rega script string sDeviceId;string sChannelId;boolean df = true;Write('{"devices":[');foreach(sDeviceId, root.Devices().EnumIDs()){object oDevice = dom.GetObject(sDeviceId);if(oDevice){var oInterface = dom.GetObject(oDevice.Interface());if(df) {df = false;} else { Write(',');}Write('{');Write('"id": "' # sDeviceId # '",');Write('"name": "' # oDevice.Name() # '",');Write('"address": "' # oDevice.Address() # '",');Write('"type": "' # oDevice.HssType() # '",');Write('"channels": [');boolean bcf = true;foreach(sChannelId, oDevice.Channels().EnumIDs()){object oChannel = dom.GetObject(sChannelId);if(bcf) {bcf = false;} else {Write(',');}Write('{');Write('"cId": ' # sChannelId # ',');Write('"name": "' # oChannel.Name() # '",');if(oInterface){Write('"intf": "' # oInterface.Name() # '",');Write('"address": "' # oInterface.Name() #'.' # oChannel.Address() # '",');}Write('"type": "' # oChannel.HssType() # '",');Write('"access": "' # oChannel.UserAccessRights(iulOtherThanAdmin)# '"');Write('}');}Write(']}');}}Write(']');var s = dom.GetObject("Homekit");string cid;boolean sdf = true;if (s) {Write(',"subsection":[');foreach(cid, s.EnumUsedIDs()){ if(sdf) {sdf = false;} else { Write(',');}Write(cid);}Write(']');}Write('}'); [9/26/2020, 15:17:10] [HomeMatic CCU] [Core] ok local cache is set to /var/homebridge/ccu.json [9/26/2020, 15:17:10] [HomeMatic CCU] [Core] loaded ccu data from local cache ... WARNING: your mileage may vary [9/26/2020, 15:17:14] [HomeMatic CCU] [ServiceClassLoader] There is no service for HmIP-WGC:SWITCH_TRANSMITTER [9/26/2020, 15:17:14] [HomeMatic CCU] [ServiceClassLoader] There is no service for HM-CC-RT-DN:WEATHER_RECEIVER [9/26/2020, 15:17:14] [HomeMatic CCU] [ServiceClassLoader] There is no service for HM-CC-RT-DN:WEATHER_RECEIVER [9/26/2020, 15:17:15] [HomeMatic CCU] [ServiceClassLoader] There is no service for HM-CC-RT-DN:WEATHER_RECEIVER [9/26/2020, 15:17:15] [HomeMatic CCU] [ServiceClassLoader] There is no service for HM-CC-RT-DN:WEATHER_RECEIVER [9/26/2020, 15:17:15] [HomeMatic CCU] [ServiceClassLoader] There is no service for HM-CC-RT-DN:WEATHER_RECEIVER [9/26/2020, 15:17:15] [HomeMatic CCU] [ServiceClassLoader] There is no service for HM-CC-RT-DN:REMOTECONTROL_RECEIVER [9/26/2020, 15:17:15] Initializing platform accessory 'Außenbeleuchtung Einfahrt/Vorgarten'... [9/26/2020, 15:17:15] Initializing platform accessory 'Buddha/Terrasse Lichtstreifen'... [9/26/2020, 15:17:15] Initializing platform accessory 'Dekoleuchte... [9/26/2020, 15:17:15] Initializing platform accessory 'Dekoleuchte x... [9/26/2020, 15:17:15] Initializing platform accessory 'Dimmer Esszimmer'... [9/26/2020, 15:17:15] Initializing platform accessory 'Sensor Fenster links'... [9/26/2020, 15:17:15] Initializing platform accessory 'Sensor Fenster rechts'... [9/26/2020, 15:17:15] Initializing platform accessory 'Garage 1 Taster'... [9/26/2020, 15:17:15] Initializing platform accessory 'Garage 2 Taster'... [9/26/2020, 15:17:15] Initializing platform accessory 'HmIP WGC 00131A499B8E59 4'... [9/26/2020, 15:17:15] Initializing platform accessory 'HmIP WGC 00131A499B8E59 5'... [9/26/2020, 15:17:15] Initializing platform accessory 'HKT Bad EG 3'... [9/26/2020, 15:17:15] Initializing platform accessory 'HKT Büro 1'... [9/26/2020, 15:17:15] Initializing platform accessory 'HKT Erker 3'... [9/26/2020, 15:17:15] Initializing platform accessory 'HKT EssZ 1'... [9/26/2020, 15:17:15] Initializing platform accessory 'HKT x 2'... [9/26/2020, 15:17:15] Initializing platform accessory 'HKT Küche 1'... [9/26/2020, 15:17:15] Initializing platform accessory 'HKT x 4'... [9/26/2020, 15:17:15] Initializing platform accessory 'Lichtschalter Garage 2'... [9/26/2020, 15:17:15] Initializing platform accessory 'Lichterkette Flur'... [9/26/2020, 15:17:15] Initializing platform accessory 'Lichterkette x... [9/26/2020, 15:17:15] Initializing platform accessory 'Lumibär x... [9/26/2020, 15:17:15] Initializing platform accessory 'Hue Osram plug 1'... [9/26/2020, 15:17:15] Initializing platform accessory 'Poolpumpe Schalter WZ'... [9/26/2020, 15:17:15] Initializing platform accessory 'Rollade WZ Terrasse'... [9/26/2020, 15:17:15] Initializing platform accessory 'Rolladen Erker links'... [9/26/2020, 15:17:15] Initializing platform accessory 'Rolladen Erker mitte'... [9/26/2020, 15:17:15] Initializing platform accessory 'Rolladen Erker rechts'... [9/26/2020, 15:17:15] Initializing platform accessory 'Rolladen Esszimmer links'... [9/26/2020, 15:17:15] Initializing platform accessory 'Rolladen Esszimmer rechts'... [9/26/2020, 15:17:15] Initializing platform accessory 'Rolladen Flur'... [9/26/2020, 15:17:15] Initializing platform accessory 'Rolladen x... [9/26/2020, 15:17:15] Initializing platform accessory 'Rolladen Küche links'... [9/26/2020, 15:17:15] Initializing platform accessory 'Rolladen Küche rechts'... [9/26/2020, 15:17:15] Initializing platform accessory 'Rolladen x... [9/26/2020, 15:17:15] Initializing platform accessory 'Rolladen SchlafZ klein'... [9/26/2020, 15:17:15] Initializing platform accessory 'Rolladen Schlafzimmer groß'... [9/26/2020, 15:17:15] Initializing platform accessory 'Garagentor 1'... [9/26/2020, 15:17:15] Initializing platform accessory 'Garagentor 2'... [9/26/2020, 15:17:15] Initializing platform accessory 'Türsensor SchlafZ'... [9/26/2020, 15:17:15] Initializing platform accessory 'Türsensor Terrasse Flur'... [9/26/2020, 15:17:15] Initializing platform accessory 'Sensor Terrassentüre WohnZ'... [9/26/2020, 15:17:15] Initializing platform accessory 'Wandthermostat x... [9/26/2020, 15:17:15] Initializing platform accessory 'Wandthermostat x 1'... [9/26/2020, 15:17:15] Initializing platform accessory 'Wandthermostat x... [9/26/2020, 15:17:15] Initializing platform accessory 'Wandthermostat x 1'... [9/26/2020, 15:17:15] Initializing platform accessory 'Wandthermostat WohnZ'... [9/26/2020, 15:17:15] Initializing platform accessory 'Wandthermostat WohnZ 1'... [9/26/2020, 15:17:15] Initializing platform accessory 'Weihnachtsbeleuchtung'... Setup Payload: X-HM://0023ISYWY2100 Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

QR-Code

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐
│ 031-45-154 │
└────────────┘

[9/26/2020, 15:17:15] Homebridge v1.2.3 is running on port 51826. [9/26/2020, 15:17:19] [HomeMatic CCU] Unable to fetch new versions [9/26/2020, 15:17:19] [HomeMatic CCU] [Core] NPM 0.1.231 vs Local 0.1.231 [9/26/2020, 15:17:19] [Config] Homebridge Config UI X v4.27.2 is listening on :: port 8080 [9/26/2020, 15:17:30] [Config] Failed login attempt [9/26/2020, 15:17:30] [Config] If you've forgotten your password you can reset to the default of admin/admin by deleting the "auth.json" file (/var/homebridge/auth.json) and then restarting Homebridge. [10/28/2020, 17:58:05] [Config] Running Command: sudo -E -n npm install homebridge-blink-for-home@latest homebridge : TTY=pts/0 ; PWD=/usr/local/lib ; USER=root ; COMMAND=/usr/local/bin/npm install homebridge-blink-for-home@latest pam_unix(sudo:session): session opened for user root b

Ron0815 commented 3 years ago

This log results from a fresh recovery - and now it runs. What‘s that???

Ron0815 commented 3 years ago

Thank you Colin. I think this issue can be closed. The problem seems to be fixed.

colinbendell commented 3 years ago

thanks! It does look like an unrelated issue with HomeMatic CCU. Let me know if you have any other issues.

On Wed, Oct 28, 2020 at 2:22 PM Ron0815 notifications@github.com wrote:

Closed #7 https://github.com/colinbendell/homebridge-blink-for-home/issues/7.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/colinbendell/homebridge-blink-for-home/issues/7#event-3932757391, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMMERNLPKLEUTEXQFF2G7DSNBOOZANCNFSM4TCJQKWA .

Ron0815 commented 3 years ago

No, there are no other issues. Homebridge is running, the homebridge-homatic-plugin is not installed any more.