ilcato / homebridge-Fibaro-HC2

Homebridge plugin for Fibaro Home Center 2 (and Home Center Lite ...)
Apache License 2.0
66 stars 27 forks source link

Stuck in Adding Accessories #40

Closed sameeraakbar closed 7 years ago

sameeraakbar commented 7 years ago

I have installed homebridge by nfarina and fibaro homebridge plugin by ilcato.

When i start homebridge using this command: DEBUG=* homebridge

The log below:

* WARNING * The program 'node' uses the Apple Bonjour compatibility layer of Avahi. * WARNING * Please fix your application to use the native API of Avahi! * WARNING * For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node * WARNING * The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi. * WARNING * Please fix your application to use the native API of Avahi! * WARNING * For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister [10/26/2016, 8:27:15 AM] Loaded plugin: homebridge-fibaro-hc2 [10/26/2016, 8:27:15 AM] Registering platform 'homebridge-fibaro-hc2.FibaroHC2' [10/26/2016, 8:27:15 AM] --- [10/26/2016, 8:27:15 AM] Loaded config.json with 0 accessories and 1 platforms. [10/26/2016, 8:27:15 AM] --- [10/26/2016, 8:27:15 AM] Loading 1 platforms... [10/26/2016, 8:27:15 AM] [FibaroHC2] Initializing FibaroHC2 platform... [10/26/2016, 8:27:16 AM] Loading 0 accessories... Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

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

Accessory [Homebridge] Creating new AccessoryInfo for our HAP server +0ms Accessory [Homebridge] Creating new IdentifierCache +10ms Plugin - DidFinishLaunching [10/26/2016, 8:27:16 AM] [FibaroHC2] Fetching Fibaro Home Center rooms ... [10/26/2016, 8:27:16 AM] [FibaroHC2] Server Listening... EventedHTTPServer Server listening on port 51826 +54ms [10/26/2016, 8:27:16 AM] Homebridge is running on port 51826. [10/26/2016, 8:27:16 AM] [FibaroHC2] Fetching Fibaro Home Center devices ... [10/26/2016, 8:27:17 AM] [FibaroHC2] Adding Accessory: Abdul cabin-Devices [10/26/2016, 8:27:17 AM] [FibaroHC2] Adding Accessory: Showroom-Devices [10/26/2016, 8:27:17 AM] [FibaroHC2] Adding Accessory: Workstation-Devices [10/26/2016, 8:27:17 AM] [FibaroHC2] Adding Accessory: Master bedroom-Devices [10/26/2016, 8:27:17 AM] [FibaroHC2] Adding Accessory: Guest Room-Devices [10/26/2016, 8:27:17 AM] [FibaroHC2] Adding Accessory: Dining-Devices [10/26/2016, 8:27:17 AM] [FibaroHC2] Adding Accessory: Broadlink IR blaster [10/26/2016, 8:27:17 AM] [FibaroHC2] Adding Accessory: Pioneer VSX-2021 - Z1 [10/26/2016, 8:27:17 AM] [FibaroHC2] Adding Accessory: SONY DVD [10/26/2016, 8:27:17 AM] [FibaroHC2] Adding Accessory: Sony TV [10/26/2016, 8:27:17 AM] [FibaroHC2] Adding Accessory: Hitachi [10/26/2016, 8:27:17 AM] [FibaroHC2] Adding Accessory: Ploneer Amplifier [10/26/2016, 8:27:17 AM] [FibaroHC2] Adding Accessory: SONOS Player1 [10/26/2016, 8:27:17 AM] [FibaroHC2] Adding Accessory: SONOS Player2 [10/26/2016, 8:27:18 AM] [FibaroHC2] Adding Accessory: Sonos [10/26/2016, 8:27:18 AM] [FibaroHC2] Adding Accessory: Philips Hue VD [10/26/2016, 8:27:18 AM] [FibaroHC2] Adding Accessory: Demo-Devices [10/26/2016, 8:27:18 AM] [FibaroHC2] Adding Accessory: undefined-Devices

And that was the last line. I had started homebridge manually. When i try to connect home app from iphone, i give the code, it says "Couldn't add homebridge Home couldn't connect to this accessory"

Everytime i start homebridge i delete persist folders, remove cachedAccessories etc.

In my config.json I change the username field (that shows a mac address) also by a digit. Still same thing is happening.

Please help.

ilcato commented 7 years ago

Try to change in config.json the grouping parameter to "none".

ilcato commented 7 years ago

Which version of node.js do you have?

sameeraakbar commented 7 years ago

Hi!

I was just playing around with the config.json parameters, changed grouping to room and polling period to none. It just worked!! Now im able to see all my devices on Home app.

I do have another question, How do i control a few devices from appearing in home app? Like I do not want Hue , Sonos and a few relays from not appearing.

Thanks so much for your fast reply!

ilcato commented 7 years ago

I suggest you to have grouping "none" and polling period to "2". For filtering devices: define a new user in Home Center 2 and give to it the visibility only on the devices you want. Than change username and password in config.json and restart homebridge.

ilcato commented 7 years ago

@sameeraakbar , any news?