GithubHelp home page GithubHelp logo

openhab-homekit-bridge's Introduction

Build Status Coverage Status Codacy Badge

OpenHAB HomeKit Bridge

OpenHAB HomeKit Bridge bridges openHAB items to Apple´s HomeKit Accessory Protocol. It is based on hap-nodejs.

Watch the demo video here and Siri controlling roller shutters here.

Prerequisites
  • openHAB server running with at least one Switch item configured
  • node.js 0.12.x, 4.0.x or 4.1.x
  • an iOS device running iOS 8 or 9
  • an iOS app for modifying the HomeKit database (like elgato eve)
  • this repository
Install the OpenHAB HomeKit Bridge:
  • On non OS X systems install the avahi library:

    sudo apt-get install avahi-daemon libavahi-compat-libdnssd-dev

  • Install the node module dependencies:

    npm update

  • Create a custom sitemap which lists all items you want to control with HomeKit:

    sitemap demo label="HomeKit" {
      # Lightbulb (On/Off), SwitchItem is always a lightbulb. See Frames for outlets.
      Switch item=DemoSwitch label="Toggle Switch"
    
      # Dimmer items (On/Off, Brightness)
      Slider item=DimmedLight label="Dimmed Light" switchSupport
    
      # RGB light items (On/Off, Brightness, Hue, Saturation)
      Colorpicker item=RGBLight icon="slider"
    
      # Rollershutter/Blinds
      Switch item=Shutter_GF_Living
    
      # Temperature sensor, value is taken from label
      Text item=Temperature_GF_Living label="Livingroom [%.1f °C]"
    
      Frame label="outlet" icon="outlet" { # Outlets must be configured in a Frame.
        Switch item=Outlet_GF_Living label="Radio"
      }
    

}


The following mapping of openHAB items and HomeKit items apply:

openHAB item | sitemap item | HomeKit item | Functions
-------------|--------------|--------------|----------
Switch | Switch | Lightbulb | On/Off
Dimmer | Slider | Lightbulb | On/Off, Brightness
Color | Colorpicker | Lightbulb | On/Off, Brightness, Hue, Saturation
Rollershutter | Switch | Rollershutter | Opening state 0% - 100%
Number | Text | Temperature | temp in °C
Switch | Frame* + Switch | Outlet | On/Off

\* The Frame must be tagged with `label=outlet` and/or `icon=outlet` to let the bridge pick up its Switch items as outlets.

##### Run OpenHAB HomeKit Bridge
This connects to OpenHAB at 192.168.0.99 on port 8080 and loads all items from a sitemap named 'demo.sitemap':

`npm start -- --name "myOpenHAB-Bridge" --server 192.1.0.99:8080 --sitemap demo`

###### Command line options:

<dl>
<dt>-n, --name</dt>
<dd>The name of the bridge as shown in the HomeKit database. _This option is mandatory._ </dd>
<dt>-s, --server</dt>
<dd>The network address and port of the OpenHAB server as ```ip:port```. Defaults to 127.0.0.1:8080</dd>
<dt>-p, --pincode</dt>
<dd>The pincode used for the bridge accessory. Defaults to 031-45-154.</dd>
<dt>-m, --sitemap</dt>
<dd>The name of the sitemap to load all items from. Items must not be nested in frames or groups. Defaults to 'homekit'.</dd>
</dl>

To access the bridge from an iOS device (9.0+) use Apples [HomeKit Catalog 2.0](https://developer.apple.com/library/ios/samplecode/HomeKitCatalog/Introduction/Intro.html) demo application or a vendor app like elgato´s eve (see _Prerequisites_). Use the predefined pin code _031-45-154_ to add the bridge as an accessory.

You may use the `start.sh.template` to create your own simple start up script. This gives you at least simple logging output and debugging possibilities in case the bridge runs in the background.

##### Running Tests

To execute unit tests run

`npm test`

To produce test coverage output run

`npm run-script coverage`

##### Known issues
* iOS HomeKit may not delete the bridge properly from its database. In this case the bridge can neither be connected nor added again. Delete the _persist_ folder and restart the bridge with a new name using the 'name' option.

##### Backlog/ToDo
* Distinguish between switches and lights when adding SwitchItems -> see [Issue 29](https://github.com/htreu/OpenHAB-HomeKit-Bridge/issues/29)
* Implement Rollershutter -> see [Issue 7](https://github.com/htreu/OpenHAB-HomeKit-Bridge/issues/7)

openhab-homekit-bridge's People

Contributors

alpha200 avatar britter avatar htreu 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openhab-homekit-bridge's Issues

source-map errors

Hi,

while installing I´ve got these errors. I´m not a linux-crack, so I don´t understand too much of it ;-)
  • Raspberry Pi 1
  • Raspbian Jessie Nov'15
  • node.js 4.1.0

<npm install npm WARN unmet dependency /home/pi/OpenHAB-HomeKit-Bridge/node_modules/babel-istanbul/node_modules/babel-core requires source-map@'^0.5.0' but will load npm WARN unmet dependency /home/pi/OpenHAB-HomeKit-Bridge/node_modules/babel-istanbul/node_modules/source-map, npm WARN unmet dependency which is version 0.4.4>

I´ve tried to start HomeKit-Bridge instead, but there are also errors:

`<pi@raspberrypi:~/OpenHAB-HomeKit-Bridge $ npm start -- --name "myOpenHAB-Bridge" --server 192.168.178.51:8080 --sitemap homekit-bridge

[email protected] start /home/pi/OpenHAB-HomeKit-Bridge
node index.js start "--name" "myOpenHAB-Bridge" "--server" "192.168.178.51:8080" "--sitemap" "homekit-bridge"

module.js:338
throw err;
^

Error: Cannot find module 'lodash/lang/cloneDeep'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:286:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/home/pi/OpenHAB-HomeKit-Bridge/node_modules/babel-core/node_modules/babel-register/lib/node.js:11:28)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)

npm ERR! Linux 4.1.13+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" "--" "--name" "myOpenHAB-Bridge" "--server" "192.168.178.51:8080" "--sitemap" "homekit-bridge"
npm ERR! node v4.1.0
npm ERR! npm v2.14.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node index.js start "--name" "myOpenHAB-Bridge" "--server" "192.168.178.51:8080" "--sitemap" "homekit-bridge"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node index.js start "--name" "myOpenHAB-Bridge" "--server" "192.168.178.51:8080" "--sitemap" "homekit-bridge"'.
npm ERR! This is most likely a problem with the openHAB-HomeKit-Bridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node index.js start "--name" "myOpenHAB-Bridge" "--server" "192.168.178.51:8080" "--sitemap" "homekit-bridge"
npm ERR! You can get their info via:
npm ERR! npm owner ls openHAB-HomeKit-Bridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/OpenHAB-HomeKit-Bridge/npm-debug.log>`
pi@raspberrypi:~/OpenHAB-HomeKit-Bridge $ npm start -- --name "myOpenHAB-Bridge" --server 192.168.178.51:8080 --sitemap homekit-bridge

[email protected] start /home/pi/OpenHAB-HomeKit-Bridge
node index.js start "--name" "myOpenHAB-Bridge" "--server" "192.168.178.51:8080" "--sitemap" "homekit-bridge"

module.js:338
throw err;
^

Error: Cannot find module 'lodash/lang/cloneDeep'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:286:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/home/pi/OpenHAB-HomeKit-Bridge/node_modules/babel-core/node_modules/babel-register/lib/node.js:11:28)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)

npm ERR! Linux 4.1.13+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" "--" "--name" "myOpenHAB-Bridge" "--server" "192.168.178.51:8080" "--sitemap" "homekit-bridge"
npm ERR! node v4.1.0
npm ERR! npm v2.14.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node index.js start "--name" "myOpenHAB-Bridge" "--server" "192.168.178.51:8080" "--sitemap" "homekit-bridge"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node index.js start "--name" "myOpenHAB-Bridge" "--server" "192.168.178.51:8080" "--sitemap" "homekit-bridge"'.
npm ERR! This is most likely a problem with the openHAB-HomeKit-Bridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node index.js start "--name" "myOpenHAB-Bridge" "--server" "192.168.178.51:8080" "--sitemap" "homekit-bridge"
npm ERR! You can get their info via:
npm ERR! npm owner ls openHAB-HomeKit-Bridge
npm ERR! There is likely additional logging output above.

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

Thank you
Horst

Doesn't work with openhab2

Doesn't work with openhab2. Please port to openhab2 because first openhab is no more perspective. Development is focused on openhab2.

root@Home /usr/src/OpenHAB-HomeKit-Bridge # npm start --server=10.0.1.250:8080

[email protected] start /usr/src/OpenHAB-HomeKit-Bridge
node openHABBridge.js

*** 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
OpenHAB Bridge starting...
/usr/src/OpenHAB-HomeKit-Bridge/lib/ItemProvider.js:4
for (var i = 0; i < widgets.length; i++) {
^
TypeError: Cannot read property 'length' of undefined
at Object.parseSitemap (/usr/src/OpenHAB-HomeKit-Bridge/lib/ItemProvider.js:4:30)
at /usr/src/OpenHAB-HomeKit-Bridge/openHABBridge.js:32:30
at Request._callback (/usr/src/OpenHAB-HomeKit-Bridge/lib/RestClient.js:11:7)
at Request.self.callback (/usr/src/OpenHAB-HomeKit-Bridge/node_modules/request/request.js:354:22)
at Request.emit (events.js:110:17)
at Request. (/usr/src/OpenHAB-HomeKit-Bridge/node_modules/request/request.js:1207:14)
at Request.emit (events.js:129:20)
at IncomingMessage. (/usr/src/OpenHAB-HomeKit-Bridge/node_modules/request/request.js:1153:12)
at IncomingMessage.emit (events.js:129:20)
at _stream_readable.js:908:16

npm ERR! Linux 3.18.7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" "--server=10.0.1.250:8080"
npm ERR! node v0.12.1
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node openHABBridge.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node openHABBridge.js'.
npm ERR! This is most likely a problem with the OpenHAB-HomeKit-Bridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node openHABBridge.js
npm ERR! You can get their info via:
npm ERR! npm owner ls OpenHAB-HomeKit-Bridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /usr/src/OpenHAB-HomeKit-Bridge/npm-debug.log

cannot read property 'homepage' of undefined

I am trying to start the Node server from my Macbook but getting this error:

$ npm start -- --name "myOpenHAB-Bridge" --server 10.0.1.15:8080

> [email protected] start ~/OpenHAB-HomeKit-Bridge-1.3.3
> node index.js start "--name" "myOpenHAB-Bridge" "--server" "10.0.1.15:8080"

Starting the bridge myOpenHAB-Bridge ...
~/OpenHAB-HomeKit-Bridge-1.3.3/lib/SitemapParser.js:44
      var widgets = [].concat(sitemap.homepage.widget);
                                     ^

TypeError: Cannot read property 'homepage' of undefined
    at SitemapParser.parseSitemap (SitemapParser.js:25:29)
    at openHABBridge.js:59:39
    at Request._callback (RestClient.js:28:11)
    at Request.self.callback (~/OpenHAB-HomeKit-Bridge-1.3.3/node_modules/request/request.js:187:22)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.<anonymous> (~/OpenHAB-HomeKit-Bridge-1.3.3/node_modules/request/request.js:1044:10)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at IncomingMessage.<anonymous> (~/OpenHAB-HomeKit-Bridge-1.3.3/node_modules/request/request.js:965:12)

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" "--" "--name" "myOpenHAB-Bridge" "--server" "10.0.1.15:8080"
npm ERR! node v5.1.0
npm ERR! npm  v3.3.12
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node index.js start "--name" "myOpenHAB-Bridge" "--server" "10.0.1.15:8080"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script 'node index.js start "--name" "myOpenHAB-Bridge" "--server" "10.0.1.15:8080"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the openHAB-HomeKit-Bridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node index.js start "--name" "myOpenHAB-Bridge" "--server" "10.0.1.15:8080"
npm ERR! You can get their info via:
npm ERR!     npm owner ls openHAB-HomeKit-Bridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!    ~/OpenHAB-HomeKit-Bridge-1.3.3/npm-debug.log

TypeError

I get the following error:

OpenHAB Bridge starting...
/Users/thiloackermann/Downloads/last/lib/SitemapParser.js:25
if (!widget.item) {
^
TypeError: Cannot read property 'item' of undefined

I'm using node 0.12.0 and openHAB 1.8.

no items from sitemap loaded

I setup OpenHAB which is working as expected in switching KNX-based lights.

When I start the bridge i get:

hab@openhab:~/OpenHAB-HomeKit-Bridge-master$ npm start -- --name testhab --server 127.0.0.1:8080 --sitemap demo
*** WARNING *** The program 'nodejs' 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=nodejs
*** WARNING *** The program 'nodejs' 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=nodejs&f=DNSServiceRegister
Starting the bridge testhab ...

and then nothing ... no item will show up.

I have an Ubuntu vmware based installation running on a mac
nodejs is version 4.4.5
(same behavior with 4.2.x)

the sitemap is:
rainer@openhab:~/OpenHAB-HomeKit-Bridge-master$ cat ../openHAB/configurations/sitemaps/demo.sitemap
sitemap demo label="demo" {
Switch item=Wohnen_Wandleuchten label="Wohnen Wandleuchten"
}

Any idea?

Thanks,
Rainer

text instead of slider for volume control

I am trying to set up a control for "kitchen volume" that I can adjust by saying "hey siri, set the kitchen volume to 50". I like this much more than saying "dim the kitchen volume to 50"

Slider item=KitchenSiriVolumeDimmer label="kitchen volume"

  • works just fine, but I have to use the word "dim" to adjust the level

Text item=KitchenVolumeSiriNumber label="kitchen volume"
Text item=KitchenVolumeSiriNumber label="kitchen volume [:%d]"
-neither of these work

am I doing it wrong?

Install on debian fails

on my debian the install fails with the following comments:

npm install

[email protected] install /root/OpenHAB-HomeKit-Bridge/node_modules/HAP-NodeJS/node_modules/srp/node_modules/bignum
node-gyp configure build

gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:344:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 3.16.0-4-686-pae
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "configure" "build"
gyp ERR! cwd /root/OpenHAB-HomeKit-Bridge/node_modules/HAP-NodeJS/node_modules/srp/node_modules/bignum
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

[email protected] install /root/OpenHAB-HomeKit-Bridge/node_modules/HAP-NodeJS/node_modules/curve25519
node-gyp rebuild

node.js:815
var cwd = process.cwd();
^
Error: ENOENT, no such file or directory
at Function.startup.resolveArgv0 (node.js:815:23)
at startup (node.js:58:13)
at node.js:906:3
npm ERR! [email protected] install: node-gyp configure build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the bignum package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls bignum
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.16.0-4-686-pae
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /root/OpenHAB-HomeKit-Bridge
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

[email protected] install /root/OpenHAB-HomeKit-Bridge/node_modules/HAP-NodeJS/node_modules/mdns
node-gyp rebuild

Crash after a while

Assertion failed: (0), function uv_err_name, file ../deps/uv/src/uv-common.c, line 75.

Running on Mac OS X 10.11.5
openHAB 1.8.1
{ npm: '2.5.1',
http_parser: '2.3',
modules: '14',
node: '0.12.0',
openssl: '1.0.1l',
uv: '1.0.2',
v8: '3.28.73',
zlib: '1.2.8' }
node V0.12.0
Should I run it with debug somehow to get more info about it?

Elgato Eve - Extreme Brightening Lag & On to 1%

I installed OpenHAB with the InsteonPLM binding and have a number of Insteon dimmer items. Everything is very responsive through the OpenHAB web interface and through the OpenHAB iOS app. I installed OpenHAB-HomeKit-Bridge without any issues. I attached the bridge to Elgato Eve on iOS. All of the items pulled in and are controllable through the app. There are no issues with Siri interactions like "Turn ON/OFF" or "Set to 50%".

The issue:
Dimmer items in Eve are exhibiting two issues.

  1. Tapping ON sets them to 1%
  2. The brightness slider has extreme lag. If I swipe the slider quickly from 0% to 100%, the slider and its corresponding light will brighten at random increments from 0% to 100% over the course of a minute; as if the slider is sending tens or hundreds of requests to "set to 1%, set to 2%, set to 5%" etc.

Is anyone else experiencing these two issues?

Not possible to set temperature

Hi,

I used a Slider in my Sitemap to change the tempature, but it's not working. The temperature is shown as Text.

Any Idea?

Startup Error - TypeError: Cannot read property 'item' of undefined

[email protected] /usr/lib/node_modules/npm

node index.js start "--server" "cubox-i.fritz.box:80" "--sitemap" "homekit"
/srv/openhab/OpenHAB-HomeKit-Bridge/lib/SitemapParser.js:25
if (!widget.item) {
^

TypeError: Cannot read property 'item' of undefined
at SitemapParser.parseSitemap (SitemapParser.js:13:18)
at openHABBridge.js:36:37
at Request._callback (RestClient.js:15:11)
at Request.self.callback (/srv/openhab/OpenHAB-HomeKit-Bridge/node_modules/request/request.js:198:22)
at emitTwo (events.js:87:13)
at Request.emit (events.js:172:7)
at Request. (/srv/openhab/OpenHAB-HomeKit-Bridge/node_modules/request/request.js:1035:10)
at emitOne (events.js:82:20)
at Request.emit (events.js:169:7)
at IncomingMessage. (/srv/openhab/OpenHAB-HomeKit-Bridge/node_modules/request/request.js:962:12)

Sitemap:
sitemap homekit label="HomeKit" {

On/Off Item (lights, outlets)

Switch item=Light_FF_Office_Ceiling label="Licht"
}

n00b question regarding installing

I have Linux n00b question.

How do i install this rep on ubuntu?
I have installed nodejs and avahi, but i dont understand how i should get the rep in place and run npm update without getting a lot of errors...

thanks

Startup Error

Hello,
I am using Homekit <> openHab <> KNX as many of you probably, the Debian it all runs down is in a VM on my PC with its own IP and so on...
Installed the Demo content on openHab(renamed the sitemap to homekit.sitemap),
configured KNX and Homekit,
copied the package.json here to my home folder (username ist lx).
When I start the openHab server in a Terminal and try to start the Homekit Bridge with

npm start -- --name "myOpenHAB-Bridge" --server localhost:8080 --sitemap homekit

I receive loads of errors:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs',
1 verbose cli '/usr/bin/npm',
1 verbose cli 'start',
1 verbose cli '--',
1 verbose cli '--name',
1 verbose cli 'myOpenHAB-Bridge',
1 verbose cli '--server',
1 verbose cli 'localhost:8080',
1 verbose cli '--sitemap',
1 verbose cli 'homekit' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart [email protected]
6 info start [email protected]
7 verbose unsafe-perm in lifecycle true
8 info [email protected] Failed to exec start script
9 verbose stack Error: [email protected] start: node index.js start "--name" "myOpenHAB-Bridge" "--server" "localhost:8080" "--sitemap" "homekit"
9 verbose stack Exit status 1
9 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:217:16)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at EventEmitter.emit (events.js:172:7)
9 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/spawn.js:24:14)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at ChildProcess.emit (events.js:172:7)
9 verbose stack at maybeClose (internal/child_process.js:827:16)
9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
10 verbose pkgid [email protected]
11 verbose cwd /home/lx
12 error Linux 3.16.0-4-amd64
13 error argv "/usr/bin/nodejs" "/usr/bin/npm" "start" "--" "--name" "myOpenHAB-Bridge" "--server" "localhost:8080" "--sitemap" "homekit"
14 error node v4.4.5
15 error npm v2.15.5
16 error code ELIFECYCLE
17 error [email protected] start: node index.js start "--name" "myOpenHAB-Bridge" "--server" "localhost:8080" "--sitemap" "homekit"
17 error Exit status 1
18 error Failed at the [email protected] start script 'node index.js start "--name" "myOpenHAB-Bridge" "--server" "localhost:8080" "--sitemap" "homekit"'.
18 error This is most likely a problem with the openHAB-HomeKit-Bridge package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error node index.js start "--name" "myOpenHAB-Bridge" "--server" "localhost:8080" "--sitemap" "homekit"
18 error You can get information on how to open an issue for this project with:
18 error npm bugs openHAB-HomeKit-Bridge
18 error Or if that isn't available, you can get their info via:
18 error
18 error npm owner ls openHAB-HomeKit-Bridge
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]

hope you can help me, and please be patient with me since debian is not my main OS,

curry

Colorpicker item does not work

Hi Guys,

I was just wondering I can't seem to get the colorpicker item to work is this not supported or how would I make it appear?

Sitemap contains:

   Colorpicker item=Livingroomargb icon="colorwheel" label="Color door"

Tried without the label as well no change though

Openhab v. 1.7.1
home bridge latest version here from github

Thanks

Wont find accessories to add

I had a previous issue #14 , that was closed though the issue was not resolved, 21 days ago, I had hoped it would get reopened.

Issues still continues.
I have now migrated to a new server running openHAB 1.7.1 previous version 1.4. I had hoped maybe this would help. Debian minimal install, installed everything needed for the Homekit-bridge

though i still can not find any accessories....?
seems to start fine


 # npm start -- --server 192.168.1.43:8480 --sitemap homekit

> [email protected] start /root/OpenHAB-HomeKit-Bridge
> node index.js "--server" "192.168.1.43:8480" "--sitemap" "homekit"

*** WARNING *** The program 'nodejs' 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 
*** WARNING *** The program 'nodejs' 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 
OpenHAB Bridge starting...
processing widget: SwitchItem Living Room Light
processing widget: SwitchItem Dining Room Light
processing widget: SwitchItem Lamp
open ws connection for url http://192.168.1.43:8480/rest/items/LAMP
open ws connection for url http://192.168.1.43:8480/rest/items/SW_DININGROOM
open ws connection for url http://192.168.1.43:8480/rest/items/SW_LIVINGROOM

Bridge is stops working after an hour

After one hour (approx) the Homebridge is no longer available for Homekit. But I can not find any reason and there is no npm-debug.log output.

I start the bridge over a rule:
rule "system startup"
when
System started
then
executeCommandLine("sudo npm start /opt/openhab");
end

Do you know any reason for this? Thanks!

Exception on temperature value

HomeKit Bridge reproducible stops with exception on first temperature value.
This is the log output:

temperature received message: 20
TemperatureSensor.js:56
this.accessory.getService(_hapNodejs.Service.TemperatureSensor).getCharacteristic(_hapNodejs.Characteristic.CurrentTemperature).setValue(_this.convertState(message));
^

ReferenceError: _this is not defined
at TemperatureSensor.updateCharacteristics (TemperatureSensor.js:40:19)
at WebSocket. (UpdateListener.js:17:13)
at emitTwo (events.js:87:13)
at WebSocket.emit (events.js:172:7)
at Receiver.ontext (/Users/andy/OpenHAB/HomeKit-Bridge/node_modules/ws/lib/WebSocket.js:816:10)
at /Users/andy/OpenHAB/HomeKit-Bridge/node_modules/ws/lib/Receiver.js:477:18
at Receiver.applyExtensions (/Users/andy/OpenHAB/HomeKit-Bridge/node_modules/ws/lib/Receiver.js:364:5)
at /Users/andy/OpenHAB/HomeKit-Bridge/node_modules/ws/lib/Receiver.js:466:14
at Receiver.flush (/Users/andy/OpenHAB/HomeKit-Bridge/node_modules/ws/lib/Receiver.js:340:3)
at Receiver.opcodes.1.finish (/Users/andy/OpenHAB/HomeKit-Bridge/node_modules/ws/lib/Receiver.js:482:12)

HMCatalog connection fails

The Connection to the Bridge worked time, so i was able to enter the code, but nothing more. Any other try to connect runs infinite.

On the server side, the terminal looks like:
TCP server accepting connection on port: 52826
HAP Server is listening
open ws connection for switch characteristic.
open ws connection for switch characteristic.
open ws connection for switch characteristic.
open ws connection for switch characteristic.
open ws connection for switch characteristic.
open ws connection for switch characteristic.
open ws connection for switch characteristic.
open ws connection for switch characteristic.
open ws connection for switch characteristic.

that's all. At the time i had a short it connection, it was:
New Session 50165
Server Connection Established 60373
Identify!
Start Pair M1
Start Pair M3
Start Pair M5
Client Disconnected
Server Disconnected
New Session 50166
Server Connection Established 60387
Start Verify M1
Verify M1 Finished
Start Verify M3
M3: Verify Success
Characteristics.js:updateValue():NotEventEnabled
Characteristic.js:updateCharacteristicValue() without onUpdate function: true
Characteristics.js:updateValue():NotEventEnabled
Characteristic.js:updateCharacteristicValue() without onUpdate function: true
Client Disconnected
Server Disconnected
New Session 50167
Server Connection Established 60392
Start Verify M1
Verify M1 Finished
Start Verify M3
M3: Verify Success
Client Disconnected
Server Disconnected
New Session 50180
Server Connection Established 60411
Start Verify M1
Verify M1 Finished
Start Verify M3
M3: Verify Success
Client Disconnected
Server Disconnected

OpenHAB-Bridge shows up as accessory instead of actual devices

I've installed the plugin and it starts normally. After opening EVE and adding the accessory, EVE shows just 1 accessory; the plugin and not the 3 switches i have configured in the separate sitemap.
Any clue as to why this is happening or how to resolve it ?

Startup Issues

Running the code
npm start -- --name "Test" --server 127.0.0.1:8090 --sitemap homekit
results in
npm ERR! Error: ENOENT, open '/home/xxx/Downloads/OpenHAB-HomeKit-Bridge/node_modules/--name/package.json'

I went into ./lib/openHABBridge.js and set the 'name' option to not be mandatory and have a default value and it works. I have zero experience with NodeJS but it looks close enough to Perl which I have some experience in that I was able to ascertain this much but as far as the npm start items I'm clueless.

Crash in HAPServer.js

Happened just now, never seen before.
/opt/OpenHAB-HomeKit-Bridge/node_modules/hap-nodejs/lib/HAPServer.js:490
var sequence = objects[HAPServer.Types.SEQUENCE_NUM][0]; // value is single byte with sequence number
^

TypeError: Cannot read property '0' of undefined
at HAPServer._handlePairVerify (/opt/OpenHAB-HomeKit-Bridge/node_modules/hap-nodejs/lib/HAPServer.js:490:55)
at HAPServer. (/opt/OpenHAB-HomeKit-Bridge/node_modules/hap-nodejs/lib/HAPServer.js:201:39)
at emitNone (events.js:67:13)
at IncomingMessage.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:921:12)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)

Problem with homekit on CentOS 6.7 as VMWare VM

Hi,
I try installing homekit on an VMware VM with an CentOS 6.7 x64 and x86.

I used to following versions

[root@homekit ~]# npm version
{ npm: '2.14.4',
ares: '1.10.1-DEV',
http_parser: '2.5.0',
modules: '46',
node: '4.1.2',
openssl: '1.0.2d',
uv: '1.7.5',
v8: '4.5.103.35',
zlib: '1.2.8' }

I also tried node version 0.12.9, 4.0.0 and 5.3.0 with the npm version of the node.

Within the installation process i get the following warnings and errors.

npm WARN optional dep failed, continuing [email protected]
.
.
.
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 2.6.32-573.12.1.el6.x86_64
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/homekit/active/node_modules/hap-nodejs/node_modules/mdns
gyp ERR! node -v v4.1.2
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Linux 2.6.32-573.12.1.el6.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.1.2
npm ERR! npm v2.14.4
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the curve25519 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls curve25519
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /opt/homekit/active/npm-debug.log

Has anybody an idea?

Thanks for help!

Bridge disconnects from the iPhone

Hello,

I'm trying to use the openhab home kit bridge with my iPhone.

I'm using a linux vm ubuntu 14.04 (different from the Openhab controller which is running on a raspberry).

Installation went apparently fine, and I'm also able to run the bridge which is connected to the iPhone.

After a while (1 minutes or more, when I leave the iPhone going in standby mode, and I switch it on again) I see the device disconnected, and even doing a refresh it doesn't work.

The only way to have it working again is to stop the bridge and restart it.

I sniffed the bonjour packets and apparently the bridge answers the mdns requests coming from the phone.

Did you ever experience this problem?

Software release used:

root@openhab:/home/rafdalb# nodejs --version
v0.12.9
root@openhab:/home/rafdalb# npm --version
2.14.9

iOS 9.2.1

Openhab 1.8.1

Items from sitemap not fetched correctly

Hi all,

I installed the OpenHAB-HomeKit-Bridge and it seems to start fine and i don't get any errors,
However the when I start the bridge the only printout i get is:
Starting the bridge myOpenHAB-Bridge ...

I start it with the following parameters:
npm start -- --name "myOpenHAB-Bridge" --server 127.0.0.1:8080 --sitemap homekit

The NPM version is 2.14.9 and the NodeJS version is v0.12.12.

When i take a look in the requests log of OpenHAB itself I get the following:
127.0.0.1 - - [15/Mar/2016:12:43:32 +0000] "GET /rest/sitemaps/homekit?type=json HTTP/1.1" 200 1353
127.0.0.1 - - [15/Mar/2016:12:43:33 +0000] "GET /rest/items/DimmedLight/state?type=json HTTP/1.1" 101 0
127.0.0.1 - - [15/Mar/2016:12:43:33 +0000] "GET /rest/items/DemoSwitch/state?type=json HTTP/1.1" 101 0
127.0.0.1 - - [15/Mar/2016:12:43:33 +0000] "GET /rest/items/Shutter_GF_Living/state?type=json HTTP/1.1" 101 0
127.0.0.1 - - [15/Mar/2016:12:43:33 +0000] "GET /rest/items/RGBLight/state?type=json HTTP/1.1" 101 0
127.0.0.1 - - [15/Mar/2016:12:43:33 +0000] "GET /rest/items/Temperature_GF_Living/state?type=json HTTP/1.1" 101 0

So it looks like the sitemap is fetched correctly but the fetching of the individual items seems to fail.
The last number of every log entry stands for the number of bytes returned.
When i make the same request for for example the DemoSwitch via a browser i get a valid response:
127.0.0.1 - - [15/Mar/2016:12:52:13 +0000] "GET /rest/items/DemoSwitch/state?type=json HTTP/1.1" 200 3

Does somebody has any idea what is wrong, or what I am doing wrong?

Thanks a lot!

Greetings,
Frederic

Pairing ok, but Siri doesn't find any of my KNX lights

Hi,

I'm using OpenHAB with KNX.

I'm able to pair the bridge in HMCatalog and iDevices , but Siri doesn't find any lights.
If I say "Couch Licht einschalten" it reports "Ich habe diesmal keine Lampen gefunden". What am I doing wrong?

Sitemap:

sitemap demo label="HomeKit" {
Switch item=Couch
}

Items

Switch Couch "Couch" (EG_Wohnen, Licht) { knx="1/0/7" }

Can't start.

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'start',
1 verbose cli '--',
1 verbose cli '--server',
1 verbose cli '127.0.0.1:8080',
1 verbose cli '--sitemap',
1 verbose cli 'homekit',
1 verbose cli '--pincode',
1 verbose cli '13572460' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart [email protected]
6 info start [email protected]
7 verbose unsafe-perm in lifecycle true
8 info [email protected] Failed to exec start script
9 verbose stack Error: [email protected] start: node index.js "--server" "127.0.0.1:8080" "--sitemap" "homekit" "--pincode" "13572460"
9 verbose stack Exit status 1
9 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
9 verbose stack at EventEmitter.emit (events.js:110:17)
9 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
9 verbose stack at ChildProcess.emit (events.js:110:17)
9 verbose stack at maybeClose (child_process.js:1015:16)
9 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
10 verbose pkgid [email protected]
11 verbose cwd /opt/Sources/OpenHAB-HomeKit-Bridge
12 error Linux 4.1.6-v7+
13 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" "--" "--server" "127.0.0.1:8080" "--sitemap" "homekit" "--pincode" "13572460"
14 error node v0.12.6
15 error npm v2.11.2
16 error code ELIFECYCLE
17 error [email protected] start: node index.js "--server" "127.0.0.1:8080" "--sitemap" "homekit" "--pincode" "13572460"
17 error Exit status 1
18 error Failed at the [email protected] start script 'node index.js "--server" "127.0.0.1:8080" "--sitemap" "homekit" "--pincode" "13572460"'.
18 error This is most likely a problem with the openHAB-HomeKit-Bridge package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error node index.js "--server" "127.0.0.1:8080" "--sitemap" "homekit" "--pincode" "13572460"
18 error You can get their info via:
18 error npm owner ls openHAB-HomeKit-Bridge
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]

Colorpicker sending strange values

Hi

I have everything up and running and so far its working good!

But i have an issue. When using the Colorpicker i get strange values from the Bridge in to OpenHAB.

If i tell siri to change the color to RED i get 3 commands in return (see below). And when converting those from HSB to RGB it gets wrong, in this case pure white.

It is converting the last HSB value recieved and in this case its white so in a way that is correct. But if you convert the middle command from HSB that would give you bright blue?! So none of the lines are correct... also it does not seam to update elegato eve when the color has been changed from the OpenHAB app.

From the Bridge

  • Vrum_RGBball received command 100
  • Vrum_RGBball received command 240,100,100
  • Vrum_RGBball received command 0,0,100

Sent to the lamp

  • Vrum_RGBball_send received command 255,255,255

Running OpenHAB 1.8.1, Homekit bridge installed on a Linux computer and controlling from a iPhone 6 with elegato eve.

any ideas?

avahi

Hello,
How to correct this warning message, please ?
URL does not work.

root@titan:/opt/OpenHAB-HomeKit-Bridge# npm start -- --server titan.local:8080 --sitemap homekit

> [email protected] start /opt/OpenHAB-HomeKit-Bridge
> node index.js "--server" "titan.local:8080" "--sitemap" "homekit"

*** 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>
OpenHAB Bridge starting...

thanks,
Frédéric

Hangs on adding Accessory

My iPhone can see the Bridge and I get prompted for the passcode - after that the iPhone hangs on Adding Accessory.

In the Bridge Log I can see

TCP server accepting connection on port: 52826
HAP Server is listening
New Session 61378
Server Connection Established 55288
Start Pair M1
Start Pair M3
Start Pair M5
Client Disconnected
Server Disconnected
New Session 61379
Server Connection Established 55289
Start Verify M1
Verify M1 Finished
Start Verify M3
M3: Verify Success

It stops at this point

Crash on startup

The program crashes on startup on my system (Raspberry Pi with Raspbian)

Log:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node',
1 verbose cli   '/usr/bin/npm',
1 verbose cli   'start',
1 verbose cli   '--',
1 verbose cli   '--server',
1 verbose cli   'localhost:8080' ]
2 info using [email protected]
3 info using [email protected]
4 verbose node symlink /usr/bin/node
5 verbose run-script [ 'prestart', 'start', 'poststart' ]
6 info prestart [email protected]
7 info start [email protected]
8 verbose unsafe-perm in lifecycle true
9 info [email protected] Failed to exec start script
10 verbose stack Error: [email protected] start: `node openHABBridge.js --server localhost:8080`
10 verbose stack Exit status 1
10 verbose stack     at EventEmitter. (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
10 verbose stack     at EventEmitter.emit (events.js:110:17)
10 verbose stack     at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/spawn.js:14:12)
10 verbose stack     at ChildProcess.emit (events.js:110:17)
10 verbose stack     at maybeClose (child_process.js:1015:16)
10 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
11 verbose pkgid [email protected]
12 verbose cwd /home/pinki/OpenHAB-HomeKit-Bridge
13 error Linux 3.18.7-v7+
14 error argv "/usr/bin/node" "/usr/bin/npm" "start" "--" "--server" "localhost:8080"
15 error node v0.12.2
16 error npm  v2.7.4
17 error code ELIFECYCLE
18 error [email protected] start: `node openHABBridge.js --server localhost:8080`
18 error Exit status 1
19 error Failed at the [email protected] start script 'node openHABBridge.js --server localhost:8080'.
19 error This is most likely a problem with the OpenHAB-HomeKit-Bridge package,
19 error not with npm itself.
19 error Tell the author that this fails on your system:
19 error     node openHABBridge.js --server localhost:8080
19 error You can get their info via:
19 error     npm owner ls OpenHAB-HomeKit-Bridge
19 error There is likely additional logging output above.
20 verbose exit [ 1, true ]

Instruction for homebridge install Windows

Hi,

I Have Opehhab 1.8.2 installed on a windows PC that is on all the time at home. I have An Aeotec Gen5 stick and all is working well. I now want to progress to the Home Bridge integration. All instructions seem to point to Linux/Mac/Raspberry Pi but nothing for windows. Could you please help me get lazier :D
Cheers

Speakers != light bulb

Think i maybe missing something here, as I either can't find the documentation or it is lacking...

Though my other switches (television, speakers etc) are being detected as a lightbulb. Which means when you ask Siri to turn off all of the living room lights, all kinds of stuff is switched off.

Crashes on Pi Respbian Jessie

I'm getting a crash soon after start:

raspberrypi:ken 357> npm start -- --name "myOpenHAB-Bridge" --server 127.0.0.1:8080 --sitemap demo

[email protected] start /home/ken/openhab/OpenHAB-HomeKit-Bridge-master
node index.js start "--name" "myOpenHAB-Bridge" "--server" "127.0.0.1:8080" "--sitemap" "demo"

/home/ken/openhab/OpenHAB-HomeKit-Bridge-master/node_modules/babel-core/node_modules/babel-traverse/lib/scope/index.js:59
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key i
^

SyntaxError: Unexpected identifier
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:413:25)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/home/ken/openhab/OpenHAB-HomeKit-Bridge-master/node_modules/babel-core/node_modules/babel-traverse/lib/path/index.js:33:14)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)

npm ERR! Linux 4.1.17+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" "--" "--name" "myOpenHAB-Bridge" "--server" "127.0.0.1:8080" "--sitemap" "demo"
npm ERR! node v4.1.2
npm ERR! npm v2.14.4
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node index.js start "--name" "myOpenHAB-Bridge" "--server" "127.0.0.1:8080" "--sitemap" "demo"
npm ERR! Exit status 1

I've tried node 4.0.0 as well, with identical results - The standard install of node on Jessie is 0.10, so it doesn't meet the base requirements.

I'm using and arm6 build of node from:

wget https://nodejs.org/dist/v4.1.2/node-v4.1.2-linux-armv6l.tar.gz

Question: Prevent multiple commands

Hi, thanks for this great project! It works awesome!

But I have a question/problem:
I named all my lamps like this:

Lamp Couch
Lamp Table
Lamp Kitchen
Lamp Toilette

When I now say: Siri, switch Lamp Table on, then Siri sometiems doesn't understand Table and will command "Switch Lamp on". All lamps in the house will switch on then. -> My wife killed me already, because I tried this out in the night and she and my kids were sleeping and all lights went on. ;-)

Can you tell me how I can solve this?

Thanks a lot! ;-)
Philipp

Contact and String Items not Showing up

Hi. When I start the HomeBridge I can see my Contact and String itens are detected as accessories:

Starting the bridge OpenHAB-Bridge ...
AccessoryProvider processing widget: NumberItem Temperature [31.0 °C] +0ms
AccessoryProvider processing widget: NumberItem Humidity [48.0 %] +12ms
AccessoryProvider processing widget: ContactItem Portao da Garagem [CLOSED] +5ms
AccessoryProvider processing widget: ContactItem Portao da Rua [CLOSED] +0ms
AccessoryProvider processing widget: ContactItem GarageMotion [CLOSED] +0ms
AccessoryProvider processing widget: SwitchItem Open Gate +0ms
AccessoryProvider processing widget: StringItem Carro Estacionado [SIM] +3ms
AccessoryProvider processing widget: SwitchItem Garage Light +0ms
Accessory [OpenHAB-Bridge] Creating new AccessoryInfo for our HAP server +7ms
Accessory [OpenHAB-Bridge] Creating new IdentifierCache +1ms
EventedHTTPServer Server listening on port 52826 +17ms
UpdateListener open ws connection for url http://10.0.1.200:8080/rest/items/Temperature_Garage +19ms
UpdateListener open ws connection for url http://10.0.1.200:8080/rest/items/Humidity_Garage +3ms
UpdateListener open ws connection for url http://10.0.1.200:8080/rest/items/Light_Outdoor_Garage +1ms
UpdateListener open ws connection for url http://10.0.1.200:8080/rest/items/Button_OpenGate +1ms
TemperatureSensor temperature received message: 47.0 +34s

But listeners are not added to them, just for the Switch and NumberItens.

At the home kit apps (elgato and idevices) I cant see the Contact and String itens, just the ones with the listeners (Switch and NumberItem).

Just wondering if thats correct or they should have some specific setting to work.

Question: German command for roller shutter?

What is the Siri command in german to control shutters?

"Fahre Rolladen XY hoch" geht nicht

I did try a lot, the only thing what Siri seems to recognize is:

"Setze Rolladen XY auf 100%"

Then Siri awnsers: "Es gibt keine Jalousien".

Item in "Haus.sitemap"
Switch item=EG_Kueche_Rolladen_Links label="Rolladen Küche"

Outlets not working

I can't seem to be able to get the outlets to work.
This is the sitemap configuration i'm using.

Frame label="outlet" icon="outlet" { //# Outlets must be configured in a Frame.
    Switch item=LG_Power            label="TV"
    Switch item=Marantz_Power       label="Stereo"
    Switch item=HomeEasy_11             label="Dryer"
    Switch item=HomeEasy_04         label="Fan"
    Switch item=ELRO_D              label="Porch music" 
}

But they don't show up in homekit.

Here is the items file configuration for these switches

Switch LG_Power                 "LG"                    <television>
Switch Marantz_Power            "Marantz"               <receiver>
Switch HomeEasy_11          "Home Easy 11"          <"socket">
Switch HomeEasy_04          "Home Easy 04"          <"socket">
Switch ELRO_D               "Elro D"                <"socket">      

Can't find/connect accessory HMCatalog

iOS 9 - iPhone 6 Plus - Apple homekit sample code, unmodified HMCatalog

Seems to start fine....(see below) though for some reason when I go to search for accessories I can either not find anything or it does and when i try to add it it will say "error: object not found"

Im not sure if my config is correct as I couldn't seem to find a sample/default config in any docs.

npm start -- --server 192.168.1.107:8480 --sitemap homekit

[email protected] start /root/github/OpenHAB-HomeKit-Bridge
node index.js "--server" "192.168.1.107:8480" "--sitemap" "homekit"

*** 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
OpenHAB Bridge starting...
processing widget: SwitchItem Living Room Light
processing widget: SwitchItem Dining Room Light
processing widget: SwitchItem Lamp
open ws connection for switch characteristic.
open ws connection for switch characteristic.
open ws connection for switch characteristic.

homekit.sitemap

sitemap homekit
{
Switch item=SW_LIVINGROOM labelcolor=["black"]
Switch item=SW_DININGROOM labelcolor=["black"]
Switch item=LAMP labelcolor=["black"]
}

homekit.items

Switch LAMP "Lamp" {http=">[ON:GET:http://192.168.1.50/?ajaxc=1B21] >[OFF:GET:http://192.168.1.50/?ajaxc=1B20]"}
Switch SW_LIVINGROOM "Living Room Light" {http=">[ON:GET:http://192.168.1.50/?ajaxc=4LW21] >[OFF:GET:http://192.168.1.50/?ajaxc=4LW20]"}

Switch SW_DININGROOM "Dining Room Light" {http=">[ON:GET:http://192.168.1.50/?ajaxc=4LW11] >[OFF:GET:http://192.168.1.50/?ajaxc=4LW10]"}

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.