Code Monkey home page Code Monkey logo

homebridge-alexa's People

Contributors

brzam avatar dependabot-preview[bot] avatar dependabot[bot] avatar github-actions[bot] avatar josefdlange avatar northernman54 avatar oznu avatar pwilms avatar steve228uk avatar woodyslum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebridge-alexa's Issues

Home App displays "no response" after a couples of hours

I am having trouble with my homebridge I have recently install the homebridge-alexa,

one everything is setup after couple or hours HomeKit app shows no response but at the same time, Alexa is able to run the commands.

I check the homebridge which is running fine.

I have restarted homebridge and iPhone as well but no luck anyone has any idea?

Can't install

I have tried a few times to install this, I keep getting the following errors after the sudo npm install command.

sudo npm install -g https://github.com/NorthernMan54/homebridge
npm ERR! not a package /tmp/npm-1363-b3H3MehG/github.com/NorthernMan54/homebridge
npm ERR! Error: ENOENT: no such file or directory, open '/tmp/npm-1363-b3H3MehG/github.com/NorthernMan54/homebridge-unpack/package.json'
npm ERR! at Error (native)
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 4.9.41-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "https://github.com/NorthernMan54/homebridge"
npm ERR! cwd /tmp
npm ERR! node -v v4.8.2
npm ERR! npm -v 1.4.21
npm ERR! path /tmp/npm-1363-b3H3MehG/github.com/NorthernMan54/homebridge-unpack/package.json
npm ERR! syscall open
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/npm-debug.log
npm ERR! not ok code 0
pi@mnop:/tmp $ cd /tmp/npm-1363-b3H3MehG/github.com/NorthernMan54/homebridge
-bash: cd: /tmp/npm-1363-b3H3MehG/github.com/NorthernMan54/homebridge: Not a directory
pi@mnop:/tmp $ cd /tmp/npm-1363-b3H3MehG/github.com/NorthernMan54/

error

Hi!

I already used Homebridge, and install it the special version to use it with Alexa.
Now it wont start:

pi@raspberrypi:~ $ sudo homebridge
*** 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>
/usr/local/lib/node_modules/homebridge/node_modules/bindings/bindings.js:91
  throw err
  ^

Error: Could not locate the bindings file. Tried:
 → /usr/local/lib/node_modules/homebridge/node_modules/curve25519-n2/build/curve.node
 → /usr/local/lib/node_modules/homebridge/node_modules/curve25519-n2/build/Debug/curve.node
 → /usr/local/lib/node_modules/homebridge/node_modules/curve25519-n2/build/Release/curve.node
 → /usr/local/lib/node_modules/homebridge/node_modules/curve25519-n2/out/Debug/curve.node
 → /usr/local/lib/node_modules/homebridge/node_modules/curve25519-n2/Debug/curve.node
 → /usr/local/lib/node_modules/homebridge/node_modules/curve25519-n2/out/Release/curve.node
 → /usr/local/lib/node_modules/homebridge/node_modules/curve25519-n2/Release/curve.node
 → /usr/local/lib/node_modules/homebridge/node_modules/curve25519-n2/build/default/curve.node
 → /usr/local/lib/node_modules/homebridge/node_modules/curve25519-n2/compiled/7.8.0/linux/arm/curve.node
    at bindings (/usr/local/lib/node_modules/homebridge/node_modules/bindings/bindings.js:88:9)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/curve25519-n2/index.js:1:96)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/encryption.js:5:18)

Design or Process flow help

Hi,
First of all Thank you for your contribution and the entire setup worked for me on both iphone and alexa devices. I am not sure if i can raise it as a issue, but still wanted to bring it up here.
Is it possible to get a design or process flow on the alexa interactions? I understand the part where alexa converts voice commands to requests, but how is that converted request reaching my raspberry pi which is running locally. From what i understand, alexa talks to cloud api and then it trigger events on local if you have a port open (something like ngrok). Can you share at high level, how you are achieving this communication here.

Thanks in advance,
Venkat.S

DEBUG Mode Startup

DEBUG=* homebridge
...
[4/17/2017, 5:59:12 PM] Loaded config.json with 0 accessories and 1 platforms.
[4/17/2017, 5:59:12 PM] ---
[4/17/2017, 5:59:12 PM] Loading 1 platforms...
[4/17/2017, 5:59:12 PM] Initializing YamahaAVR platform...
[4/17/2017, 5:59:12 PM] Getting Yamaha AVR devices.
[4/17/2017, 5:59:12 PM] Loading 0 accessories...
Load homebridge-camera-ffmpeg.Camera-ffmpeg
  **ssdp not running +0ms
  ssdp binding to port 1900 for ssdp discovery +5ms
  ssdp server listening 0.0.0.0:1900 192.168.1.214 +66ms**
[4/17/2017, 5:59:14 PM] Found Yamaha RX-V1075 - 0AA88593, "Yamaha"
...
 **ssdp << server got Hue: M-SEARCH * HTTP/1.1
  ssdp HOST: 239.255.255.250:1900
  ssdp MAN: "ssdp:discover"
  ssdp MX: 15
  ssdp ST: urn:schemas-upnp-org:device:basic:1
  ssdp 
  ssdp  from 192.168.1.206:50000 +31s
  ssdp sleep for 12133 +32ms
  ssdp << server got Hue: M-SEARCH * HTTP/1.1
  ssdp HOST: 239.255.255.250:1900
  ssdp MAN: "ssdp:discover"
  ssdp MX: 15
  ssdp ST: urn:schemas-upnp-org:device:basic:1
  ssdp 
  ssdp  from 192.168.1.206:50000 +67ms
  ssdp sleep for 4227 +0ms
  ssdp >> sent response SSDP discovery response HTTP/1.1 200 OK
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=100
EXT:
LOCATION: http://192.168.1.214:51826/description.xml
SERVER: Linux/3.14.0 UPnP/1.0 IpBridge/1.15.0
hue-bridgeid: CC223DFFFEE3CE30
ST: urn:schemas-upnp-org:device:basic:1
USN: uuid:2f402f80-da50-11e1-9b23-cc223de3ce30

 +4s
  EventedHTTPServer [::ffff:192.168.1.206] New connection from client +101ms
  EventedHTTPServer [::ffff:192.168.1.206] HTTP server listening on port 49425 +0ms
  EventedHTTPServer [::ffff:192.168.1.206] HTTP request: /description.xml +1ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: GET /description.xml +1ms
  EventedHTTPServer [::ffff:192.168.1.206] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.206] HTTP request: /api/pkBovaHrTjmiUwGqH7m6q7eecgD3VXVrR3BPE1qK/lights +135ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: GET /api/pkBovaHrTjmiUwGqH7m6q7eecgD3VXVrR3BPE1qK/lights +0ms
  hue device response 2 { state: 
   { on: false,
     bri: 0,
     hue: 0,
     sat: 0,
     effect: 'none',
     ct: 0,
     alert: 'none',
     reachable: true },
  type: 'Dimmable light',
  name: 'Yamaha Power',
  modelid: 'LWB004',
  manufacturername: 'Yamaha',
  uniqueid: 'cc:22:3d:e3:ce:30:02:09-00',
  swversion: '66012040' } +7ms
  hue device response 2 { state: 
   { on: false,
     bri: 0,
     hue: 0,
     sat: 0,
     effect: 'none',
     ct: 0,
     alert: 'none',
     reachable: true },
  type: 'Dimmable light',
  name: 'Yamaha',
  modelid: 'LWB004',
  manufacturername: 'Yamaha',
  uniqueid: 'cc:22:3d:e3:ce:30:02:19-20',
  swversion: '66012040' } +4ms
  hue device response 3 { state: 
   { on: false,
     bri: 0,
     hue: 0,
     sat: 0,
     effect: 'none',
     ct: 0,
     alert: 'none',
     reachable: true },
  type: 'Dimmable light',
  name: 'Preset 1',
  modelid: 'LWB004',
  manufacturername: 'Yamaha',
  uniqueid: 'cc:22:3d:e3:ce:30:03:09-00',
  swversion: '66012040' } +1ms
  hue device response 4 { state: 
   { on: false,
     bri: 0,
     hue: 0,
     sat: 0,
     effect: 'none',
     ct: 0,
     alert: 'none',
     reachable: true },
  type: 'Dimmable light',
  name: 'Preset 2',
  modelid: 'LWB004',
  manufacturername: 'Yamaha',
  uniqueid: 'cc:22:3d:e3:ce:30:04:09-00',
  swversion: '66012040' } +0ms
  hue device response 5 { state: 
   { on: false,
     bri: 0,
     hue: 0,
     sat: 0,
     effect: 'none',
     ct: 0,
     alert: 'none',
     reachable: true },
  type: 'Dimmable light',
  name: 'Rear',
  modelid: 'LWB004',
  manufacturername: 'Yamaha',
  uniqueid: 'cc:22:3d:e3:ce:30:05:09-10',
  swversion: '66012040' } +0ms
  hue device response 6 { state: 
   { on: false,
     bri: 0,
     hue: 0,
     sat: 0,
     effect: 'none',
     ct: 0,
     alert: 'none',
     reachable: true },
  type: 'Dimmable light',
  name: 'Front',
  modelid: 'LWB004',
  manufacturername: 'Yamaha',
  uniqueid: 'cc:22:3d:e3:ce:30:06:09-10',
  swversion: '66012040' } +1ms
  EventedHTTPServer [::ffff:192.168.1.206] HTTP Response is finished +2ms
  ssdp >> sent response SSDP discovery response HTTP/1.1 200 OK
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=100
EXT:
LOCATION: http://192.168.1.214:51826/description.xml
SERVER: Linux/3.14.0 UPnP/1.0 IpBridge/1.15.0
hue-bridgeid: CC223DFFFEE3CE30
ST: urn:schemas-upnp-org:device:basic:1
USN: uuid:2f402f80-da50-11e1-9b23-cc223de3ce30

 +8s
  EventedHTTPServer [::ffff:192.168.1.206] HTTP request: /description.xml +8ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: GET /description.xml +0ms
  EventedHTTPServer [::ffff:192.168.1.206] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.206] HTTP request: /api/pkBovaHrTjmiUwGqH7m6q7eecgD3VXVrR3BPE1qK/lights +214ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: GET /api/pkBovaHrTjmiUwGqH7m6q7eecgD3VXVrR3BPE1qK/lights +1ms
  hue device response 2 { state: 
   { on: false,
     bri: 0,
     hue: 0,
     sat: 0,
     effect: 'none',
     ct: 0,
     alert: 'none',
     reachable: true },
  type: 'Dimmable light',
  name: 'Yamaha Power',
  modelid: 'LWB004',
  manufacturername: 'Yamaha',
  uniqueid: 'cc:22:3d:e3:ce:30:02:09-00',
  swversion: '66012040' } +5ms
  hue device response 2 { state: 
   { on: false,
     bri: 0,
     hue: 0,
     sat: 0,
     effect: 'none',
     ct: 0,
     alert: 'none',
     reachable: true },
  type: 'Dimmable light',
  name: 'Yamaha',
  modelid: 'LWB004',
  manufacturername: 'Yamaha',
  uniqueid: 'cc:22:3d:e3:ce:30:02:19-20',
  swversion: '66012040' } +1ms
  hue device response 3 { state: 
   { on: false,
     bri: 0,
     hue: 0,
     sat: 0,
     effect: 'none',
     ct: 0,
     alert: 'none',
     reachable: true },
  type: 'Dimmable light',
  name: 'Preset 1',
  modelid: 'LWB004',
  manufacturername: 'Yamaha',
  uniqueid: 'cc:22:3d:e3:ce:30:03:09-00',
  swversion: '66012040' } +0ms
  hue device response 4 { state: 
   { on: false,
     bri: 0,
     hue: 0,
     sat: 0,
     effect: 'none',
     ct: 0,
     alert: 'none',
     reachable: true },
  type: 'Dimmable light',
  name: 'Preset 2',
  modelid: 'LWB004',
  manufacturername: 'Yamaha',
  uniqueid: 'cc:22:3d:e3:ce:30:04:09-00',
  swversion: '66012040' } +1ms
  hue device response 5 { state: 
   { on: false,
     bri: 0,
     hue: 0,
     sat: 0,
     effect: 'none',
     ct: 0,
     alert: 'none',
     reachable: true },
  type: 'Dimmable light',
  name: 'Rear',
  modelid: 'LWB004',
  manufacturername: 'Yamaha',
  uniqueid: 'cc:22:3d:e3:ce:30:05:09-10',
  swversion: '66012040' } +1ms
  hue device response 6 { state: 
   { on: false,
     bri: 0,
     hue: 0,
     sat: 0,
     effect: 'none',
     ct: 0,
     alert: 'none',
     reachable: true },
  type: 'Dimmable light',
  name: 'Front',
  modelid: 'LWB004',
  manufacturername: 'Yamaha',
  uniqueid: 'cc:22:3d:e3:ce:30:06:09-10',
  swversion: '66012040' } +0ms
  EventedHTTPServer [::ffff:192.168.1.206] HTTP Response is finished +1ms
**

Homebridge-Alexa crashed after some minutes

Hi!
After install homebridge-hue hb works fine for some minutes and crashed... can se the following entries in the livelog:

Dez 29 23:10:49 homebridge homebridge[24449]: /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/hue.js:389
Dez 29 23:10:49 homebridge homebridge[24449]: var mac = hueDevices[lightid].uniqueid.split(':');
Dez 29 23:10:49 homebridge homebridge[24449]: ^
Dez 29 23:10:49 homebridge homebridge[24449]: TypeError: Cannot read property 'uniqueid' of undefined
Dez 29 23:10:49 homebridge homebridge[24449]: at _getAid (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/hue.js:389:32)
Dez 29 23:10:49 homebridge homebridge[24449]: at hueToHK (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/hue.js:167:14)
Dez 29 23:10:49 homebridge homebridge[24449]: at Object.handleHueApi (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/hue.js:55:24)
Dez 29 23:10:49 homebridge homebridge[24449]: at HAPServer._handleHueApi (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:875:7)
Dez 29 23:10:49 homebridge homebridge[24449]: at HAPServer. (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:214:39)
Dez 29 23:10:49 homebridge homebridge[24449]: at emitNone (events.js:105:13)
Dez 29 23:10:49 homebridge homebridge[24449]: at IncomingMessage.emit (events.js:207:7)
Dez 29 23:10:49 homebridge homebridge[24449]: at endReadableNT (_stream_readable.js:1059:12)
Dez 29 23:10:49 homebridge homebridge[24449]: at _combinedTickCallback (internal/process/next_tick.js:138:11)
Dez 29 23:10:49 homebridge homebridge[24449]: at process._tickCallback (internal/process/next_tick.js:180:9)
Dez 29 23:10:49 homebridge systemd[1]: homebridge.service: main process exited, code=exited, status=1/FAILURE
Dez 29 23:10:49 homebridge systemd[1]: Unit homebridge.service entered failed state.

This is my config of the affected plugin:

{
"platform": "Hue",
"users": {
"001788FFFE22018B": "xGUJmf4CLQ1TNtRLENPtYTFEaCxrg6SRWediAVPP"
},
"lights": true

I use the Osram "LIGHTIFY Outdoor Flex RGBW! Without the plugin hb works fine!

Here is the debug log:

*** 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
[2017-12-30 00:04:35] Loaded plugin: homebridge-eveatmo
[2017-12-30 00:04:35] Registering platform 'homebridge-eveatmo.eveatmo'
[2017-12-30 00:04:35] ---
[2017-12-30 00:04:35] Loaded plugin: homebridge-fakebulb
[2017-12-30 00:04:35] Registering accessory 'homebridge-fakebulb.FakeBulb'
[2017-12-30 00:04:35] ---
[2017-12-30 00:04:36] Loaded plugin: homebridge-fritz
[2017-12-30 00:04:36] Registering platform 'homebridge-fritz.Fritz!Box'
[2017-12-30 00:04:36] ---
[2017-12-30 00:04:36] Loaded plugin: homebridge-harmonyhub
[2017-12-30 00:04:38] Registering platform 'homebridge-harmonyhub.HarmonyHub'
[2017-12-30 00:04:38] ---
[2017-12-30 00:04:38] Loaded plugin: homebridge-homematic
[2017-12-30 00:04:38] Registering platform 'homebridge-homematic.HomeMatic'
[2017-12-30 00:04:38] ---
[2017-12-30 00:04:38] Plugin /usr/local/lib/node_modules/homebridge-hue requires Node version of ^8.9.3 which does not satisfy the current Node version of v8.4.0. You may need to upgrade your installation of Node.
[2017-12-30 00:04:39] Loaded plugin: homebridge-hue
[2017-12-30 00:04:39] Registering platform 'homebridge-hue.Hue'
[2017-12-30 00:04:39] ---
[2017-12-30 00:04:40] Loaded plugin: homebridge-people
[2017-12-30 00:04:40] Registering platform 'homebridge-people.People'
[2017-12-30 00:04:40] Registering accessory 'homebridge-people.PeopleAccessory'
[2017-12-30 00:04:40] Registering accessory 'homebridge-people.PeopleAllAccessory'
[2017-12-30 00:04:40] ---
[2017-12-30 00:04:40] Loaded plugin: homebridge-synology
[2017-12-30 00:04:40] Registering accessory 'homebridge-synology.Synology'
[2017-12-30 00:04:40] ---
[2017-12-30 00:04:40] Loaded plugin: homebridge-wol
[2017-12-30 00:04:40] Registering accessory 'homebridge-wol.NetworkDevice'
[2017-12-30 00:04:40] ---
[2017-12-30 00:04:40] config.json (/home/pi/.homebridge/config.json) not found.
Load homebridge-harmonyhub.HarmonyHub
[2017-12-30 00:04:40] [homebridge-harmonyhub.HarmonyHub] Ignoring Harmony Platform setup because it is not configured
Setup Payload:
X-HM://0023ISYWYC43A
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

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

ssdp Not starting SSDP Server +0ms
EventedHTTPServer Server listening on port 44587 +5ms


Regards!
Mike

ssdp conflict with HDHomeRun DVR device

Any ideas how to not conflict with a device already using ssdp 1900?

sudo lsof -i :1900
hdhomerun 110 _HDHomeRun 13u IPv4 0xcc0db234ab963427 0t0 UDP *:ssdp

If I disable that service then I can get homebridge to run. However, Alexa isn't discovering it. I'm trying to use this as a bridge from Alexa to my HomeKit enabled Insteon Hub (which then controls it's own protocol devices).

2nd Gen Echo not discovering any devices

I am having issues, with a New echo 2nd Gen discovering home bridge,

I believe it is expecting a message like

// M-SEARCH * HTTP/1.1
// HOST: 239.255.255.250:1900
// MAN: "ssdp:discover"
// MX: 15 - Up to 15 seconds to respond, have also seen 3
// ST: urn:schemas-upnp-org:device:basic:1

turning on some debug in ssdp.js, I only see the following being received from the echo (192.168.1.75)

ssdp from 192.168.1.75:50000 +35ms
ssdp { MX: '3',
ssdp ST: 'upnp:rootdevice',
ssdp HOST: '239.255.255.250:1900',
ssdp MAN: '"ssdp:discover"' } +0ms
ssdp sleep for 1052 +1ms
ssdp << server got: M-SEARCH * HTTP/1.1
ssdp MX: 3
ssdp ST: ssdp:all
ssdp HOST: 239.255.255.250:1900
ssdp MAN: "ssdp:discover"
ssdp
ssdp from 192.168.1.75:50000 +1ms
ssdp { MX: '3',
ssdp ST: 'ssdp:all',
ssdp HOST: '239.255.255.250:1900',
ssdp MAN: '"ssdp:discover"' } +0ms

Any assistance appreciated

Update error?

I run the command sudo npm -g update and get the following error:

npm ERR! code 1
npm ERR! Command failed: /usr/local/bin/git clone --depth=1 -q -b master https://github.com/NorthernMan54/homebridge.git /Users/myusername/.npm/_cacache/tmp/git-clone-a338b955
npm ERR! /Users/myusername/.npm/_cacache/tmp/git-clone-a338b955/.git: Permission denied
npm ERR!

any help would be appreciated. Thanks!

Errors Installing...

hi, I have tried installing and getting this error

sudo npm install -g https://github.com/NorthernMan54/homebridge Password: npm ERR! code 1 npm ERR! Command failed: /usr/local/bin/git clone -q https://github.com/NorthernMan54/homebridge.git /Users/Chris/.npm/_cacache/tmp/git-clone-3795fc99 npm ERR! /Users/Chris/.npm/_cacache/tmp/git-clone-3795fc99/.git: Permission denied npm ERR!

any help on how to get around this?

Installation

Ok, i've just received my echo dot today and looking forward to installing this but realised that it's a special version of homebridge.

I have just the normal version of homebridge running which I use for controlling my TV and Air Con. They are all switches so should work with your homebridge-alexa.

What's the best way to set this up as I have homebridge on my Macmini so would need to re-install this over the top of it which will get rid of my current setup of plugins i'm assuming?

Homebridge, Alexa and IOS 11

Hey

The old Homebridge no longer works with IOS 11 (Shows no response on iPhones), however this appears to have been fixed in the most recent update from homebridge. Alas, the Alexa specific homebridge you have created is not updated or working. Is it possible to update the Alexa homebridge version so that it is IOS 11 compatible as with the original homebridge app?

Thanks, Drew

Question : Which Word is used

Hey,
can you tell me which config Words is used?

If i look at my knx_config.json i have

  • DeviceName
  • ServiceName

And Rooms via Home App. Also ih can create Groups via Alexa App.
I understand i can create group "Bedroom" and add the Light but which word is used if i want a single object?

Thanks

Echo 2nd Gen Backlog

awsLambda - Alexa HomeSkill Lambda Function

  • Create Alexa homeskill to interface between Lambda and the Website
  • Pass Homeskill directive to website
  • Create toolchain to publish directly to AWS and GitHub
  • Cleanup and remove redundant code
  • Complete skill publishing details, including icons

awsWebsite - Skill linking website

  • Create toolchain to publish directly to AWS and GitHub
  • Install Mongo DB 3.6
  • Install Mosquito lastest
  • Install Mosquito Auth Plugin
  • Create local/file credentials
  • Enable MQTT Authentication
  • Create alexa directive message router
  • Create homebridge-alexa website content
  • Create Authentication model to link Alexa skill to website
  • Route alexa directive to end user homebridge plugin using endpoint.scope.token to determine end user MQTT channel.
  • Pass Homeskill response from homebridge-plugin to homeskill
  • Add last login, last connect and last message date/time to user profile
  • Cleanup and remove redundant code
  • Reporting via Google Analytics
  • Create database cleanup and initialize script
  • Improve security of website - Block authorize screen to just Amazon REFER's
  • Implement - https://github.com/alexa-js/alexa-verifier-middleware

Homebridge-Alexa plugin

  • Create plugin the opens a MQTTS channel to the website in Amazon lightsail
  • Create Module that receives alexa directives, and generate nodes events based on message namespace directive.header.namespace. ( ie Alexa.PowerController -> event is PowerController )
  • Create handler for Alexa homeskill message
  • Implement Alexa Message Schema Validation - https://github.com/epoberezkin/ajv
  • All devices show up as a switch
  • Create event handler for Alexa.ReportState directive
  • Create event handler for Alexa.TemperatureSensor directive
  • Create event handler for alexa.discovery directive
  • Create event handler for Alexa.PowerController directive
  • Create event handler for Alexa.PowerLevelController directive
  • Create event handler for Alexa.ReportState directive
  • Create event handler for Alexa.StateReport directive
  • Create event handler for Alexa.ColorController directive
  • Add debug level logging to enable troubleshooting users
  • When homebridge calls fail, return an error back to Alexa

Clean-up prior to production

  • refactor awsWeb and awsLambda into a separate GitHub repository
  • restructure awsWeb directory structure for proper security isolation

Device Support

  • Outlet ( on/off )
  • Light ( on/off )
  • Dimmable light
  • Fan ( on/off/speed )
  • Window Coverings
  • Temperature Sensor
  • Color/RGB light

Air conditioner

Will this ever be able to control an air conditioner or other homebridge HomeKit devices in the future?

I currently control my air conditioner with the rm mini 3 homebridge plugin. Would be great even if alexa could trigger scenes I've setup for it? Would that be possible?

Using this with homebridge-broadlink-rm

Hi there,

I'm not sure if this is a problem with my setup or your plugin but i'm having some problems with it controlling homebridge accessories that are created using homebridge-broadlink-rm plugin by @lprhodes. Using siri to turn the tv (for example) on and off seems to work fine but when I used alexa (via your plugin) it sometimes doesn't work. It says it's turned it on, and the homekit app says it's on but the physical tv isn't on.

I do have an HDHomerun connect on the network as well but not sure if that would hinder anything.

Cannot find module '../build/Release/dns_sd_bindings'

I've tried to reinstall Homebridge but after reinstalling i get the undermentioned error.

Please advice what to do.

Regards Wim

iMac-van-Wim:~ Bre$ homebridge
module.js:538
throw err;
^

Error: Cannot find module '../build/Release/dns_sd_bindings'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object. (/usr/local/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:32:22)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)

Devices already paired with Alexa

First of all, I love it, thank you!

There's a part in readme I don't really understand:
If the setting is not enabled, then your homebridge instance will not be visible to Alexa, useful when you have devices / plugins that you don't want Alexa to see. For example, Philips hue or Belkin wemo devices.

I add the "ssdp": 1900 line to the bridge and then all of my HomeKit device shows up in Alexa.
So how can I hide devices from Alexa?

... is not responding.

Hi!

I’am using homebridge with alexa several month without any issue.
About 3-4 weeks a go she answers my ask “xy not responding” when I repeat it she turns the swich.

Have you got any idea what is her problem?

Thanks!

Homebridge stop working

Hi!

I use your Homebridge for several months, without error, but the past 3 days it crash one time per day.

Here is the log:
[10/8/2017, 9:44:48 AM] [Pc] getPowerState - actual mode - current state: false
[10/8/2017, 9:45:45 AM] [Pc] start polling..
[10/8/2017, 9:45:45 AM] [Pc] getPowerState - actual mode
[10/8/2017, 9:45:45 AM] [Micro Pc] start polling..
[10/8/2017, 9:45:45 AM] [Micro Pc] getPowerState - actual mode
[10/8/2017, 9:45:45 AM] [Micro Pc] getPowerState - actual mode - current state: true
[10/8/2017, 9:45:48 AM] [Pc] getPowerState - actual mode - current state: false
/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/hue.js:389
var mac = hueDevices[lightid].uniqueid.split(':');
^

TypeError: Cannot read property 'uniqueid' of undefined
at _getAid (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/hue.js:389:32)
at hueToHKCharacteristic (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/hue.js:179:15)
at Object.handleHueApi (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/hue.js:88:24)
at HAPServer._handleHueApi (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:923:7)
at HAPServer. (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:220:47)
at emitNone (events.js:86:13)
at IncomingMessage.emit (events.js:188:7)
at endReadableNT (_stream_readable.js:975:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)

Thanks!

This Version wont install on an Rpi

After uninstalling the normal homebridge and running

sudo npm install -g https://github.com/NorthernMan54/homebridge

there is an error and this log.

pi@raspberrypi:~/.homebridge $ sudo npm install -g https://github.com/NorthernMan54/homebridge
npm ERR! code 128
npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b master https://github.com/NorthernMan54/homebridge.git /root/.npm/_cacache/tmp/git-clone-60ac6462
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-60ac6462': Permission denied
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2017-12-03T19_05_47_420Z-debug.log

Additional Devices?

It would be nice, oder there would be some more devices in Alexa, such as Windows, Doors, Garagedoor, Shutter.

Is there an Option To get the Old Version back?

Hello, i have the normal Homebridge Version now Running, But is it Possible when i install the Special Version from homebridge To install the old Version again if i don't like the Special Version ?
(SRY for My Bad Englisch i come From Germany:))

Scenes

Hi! The new echo update supports 'scenes'. Is it possible to setup scenes with Homebridge, or use the scenes already setup in HomeKit?

Thanks,

Sam

correct answer for alexa

Hey,
can you tell me how to answer correct with a script so alexa is saying "ok"?

currently i use it with homebridge cmdswitch plugin to wake up television and playstion (logitech hub and ps4-waker)

but alexa is always saying : sorry something went wrong (but everything is working fine)

with cmdswitch i start a shell script which work the script with nohup in background mode ...

what is the correct answer for alexa?
thanks

Errors in homebridge.log

Hey,

I installed the NorthernMan54 version of homebridge and the homebridge-alexa plugin, but the plugin is not working and I see the following on the homebridge.log file.

[2018-1-31 11:12:22] ERROR LOADING PLUGIN homebridge-alexa:
[2018-1-31 11:12:22] Error: Cannot find module '/homebridge/node_modules/homebridge-alexa/index.js'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Plugin.load (/usr/local/lib/node_modules/homebridge/lib/plugin.js:72:22)
at Server. (/usr/local/lib/node_modules/homebridge/lib/server.js:145:14)
at Array.forEach ()
at Server._loadPlugins (/usr/local/lib/node_modules/homebridge/lib/server.js:141:22)
at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:58:24)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:26:16)
[2018-1-31 11:12:22] ====================

Not sure what I am doing wrong. Can you help?

Updating this homebridge

Just wondering if your version of homebridge follows the updates of the original homebridge. (Sorry if this is a stupid question). Do I update everything as per normal?

Amazon Fire TV

Hi all,

Not really an issue however I have just seen that my Amazon Fire TV has been updated and supports Alexa now. Does this work with that also? I'd assume so however wanted to confirm before I set this up..

Cheers

Multiple Echos ident

Hey,
is it possible to detect between multiple echos which one is used?
So the Plan if i have one in the kitchen and one in the bedroom. i say "turn the light off" ... and then it turns the light off in the room the echo is...

are there any informations we could use?

Can't add new device...

Sorry, I could not add new homebridge device ...and I send debug mode error log.
If you teli me what's wrong , I'm happy.
Sorry I'm not good at command line .
And if it's OK , pls tell me how to join homebridgeteam.slack(need invitation?).

[2018-1-2 06:00:37] Loaded plugin: homebridge-bravia
[2018-1-2 06:00:37] Registering platform 'homebridge-bravia.BraviaPlatform'
[2018-1-2 06:00:37] ---
[2018-1-2 06:00:37] Loaded plugin: homebridge-dummy
[2018-1-2 06:00:37] Registering accessory 'homebridge-dummy.DummySwitch'
[2018-1-2 06:00:37] ---
[2018-1-2 06:00:37] Loaded plugin: homebridge-mac-display
[2018-1-2 06:00:37] Registering accessory 'mac-display.DisplaySwitch'
[2018-1-2 06:00:37] ---
[2018-1-2 06:00:37] Loaded plugin: homebridge-milight
[2018-1-2 06:00:37] Registering platform 'homebridge-milight.MiLight'
[2018-1-2 06:00:37] ---
ssdp-client discovering all IPs from interface lo0 +0ms
ssdp-client discovering all IPs from interface en1 +1ms
ssdp-client Will use interface en1 +0ms
ssdp-client discovering all IPs from interface utun0 +1ms
[2018-1-2 06:00:37] Loaded plugin: homebridge-platform-wemo
[2018-1-2 06:00:37] Registering platform 'homebridge-platform-wemo.BelkinWeMo'
[2018-1-2 06:00:37] ---
[2018-1-2 06:00:37] Loaded plugin: homebridge-sonybraviatv
[2018-1-2 06:00:37] Registering accessory 'homebridge-sonybraviatv.SonyBraviaTV'
[2018-1-2 06:00:37] ---
[2018-1-2 06:00:37] Loaded plugin: homebridge-sonybraviatv-input
[2018-1-2 06:00:37] Registering accessory 'homebridge-sonybraviatv.SonyBraviaTV-input'
[2018-1-2 06:00:37] ---
[2018-1-2 06:00:37] Loaded plugin: homebridge-sonytvremote
[2018-1-2 06:00:37] Registering accessory 'homebridge-sonytvremote.SonyTV'
[2018-1-2 06:00:37] ---
[2018-1-2 06:00:37] Loaded config.json with 2 accessories and 2 platforms.
[2018-1-2 06:00:37] ---
[2018-1-2 06:00:37] Loading 2 platforms...
[2018-1-2 06:00:37] [WeMo Platform] Initializing BelkinWeMo platform...
ssdp-client discovering all IPs from interface lo0 +153ms
ssdp-client discovering all IPs from interface en1 +0ms
ssdp-client Will use interface en1 +0ms
ssdp-client discovering all IPs from interface utun0 +1ms
[2018-1-2 06:00:37] [MiLight] Initializing MiLight platform...
[2018-1-2 06:00:37] [MiLight] Initializing platform accessory '1'...
[2018-1-2 06:00:37] [MiLight] Initializing platform accessory '2'...
[2018-1-2 06:00:37] [MiLight] Initializing platform accessory '3'...
[2018-1-2 06:00:37] Loading 2 accessories...
[2018-1-2 06:00:37] [テレビ] Initializing SonyBraviaTV accessory...
[2018-1-2 06:00:37] [Fernseher] Initializing SonyTV accessory...
Setup Payload:
X-HM://0023ISYWY64C9
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

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

ssdp not running +0ms
events.js:136
throw er; // Unhandled 'error' event
^

Error: listen EADDRINUSE :::51826
at Object._errnoException (util.js:999:13)
at _exceptionWithHostPort (util.js:1020:20)
at Server.setupListenHandle [as _listen2] (net.js:1379:14)
at listenInCluster (net.js:1420:12)
at Server.listen (net.js:1508:7)
at EventedHTTPServer.listen (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/eventedhttp.js:60:19)
at HAPServer.listen (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:163:20)
at Bridge.Accessory.publish (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:601:16)
at Server._publish (/usr/local/lib/node_modules/homebridge/lib/server.js:129:16)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:98:10)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Function.Module.runMain (module.js:701:10)
at startup (bootstrap_node.js:194:16)
at bootstrap_node.js:618:3

Beta test

Great Progress. Any Plans for a Beta Test.

Is Device Descriptor Correct for latest version of Echo Dot software?

@NorthernMan54 I am using your build of homebridge with the homebridge-milight plugin to control 8 grouped zones of milight RGB-CCT lights via the new v6 milight bridge hardware and noticed that the new version of the Echo Dot (597465220) software now shows the lights as "Royal Philips" "Lux Bulbs" which display as White Dimmable bulbs with no configurable Colour property. The echo dot software did not show this level of detail in earlier releases. Given my lights do have full colour support how can this be corrected to allow for me to be able to set the colour of the lights with Alexa?

Error

Hi!

The Homebridge with Alexa working fine, but
after a few days it stops with this error massage:

/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/hue.js:381
var mac = hueDevices[lightid].uniqueid.split(':');
^

TypeError: Cannot read property 'uniqueid' of undefined
at _getOiid (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/hue.js:381:34)
at hueToHK (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/hue.js:168:14)
at Object.handleHueApi (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/hue.js:55:24)
at HAPServer._handleHueApi (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:923:7)
at HAPServer. (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:220:47)
at emitNone (events.js:86:13)
at IncomingMessage.emit (events.js:188:7)
at endReadableNT (_stream_readable.js:975:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)

Crashing when activating Echo

Hi! This has been working great. I had to delete the plugin-persist folder as I had my iPhone replaced and home kit wouldn't be discovered etc.

Since then, whenever I used my Echo Dot it causes home bridge to crash.

Church-Server:~ churchserver$ sudo DEBUG=* homebridge
Password:
Sorry, try again.
Password:
[21/06/2017, 18:50:25] Loaded plugin: homebridge-amazondash
[21/06/2017, 18:50:25] Registering platform 'homebridge-amazondash.AmazonDash'
[21/06/2017, 18:50:25] ---
[21/06/2017, 18:50:25] Loaded plugin: homebridge-broadlink-rm
[21/06/2017, 18:50:25] Registering platform 'homebridge-broadlink-rm.BroadlinkRM'
[21/06/2017, 18:50:25] ---
[21/06/2017, 18:50:25] Loaded plugin: homebridge-cmdswitch2
[21/06/2017, 18:50:25] Registering platform 'homebridge-cmdswitch2.cmdSwitch2'
[21/06/2017, 18:50:25] ---
[21/06/2017, 18:50:25] Loaded plugin: homebridge-dash
[21/06/2017, 18:50:25] Registering accessory 'homebridge-dash.Dash'
[21/06/2017, 18:50:25] ---
[21/06/2017, 18:50:25] Loaded plugin: homebridge-milight
[21/06/2017, 18:50:25] Registering platform 'homebridge-milight.MiLight'
[21/06/2017, 18:50:25] ---
[21/06/2017, 18:50:25] Loaded plugin: homebridge-people
[21/06/2017, 18:50:25] Registering platform 'homebridge-people.People'
[21/06/2017, 18:50:25] Registering accessory 'homebridge-people.PeopleAccessory'
[21/06/2017, 18:50:25] Registering accessory 'homebridge-people.PeopleAllAccessory'
[21/06/2017, 18:50:25] ---
[21/06/2017, 18:50:25] Loaded plugin: homebridge-platform-wemo
[21/06/2017, 18:50:25] Registering platform 'homebridge-platform-wemo.BelkinWeMo'
[21/06/2017, 18:50:25] ---
[21/06/2017, 18:50:25] Loaded plugin: homebridge-statefuldummy
[21/06/2017, 18:50:25] Registering accessory 'homebridge-statefuldummy.StatefulDummySwitch'
[21/06/2017, 18:50:25] ---
[21/06/2017, 18:50:25] Loaded config.json with 0 accessories and 6 platforms.
[21/06/2017, 18:50:25] ---
[21/06/2017, 18:50:25] Loading 6 platforms...
[21/06/2017, 18:50:25] Initializing People platform...
[21/06/2017, 18:50:25] Initializing platform accessory 'Sam'...
[21/06/2017, 18:50:25] Initializing platform accessory 'Stuart'...
[21/06/2017, 18:50:25] Initializing platform accessory 'Kit'...
[21/06/2017, 18:50:25] Initializing platform accessory 'Laurence'...
[21/06/2017, 18:50:25] Initializing platform accessory 'Anyone'...
[21/06/2017, 18:50:25] Initializing platform accessory 'No One'...
[21/06/2017, 18:50:25] WebHook: Started server on port '51828'.
[21/06/2017, 18:50:25] Initializing cmdSwitch2 platform...
[21/06/2017, 18:50:25] [MiLight] Initializing MiLight platform...
[21/06/2017, 18:50:25] [MiLight] Initializing platform accessory 'Light'...
[21/06/2017, 18:50:25] [MiLight] Initializing platform accessory 'Lamp'...
[21/06/2017, 18:50:25] [WeMo Platform] Initializing BelkinWeMo platform...
[21/06/2017, 18:50:25] Initializing AmazonDash platform...
[21/06/2017, 18:50:25] [Broadlink RM] Initializing BroadlinkRM platform...
[21/06/2017, 18:50:25] [Broadlink RM] Initializing platform accessory 'Learn'...
[21/06/2017, 18:50:25] [Broadlink RM] Initializing platform accessory 'Scan Frequency'...
[21/06/2017, 18:50:25] [Broadlink RM] Initializing platform accessory 'Apple TV'...
[21/06/2017, 18:50:25] [Broadlink RM] Initializing platform accessory 'TV'...
[21/06/2017, 18:50:25] [Broadlink RM] Initializing platform accessory 'Amp'...
[21/06/2017, 18:50:25] Loading 0 accessories...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 031-45-154 │     
    └────────────┘     
                       
  ssdp not running +0ms
[21/06/2017, 18:50:25] Initializing platform accessory 'Kettle'...
  EventedHTTPServer Server listening on port 51826 +20ms
[21/06/2017, 18:50:25] Homebridge is running on port 51826.
  ssdp binding to port 1900 for ssdp discovery +6ms
  node-ssdp:client SSDP listening: { address: 'http://0.0.0.0:51830' } +0ms
  node-ssdp:client Sending an M-SEARCH request +5ms
  ssdp server listening 0.0.0.0:1900 192.168.1.69 +9ms
  node-ssdp:client Sent M-SEARCH request: { message: 'M-SEARCH * HTTP/1.1\r\nHOST: 239.255.255.250:1900\r\nST: urn:Belkin:service:basicevent:1\r\nMAN: "ssdp:discover"\r\nMX: 3\r\n\r\n' } +3ms
Discovered Broadlink RM device at 192.168.1.204 (0d:43:b4:fb:fd:a5)
  EventedHTTPServer [::ffff:192.168.1.136] New connection from client +1s
  EventedHTTPServer [::ffff:192.168.1.136] HTTP server listening on port 49937 +1ms
  EventedHTTPServer [::ffff:192.168.1.136] HTTP request: /pair-verify +10ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify +0ms
  EventedHTTPServer [::ffff:192.168.1.136] HTTP Response is finished +5ms
  EventedHTTPServer [::ffff:192.168.1.136] Client connection closed +7ms
  EventedHTTPServer [::ffff:192.168.1.136] HTTP connection was closed +1ms
  EventedHTTPServer [::ffff:192.168.1.136] HTTP server was closed +1ms
[21/06/2017, 18:50:27] [Broadlink RM] Apple TV setSwitchState: 0
[21/06/2017, 18:50:27] [Broadlink RM] Apple TV setSwitchState: already 0
[21/06/2017, 18:50:27] [Broadlink RM] TV setSwitchState: 0
[21/06/2017, 18:50:27] [Broadlink RM] TV setSwitchState: already 0
[21/06/2017, 18:50:27] [Broadlink RM] Amp setSwitchState: 0
[21/06/2017, 18:50:27] [Broadlink RM] Amp setSwitchState: already 0
  EventedHTTPServer [::ffff:192.168.1.70] New connection from client +3s
  EventedHTTPServer [::ffff:192.168.1.70] HTTP server listening on port 49939 +1ms
  EventedHTTPServer [::ffff:192.168.1.70] HTTP request: /pair-verify +5ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify +0ms
  EventedHTTPServer [::ffff:192.168.1.70] HTTP Response is finished +3ms
  EventedHTTPServer [::ffff:192.168.1.70] Client connection closed +6ms
  EventedHTTPServer [::ffff:192.168.1.70] HTTP connection was closed +0ms
  EventedHTTPServer [::ffff:192.168.1.70] HTTP server was closed +0ms
  EventedHTTPServer [::ffff:192.168.1.195] New connection from client +2s
  EventedHTTPServer [::ffff:192.168.1.195] HTTP server listening on port 49941 +0ms
  EventedHTTPServer [::ffff:192.168.1.195] HTTP request: /api/fAIXoVTmZhhQRhoIU8S3gNoZ5QCDDd1CjODo8MpD/lights/101/state +3ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: PUT /api/fAIXoVTmZhhQRhoIU8S3gNoZ5QCDDd1CjODo8MpD/lights/101/state +0ms
  hue hueDevices not cached {} 101 +2ms
  hue Name Homebridge 0000003E-0000-1000-8000-0026BB765291 +7ms
  hue Name Sam 0000003E-0000-1000-8000-0026BB765291 +0ms
  hue Name Stuart 0000003E-0000-1000-8000-0026BB765291 +0ms
  hue Name Kit 0000003E-0000-1000-8000-0026BB765291 +0ms
  hue Name Laurence 0000003E-0000-1000-8000-0026BB765291 +0ms
  hue Name Anyone 0000003E-0000-1000-8000-0026BB765291 +1ms
  hue Name No One 0000003E-0000-1000-8000-0026BB765291 +0ms
  hue Name Light 0000003E-0000-1000-8000-0026BB765291 +0ms
  hue Name Light 00000043-0000-1000-8000-0026BB765291 +0ms
  hue device response 8 { state: 
   { on: false,
     bri: 0,
     hue: 0,
     sat: 0,
     effect: 'none',
     ct: 0,
     alert: 'none',
     reachable: true },
  type: 'Dimmable light',
  name: 'Light',
  modelid: 'LWB004',
  manufacturername: 'MiLight',
  uniqueid: 'cc:22:3d:e3:ce:30:08:09-10',
  swversion: '66012040' } +0ms
  hue Name Lamp 0000003E-0000-1000-8000-0026BB765291 +1ms
  hue Name Lamp 00000043-0000-1000-8000-0026BB765291 +1ms
  hue device response 9 { state: 
   { on: false,
     bri: 0,
     hue: 0,
     sat: 0,
     effect: 'none',
     ct: 0,
     alert: 'none',
     reachable: true },
  type: 'Dimmable light',
  name: 'Lamp',
  modelid: 'LWB004',
  manufacturername: 'MiLight',
  uniqueid: 'cc:22:3d:e3:ce:30:09:09-10',
  swversion: '66012040' } +0ms
  hue Name Learn 0000003E-0000-1000-8000-0026BB765291 +1ms
  hue Name Learn 00000049-0000-1000-8000-0026BB765291 +0ms
  hue device response 10 { state: 
   { on: false,
     bri: 0,
     hue: 0,
     sat: 0,
     effect: 'none',
     ct: 0,
     alert: 'none',
     reachable: true },
  type: 'Dimmable light',
  name: 'Learn',
  modelid: 'LWB004',
  manufacturername: 'Broadlink',
  uniqueid: 'cc:22:3d:e3:ce:30:10:09-00',
  swversion: '66012040' } +0ms
  hue Name Scan Frequency 0000003E-0000-1000-8000-0026BB765291 +0ms
  hue Name Scan Frequency 00000049-0000-1000-8000-0026BB765291 +0ms
  hue device response 11 { state: 
   { on: false,
     bri: 0,
     hue: 0,
     sat: 0,
     effect: 'none',
     ct: 0,
     alert: 'none',
     reachable: true },
  type: 'Dimmable light',
  name: 'Scan Frequency',
  modelid: 'LWB004',
  manufacturername: 'Broadlink',
  uniqueid: 'cc:22:3d:e3:ce:30:11:09-00',
  swversion: '66012040' } +0ms
  hue Name Apple TV 0000003E-0000-1000-8000-0026BB765291 +1ms
  hue Name Apple TV 00000049-0000-1000-8000-0026BB765291 +0ms
  hue device response 12 { state: 
   { on: false,
     bri: 0,
     hue: 0,
     sat: 0,
     effect: 'none',
     ct: 0,
     alert: 'none',
     reachable: true },
  type: 'Dimmable light',
  name: 'Apple TV',
  modelid: 'LWB004',
  manufacturername: 'Broadlink',
  uniqueid: 'cc:22:3d:e3:ce:30:12:09-00',
  swversion: '66012040' } +0ms
  hue Name TV 0000003E-0000-1000-8000-0026BB765291 +1ms
  hue Name TV 00000049-0000-1000-8000-0026BB765291 +0ms
  hue device response 13 { state: 
   { on: false,
     bri: 0,
     hue: 0,
     sat: 0,
     effect: 'none',
     ct: 0,
     alert: 'none',
     reachable: true },
  type: 'Dimmable light',
  name: 'TV',
  modelid: 'LWB004',
  manufacturername: 'Broadlink',
  uniqueid: 'cc:22:3d:e3:ce:30:13:09-00',
  swversion: '66012040' } +0ms
  hue Name Amp 0000003E-0000-1000-8000-0026BB765291 +1ms
  hue Name Amp 00000049-0000-1000-8000-0026BB765291 +0ms
  hue device response 14 { state: 
   { on: false,
     bri: 0,
     hue: 0,
     sat: 0,
     effect: 'none',
     ct: 0,
     alert: 'none',
     reachable: true },
  type: 'Dimmable light',
  name: 'Amp',
  modelid: 'LWB004',
  manufacturername: 'Broadlink',
  uniqueid: 'cc:22:3d:e3:ce:30:14:09-00',
  swversion: '66012040' } +0ms
  hue Name Kettle 0000003E-0000-1000-8000-0026BB765291 +0ms
  hue Name Kettle 00000049-0000-1000-8000-0026BB765291 +0ms
  hue device response 15 { state: 
   { on: false,
     bri: 0,
     hue: 0,
     sat: 0,
     effect: 'none',
     ct: 0,
     alert: 'none',
     reachable: true },
  type: 'Dimmable light',
  name: 'Kettle',
  modelid: 'LWB004',
  manufacturername: 'Default-Manufacturer',
  uniqueid: 'cc:22:3d:e3:ce:30:15:09-00',
  swversion: '66012040' } +0ms
  hue Name Bedroom Light Switch 0000003E-0000-1000-8000-0026BB765291 +2ms
  hue Name WeMo Switch 0000003E-0000-1000-8000-0026BB765291 +0ms
  hue Name WeMo Switch 00000047-0000-1000-8000-0026BB765291 +0ms
  hue device response 17 { state: 
   { on: false,
     bri: 0,
     hue: 0,
     sat: 0,
     effect: 'none',
     ct: 0,
     alert: 'none',
     reachable: true },
  type: 'Dimmable light',
  name: 'WeMo Switch',
  modelid: 'LWB004',
  manufacturername: 'Belkin WeMo',
  uniqueid: 'cc:22:3d:e3:ce:30:17:10-00',
  swversion: '66012040' } +0ms
/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/hue.js:384
    var mac = hueDevices[lightid].uniqueid.split(':');
                                 ^

TypeError: Cannot read property 'uniqueid' of undefined
    at _getOiid (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/hue.js:384:34)
    at hueToHKCharacteristic (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/hue.js:199:24)
    at Object.handleHueApi (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/hue.js:88:24)
    at HAPServer._handleHueApi (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:923:7)
    at HAPServer.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:220:47)
    at emitNone (events.js:86:13)
    at IncomingMessage.emit (events.js:188:7)
    at endReadableNT (_stream_readable.js:975:12)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)

error by installing(fixed)

Hello, if i want to install homebridge-alexa i get this error:

pi@raspberrypi:~ $ sudo npm install -g https://github.com/NorthernMan54/homebridge
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/NorthernMan54/homebridge.git /root/.npm/_git-remotes/git-https-github-com-NorthernMan54-homebridge-git-a6b381b2: Klone in Bare-Repository '/root/.npm/_git-remotes/git-https-github-com-NorthernMan54-homebridge-git-a6b381b2'...
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/NorthernMan54/homebridge.git /root/.npm/_git-remotes/git-https-github-com-NorthernMan54-homebridge-git-a6b381b2: fatal: unable to access 'https://github.com/NorthernMan54/homebridge.git/': Failed to connect to github.com port 443: Connection refused
npm ERR! Linux 4.4.50-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "https://github.com/NorthernMan54/homebridge"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! code 128

npm ERR! Command failed: git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/NorthernMan54/homebridge.git /root/.npm/_git-remotes/git-https-github-com-NorthernMan54-homebridge-git-a6b381b2
npm ERR! Klone in Bare-Repository '/root/.npm/_git-remotes/git-https-github-com-NorthernMan54-homebridge-git-a6b381b2'...
npm ERR! fatal: unable to access 'https://github.com/NorthernMan54/homebridge.git/': Failed to connect to github.com port 443: Connection refused
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/npm-debug.log

i think it's my Fritzbox barrier but im not sure :/

Error when starting homebridge

Hi,

I installed homebridge on Windows 10 with the latest nodejs 6.11.2 and I get the following error when starting homebridge ?

[2017-8-19 23:04:05] Running : homebridge-homewizard 0.0.59
[2017-8-19 23:04:06] Successfully retrieved accessories from HomeWizard
[2017-8-19 23:04:06] Initializing platform accessory 'Home Preset'...
[2017-8-19 23:04:06] Failed to retrieve accessories from HomeWizard
[2017-8-19 23:04:06] TypeError: Cannot read property 'length' of undefined
at Characteristic.validateValue (C:\Users\user\AppData\Roaming\npm\node_modules\homebridge\node_modules\hap-nodejs\lib\Characteristic.js:225:19)
at Characteristic.setValue (C:\Users\user\AppData\Roaming\npm\node_modules\homebridge\node_modules\hap-nodejs\lib\Characteristic.js:273:19)
at Service.setCharacteristic (C:\Users\user\AppData\Roaming\npm\node_modules\homebridge\node_modules\hap-nodejs\lib\Service.js:178:32)
at HomeWizardPreset._setupInformationService (C:\Users\user\AppData\Roaming\npm\node_modules\homebridge-homewizard\dist\accessories\accessory.js:39:162)
at HomeWizardPreset.getServices (C:\Users\user\AppData\Roaming\npm\node_modules\homebridge-homewizard\dist\accessories\accessory.js:57:12)
at Server._createAccessory (C:\Users\user\AppData\Roaming\npm\node_modules\homebridge\lib\server.js:380:36)
at Server. (C:\Users\user\AppData\Roaming\npm\node_modules\homebridge\lib\server.js:366:32)
at C:\Users\user\AppData\Roaming\npm\node_modules\homebridge\node_modules\hap-nodejs\lib\util\once.js:16:19
at C:\Users\user\AppData\Roaming\npm\node_modules\homebridge-homewizard\dist\platform.js:72:9
at _fulfilled (C:\Users\user\AppData\Roaming\npm\node_modules\homebridge-homewizard\node_modules\q\q.js:854:54)
at self.promiseDispatch.done (C:\Users\user\AppData\Roaming\npm\node_modules\homebridge-homewizard\node_modules\q\q.js:883:30)
at Promise.promise.promiseDispatch (C:\Users\user\AppData\Roaming\npm\node_modules\homebridge-homewizard\node_modules\q\q.js:816:13)
at C:\Users\user\AppData\Roaming\npm\node_modules\homebridge-homewizard\node_modules\q\q.js:624:44
at runSingle (C:\Users\user\AppData\Roaming\npm\node_modules\homebridge-homewizard\node_modules\q\q.js:137:13)
at flush (C:\Users\user\AppData\Roaming\npm\node_modules\homebridge-homewizard\node_modules\q\q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:73:7)

Thx
Robby

Alexa can't find any devices

Hi,

I installed your version of Homebridge on a Raspberry PI 3 model B and configured the ssdp port in the config but Alexa (Echo Dot) can't find any devices and I do have some switches etc.
I enabled debug mode and got some lines with errors:

hu, 15 Jun 2017 19:48:08 GMT EventedHTTPServer [::ffff:192.168.0.247] HTTP request: /api/pkBovaHrTjmiUwGqH7m6q7eecgD3VXVrR3BPE1qK
Thu, 15 Jun 2017 19:48:08 GMT HAPServer [CC:22:3D:E3:CE:30] HAP Request: GET /api/pkBovaHrTjmiUwGqH7m6q7eecgD3VXVrR3BPE1qK
Thu, 15 Jun 2017 19:48:08 GMT hue unhandled API request NaN /api/pkBovaHrTjmiUwGqH7m6q7eecgD3VXVrR3BPE1qK
Thu, 15 Jun 2017 19:48:08 GMT EventedHTTPServer [::ffff:192.168.0.247] HTTP Response is finished

I attached the complete log. Any idea why it's not working ?

Thx
Robby
homebridge.txt

ERROR LOADING PLUGIN homebridge-alexa

Hi, I have homebridge installed, and homebridge-alexa also. However when starting homebridge I receive this error:

ERROR LOADING PLUGIN homebridge-alexa:
[Fri Jan 12 2018 11:43:16 GMT+0000 (UTC)] Error: Cannot find module '/usr/local/lib/node_modules/homebridge-alexa/index.js'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Plugin.load (/usr/local/lib/node_modules/homebridge/lib/plugin.js:72:22)
at Server. (/usr/local/lib/node_modules/homebridge/lib/server.js:142:14)
at Array.forEach (native)
at Server.str.replace.Server._loadPlugins (/usr/local/lib/node_modules/homebridge/lib/server.js:138:22)
at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:56:24)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:26:16)

I had a look in the folder /usr/local/lib/node_modules/homebridge-alexa/ , but the index.js file is missing
from there.

Any help would be amazing thanks.

Alexa wrong initialization

Hello, I have been using this plugin for a while now, and it has served its purpose so far. Today I have set up a new Sonoff switch in my home, which is no longer recognized correctly. Likewise, a lamp is switched wrong. I say "wall lamp", but the "floor lamp" goes on and the "wall lamp" can not be switched on and off. Can I somehow delete the chache or something? Unfortunately, it is not possible to delete and re-teach all devices via the Alexa app. Thanks!

plugin error

I can't get this to function at all.

I get the following:

ERROR LOADING PLUGIN homebridge-alexa:
Error: Cannot find module '/usr/lib/node_modules/homebridge-alexa/index.js'

Not sure what is going on. Help please.

Question compatability

Hey nice project, I have a a proper homebridge system already implemented with a lot of things,and I would like to connect an echo as you describe on ur project and I don't have the patience to do all over again for another platform. When u said echo 2 generation isn't supported , u are saying all of them right? the dot The normal echo & plus right? I'm really interested in this project, if u want any help testing or developing, maybe I can help u with something.

Cheers keep up with the good work,

Tiago

Just wanna say "Thank you"

I just wanna say thank you.
got my echo dot gen 2 today ... prepared the homebridge with your version and my homebridge-knx config ... and voila... out of the box everything is working as aspected ...

fantastic! keep up this good work!!

P.S: Please mark this not as an issue ;)

Pilight Homebridge Alexa

Hi,

I’m completely new to this Project. I have Alexa since last weekend and try to get my switches connected to Alexa but no devices were found.

I use Pilight with homebridge to control my switches via siri. Can somebody help me to get this done?

Cheers.

Installing additional plugin error

Hi again,

I tried to install another homebridge plugin but it didn't work (well I couldn't get it to work) so I uninstalled the plugin and removed the code from the config but now my homebridge plugins won't work.

I get this error when just trying run homebridge:

$ homebridge
module.js:472
throw err;
^

Error: Cannot find module '../build/Release/dns_sd_bindings'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:32:22)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.