cd homebridge
npm install async
dgarozzo wrote:cd homebridge
npm install async
and that may fix it.npm install
Londonmark wrote:I've made some progress but am still stuck with this error:
Starting HomeBridge server...
_____________________________________________________________________
IMPORTANT: Homebridge is in the middle of some big changes.
Read more about it here:
https://github.com/nfarina/homebridge/w ... tion-Guide
_____________________________________________________________________
Loading 0 platforms...
Loading 27 accessories...
module.js:460
return process.dlopen(module, path._makeLong(filename));
^
Error: Module did not self-register.
at Error (native)
at Object.Module._extensions..node (module.js:460:18)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at new require (module.js:385:17)
at Object.<anonymous> (/Users/markcaines/homebridge/node_modules/HAP-NodeJS/node_modules/srp/node_modules/bignum/index.js:4:14)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
npm install async
webdeck wrote:FYI, I've submitted a pull request for what I think will fix the connection reset error that some people are seeing. I changed it to discover one device at a time so it doesn't overwhelm Indigo with REST calls. I also added more error checking so that if Indigo returns JSON that doesn't parse correctly, it will ignore it and log an error instead of crashing. I'll post here when the new version has been merged into the mainline.
-Mike
accent:~ Mike$ cd homebridge
accent:homebridge Mike$ npm run start
> homebridge@0.1.1 start /Users/Mike/homebridge
> DEBUG=* node app.js || true
Starting HomeBridge server...
_____________________________________________________________________
IMPORTANT: Homebridge is in the middle of some big changes.
Read more about it here:
https://github.com/nfarina/homebridge/wiki/Migration-Guide
_____________________________________________________________________
Loading 1 platforms...
[Indigo] Initializing Indigo platform...
[Indigo] Discovering Indigo Devices.
Loading 0 accessories...
[Indigo] Discovered undefined: Bedroom 1 - Blinds
[Indigo] Discovered undefined: Dining - Fish Tank Light
[Indigo] Discovered undefined: Dining - Patio Doors Lock Sensor
[Indigo] Discovered undefined: Gym - Air Cooler
[Indigo] Discovered undefined: Gym - Main Light
[Indigo] Discovered undefined: Hall - Front Door Lock Sensor
[Indigo] Discovered undefined: Hall - Letterbox Sensor
[Indigo] Discovered undefined: Hall - Stairs Sensor (Bottom)
[Indigo] Discovered undefined: Hall - Stairs Sensor (Top)
[Indigo] Discovered undefined: Heating: Solar Water Heating
[Indigo] Discovered undefined: Kitchen - George Grill
[Indigo] Discovered undefined: Kitchen - iKettle
[Indigo] Discovered undefined: Kitchen - Worktop Lights (LWRF Under Microwave)
[Indigo] Discovered undefined: Landing - Cupboard Door Sensor
[Indigo] Discovered undefined: Loft - Hatch Door Sensor
[Indigo] Discovered undefined: Lounge - Blinds
[Indigo] Discovered undefined: Lounge - TV Unit LEDs
[Indigo] Discovered undefined: Outdoors - Electric Meter
[Indigo] Discovered undefined: Outdoors - Front Door Motion Sensor
[Indigo] Discovered undefined: Outdoors - Garden Lights
[Indigo] Discovered undefined: Outdoors - Gas Meter
[Indigo] Discovered undefined: Outdoors - Gate Lock
[Indigo] Discovered undefined: Outdoors - Gate Sensor
[Indigo] Discovered undefined: Outdoors - Lux Sensor
[Indigo] Discovered undefined: Outdoors - Path Lights
[Indigo] Discovered undefined: Outdoors - Water Meter
[Indigo] Discovered undefined: Server - Cupboard UPS
[Indigo] Discovered undefined: Utility - Back Door Lock Sensor
[Indigo] Discovered undefined: Utility - Extractor Fan
[Indigo] Discovered Combined Fibaro RGBW device: ZZ Fibaro rgbw test!
[Indigo] Discovered Random Lighting Group: ZZ Random Lighting Mocupancy
[Indigo] Initializing platform accessory 'Bedroom 1 - Blinds'...
[Indigo] Loaded services for Bedroom 1 - Blinds
[Indigo] Initializing platform accessory 'Dining - Fish Tank Light'...
[Indigo] Loaded services for Dining - Fish Tank Light
[Indigo] Initializing platform accessory 'Dining - Patio Doors Lock Sensor'...
[Indigo] Loaded services for Dining - Patio Doors Lock Sensor
[Indigo] Initializing platform accessory 'Gym - Air Cooler'...
[Indigo] Loaded services for Gym - Air Cooler
[Indigo] Initializing platform accessory 'Gym - Main Light'...
[Indigo] Loaded services for Gym - Main Light
[Indigo] Initializing platform accessory 'Hall - Front Door Lock Sensor'...
[Indigo] Loaded services for Hall - Front Door Lock Sensor
[Indigo] Initializing platform accessory 'Hall - Letterbox Sensor'...
[Indigo] Loaded services for Hall - Letterbox Sensor
[Indigo] Initializing platform accessory 'Hall - Stairs Sensor (Bottom)'...
[Indigo] Loaded services for Hall - Stairs Sensor (Bottom)
[Indigo] Initializing platform accessory 'Hall - Stairs Sensor (Top)'...
[Indigo] Loaded services for Hall - Stairs Sensor (Top)
[Indigo] Initializing platform accessory 'Heating: Solar Water Heating'...
[Indigo] Loaded services for Heating: Solar Water Heating
[Indigo] Initializing platform accessory 'Kitchen - George Grill'...
[Indigo] Loaded services for Kitchen - George Grill
[Indigo] Initializing platform accessory 'Kitchen - Worktop Lights (LWRF Under Microwave)'...
[Indigo] Loaded services for Kitchen - Worktop Lights (LWRF Under Microwave)
[Indigo] Initializing platform accessory 'Kitchen - iKettle'...
[Indigo] Loaded services for Kitchen - iKettle
[Indigo] Initializing platform accessory 'Landing - Cupboard Door Sensor'...
[Indigo] Loaded services for Landing - Cupboard Door Sensor
[Indigo] Initializing platform accessory 'Loft - Hatch Door Sensor'...
[Indigo] Loaded services for Loft - Hatch Door Sensor
[Indigo] Initializing platform accessory 'Lounge - Blinds'...
[Indigo] Loaded services for Lounge - Blinds
[Indigo] Initializing platform accessory 'Lounge - TV Unit LEDs'...
[Indigo] Loaded services for Lounge - TV Unit LEDs
[Indigo] Initializing platform accessory 'Outdoors - Electric Meter'...
[Indigo] Loaded services for Outdoors - Electric Meter
[Indigo] Initializing platform accessory 'Outdoors - Front Door Motion Sensor'...
[Indigo] Loaded services for Outdoors - Front Door Motion Sensor
[Indigo] Initializing platform accessory 'Outdoors - Garden Lights'...
[Indigo] Loaded services for Outdoors - Garden Lights
[Indigo] Initializing platform accessory 'Outdoors - Gas Meter'...
[Indigo] Loaded services for Outdoors - Gas Meter
[Indigo] Initializing platform accessory 'Outdoors - Gate Lock'...
[Indigo] Loaded services for Outdoors - Gate Lock
[Indigo] Initializing platform accessory 'Outdoors - Gate Sensor'...
[Indigo] Loaded services for Outdoors - Gate Sensor
[Indigo] Initializing platform accessory 'Outdoors - Lux Sensor'...
[Indigo] Loaded services for Outdoors - Lux Sensor
[Indigo] Initializing platform accessory 'Outdoors - Path Lights'...
[Indigo] Loaded services for Outdoors - Path Lights
[Indigo] Initializing platform accessory 'Outdoors - Water Meter'...
[Indigo] Loaded services for Outdoors - Water Meter
[Indigo] Initializing platform accessory 'Server - Cupboard UPS'...
[Indigo] Loaded services for Server - Cupboard UPS
[Indigo] Initializing platform accessory 'Utility - Back Door Lock Sensor'...
[Indigo] Loaded services for Utility - Back Door Lock Sensor
[Indigo] Initializing platform accessory 'Utility - Extractor Fan'...
[Indigo] Loaded services for Utility - Extractor Fan
[Indigo] Initializing platform accessory 'ZZ Fibaro rgbw test!'...
[Indigo] Loaded services for ZZ Fibaro rgbw test!
[Indigo] Initializing platform accessory 'ZZ Random Lighting Mocupancy'...
[Indigo] Loaded services for ZZ Random Lighting Mocupancy
Scan this code with your HomeKit App on your iOS device:
┌────────────┐
│ 123-45-123 │
└────────────┘
Accessory [Homebridge] Creating new AccessoryInfo for our HAP server +0ms
Accessory [Homebridge] Creating new IdentifierCache +5ms
EventedHTTPServer Server listening on port 51826 +26ms
EventedHTTPServer [::ffff:192.168.1.107] New connection from client +19s
EventedHTTPServer [::ffff:192.168.1.107] HTTP server listening on port 54826 +2ms
EventedHTTPServer [::ffff:192.168.1.107] HTTP request: /pair-setup +6ms
HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-setup +1ms
HAPServer [CC:22:3D:E3:CE:30] Pair step 1/5 +1ms
EventedHTTPServer [::ffff:192.168.1.107] HTTP Repsonse is finished +17ms
EventedHTTPServer [::ffff:192.168.1.107] HTTP request: /pair-setup +6s
HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-setup +1ms
HAPServer [CC:22:3D:E3:CE:30] Pair step 2/5 +1ms
EventedHTTPServer [::ffff:192.168.1.107] HTTP Repsonse is finished +15ms
EventedHTTPServer [::ffff:192.168.1.107] HTTP request: /pair-setup +9ms
HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-setup +0ms
HAPServer [CC:22:3D:E3:CE:30] Pair step 3/5 +1ms
HAPServer [CC:22:3D:E3:CE:30] Pair step 4/5 +6ms
HAPServer [CC:22:3D:E3:CE:30] Pair step 5/5 +1ms
Accessory [Homebridge] Paired with client C251D8D3-AC8F-47FE-9844-3A82399BDC61 +5ms
EventedHTTPServer [::ffff:192.168.1.107] HTTP Repsonse is finished +4ms
EventedHTTPServer [::ffff:192.168.1.107] Client connection closed +28ms
EventedHTTPServer [::ffff:192.168.1.107] HTTP connection was closed +2ms
EventedHTTPServer [::ffff:192.168.1.107] HTTP server was closed +1ms
EventedHTTPServer [::ffff:192.168.1.107] New connection from client +2ms
EventedHTTPServer [::ffff:192.168.1.107] HTTP server listening on port 54826 +0ms
EventedHTTPServer [::ffff:192.168.1.107] HTTP request: /pair-verify +2ms
HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify +0ms
HAPServer [CC:22:3D:E3:CE:30] Pair verify step 1/2 +2ms
EventedHTTPServer [::ffff:192.168.1.107] HTTP Repsonse is finished +2ms
EventedHTTPServer [::ffff:192.168.1.107] HTTP request: /pair-verify +11ms
HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify +0ms
HAPServer [CC:22:3D:E3:CE:30] Pair verify step 2/2 +1ms
HAPServer [CC:22:3D:E3:CE:30] Client C251D8D3-AC8F-47FE-9844-3A82399BDC61 verification complete +4ms
EventedHTTPServer [::ffff:192.168.1.107] HTTP Repsonse is finished +2ms
EventedHTTPServer [::ffff:192.168.1.107] HTTP request: /accessories +10ms
HAPServer [CC:22:3D:E3:CE:30] HAP Request: GET /accessories +0ms
EventedHTTPServer [::ffff:192.168.1.107] HTTP Repsonse is finished +20ms
EventedHTTPServer [::ffff:192.168.1.107] HTTP request: /pairings +55ms
HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pairings +1ms
HAPServer [CC:22:3D:E3:CE:30] Removing pairing info for client +1ms
Accessory [Homebridge] Unpairing with client C251D8D3-AC8F-47FE-9844-3A82399BDC61 +0ms
EventedHTTPServer [::ffff:192.168.1.107] HTTP Repsonse is finished +3ms
EventedHTTPServer [::ffff:192.168.1.107] Client connection closed +18ms
EventedHTTPServer [::ffff:192.168.1.107] HTTP connection was closed +1ms
EventedHTTPServer [::ffff:192.168.1.107] HTTP server was closed +0ms
EventedHTTPServer [::ffff:192.168.1.2] HTTP request: /pair-verify +6ms
HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify +3ms
HAPServer [CC:22:3D:E3:CE:30] Pair verify step 1/2 +8ms
EventedHTTPServer [::ffff:192.168.1.2] HTTP Repsonse is finished +7ms
EventedHTTPServer [::ffff:192.168.1.2] HTTP request: /pair-verify +17ms
HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify +0ms
HAPServer [CC:22:3D:E3:CE:30] Pair verify step 2/2 +1ms
HAPServer [CC:22:3D:E3:CE:30] Client 031B7152-2168-4561-8AB3-668269B32E0A verification complete +3ms
EventedHTTPServer [::ffff:192.168.1.2] HTTP Repsonse is finished +1ms
EventedHTTPServer [::ffff:192.168.1.2] HTTP request: /accessories +6ms
HAPServer [CC:22:3D:E3:CE:30] HAP Request: GET /accessories +0ms
EventedHTTPServer [::ffff:192.168.1.2] HTTP Repsonse is finished +8ms
EventedHTTPServer [::ffff:192.168.1.2] HTTP request: /pairings +218ms
HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pairings +0ms
HAPServer [CC:22:3D:E3:CE:30] Removing pairing info for client +1ms
Accessory [Homebridge] Unpairing with client 031B7152-2168-4561-8AB3-668269B32E0A +0ms
EventedHTTPServer [::ffff:192.168.1.2] HTTP Repsonse is finished +2ms
EventedHTTPServer [::ffff:192.168.1.2] Client connection closed +14ms
EventedHTTPServer [::ffff:192.168.1.2] HTTP connection was closed +0ms
EventedHTTPServer [::ffff:192.168.1.2] HTTP server was closed +0ms
EventedHTTPServer [::ffff:192.168.1.2] HTTP request: /pair-verify +2ms
HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify +0ms
HAPServer [CC:22:3D:E3:CE:30] Pair verify step 1/2 +1ms
EventedHTTPServer [::ffff:192.168.1.2] HTTP Repsonse is finished +5ms
EventedHTTPServer [::ffff:192.168.1.2] HTTP request: /pair-verify +16ms
HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify +1ms
HAPServer [CC:22:3D:E3:CE:30] Pair verify step 2/2 +1ms
HAPServer [CC:22:3D:E3:CE:30] Client 031B7152-2168-4561-8AB3-668269B32E0A verification complete +28ms
EventedHTTPServer [::ffff:192.168.1.2] HTTP Repsonse is finished +2ms
EventedHTTPServer [::ffff:192.168.1.2] HTTP request: /accessories +8ms
HAPServer [CC:22:3D:E3:CE:30] HAP Request: GET /accessories +1ms
EventedHTTPServer [::ffff:192.168.1.2] HTTP Repsonse is finished +7ms
EventedHTTPServer [::ffff:192.168.1.2] HTTP request: /characteristics +2s
HAPServer [CC:22:3D:E3:CE:30] HAP Request: PUT /characteristics +0ms
Accessory [Homebridge] Processing characteristic set: {"characteristics":[{"aid":68,"iid":9,"ev":true}]} +1ms
Accessory [Homebridge] Registering Characteristic "Change the power state" for events +1ms
EventedHTTPServer [::ffff:192.168.1.2] HTTP Repsonse is finished +0ms
EventedHTTPServer [::ffff:192.168.1.2] HTTP request: /characteristics +7ms
HAPServer [CC:22:3D:E3:CE:30] HAP Request: PUT /characteristics +0ms
Accessory [Homebridge] Processing characteristic set: {"characteristics":[{"aid":69,"iid":9,"ev":true}]} +0ms
Accessory [Homebridge] Registering Characteristic "Adjust Brightness of Light" for events +0ms
EventedHTTPServer [::ffff:192.168.1.2] HTTP Repsonse is finished +1ms
dgarozzo wrote:Webdeck/Mike,
I'm stuck trying to add actions. I checked my code in here: https://github.com/dgarozzo/homebridge/. Can you have a look? Maybe you can tell what I've done wrong. When I go to connect from my iPhone to Homebridge, it tells me that my "device" doesn't conform to Homekit. Right now, I have the lines commented out that are responsible for adding the action, so you won't see the problem until you uncomment those lines.
The plan was to make actions the same as switches that you can "turn on (or off)" to execute the action.
Users browsing this forum: No registered users and 8 guests