cflurin / homebridge-websocket

Homebridge Plugin
Apache License 2.0
40 stars 7 forks source link

No accessories detected #3

Closed inator closed 7 years ago

inator commented 7 years ago

Hello - I've tried on two different platforms & installs of homebridge and can't get this plugin to detect accessories:

[1/19/2017, 9:15:09 AM] Loaded plugin: homebridge-controllerlink
[1/19/2017, 9:15:09 AM] Registering platform 'homebridge-controllerlink.HomeBridgeControllerLink'
[1/19/2017, 9:15:09 AM] ---
[1/19/2017, 9:15:09 AM] Loaded plugin: homebridge-fakebulb
[1/19/2017, 9:15:09 AM] Registering accessory 'homebridge-fakebulb.FakeBulb'
[1/19/2017, 9:15:09 AM] ---
[1/19/2017, 9:15:09 AM] Loaded plugin: homebridge-websocket
homebridge API version: 2.1
[1/19/2017, 9:15:09 AM] Registering platform 'homebridge-websocket.websocket'
[1/19/2017, 9:15:09 AM] ---
[1/19/2017, 9:15:09 AM] Loaded config.json with 1 accessories and 1 platforms.
[1/19/2017, 9:15:09 AM] ---
[1/19/2017, 9:15:09 AM] Loading 1 platforms...
[1/19/2017, 9:15:09 AM] [websocket] Initializing websocket platform...
[1/19/2017, 9:15:09 AM] [websocket] homebridge-websocket v0.1.11
[1/19/2017, 9:15:09 AM] Loading 1 accessories...
[1/19/2017, 9:15:09 AM] [Test lamp] Initializing FakeBulb accessory...
[1/19/2017, 9:15:09 AM] [Test lamp] Starting a fake bulb device with name 'Lamp1'...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

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

[1/19/2017, 9:15:09 AM] [websocket] Plugin - DidFinishLaunching
[1/19/2017, 9:15:09 AM] [websocket] Number of Accessories: 0
[1/19/2017, 9:15:09 AM] Homebridge is running on port 51826.
[1/19/2017, 9:15:09 AM] [websocket] url {"address":"::","family":"IPv6","port":4050}
cflurin commented 7 years ago

I didn't use homebridge-websocket for months, so I have to install it on my mac and do some tests. ...

Are your accessories stored in the file /.homebridge/accesories/cacheAccessories?

inator commented 7 years ago

Are your accessories stored in the file /.homebridge/accesories/cacheAccessories?

[]

empty. :(

cflurin commented 7 years ago

any backups? macOS with Time Machine?

inator commented 7 years ago

Maybe I need to better understand how your plugin works...

How is it that a link is established between an accessory added via the plugin and the actual real life accessory added to homebridge? I've looked dover the code and can't figure out how you're doing that.

inator commented 7 years ago

any backups? macOS with Time Machine?

Well I'm not sure it has ever populated the cache, but homebridge has functioned properly for a long time for me regardless.

cflurin commented 7 years ago

Closing for now.

ksendor commented 7 years ago

I'm trying to understand how this plugin works. Should it discover existing accessories added to config.json of Homebridge or does it only discover accessories added via web socket?

edwios commented 7 years ago

Well, same problem here. HomeBridge websocket plugin worked for a long time and then suddenly, Number of Accessories: 0 is reported by the websocket plugin...