Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major issue with home kit server(s) not starting in 0.20.0 #83

Closed
mlooss opened this issue Mar 23, 2018 · 68 comments
Closed

Major issue with home kit server(s) not starting in 0.20.0 #83

mlooss opened this issue Mar 23, 2018 · 68 comments
Assignees
Labels
beta testing Issues that popped up during beta testing potentially resolved or non-issue Bug that cannot be reproduced and may be fixed or a one-off user problem question Further information is requested test results pending Issue is pending the outcome of test results or special build

Comments

@mlooss
Copy link

mlooss commented Mar 23, 2018

Not sure if this is an issue or a bug yet, because I don't see any one else having this problem? My HomeKit beta testing so far has gone fairly smooth, most issue I encountered I was able to solve following the beta discussion and the Wiki. I update to new releases fairly fast and had occasional issues with the server not starting, but since v 0.20.0 I have had major issues with the server(s) failing to start. I have rebuilt the folder, reloaded the plug-in, stopped and started the Indigo server and even removed and replaced the plug-in with a new download of the same version. I did make a huge mistake, by going back to the exclude devices and I removed devices I had already included in HomeKit, I should have deleted them from HomeKit first, but I guess my brain wasn't working at that moment. I ended up removing and deleted every home kit file and folder and the plug-in and starting fresh. On the first server startup it failed to start with the same error, after many folder rebuilds, plug-in reloads and many other troubleshooting steps the server would start eventually, but after I add more device, it fails to start again. I just created a second server for my two SecuritySpay cameras (they did work perfectly before) and it failed to start too. I already ran a file system check on my disk and I don't see any problems there.

Here is my Indigo log, the server log is now empty after all those folder rebuilds, sorry.

Mar 22, 2018, 7:41:06 PM
Reloading plugin "HomeKit Bridge 0.20.0"
Stopping plugin "HomeKit Bridge 0.20.0" (pid 78440)
HomeKit Bridge Warning

#####################################################################

HOMEKIT BRIDGE RUNNING SERVER SHUTDOWN

#####################################################################

Now blind stopping all running servers, due to Indigo timeout

limits the plugin cannot wait for them to stop but will instead

shut them down blindly and let them refresh when the plugin

restarts

#####################################################################

HomeKit Bridge Blind stopping 'Indigo Homekit'
Stopped plugin "HomeKit Bridge 0.20.0"
Starting plugin "HomeKit Bridge 0.20.0" (pid 62508)
Trigger Update server memory variable
Started plugin "HomeKit Bridge 0.20.0"
HomeKit Bridge Attempting to start 'Indigo Homekit'
HomeKit Bridge Warning

#####################################################################

HOMEKIT BRIDGE HIDDEN ITEMS WARNING

#####################################################################

You have 404 Indigo items being hidden, you can manage these

from the plugin menu.

#####################################################################

HomeKit Bridge Attempting to start 'Indigo Homekit Cameras'
HomeKit Bridge HomeKit Bridge is loaded and ready to use

Mar 22, 2018, 7:41:49 PM
HomeKit Bridge Error HomeKit server 'Indigo Homekit' could not be started, please check the service logs for more information,
now issuing a forced shutdown of the service to be safe.

If you continue to have problems starting this server use the Advanced Plugin Actions menu option to rebuild the Homebridge folder.
Instructions at https://github.com/Colorado4Wheeler/HomeKit-Bridge/wiki/Plugin-Menu-Utilities#rebuild-homebridge-folder
HomeKit Bridge Error HomeKit server 'Indigo Homekit Cameras' could not be started, please check the service logs for more information,
now issuing a forced shutdown of the service to be safe.

If you continue to have problems starting this server use the Advanced Plugin Actions menu option to rebuild the Homebridge folder.
Instructions at https://github.com/Colorado4Wheeler/HomeKit-Bridge/wiki/Plugin-Menu-Utilities#rebuild-homebridge-folder
HomeKit Bridge Attempting to stop 'Indigo Homekit'
HomeKit Bridge Attempting to stop 'Indigo Homekit Cameras'
HomeKit Bridge HomeKit server 'Indigo Homekit' has been stopped
HomeKit Bridge HomeKit server 'Indigo Homekit Cameras' has been stopped

Mar 22, 2018, 7:43:44 PM
Reloading plugin "Cynical SecuritySpy 2.3.0"
Stopping plugin "Cynical SecuritySpy 2.3.0" (pid 90856)
Trigger MOLE Camera unavailable - Push Notification
Pushover Debug Camera went offline
Pushover Debug Kitchen and Living Room Camera
Pushover Debug Result: {"status":1,"request":"0cef3d1d-fd8a-4d9d-b92d-0b64285ac3fc"}
Stopped plugin "Cynical SecuritySpy 2.3.0"
Starting plugin "Cynical SecuritySpy 2.3.0" (pid 72431)

Mar 22, 2018, 7:44:32 PM
Cynical SecuritySpy API version 2.0
Cynical SecuritySpy Python version 2.7.10.final.0
Started plugin "Cynical SecuritySpy 2.3.0"
HomeKit Bridge Removing /Library/Application Support/Perceptive Automation/Indigo 7/Preferences/Plugins/com.eps.indigoplugin.homekit-bridge/1675263299 so it can be regenerated.
HomeKit Bridge Recreated the configuration folder at /Library/Application Support/Perceptive Automation/Indigo 7/Preferences/Plugins/com.eps.indigoplugin.homekit-bridge/1675263299.
HomeKit Bridge Warning Homebridge folder for Indigo Homekit at /Library/Application Support/Perceptive Automation/Indigo 7/Preferences/Plugins/com.eps.indigoplugin.homekit-bridge/1675263299 has been rebuilt
Reloading plugin "HomeKit Bridge 0.20.0"
Stopping plugin "HomeKit Bridge 0.20.0" (pid 62508)
Stopped plugin "HomeKit Bridge 0.20.0"
Starting plugin "HomeKit Bridge 0.20.0" (pid 75509)
Schedule August Lock - update unlock status variable
Started plugin "HomeKit Bridge 0.20.0"
HomeKit Bridge Warning

#####################################################################

HOMEKIT BRIDGE HIDDEN ITEMS WARNING

#####################################################################

You have 404 Indigo items being hidden, you can manage these

from the plugin menu.

#####################################################################

HomeKit Bridge Attempting to start 'Indigo Homekit'
HomeKit Bridge Attempting to start 'Indigo Homekit Cameras'
HomeKit Bridge HomeKit Bridge is loaded and ready to use
Trigger Update server memory variable

Mar 22, 2018, 7:46:12 PM
HomeKit Bridge Error HomeKit server 'Indigo Homekit' could not be started, please check the service logs for more information,
now issuing a forced shutdown of the service to be safe.

If you continue to have problems starting this server use the Advanced Plugin Actions menu option to rebuild the Homebridge folder.
Instructions at https://github.com/Colorado4Wheeler/HomeKit-Bridge/wiki/Plugin-Menu-Utilities#rebuild-homebridge-folder
HomeKit Bridge Error HomeKit server 'Indigo Homekit Cameras' could not be started, please check the service logs for more information,
now issuing a forced shutdown of the service to be safe.

If you continue to have problems starting this server use the Advanced Plugin Actions menu option to rebuild the Homebridge folder.
Instructions at https://github.com/Colorado4Wheeler/HomeKit-Bridge/wiki/Plugin-Menu-Utilities#rebuild-homebridge-folder
HomeKit Bridge Attempting to stop 'Indigo Homekit'
HomeKit Bridge Attempting to stop 'Indigo Homekit Cameras'
HomeKit Bridge HomeKit server 'Indigo Homekit' has been stopped
HomeKit Bridge HomeKit server 'Indigo Homekit Cameras' has been stopped

Mar 22, 2018, 7:48:15 PM
HomeKit Bridge Error HomeKit server 'Indigo Homekit Cameras' could not be started, please check the service logs for more information,
now issuing a forced shutdown of the service to be safe.

If you continue to have problems starting this server use the Advanced Plugin Actions menu option to rebuild the Homebridge folder.
Instructions at https://github.com/Colorado4Wheeler/HomeKit-Bridge/wiki/Plugin-Menu-Utilities#rebuild-homebridge-folder
HomeKit Bridge Attempting to stop 'Indigo Homekit Cameras'
HomeKit Bridge HomeKit server 'Indigo Homekit Cameras' has been stopped
HomeKit Bridge Error send "Indigo Homekit Cameras" on failed

@Colorado4Wheeler
Copy link
Collaborator

Well, at least if you are going to do something wrong you do it big :). 404 items are being hidden, that could be a problem. You can delete your plugin pref file - which you didn't delete or you wouldn't get that message since that's where hidden items are stored.

That being said, the hidden items won't prevent the server from restarting and I don't see any errors regarding building the config so there must be a log there somewhere one would assume. Did you check each of your server folders for a Homebridge Log or you can use the Advanced Plugin Actions menu item to view the logs as that an option for the servers too.

Obviously something is seriously broke and I suspect on your end because nobody else reported "major issues start with 0.20.0".

And, always, if you just can't figure it out please make sure a system reboot is on your list because you never know if your issue is easily resolved with a reboot. I had an issue a couple of days ago that was driving me nuts in HomeKit Bridge and a reboot fixed me up because I just had too much running and Homebridge couldn't do its thing.

@Colorado4Wheeler Colorado4Wheeler self-assigned this Mar 23, 2018
@Colorado4Wheeler Colorado4Wheeler added question Further information is requested beta testing Issues that popped up during beta testing potentially resolved or non-issue Bug that cannot be reproduced and may be fixed or a one-off user problem test results pending Issue is pending the outcome of test results or special build labels Mar 23, 2018
@mlooss
Copy link
Author

mlooss commented Mar 23, 2018

I kind of figured it is something on my end, but I spent the last couple of days troubleshooting and didn't won't to add more to your plate. Do you sleep and are you still married, because men you are on a roll here LOL? The camera integration blew me away, it worked from the start and got better with each new release until v0.20.

Yes, I did delete this pref file and everything else related to it. When the Homekit Bridge started there were no items excluded, I went ahead and excluded them all. Yes, 400 plus, I got fingscan running and it adds new network device to Indigo which makes up the bulk of those hidden devices, it got out of control now and I should do some house cleaning.

I have not yet rebooted my server again, except when I ran the file system check recently while troubleshooting this continued issue, which makes me believe this may not solve my problem.

It is weird, I started out with a fresh install of your plug-in and had this problem immediately?

@Colorado4Wheeler
Copy link
Collaborator

Do you sleep and are you still married, because men you are on a roll here

No and yes. Although the time I've devoted to this project over the past, what, 7 or 8 weeks now is starting to take a toll on other things.

How many HKB servers are you running? I'm going to try to whip up quick script for you to run to see if we can get to the bottom of this.

@mlooss
Copy link
Author

mlooss commented Mar 23, 2018 via email

@Colorado4Wheeler
Copy link
Collaborator

Colorado4Wheeler commented Mar 23, 2018 via email

@mlooss
Copy link
Author

mlooss commented Mar 24, 2018

Yep, I knew the camera roadmap existed, I just never expected it as part for his beta. Anyway, the cameras used to work great for me, but I am still getting some errors I did not expect, even after a full removal and clean install of v v0.20.0 plug-in. While I drafted this post, the newly cerated Indigo HomeKit server eventually started but it took a while.

I have not yet excluded any devices and only added one Indigo device and it generated the below listed error. Another odd thing, I had changed the low default battery warning in the server from 20 to 25% and even so I had deleted all Homebrige files and folder, when I installed the plugin they 25% value showed, I expect it to be back at 20%?

HomeKit Bridge Error While performing a sanity check on the config folder, /Library/Application Support/Perceptive Automation/Indigo 7/Preferences/Plugins/com.eps.indigoplugin.homekit-bridge/1995801804 was not there.

@mlooss
Copy link
Author

mlooss commented Mar 24, 2018

Here is another weird issue, I just noticed when I wanted to add my newly created HomeKit server. My previous Homekit server for cameras, which I deleted and and this moment it does not exist in Indigo, but yet Apple HomeKit in the Home app sees both cameras and allowed me to set them up. Even more odd, is the fact that it shows my previous HomeKit Camera server and when I click on it it responds by asking for the accessory key. Both cameras work without me adding this camera server?

I there some caching going on by Apple's HomeKit, I was a full ay without running the HomeKit Bridge.

@Colorado4Wheeler
Copy link
Collaborator

Colorado4Wheeler commented Mar 24, 2018 via email

@mlooss
Copy link
Author

mlooss commented Mar 25, 2018

I am sure it is something on my end, just trying to get to the bottom of it, since it only started to happened with beta v 0.200. I rebooted my computer and it solved the issue with the camera server and cameras, showing up without having those server/devices configured. This tells me that there is some process still running on my computer, even after all servers had been stopped, plug-in disabled and all relevant files had been deleted. I even restarted the Indigo Server before I downloaded and re-installed the same version again. I also ran DiskWarrior on my server disk and it found no major issues.

I now started to add devices again, but only a few at a time and the server started and I was able to it to the Home app. I also created my camera server again and this one runs just fine, but when I edit some device on my Indigo device server, the Home app goes to updating (of course it is waiting for the server to come online again), but then all devices become unresponsive. I rebuild the folder and stopped and started the plug-in, but nothing works. Both of my Homekit servers are running now but all devices except the cameras are "No response"?

Here is another observation, I dont have one of those fancy garage door openers yet, I was using a Mimo Lite with door sensors (vertical vs horizontal sensor), I don't know when this change to took place, but now I have to invert the on/off state which was not the case before. No big problem, just something I noticed now.

Here is the log file, it does show some errors.

Mar 24, 2018, 8:00:30 PM
HomeKit Bridge Error: EPERM, Operation not permitted
at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/node_modules/uid-number/uid-number.js:49:16
at ChildProcess.exithandler (child_process.js:267:7)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:567:12)
TypeError: Cannot read property 'get' of undefined
at errorHandler (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/lib/utils/error-handler.js:205:18)
at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/bin/npm-cli.js:83:20
at cb (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/lib/npm.js:224:22)
at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/lib/npm.js:262:24
at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/lib/config/core.js:81:7
at Array.forEach ()
at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/lib/config/core.js:80:13
at f (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/node_modules/once/once.js:25:25)
at afterExtras (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/lib/config/core.js:178:20)
at Conf. (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/lib/config/core.js:236:22)
at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/node_modules/uid-number/uid-number.js:51:14
at ChildProcess.exithandler (child_process.js:267:7)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.stream.socket.on (internal/child_process.js:346:11)
/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/lib/utils/error-handler.js:205
if (npm.config.get('json')) {
^

TypeError: Cannot read property 'get' of undefined
at process.errorHandler (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/lib/utils/error-handler.js:205:18)
at emitOne (events.js:116:13)
at process.emit (events.js:211:7)
at process._fatalException (bootstrap_node.js:375:26)
[2018-3-24 19:23:13] Loaded plugin: homebridge-camera-ffmpeg
[2018-3-24 19:23:13] Registering platform 'homebridge-camera-ffmpeg.Camera-ffmpeg'
[2018-3-24 19:23:13] ---
[2018-3-24 19:23:13] Loaded plugin: homebridge-indigo2
[2018-3-24 19:23:13] Registering platform 'homebridge-indigo2.Indigo2'
[2018-3-24 19:23:13] ---
[2018-3-24 19:23:13] Loaded config.json with 0 accessories and 1 platforms.
[2018-3-24 19:23:13] ---
[2018-3-24 19:23:13] Loading 1 platforms...
[2018-3-24 19:23:13] [HomeKit Bridge Server] Initializing Indigo2 platform...
[2018-3-24 19:23:13] [HomeKit Bridge Server] HomeKit Bridge base URL is http://127.0.0.1:8558
[2018-3-24 19:23:13] [HomeKit Bridge Server] HomeKit Bridge serverId is 1995801804
[2018-3-24 19:23:13] Loading 0 accessories...
Load homebridge-camera-ffmpeg.Camera-ffmpeg
[2018-3-24 19:23:13] [HomeKit Bridge Server] Listening on port 8445
[2018-3-24 19:23:13] [HomeKit Bridge Server] HomeKit Bridge request: http://127.0.0.1:8558/HomeKit?cmd=deviceList&serverId=1995801804
[2018-3-24 19:23:14] [HomeKit Bridge Server] Discovered Device Outlet (ID 00456c2315188718275e3c779e2c06814d9168c13dd20779e8c88803b199ee4d): Front House Outlet
[2018-3-24 19:23:14] [HomeKit Bridge Server] Discovered Device Lightbulb (ID fdbc509bb406bd0f20a86c3caee11b00218e9386ed2bd92292c5e5ef358298b4): Front Porch Light
[2018-3-24 19:23:14] [HomeKit Bridge Server] Discovered Device GarageDoorOpener (ID 1e5a784cdbe15c76dec9998d857473a39d70c08fc51d326f4c794701e3f591ef): Garage Door Left
[2018-3-24 19:23:14] [HomeKit Bridge Server] Discovered Device GarageDoorOpener (ID bb30e13819f9cfeea16cdb22d2957a29e021219c72636eceb1f39f4722d9d83c): Garage Door Right
[2018-3-24 19:23:14] [HomeKit Bridge Server] Discovered Device Lightbulb (ID e0a0ea9c9546dd8076786db6064a511da68ce714d69586a9ed56448f205c33cc): Kitchen Ceiling Light
[2018-3-24 19:23:14] [HomeKit Bridge Server] Discovered Device TemperatureSensor (ID 4d4949b6aeab6f26a6b9fe656e33d2b25098f3cc95bd34a9fdf5a788e0f8ff2c): Kitchen Temperature
[2018-3-24 19:23:14] [HomeKit Bridge Server] Discovered Device Lightbulb (ID bf9af046ef54f323c7d6a00155820c6724b1814b90506c5569acb307f5d3d424): Master Dresser Light
[2018-3-24 19:23:14] [HomeKit Bridge Server] Discovered Device Lightbulb (ID 2230e5eff75acb44a626c66c10b120bce5d7967e6be9b0d9c8d0b3ce6a807262): Master IKEA Ceiling Lamp
[2018-3-24 19:23:14] [HomeKit Bridge Server] Discovered Device Thermostat (ID 134538f7ba17b30368cbf1fcd2859bddcbe6327af2fb6e189fb2d7192fa07b95): Master Thermostat
[2018-3-24 19:23:14] [HomeKit Bridge Server] Discovered Device Lightbulb (ID dc66bafeda39887e039c30a43e05f6054215f348a600f86a03284abf6da521a1): Patio Pole Left
[2018-3-24 19:23:14] [HomeKit Bridge Server] Discovered Device Lightbulb (ID 78043247aa57be6aa724178e542a364f29ab1d7fea9281ff5eafedac4dbd7ae2): Patio Pole Rear
[2018-3-24 19:23:14] [HomeKit Bridge Server] Discovered Device Lightbulb (ID 50fa4bdc83a30cc69eae8c445c0c1f1e731cc786a2714a1e5b59c4088784f2f2): Patio Pole Right
[2018-3-24 19:23:14] [HomeKit Bridge Server] Discovered Device Switch (ID 303797873369c955eadb41651fa84235630621359336fea9433fe899f2b8f550): Set Party Mode
[2018-3-24 19:23:14] [HomeKit Bridge Server] Discovered Device Fan (ID f2be7057a96dfc073264c027387c78bb8cdfdbcdc4a1ce30bf0a8074a99958d2): Terrace Fan
[2018-3-24 19:23:14] [HomeKit Bridge Server] Discovered Device Lightbulb (ID 32e429e21eb6e80a50e96a0e0c74554d98f6ca9710512ecd55261f796bc20ddc): Terrace Laser
[2018-3-24 19:23:14] [HomeKit Bridge Server] Discovered Device Lightbulb (ID 793928436734c85754f314b57e99da941941f6968649a1956d8ba182cd0102e3): Terrace Lights
[2018-3-24 19:23:14] [HomeKit Bridge Server] Created 16 accessories
[2018-3-24 19:23:14] [HomeKit Bridge Server] Initializing platform accessory 'Front House Outlet'...
[2018-3-24 19:23:14] [HomeKit Bridge Server] Initializing platform accessory 'Front Porch Light'...
[2018-3-24 19:23:14] [HomeKit Bridge Server] Initializing platform accessory 'Garage Door Left'...
[2018-3-24 19:23:14] [HomeKit Bridge Server] Initializing platform accessory 'Garage Door Right'...
[2018-3-24 19:23:14] [HomeKit Bridge Server] Initializing platform accessory 'Kitchen Ceiling Light'...
[2018-3-24 19:23:14] [HomeKit Bridge Server] Initializing platform accessory 'Kitchen Temperature'...
[2018-3-24 19:23:14] [HomeKit Bridge Server] Initializing platform accessory 'Master Dresser Light'...
[2018-3-24 19:23:14] [HomeKit Bridge Server] Initializing platform accessory 'Master IKEA Ceiling Lamp'...
[2018-3-24 19:23:14] [HomeKit Bridge Server] Initializing platform accessory 'Master Thermostat'...
[2018-3-24 19:23:14] [HomeKit Bridge Server] Initializing platform accessory 'Patio Pole Left'...
[2018-3-24 19:23:14] [HomeKit Bridge Server] Initializing platform accessory 'Patio Pole Rear'...
[2018-3-24 19:23:14] [HomeKit Bridge Server] Initializing platform accessory 'Patio Pole Right'...
[2018-3-24 19:23:14] [HomeKit Bridge Server] Initializing platform accessory 'Set Party Mode'...
[2018-3-24 19:23:14] [HomeKit Bridge Server] Initializing platform accessory 'Terrace Fan'...
[2018-3-24 19:23:14] [HomeKit Bridge Server] Initializing platform accessory 'Terrace Laser'...
[2018-3-24 19:23:14] [HomeKit Bridge Server] Initializing platform accessory 'Terrace Lights'...
Setup Payload:
X-HM://0023ISYWY9G5B
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m
[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m
[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m
[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m
[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m
[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

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

[2018-3-24 19:23:14] Homebridge is running on port 51827.
[2018-3-24 19:34:07] [HomeKit Bridge Server] GET update request for device ID 4d4949b6aeab6f26a6b9fe656e33d2b25098f3cc95bd34a9fdf5a788e0f8ff2c
[2018-3-24 19:34:07] [HomeKit Bridge Server] Kitchen Temperature: refresh()
[2018-3-24 19:34:07] [HomeKit Bridge Server] HomeKit Bridge request: http://127.0.0.1:8558/HomeKit?objId=612924995&serverId=1995801804&jkey=4d4949b6aeab6f26a6b9fe656e33d2b25098f3cc95bd34a9fdf5a788e0f8ff2c&cmd=getInfo
[2018-3-24 19:34:07] [HomeKit Bridge Server] Kitchen Temperature: updateCharacteristicValue(CurrentTemperature): 87.6 -> 87.2
[2018-3-24 19:58:48] Got SIGTERM, shutting down Homebridge...

Mar 24, 2018, 8:01:07 PM
HomeKit Bridge HomeKit server 'Indigo HomeKit' is not currently running, the configuration has been saved and will be used the next time this server starts

Mar 24, 2018, 8:01:37 PM
HomeKit Bridge Attempting to start 'Indigo HomeKit'

@mlooss
Copy link
Author

mlooss commented Mar 25, 2018

Both of my servers wont start at all now and I have reached the end of troubleshooting, this has been verify frustrating considering that everything worked just fine up until v 0.20.0.
So far from what I have experienced, the servers run fine the first time and when I add, edit or remove a device they then fail to start.

@Colorado4Wheeler
Copy link
Collaborator

Colorado4Wheeler commented Mar 25, 2018 via email

@mlooss
Copy link
Author

mlooss commented Mar 26, 2018

Yes, I deleted all of these files including the HomeKit pref file located one folder level up from the server folders parent folder.

Here is how I went about it.

  1. Stopped both of my homekit servers in Indigo
  2. Disabled the plug-in
  3. Stopped the Indigo server
  4. Deleted the plug-in from the plugins (disabled) folder
  5. Deleted the folder containing the servers
  6. Deleted the HomeKit prefs while one level up

I then searched within the Indigo folder for anything containing homekit and found no other files.

The battery issue and the cameras showing up without any of my servers running was solved after I restarted my Mac mini server.

I am now going through these same steps again and to my surprise I see three server folder, but I only ever created two servers? I did go through the rebuild folder utility several times, but not always looking into them.

I am downloading the plugin as I post this reply and the zip decompression process is taking forever and my server just rebooted by itself?

@FlyingDiver
Copy link
Collaborator

I am downloading the plugin as I post this reply and the zip decompression process is taking forever and my server just rebooted by itself?

Sounds like you might have a hardware issue.

@mlooss
Copy link
Author

mlooss commented Mar 26, 2018

I already considered this too and I ran several hardware tests and disk utilities and my system passed them all. The issue with the zip expansion taking a long time was solved when CW4 removed the links and then later reduced the archive size. I only see this issue with his files now again and not in any other downloads.

@Colorado4Wheeler
Copy link
Collaborator

So, given that you think that 0.20.0 is the root of all of this, what happens when you downgrade to a prior version? Presumably it will work 100% perfectly as it did before 0.20.0. Fortunately all releases are available to download for you to try this out.

Also, have you tried expanding the ZIP on a different computer?

@mlooss
Copy link
Author

mlooss commented Mar 28, 2018

Took some more time to check my server and here is what I did and where I stand now.

  1. Tested all hardware and found no issues at all. My server is protected by a UPS and it never crashes or reboots by itself. I am in Puerto Rico and the electrical power still goes out rather frequently and this server has gone through its fare number of unexpected shutdowns, but I run a file system check most of the time after such an event. The uptime is only effected when I do updates that require a reboot and otherwise it just runs.
  2. Repaired any minor issue found with DiskWarrior.
  3. All SMART tests pass and all disk drives installed or attached and yes SoftRAID v5.5 now support SMART reporting from external drives too.
  4. Server CPU load is between 20 - 35% with short lived spike to maybe around 70%.
  5. Memory installed 16 GB and using about 11 GB.
  6. All of my other server components are running without issues, they include Indigo, Plex, Channels DVR, SecuritySpy (2 cam only) and some other mac OS Server services.
  7. This server is running macOS Sierra and I re-installed Sierra, this seems to have solved the issue with the Zip decompression taking a long time. Yes, the zip file decompressed much faster on another machine and this was the reason I reinstalled the OS.
  8. Removed all things to HomeKit plug-in and installed beta 0.19.9, all worked fine until I made an edit to a device again. First the server failed to start, but after rebuilding the server folder it started and is running but the Apple Home App now shows all devices updating followed by "No Response", again?
  9. I did order a new 2.0 TB internal disk drive and it should arrive today, I don't see issues with my current drive, but it is kind of old already and before it does go south I prefer to replace it.
  10. I tried upgrading to macOS High Sierra and it failed with firmware error and while looking into this, I noticed that my Mac mini serial number is not listed anymore and I never had the logic board replaced, it is still the original. The only upgrades I did, were memory and internal disk drive upgrades and not because of problems but to expand this server. This one I need to investigate, I know that some cloud service from Apple need it, but my iCloud account and Messages app are working.

@mlooss
Copy link
Author

mlooss commented Mar 29, 2018

Looks like everyone here thinks that my issue is or was an isolated case with hardware, but after downloaded and installing v0.20.1 yesterday and deleting my homekit accessories first from the Home app, it now seems to run just fine? I have added, edited and deleted devices and the servers start and all Home app devices update and show up working, including both of my cameras that are on a second home kit server. I also swapped my disk drive today to the new one and even after cloning it and then booting from it, everything is still working.

@Colorado4Wheeler
Copy link
Collaborator

Colorado4Wheeler commented Mar 30, 2018 via email

@mlooss
Copy link
Author

mlooss commented Mar 30, 2018

We are beta testing and I am just getting all the facts together and I have been burned way to often by issues that the developer couldn't make sense off and just discarded it. Only after repeated recurring problems and finally an escalation to engineering it was confirmed to be a bug after all. Maybe there is something unique on my setup, but hard to believe since I had very little to no issues with any previous beta versions and something that the v 0.20.0 did, was still present.
You are doing an amazing job and all by yourself with this plug-in and I want it to to succeed as much as you do. I am not a developer, I wish had more time to get into it, but I don't.

Thanks

@mlooss
Copy link
Author

mlooss commented Mar 30, 2018

This morning, restarted my server and both of my HomeKit servers did not start automatically and they fail to start when I manually attempt to start them with the same error message. I already rebuild both server folders and reloaded the plug-in v0.20.1, I will now install v 0.21.0 and see how this one behaves.

HomeKit Bridge Error            HomeKit server 'Indigo Homekit' could not be started, please check the service logs for more information,
now issuing a forced shutdown of the service to be safe.

If you continue to have problems starting this server use the Advanced Plugin Actions menu option to rebuild the Homebridge folder.
Instructions at https://github.com/Colorado4Wheeler/HomeKit-Bridge/wiki/Plugin-Menu-Utilities#rebuild-homebridge-folder
   HomeKit Bridge                  Attempting to stop 'Indigo Homekit'
   Z-Wave                          received "Pool Pump Master Switch" energy total to 160.716 kWh
   HomeKit Bridge                  HomeKit server 'Indigo Homekit' has been stopped
   HomeKit Bridge Error            send "Indigo Homekit" on failed

@mlooss
Copy link
Author

mlooss commented Mar 30, 2018

Just installed v0.21.0 and both homekit servers started but I did get the below error message. I am now getting "No Response" from my Home app accessories, again.

Mar 30, 2018, 12:08:33 PM
   Stopping plugin HomeKit Bridge (pid 39808)
   Stopped plugin HomeKit Bridge
   Upgrading plugin HomeKit Bridge to newer version 0.21.0 (previous version moved to trash)
   Loading plugin "HomeKit Bridge 0.21.0"
   Starting plugin "HomeKit Bridge 0.21.0" (pid 75210)
   Started plugin "HomeKit Bridge 0.21.0"
   HomeKit Bridge                  Upgrading plugin from 0.20.1 to 0.21.0
   HomeKit Bridge                  Upgrading Indigo Homekit for changes in this plugin release
   HomeKit Bridge                  Upgrading Indigo Homekit Camera for changes in this plugin release
   HomeKit Bridge                  Upgrade success
   HomeKit Bridge Error            Exception in plugin.buildServerConfigurationDict line 4348: Failed to parse: indigo:xTeCD
							 CODE: data = requests.get(ssSystem).content# Pull XML data

   HomeKit Bridge Error            Unable to build server configuration for 'Indigo Homekit Camera'.
   HomeKit Bridge Warning          

#####################################################################
# HOMEKIT BRIDGE HIDDEN ITEMS WARNING                               #
#####################################################################
# You have 278 Indigo items being hidden, you can manage these      #
# from the plugin menu.                                             #
#####################################################################

   HomeKit Bridge Error            Exception in plugin.buildServerConfigurationDict line 4348: Failed to parse: indigo:xTeCD
							 CODE: data = requests.get(ssSystem).content# Pull XML data

   HomeKit Bridge Error            Unable to build server configuration for 'Indigo Homekit Camera'.
   HomeKit Bridge                  Attempting to start 'Indigo Homekit'
   HomeKit Bridge                  Attempting to start 'Indigo Homekit Camera'
   HomeKit Bridge                  HomeKit Bridge is loaded and ready to use

Mar 30, 2018, 12:09:24 PM
   HomeKit Bridge                  Server 'Indigo Homekit Camera' has successfully started, you can use your HomeKit apps or Siri for this accessory
   HomeKit Bridge                  Server 'Indigo Homekit' has successfully started, you can use your HomeKit apps or Siri for this accessory

@Colorado4Wheeler
Copy link
Collaborator

Colorado4Wheeler commented Mar 30, 2018 via email

@mlooss
Copy link
Author

mlooss commented Mar 30, 2018

I just did remove the cameras and deleted this home kit server. My main home kit server shows a couple of errors, see below.

**Error: EPERM, Operation not permitted**
    at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/node_modules/uid-number/uid-number.js:49:16
    at ChildProcess.exithandler (child_process.js:267:7)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:567:12)
**TypeError: Cannot read property 'get' of undefined
    at errorHandler (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-**x64/lib/node_modules/npm/lib/utils/error-handler.js:205:18)
    at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/bin/npm-cli.js:83:20
    at cb (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/lib/npm.js:224:22)
    at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/lib/npm.js:262:24
    at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/lib/config/core.js:81:7
    at Array.forEach (<anonymous>)
    at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/lib/config/core.js:80:13
    at f (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/node_modules/once/once.js:25:25)
    at afterExtras (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/lib/config/core.js:178:20)
    at Conf.<anonymous> (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/lib/config/core.js:236:22)
    at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/node_modules/uid-number/uid-number.js:51:14
    at ChildProcess.exithandler (child_process.js:267:7)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/lib/utils/error-handler.js:205
  if (npm.config.get('json')) {
                 ^

TypeError: Cannot read property 'get' of undefined
    at process.errorHandler (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/lib/utils/error-handler.js:205:18)
    at emitOne (events.js:116:13)
    at process.emit (events.js:211:7)
    at process._fatalException (bootstrap_node.js:375:26)
[2018-3-30 12:09:17] Loaded plugin: homebridge-camera-ffmpeg
[2018-3-30 12:09:18] Registering platform 'homebridge-camera-ffmpeg.Camera-ffmpeg'
[2018-3-30 12:09:18] ---
[2018-3-30 12:09:23] Loaded plugin: homebridge-indigo2
[2018-3-30 12:09:23] Registering platform 'homebridge-indigo2.Indigo2'
[2018-3-30 12:09:23] ---
[2018-3-30 12:09:23] Loaded config.json with 0 accessories and 1 platforms.
[2018-3-30 12:09:23] ---
[2018-3-30 12:09:23] Loading 1 platforms...
[2018-3-30 12:09:23] [HomeKit Bridge Server] Initializing Indigo2 platform...
[2018-3-30 12:09:23] [HomeKit Bridge Server] HomeKit Bridge base URL is http://127.0.0.1:8558
[2018-3-30 12:09:23] [HomeKit Bridge Server] HomeKit Bridge serverId is 213427823
[2018-3-30 12:09:23] Loading 0 accessories...
Load homebridge-camera-ffmpeg.Camera-ffmpeg
[2018-3-30 12:09:23] [HomeKit Bridge Server] Listening on port 8445
[2018-3-30 12:09:23] [HomeKit Bridge Server] HomeKit Bridge request: http://127.0.0.1:8558/HomeKit?cmd=deviceList&serverId=213427823
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device LockMechanism (ID d1e04e297b985c20c3ab3cb9373931ea5b3567d6a3cbe132436ca47831cfd48a): Car Port Door Lock
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device Fanv2 (ID 0a48c63f493b350b736b8d79d6cfc9c2fdd3efe34b5c07a30a5e0ac15ac782da): Family Outlet Fan
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device Switch (ID 0cc621fd9e9fe090e08408d3e55231e5ea31a4dfa5d64b24c0ffd6bc14d26625): Family Outlet Strip All
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device TemperatureSensor (ID 086588920f0c3dad517b08dc465c1d26a87ff4414dd1652a91714304b28e6df2): Family Temperature
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device Outlet (ID 843459f892ae168937e256a8c825997a2595071a46ecc435176436f849199a71): Front House Outlet
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device Lightbulb (ID 4eca44fadc46e2ee01622bb456b620c7ff1551b8d15a1d7e0e807c1d37fbd647): Front Porch Light
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device GarageDoorOpener (ID d40b67e96e4d5c86a660fdf17be39f87cf883bc1fb003f8e2ab4b48fdb4ffeac): Garage Door Status LEFT
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device GarageDoorOpener (ID 9413920b9695725b4749e5d250f4f341d94f37796794eb27db75f753fbf31209): Garage Door Status RIGHT
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device Lightbulb (ID 8f4aeae2c1dfde0c97113f30d10f795c4f6b544ad8a58ebdca0c6b7a919eb603): Kitchen Ceiling Light
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device Lightbulb (ID f52eb88cba2dd34f0cbf5ffc766b9d5d039391174cb78afdcd57e06c07b9233b): Master Balcony Light
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device Lightbulb (ID 47563e0f520d7b4234955b46b62328e41a8379443e91fda8fe29f2868c57f883): Master Bath Ceiling Light
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device Lightbulb (ID aee9e2834dbbdb76e0524e7aa676025a6fcc836b2ba39f27ec4ad990deef3d9d): Master Dresser Light
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device Thermostat (ID fbc72c7c5b18a8b1d1096640f7477e35bf672d0bb6d1b254a4f45f1ea8febfef): Master Thermostat
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device TemperatureSensor (ID 4340a8332726fcca7ef9e4b3b0e51cdc08ccfc40e522352a1f5f3d27e2550f0d): Media Room Indoor
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device Lightbulb (ID 377970e8af6f39a338f3f66de96a3e31be0258c9b8468050b963594a5ce5b968): Patio Laser Lights
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device Lightbulb (ID 01036dcf1bd9ee93c8e53fd14fd68e8ed5ab6fe4ffc83ed32e1b6f5f9f635c29): Patio Pole Left
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device Lightbulb (ID e7e2cf16afe843fa20a0bd2a7cdf75bb72fee8faf9e650185678000434ccee8d): Patio Pole Rear
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device Lightbulb (ID 0dfb0bbe3d5a446bbbee1492ebabdbce78eea3ff1e04efbc2686ec7049a83d6c): Patio Pole Right
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device Outlet (ID 4530ce5dac476afb36954af422306fb0f978139ae3d3e4e5c325cb7fc68e6185): Patio Wall Outlet 1
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device Outlet (ID b43bad839808b8b56346345c8f8bc8abd860b5f4cce8745f777250104fce8791): Patio Wall Outlet 2
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device Switch (ID e77ef161752ad44470b5a97aa4219db9a0525a79e474d1a8e306c5fb8f697075): Set Party Mode
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device Fanv2 (ID 50517b9785d0fcff55c948af10fc69d0552c9dc6b2c48c24520ae4a776575276): Terrace Fan
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device Lightbulb (ID ce954a5c74c9e5dcf4fecb3a505c2b828bef2cec651a2185ff903029a269847c): Terrace Laser
[2018-3-30 12:09:26] [HomeKit Bridge Server] Discovered Device Lightbulb (ID f9451abaa6ab1563c3b5808cba854fd50b952692bd0fda0b17c3f045d3710dd7): Terrace Lights
[2018-3-30 12:09:26] [HomeKit Bridge Server] Created 24 accessories
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Car Port Door Lock'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Family Outlet Fan'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Family Outlet Strip All'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Family Temperature'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Front House Outlet'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Front Porch Light'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Garage Door Status LEFT'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Garage Door Status RIGHT'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Kitchen Ceiling Light'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Master Balcony Light'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Master Bath Ceiling Light'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Master Dresser Light'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Master Thermostat'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Media Room Indoor'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Patio Laser Lights'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Patio Pole Left'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Patio Pole Rear'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Patio Pole Right'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Patio Wall Outlet 1'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Patio Wall Outlet 2'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Set Party Mode'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Terrace Fan'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Terrace Laser'...
[2018-3-30 12:09:26] [HomeKit Bridge Server] Initializing platform accessory 'Terrace Lights'...
Setup Payload:
X-HM://0023ISYWYGAL7
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m
�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m
�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m
�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m
�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m
�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m
�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m
�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m
�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m
�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m
�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m
�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m
�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m
�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m
�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m
�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m
�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m
�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m
�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m
�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m
�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m
�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m
�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m
�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m
�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m
�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[40m  �[0m�[47m  �[0m�[47m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[40m  �[0m�[47m  �[0m
�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m�[47m  �[0m
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 031-45-154 │     
    └────────────┘     
                       
[2018-3-30 12:09:26] Homebridge is running on port 51826.
[2018-3-30 12:14:10] Got SIGTERM, shutting down Homebridge...

@Colorado4Wheeler
Copy link
Collaborator

Colorado4Wheeler commented Mar 30, 2018 via email

@mlooss
Copy link
Author

mlooss commented Mar 30, 2018

I am confused, if Homebridge is not part of the plug-in, then where does it come from? I only ever had HBB installed but have since beta testing this plug-in removed it from Indigo. I never had the web deck homebridge installed either.

The log I posted contains the following error message, what do they mean?

**Error: EPERM, Operation not permitted**
    at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/node_modules/uid-number/uid-number.js:49:16

**TypeError: Cannot read property 'get' of undefined
    at errorHandler (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-**x64/lib/node_modules/npm/lib/utils/error-handler.js:205:18)

TypeError: Cannot read property 'get' of undefined
    at process.errorHandler (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.10.0-darwin-x64/lib/node_modules/npm/lib/utils/error-handler.js:205:18)
    at emitOne (events.js:116:13)
    at process.emit (events.js:211:7)
    at process._fatalException (bootstrap_node.js:375:26)

@mlooss
Copy link
Author

mlooss commented Apr 3, 2018

C4W, look I am not trying to be difficulty or incompetent, just looking to find a solutions to my problem. I also told you that I made tests without sending any cameras to HomeKit. My last clean install was yesterday after wiping everything HomeKit and I only created one server with no cameras at all. Apparently we both run out of ways to explain this correctly. Let me repeat myself, the error messages I posted was without any cameras in my server, so if it shows them then I do not know why. I did restart my computer after deleting everything HomeKit Bridge.

@mlooss
Copy link
Author

mlooss commented Apr 3, 2018

All necessary software components are embedded in your plug-in and if it is a permission error, then what permission should your plug-in have?
I have gone through hoops here, replaced disk drive with a new one even so the old one showed no signs of problems. Upgraded from 10.11 to 10.12 and now to 10.13 all without any issues. Changed computer, performed a barrage of extended hardware and disk drive tests with no sign of any issue. Everything else on my system is working and without a glitch, except HomeKit now.

@mlooss
Copy link
Author

mlooss commented Apr 3, 2018

I just performed a fresh install of the new plug-in v0.22.1 and I created just one server with only some lights and a few switches (NO CAMERAS).

  1. I kept all the default settings, why would the first error indicate a change for the new device for the port or username?
  2. There is no error indicating permissions problems and the homebridge.log is empty because server never started.
  3. The first sanity check fails, because no server had been created yet, but it recreated the folder.
Apr 3, 2018 at 7:34:37 PM
  
   HomeKit Bridge                  Server 'new device' has changed ports or users, validating config
   HomeKit Bridge                  Caching all HomeKit Bridge devices...

Apr 3, 2018 at 7:35:36 PM
   HomeKit Bridge                  Caching all HomeKit Bridge devices...
  
Apr 3, 2018 at 7:39:03 PM
   HomeKit Bridge Error            While performing a sanity check on the config folder, /Library/Application Support/Perceptive Automation/Indigo 7/Preferences/Plugins/com.eps.indigoplugin.homekit-bridge/1357768663 was not there.
   HomeKit Bridge                  Recreated the configuration folder at /Library/Application Support/Perceptive Automation/Indigo 7/Preferences/Plugins/com.eps.indigoplugin.homekit-bridge/1357768663.
   HomeKit Bridge                  Attempting to start 'Indigo Homekit Server'
   HomeKit Bridge Error            HomeKit server 'Indigo Homekit Server' could not be started, please check the service logs for more information,
now issuing a forced shutdown of the service to be safe.

If you continue to have problems starting this server use the Advanced Plugin Actions menu option to rebuild the Homebridge folder.
Instructions at https://github.com/Colorado4Wheeler/HomeKit-Bridge/wiki/Plugin-Menu-Utilities#rebuild-homebridge-folder
   HomeKit Bridge                  Attempting to stop 'Indigo Homekit Server'
   HomeKit Bridge                  HomeKit server 'Indigo Homekit Server' has been stopped
   HomeKit Bridge Error            send "Indigo Homekit Server" on failed

@Colorado4Wheeler
Copy link
Collaborator

Post your Homebridge log please.

@mlooss
Copy link
Author

mlooss commented Apr 4, 2018

When I execute the Show HomeBridge Log, I get this message:

Apr 3, 2018 at 11:29:31 PM
   HomeKit Bridge
   Reloading plugin "HomeKit Bridge 0.22.1"
   Stopping plugin "HomeKit Bridge 0.22.1" (pid 44488)
   Stopped plugin "HomeKit Bridge 0.22.1"                  

I then choose to reload the plug-in in debug mode and got the following messages:

Debugging plugin "HomeKit Bridge 0.22.1" (pid 45858)
 HomeKit Bridge Error            Error in plugin execution InitializeMain:

Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 7/IndigoPluginHost.app/Contents/PlugIns/plugin_base.py", line 26, in <module>
File "/Library/Application Support/Perceptive Automation/Indigo 7/IndigoPluginHost.app/Contents/PlugIns/serial/__init__.py", line 13, in <module>
File "/Library/Application Support/Perceptive Automation/Indigo 7/IndigoPluginHost.app/Contents/PlugIns/serial/serialutil.py", line 10, in <module>
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/io.py", line 51, in <module>
ImportError: dlopen(/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so, 2): Symbol not found: __PyCodecInfo_GetIncrementalDecoder
Referenced from: /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so
Expected in: flat namespace
in /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so

To my surprise, this started my single server and it is now running?

HomeKit Bridge Caching all HomeKit Bridge devices...

   Started plugin "HomeKit Bridge 0.22.1"
   HomeKit Bridge Warning          

#####################################################################
# HOMEKIT BRIDGE HIDDEN ITEMS WARNING                               #
#####################################################################
# You have 330 Indigo items being hidden, you can manage these      #
# from the plugin menu.                                             #
#####################################################################

   HomeKit Bridge                  Attempting to start 'Indigo Homekit Server'
 
   HomeKit Bridge                  HomeKit Bridge is loaded and ready to use
  

Apr 3, 2018 at 11:32:15 PM
   HomeKit Bridge                  Server 'Indigo Homekit Server' has successfully started, you can use your HomeKit apps or Siri for this accessory

@mlooss
Copy link
Author

mlooss commented Apr 4, 2018

The Terminal window opened after reloading the plug-in Debugger mode and this is the output.

Starting PuDB debugging of plugin EPS HomeKit Bridge.indigoPlugin.
To set breakpoints add indigo.debugger() calls and reload debugger.

2018-04-03 23:30:20.530 IndigoPluginHost[45858:5942739] Quitting Indigo Plugin Host - received quit signal
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...11 completed.

[Process completed]

@mlooss
Copy link
Author

mlooss commented Apr 4, 2018

I had then reloaded the plug-in in normal mode and it is running?

@mlooss
Copy link
Author

mlooss commented Apr 4, 2018

Quick update, the server keeps running and I can toggle it off/on and it will start again. But, I tried to add my server to the Home app, it showed the server and allowed me to enter the code, but failed to connect twice. On the third attempt, no HomeKit accessory is now found by the Home app, but server is running.

@Colorado4Wheeler
Copy link
Collaborator

I then choose to reload the plug-in in debug mode and got the following messages:

That's not the plugin, that's Python on your Mac and python in relation to how it is implemented by Indigo.

I had then reloaded the plug-in in normal mode and it is running?

Likely because you just needed to reload your plugin. Something that some folks have had to do after installing HKB. There is no explanation as to what changes, especially since so many never had to do this.

But, I tried to add my server to the Home app, it showed the server and allowed me to enter the code, but failed to connect twice. On the third attempt, no HomeKit accessory is now found

You likely corrupted that server in HomeKit. I've also run across having it spend a lot of time trying to load up, I have found that if I'm impatient and cancel because it doesn't work in 10 seconds that it can, and generally does, result in the same thing. So now I wait, and the last time I waited about 3-5 minutes before it finally kicked in.

To fix this you need to stop the Indigo device, change the Indigo device name, edit the config and change the HB User under advanced options by one hex character and restart, this should prime the pump again.

@mlooss
Copy link
Author

mlooss commented Apr 5, 2018

I reloaded the plug-in many time for most of my previous troubleshooting steps, but never used the debugger option.

Anyway, I changed the Indigo device name and username and now I was able to see and add my server to the Home App.

I know that Apple's HomeKit does some synching and that it may take a few minutes. This makes me think, I have 5 Apple TV's, one HomePod and a bunch of iPhones/iPads and Apple Watches, as this number has gone up could this slow down the homekit synch across all devices" . I was so happy that my server started, that I decided not to add it yet to the Home app until the following morning.

When I added the new server just now, I notices that the previously missing server actually did add all devices to the Home app even so it had failed. I had not opened the Home app all day until now. I removed this server and successfully added the new one, crossing my fingers now.

Thank you, I know this was a pain in the butt and I do appreciate your help a lot.

@mlooss
Copy link
Author

mlooss commented Apr 11, 2018

Update, everything was working fine until I upgraded to the latest beta 23.1 this morning. I installed all the updates since 0.20.0 and never had any issues. I went though the basic troubleshooting steps, again and my two servers are running, but devices are unresponsive. I had created a new server for my two cameras today and even so the server is running and I was able to add the accessory to the Home App, no cameras show?

Apr 10, 2018 at 23:10:00
   HomeKit Bridge Error            Exception in plugin.buildServerConfigurationDict line 4399: Failed to parse: indigo:xTeCD
							 CODE: data = requests.get(ssSystem).content# Pull XML data

   HomeKit Bridge Warning          Configuration will be built despite the error
   HomeKit Bridge Error            Exception in plugin.buildServerConfigurationDict line 4399: Failed to parse: indigo:xTeCD
							 CODE: data = requests.get(ssSystem).content# Pull XML data

   HomeKit Bridge Warning          Configuration will be built despite the error
   HomeKit Bridge                  Attempting to start 'Cameras HomekitServer Indigo'
   HomeKit Bridge                  Server 'Cameras HomekitServer Indigo' has successfully started, you can use your HomeKit apps or Siri for this accessory

@mlooss
Copy link
Author

mlooss commented Apr 11, 2018

Here is the log for one server:

`Apr 10, 2018 at 23:20:19
HomeKit Bridge Error: EPERM, Operation not permitted
at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/node_modules/uid-number/uid-number.js:49:16
at ChildProcess.exithandler (child_process.js:267:7)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:567:12)
TypeError: Cannot read property 'get' of undefined
at errorHandler (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/lib/utils/error-handler.js:205:18)
at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/bin/npm-cli.js:83:20
at cb (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/lib/npm.js:224:22)
at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/lib/npm.js:262:24
at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/lib/config/core.js:81:7
at Array.forEach ()
at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/lib/config/core.js:80:13
at f (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/node_modules/once/once.js:25:25)
at afterExtras (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/lib/config/core.js:178:20)
at Conf. (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/lib/config/core.js:236:22)
/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/lib/utils/error-handler.js:205
if (npm.config.get('json')) {
^

TypeError: Cannot read property 'get' of undefined
at process.errorHandler (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/lib/utils/error-handler.js:205:18)
at emitOne (events.js:116:13)
at process.emit (events.js:211:7)
at process._fatalException (bootstrap_node.js:375:26)
[2018-4-10 23:10:10] Loaded plugin: homebridge-camera-ffmpeg
[2018-4-10 23:10:10] Registering platform 'homebridge-camera-ffmpeg.Camera-ffmpeg'
[2018-4-10 23:10:10] ---
[2018-4-10 23:10:10] Loaded plugin: homebridge-indigo2
[2018-4-10 23:10:10] Registering platform 'homebridge-indigo2.Indigo2'
[2018-4-10 23:10:10] ---
[2018-4-10 23:10:10] Loaded config.json with 0 accessories and 1 platforms.
[2018-4-10 23:10:10] ---
[2018-4-10 23:10:10] Loading 1 platforms...
[2018-4-10 23:10:10] [HomeKit Bridge Server] Initializing Indigo2 platform...
[2018-4-10 23:10:10] [HomeKit Bridge Server] HomeKit Bridge base URL is http://127.0.0.1:8558
[2018-4-10 23:10:10] [HomeKit Bridge Server] HomeKit Bridge serverId is 1003435402
[2018-4-10 23:10:10] Loading 0 accessories...
Load homebridge-camera-ffmpeg.Camera-ffmpeg
[2018-4-10 23:10:10] [HomeKit Bridge Server] Listening on port 8446
[2018-4-10 23:10:10] [HomeKit Bridge Server] HomeKit Bridge request: http://127.0.0.1:8558/HomeKit?cmd=deviceList&serverId=1003435402
[2018-4-10 23:10:10] [HomeKit Bridge Server] Discovered Device Switch (ID 77971565684b4292e5b23dc155e0c72f0d564196b8aa1af9ca28bdc7a80d64a6): SecuritySpy Application
[2018-4-10 23:10:10] [HomeKit Bridge Server] Created 1 accessories
[2018-4-10 23:10:10] [HomeKit Bridge Server] Initializing platform accessory 'SecuritySpy Application'...
Setup Payload:
X-HM://0023ISYWYDJGC
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m
[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m
[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m
[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m
[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m
[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m
[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m
[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

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

[2018-4-10 23:10:10] Homebridge is running on port 51827.`

@mlooss
Copy link
Author

mlooss commented Apr 11, 2018

And here is the log for the other server:

` HomeKit Bridge Error: EPERM, Operation not permitted
at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/node_modules/uid-number/uid-number.js:49:16
at ChildProcess.exithandler (child_process.js:267:7)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:567:12)
TypeError: Cannot read property 'get' of undefined
at errorHandler (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/lib/utils/error-handler.js:205:18)
at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/bin/npm-cli.js:83:20
at cb (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/lib/npm.js:224:22)
at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/lib/npm.js:262:24
at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/lib/config/core.js:81:7
at Array.forEach ()
at /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/lib/config/core.js:80:13
at f (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/node_modules/once/once.js:25:25)
at afterExtras (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/lib/config/core.js:178:20)
at Conf. (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/lib/config/core.js:236:22)
/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/lib/utils/error-handler.js:205
if (npm.config.get('json')) {
^

TypeError: Cannot read property 'get' of undefined
at process.errorHandler (/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS HomeKit Bridge.indigoPlugin/Contents/Server Plugin/bin/hb/node-v8.11.1-darwin-x64/lib/node_modules/npm/lib/utils/error-handler.js:205:18)
at emitOne (events.js:116:13)
at process.emit (events.js:211:7)
at process._fatalException (bootstrap_node.js:375:26)
[2018-4-10 23:04:33] Loaded plugin: homebridge-camera-ffmpeg
[2018-4-10 23:04:33] Registering platform 'homebridge-camera-ffmpeg.Camera-ffmpeg'
[2018-4-10 23:04:33] ---
[2018-4-10 23:04:39] Loaded plugin: homebridge-indigo2
[2018-4-10 23:04:39] Registering platform 'homebridge-indigo2.Indigo2'
[2018-4-10 23:04:39] ---
[2018-4-10 23:04:39] Loaded config.json with 0 accessories and 1 platforms.
[2018-4-10 23:04:39] ---
[2018-4-10 23:04:39] Loading 1 platforms...
[2018-4-10 23:04:39] [HomeKit Bridge Server] Initializing Indigo2 platform...
[2018-4-10 23:04:39] [HomeKit Bridge Server] HomeKit Bridge base URL is http://127.0.0.1:8558
[2018-4-10 23:04:39] [HomeKit Bridge Server] HomeKit Bridge serverId is 1357768663
[2018-4-10 23:04:39] Loading 0 accessories...
Load homebridge-camera-ffmpeg.Camera-ffmpeg
[2018-4-10 23:04:39] [HomeKit Bridge Server] Listening on port 8445
[2018-4-10 23:04:39] [HomeKit Bridge Server] HomeKit Bridge request: http://127.0.0.1:8558/HomeKit?cmd=deviceList&serverId=1357768663
[2018-4-10 23:04:39] [HomeKit Bridge Server] Discovered Device Switch (ID c3ad41ecc60a0744ef3e8d05cb565f0b81654720c998bc8fe5f57b05225915eb): Family Outlet Strip All
[2018-4-10 23:04:39] [HomeKit Bridge Server] Discovered Device Lightbulb (ID 0e7db88896d2f6a45bbc976536acef95e92965bf1fa9f53a8459b125d96bc6b9): Kitchen Ceiling Light
[2018-4-10 23:04:39] [HomeKit Bridge Server] Discovered Device Lightbulb (ID 2842c6efde2a1fad5ed37f34ff2cfd17dc79ca4141ec9ec1c13acd2d8fc189e7): Master Balcony Light
[2018-4-10 23:04:39] [HomeKit Bridge Server] Discovered Device Lightbulb (ID bb96628997b84688b080ac8f3f458547a670cfe43248d45ca1d3857b1dc862fd): Master Bath Ceiling Light
[2018-4-10 23:04:39] [HomeKit Bridge Server] Discovered Device Lightbulb (ID 8cfb7bc0af9b95674a9fd0dedc9b2518f67182273147d03af30633f6436213c4): Master Dresser Light
[2018-4-10 23:04:39] [HomeKit Bridge Server] Discovered Device Lightbulb (ID c26abbbdeddec1e1a7a0250b8aa1f354043b6bdd69bc96c75143dd8556134679): Master IKEA Ceiling Lamp
[2018-4-10 23:04:39] [HomeKit Bridge Server] Discovered Device Lightbulb (ID 494fa53292fcf7884c18d2ffda57beddd93c73ca77d037d95d13610b2675baca): Patio Beach Lights
[2018-4-10 23:04:39] [HomeKit Bridge Server] Discovered Device Lightbulb (ID a7f4c3f7ee70866737840792903923dedf9268da0d78af2b86cc1582aeaeeda8): Patio Laser Lights
[2018-4-10 23:04:39] [HomeKit Bridge Server] Discovered Device Lightbulb (ID e56cd0bad40de1384af7693d9b7f3c09b2dcadb33953e2668e874b454ed3b28d): Patio Pole Left
[2018-4-10 23:04:39] [HomeKit Bridge Server] Discovered Device Lightbulb (ID b7f8e1dcf04b80001ab8cdcfdd481aaba62fb191c0ff023330aa4be19d0995c2): Patio Pole Rear
[2018-4-10 23:04:39] [HomeKit Bridge Server] Discovered Device Lightbulb (ID b85c16d30162079be6a88c80503ae2d6e0e217ea7742a9d3c15f77d1576a3a58): Patio Pole Right
[2018-4-10 23:04:39] [HomeKit Bridge Server] Discovered Device Switch (ID 6e3691e747f874c8c602ac788964b1cf869b8ef92d5e3cb4737ff9473aa5498d): Pool Pump Master Switch
[2018-4-10 23:04:39] [HomeKit Bridge Server] Discovered Device Fanv2 (ID bdef0929bf22466419641b0f3c57b395c1cc47e8a4592098ce3618e0b64bb7b8): Terrace Fan
[2018-4-10 23:04:39] [HomeKit Bridge Server] Discovered Device Lightbulb (ID e8d9ad4b5b3c7b8a8fd776f0adfbb3ba871d1e03ef84fe137103608f8f17f416): Terrace Laser
[2018-4-10 23:04:39] [HomeKit Bridge Server] Discovered Device Lightbulb (ID 438e32d16f40b75f7367b442c5122f3e8c26a741f5cdb514bf89017dcd9d9f8e): Terrace Lights
[2018-4-10 23:04:39] [HomeKit Bridge Server] Created 15 accessories
[2018-4-10 23:04:39] [HomeKit Bridge Server] Initializing platform accessory 'Family Outlet Strip All'...
[2018-4-10 23:04:39] [HomeKit Bridge Server] Initializing platform accessory 'Kitchen Ceiling Light'...
[2018-4-10 23:04:39] [HomeKit Bridge Server] Initializing platform accessory 'Master Balcony Light'...
[2018-4-10 23:04:39] [HomeKit Bridge Server] Initializing platform accessory 'Master Bath Ceiling Light'...
[2018-4-10 23:04:39] [HomeKit Bridge Server] Initializing platform accessory 'Master Dresser Light'...
[2018-4-10 23:04:39] [HomeKit Bridge Server] Initializing platform accessory 'Master IKEA Ceiling Lamp'...
[2018-4-10 23:04:39] [HomeKit Bridge Server] Initializing platform accessory 'Patio Beach Lights'...
[2018-4-10 23:04:39] [HomeKit Bridge Server] Initializing platform accessory 'Patio Laser Lights'...
[2018-4-10 23:04:39] [HomeKit Bridge Server] Initializing platform accessory 'Patio Pole Left'...
[2018-4-10 23:04:39] [HomeKit Bridge Server] Initializing platform accessory 'Patio Pole Rear'...
[2018-4-10 23:04:39] [HomeKit Bridge Server] Initializing platform accessory 'Patio Pole Right'...
[2018-4-10 23:04:39] [HomeKit Bridge Server] Initializing platform accessory 'Pool Pump Master Switch'...
[2018-4-10 23:04:39] [HomeKit Bridge Server] Initializing platform accessory 'Terrace Fan'...
[2018-4-10 23:04:39] [HomeKit Bridge Server] Initializing platform accessory 'Terrace Laser'...
[2018-4-10 23:04:39] [HomeKit Bridge Server] Initializing platform accessory 'Terrace Lights'...
Setup Payload:
X-HM://0023ISYWYB1F6
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m
[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m
[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m
[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m
[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m
[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m
[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m
[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[47m [0m[47m [0m[47m [0m[47m [0m
[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[40m [0m[47m [0m[47m [0m[40m [0m[40m [0m[40m [0m[40m [0m[40m [0m[47m [0m[47m [0m[47m [0m[40m [0m[40m [0m[47m [0m
[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m[47m [0m
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

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

[2018-4-10 23:04:40] Homebridge is running on port 51826.
`

@webdeck webdeck closed this as completed Apr 11, 2018
@webdeck webdeck reopened this Apr 11, 2018
@webdeck
Copy link
Collaborator

webdeck commented Apr 11, 2018

Regarding the EPERM error, a Google search led me to the same error here: npm/npm#8360

Do you have a .npmrc file in your home directory by any chance? I would also look for .npm or .node-gyp or .node_repl_history files in your home directory as well. Delete them all and try again.

@webdeck
Copy link
Collaborator

webdeck commented Apr 11, 2018

And another troubleshooting thing to try would be to create a brand new macOS user account, and then try running Indigo from that account to see if you still have these issues. If you don't, then it's something about your account.

@mlooss
Copy link
Author

mlooss commented Apr 11, 2018

Webdeck:

Thanks for those troubleshooting steps, will look into this tomorrow. It is odd that I went from 0.20.0 and every update in between 0.23.1 without any issues and only 0.23.1 is giving me those errors.

My original problem was with 0.20.0 and a number of earlier betas worked just fine? There s another beta tester here with similar problems.

@mlooss
Copy link
Author

mlooss commented Apr 11, 2018

Update, I found none of those npm related files in my home directory. My two HomeKit servers in Indigo are up and running but all devices in the Home app are not responding. Will try the new user account test hopefully tonight.

Thank you

@Colorado4Wheeler
Copy link
Collaborator

My two HomeKit servers in Indigo are up and running but all devices in the Home app are not responding.

I've gotten that a few times myself and restarting the Indigo server devices fixes it every single time. I did add two actions a few releases ago that will allow you to schedule a restart of your servers periodically. @webdeck and I are trying to see if there is anything we can do to help with this problem but so far it appears to be HomeKit itself as no errors are logged and everything works fine when this happens but just HomeKit says 'Not Responding'.

My original problem was with 0.20.0 and a number of earlier betas worked just fine? There s another beta tester here with similar problems.

Similar is a very broad stroke, the problem was similar only in that he was getting a crash in the Homebridge files and his problem was resolved by re-downloading and installing the plugin and moving Indigo out and back in - which may be a sign of system issues. Considering that nothing else had to be done I would say that his problem is not a bug of any kind.

@mlooss
Copy link
Author

mlooss commented Apr 12, 2018

I've gotten that a few times myself and restarting the Indigo server devices fixes it every single time. I did add two actions a few releases ago that will allow you to schedule a restart of your servers periodically. @webdeck and I are trying to see if there is anything we can do to help with this problem but so far it appears to be HomeKit itself as no errors are logged and everything works fine when this happens but just HomeKit says 'Not Responding'.

I should have mentioned it, but I did restart the Indigo device, the Indigo Server and the computer that runs all of these services, with no joy.

Similar is a very broad stroke, the problem was similar only in that he was getting a crash in the Homebridge files and his problem was resolved by re-downloading and installing the plugin and moving Indigo out and back in - which may be a sign of system issues. Considering that nothing else had to be done I would say that his problem is not a bug of any kind.

If you recall, I went through a very extensive and time consuming troubleshooting, which included exhaustive hardware and disk tests/checks, disk drive replacement and eventually a another server hardware. And nothing resulted in a resolution, except a future update to your plug-in and the fact I reloaded the plug-in in debugger mode and changing the user name. I updated the plug-in several times more until v 0.23.1 when my problem surfaced again. I realize that Apple's HomeKit is not 100% stable but I keep all of my 35 Hue lights in the Home app via their own hub and they never show any updating/no response. I do have these Hue lights configured in Indigo, but I exclude them in HomeKit Bridge.

@mlooss
Copy link
Author

mlooss commented Apr 23, 2018

I have not updated my recent experience, but I continue to have the issue were the HomeKit server fails to start, either after upgrading the plug-in, adding a new device or a physical server reboot. No amount of troubleshooting will solve the issue, only a complete removal of all things Homekit Bridge and starting fresh. In this case the server starts and runs for days. I have been running v 1.0.0. rc1 after upgrading from v0.23.1 without any issues. After several days I decided to test my SecuritySpy cameras and created a second server containing two cameras only. This server never started and rebuilding the folder and even rebooting the server did not solve the issue. My first server kept running just fine until last night when I decided to add another Indigo device and now it fails to start too. I have even gone as far has removing my home from Apple's Homekit and creating it again.
I am not convinced it is anything on my system, because if this was the case it would never ever run and it does run but later fails to run.

@Colorado4Wheeler
Copy link
Collaborator

I think that your camera issues may be related to the strange configuration of your SecuritySpy server and/or camera. I base that on the error posted from you a while back:

Failed to parse: indigo:xTeCD
CODE: data = requests.get(ssSystem).content# Pull XML data

The only way I could attempt to diagnose that would be if you logged the output of your server to see where that line is popping up:

indigo.server.log(unicode(indigo.device[YOUR_SS_SERVER_ID]))

Just replace any username/passwords with XXX and YYY.

@mlooss
Copy link
Author

mlooss commented Apr 24, 2018 via email

@mlooss
Copy link
Author

mlooss commented Apr 27, 2018

C4W:

After several days of being without Homekit because all Indigo device had No Response, I decided to remove it from my Home app, again. Only after repeated rebuilds of the server folder and restarting the plug-in, would my homekit server start and it is now running. I added it again to the Home app and all was working fine again. About 10 minutes have passed since then and now I open the Home app and I get a screen that says "Loading Accessories and Scenes" with the option to reset my home configuration??? There must be something going on that is corrupting configuration files of your plug-in.
Please note that I have no cameras configured this time and your plug-in, at least for me worked flawless in its early stages but it has been a very frustrating, time consuming and unsuccessful troubleshooting process since then.
I find it odd that when you introduced cameras support, my two SecuritySpy cams worked without any issues. My SecuritySpy setup has not changed nor was there any recent update applied and yet I have somehow a strange SecuritySpy setup, which I do not get. The only variable has always been a new version of the plug-in, which I kept updating as they became available.
You and other have pointed at my system but I cannot see an issue on my end and if you recall, I have a brand new disk drive and even a different server hardware. Because of all this, I am still concluding the issue is generated by the HomeKit Bridge plug-in.
I have now reached a level of serious frustration and have exhausted my knowledge here to continue troubleshooting.
Please give me some TLC, my wife is already on my case because every time she wants to use it doesn't work (it doesn't matter that I told her from start that this is early testing and she may run into issues). Since using the Apple Home app, my other family members have finally started using my setup and I never was able to get them to fall in love with Indigo Touch.

Thanks in advance

@Colorado4Wheeler
Copy link
Collaborator

Colorado4Wheeler commented Apr 27, 2018 via email

@mlooss
Copy link
Author

mlooss commented Apr 27, 2018

I guess this makes it FML for me then :-(

@mlooss
Copy link
Author

mlooss commented Apr 27, 2018

I poke into my console app and found these errors, but I can't identify which plug-in is generating those errors.

My server has multiple IP addresses on its Ethernet interface and WiFi is not enabled. Does the HomeKit Bridge Server bind to the primary IP only, maybe this multihoming could be the issue?

page 0001

@Colorado4Wheeler
Copy link
Collaborator

It binds to localhost, meaning any IP address on that machine would resolve to it. Considering that there is only one thing talking to it I doubt multi-homing is your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta testing Issues that popped up during beta testing potentially resolved or non-issue Bug that cannot be reproduced and may be fixed or a one-off user problem question Further information is requested test results pending Issue is pending the outcome of test results or special build
Projects
None yet
Development

No branches or pull requests

4 participants