anthonywebb / homebridge-cbus

CBus plugin for homebridge
MIT License
35 stars 20 forks source link

Latest NPM install dosn't include shutter accessory #15

Closed srpage closed 7 years ago

srpage commented 7 years ago

Not sure what I am doing wrong but I am installing ver 5.3 through NPM but can't get it to install the shutter accessory or update the index etc. Have uninstalled, re installed & tried updating all with the same results. Any help would be appreciated. thanks,

anthonywebb commented 7 years ago

What leads you to believe you have version 5.3? Are you installing globally?

simonhac commented 7 years ago

@anthony would be a good idea to print out the version number upon startup.

@srpage my startup includes the lines:

[1/25/2017, 5:24:10 PM] Loaded plugin: homebridge-cbus
[1/25/2017, 5:24:10 PM] Registering platform 'homebridge-cbus.CBus'
[1/25/2017, 5:24:10 PM] ---
[1/25/2017, 5:24:10 PM] Loaded config.json with 0 accessories and 1 platforms.
[1/25/2017, 5:24:10 PM] ---
[1/25/2017, 5:24:10 PM] Loading 1 platforms...
[1/25/2017, 5:24:10 PM] [CBus] Initializing homebridge-cbus.CBus platform...
[1/25/2017, 5:24:10 PM] [CBus] Connecting to the local CBus server...
[1/25/2017, 5:24:10 PM] Loading 0 accessories...
[1/25/2017, 5:24:10 PM] [CBus] CBus Client is listening to CGate on 10.0.1.241... Debug: true
[1/25/2017, 5:24:10 PM] [CBus] Registering the accessories list...
[1/25/2017, 5:24:10 PM] [CBus] Initializing platform accessory 'AS Deck Blinds'...
[1/25/2017, 5:24:10 PM] [CBus] Initializing platform accessory 'AS Desk'...
[1/25/2017, 5:24:10 PM] [CBus] Initializing platform accessory 'AS Garden Blinds'...
[1/25/2017, 5:24:10 PM] [CBus] Initializing platform accessory 'AS Reading Corner'...
<snip>
[1/25/2017, 5:24:10 PM] [CBus] Initializing platform accessory 'AS Wall'...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

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

can you please paste in a copy of yours?

srpage commented 7 years ago

OK - if I type "npm list" homebridge-cbus@0.5.3 /usr/lib/node_modules/homebridge-cbus └── carrier@0.3.0

The package.json downloaded when running "sudo npm install -g homebridge-cbus" looks like this from": "homebridge-cbus@latest", "_id": "homebridge-cbus@0.5.3", "_inCache": true, "_location": "/homebridge-cbus", "_nodeVersion": "6.3.0", "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/homebridge-cbus-0.5.3.tgz_1485143875825_0.832232900429517" }

My start up looks like this - [1/27/2017, 1:49:08 PM] Loaded plugin: homebridge-cbus [1/27/2017, 1:49:09 PM] Registering platform 'homebridge-cbus.CBus' [1/27/2017, 1:49:09 PM] --- [1/27/2017, 1:49:09 PM] Loaded config.json with 0 accessories and 1 platforms. [1/27/2017, 1:49:09 PM] --- [1/27/2017, 1:49:09 PM] Loading 1 platforms... [1/27/2017, 1:49:09 PM] [CBus] Initializing homebridge-cbus.CBus platform... [1/27/2017, 1:49:09 PM] [CBus] Connecting to the local CBus server... [1/27/2017, 1:49:09 PM] Loading 0 accessories... [1/27/2017, 1:49:09 PM] [CBus] CBus Client is listening to CGate on 192.168.0.120... Debug: true [1/27/2017, 1:49:09 PM] [CBus] Registering the accessories list... [1/27/2017, 1:49:09 PM] [CBus] Initializing platform accessory 'Couch Lights'... [1/27/2017, 1:49:09 PM] [CBus] Initializing platform accessory 'Dinning Fan Lights'... [1/27/2017, 1:49:09 PM] [CBus] Initializing platform accessory 'Dinning Lights'... [1/27/2017, 1:49:09 PM] [CBus] Initializing platform accessory 'Fan Lights'... [1/27/2017, 1:49:09 PM] [CBus] Initializing platform accessory 'Front Lights'... [1/27/2017, 1:49:09 PM] [CBus] Initializing platform accessory 'Greta Bed Light'... [1/27/2017, 1:49:09 PM] [CBus] Initializing platform accessory 'Hall Light'... [1/27/2017, 1:49:09 PM] [CBus] Initializing platform accessory 'Hall Pir'... [1/27/2017, 1:49:09 PM] [CBus] Initializing platform accessory 'Kitchen Lights'... [1/27/2017, 1:49:09 PM] [CBus] Initializing platform accessory 'Main Bed Light'... [1/27/2017, 1:49:09 PM] [CBus] Initializing platform accessory 'Office Light'... [1/27/2017, 1:49:09 PM] [CBus] Initializing platform accessory 'Spare Bed Light'... [1/27/2017, 1:49:09 PM] [CBus] Initializing platform accessory 'TV Lights'... Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

┌────────────┐     
│ 031-45-154 │     
└────────────┘     
simonhac commented 7 years ago

thanks @srpage -- yep, also looks to me that you definitely have 0.5.3.

i don't see any accessory in the initialisation list that looks like it is driving blinds. can you please paste in a copy of your config file?

srpage commented 7 years ago

The config is below. The problem is that the accessory for shutters is not being installed. Same with updates to the index.js and utils.js. I have uninstalled all and reinstalled and get the same response. Do you know if I can install them manually?

Config is below

platforms": [ { "platform": "homebridge-cbus.CBus", "name": "CBus", "client_ip_address": "192.168.0.120", "client_controlport": 20023, "client_eventport": 20024, "client_statusport": 20025, "client_cbusname": "OWEN", "client_network": 254, "client_application": 56, "client_debug": true, "accessories": [ { "type": "dimmer", "id": "205", "name": "Office Light" }, { "type": "dimmer", "id": "204", "name": "Spare Bed Light" }, { "type": "dimmer", "id": "203", "name": "Greta Bed Light" }, { "type": "dimmer", "id": "201", "name": "Main Bed Light" }, { "type": "dimmer", "id": "101", "name": "Kitchen Lights" }, { "type": "dimmer", "id": "113", "name": "Dinning Fan Lights" }, { "type": "dimmer", "id": "104", "name": "Dinning Lights" }, { "type": "dimmer", "id": "111", "name": "Couch Lights" }, { "type": "dimmer", "id": "102", "name": "Fan Lights" }, { "type": "dimmer", "id": "103", "name": "TV Lights" }, { "type": "dimmer", "id": "115", "name": "Hall Light" },

    { "type": "light", "id": "110", "name": "Front Lights" },

{ "type": "shutter", "id": "71", "name": "Main Bed Blinds" },
{ "type": "shutter", "id": "72", "name": "Greta Bed Blinds" },
{ "type": "shutter", "id": "73", "name": "Spare Bed Blinds" },

    { "type": "motion", "id": "40", "name": "Hall Pir" }
   ]
  }
],
"accessories": [ ] 

}

srpage commented 7 years ago

OK. I think I found the issue. The package does not contain the files. https://registry.npmjs.org/homebridge-cbus/-/homebridge-cbus-0.5.3.tgz

homebridge-cbus-0.5.3.tgz.zip

anthonywebb commented 7 years ago

Can you elaborate on which files are not included?

anthonywebb commented 7 years ago

I pushed 0.5.4, that should have everything you need.

srpage commented 7 years ago

Yipee, All installed and blinds working now.

simonhac commented 7 years ago

@srpage very glad it works for you. (i think that's my first OSS contribution.)

ElphaX commented 7 years ago

Srpage, is there any chance we could get a demo on the blinds working in the app and siri? Sorry to bother you.

ElphaX commented 7 years ago

@srpage