Code Monkey home page Code Monkey logo

homebridge-wink's People

Contributors

adamgoose avatar alistairg avatar clickclickonsal avatar edgariscoding avatar garthdb avatar jedijashwa avatar kraigm avatar maddox avatar masonjames avatar mschmidt avatar msroest avatar nfarina avatar pdlove 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

Watchers

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

homebridge-wink's Issues

V1 or V2 Wink API

Does this plug-in use v1 or v2 of the wink API? I just got my api login but it doesn't work. I suspect maybe I need to ask for v1? The

Thanks

Wink Relay Button Integration

This is a feature request to provide home bridge support for the two buttons on the wink relay so that siri can turn these buttons on or off in a similar manner to a normal light/fan switch.

Error setting Characteristic "On" to value false: Unsupported

To begin with - on my first try at homebridge + homebridge-wink everything worked... That was a couple of months ago. It discovered my locks, switches, lights, trippers, thermostats, etc and successfully changed status as requested. (I also had homebridge-yamaha working alongside) Very recently I rebooted and did an update. Oops.

After the upgrading of several packages and the reboot I noticed that I couldn't turn lights on or off. Then I noticed that my locks, trippers, switches, and thermostats (and yamaha) were missing from my app. I removed the wink portion from my config.json and the yamaha showed up again. I removed the yamaha and added back the wink and still only my lights and they still weren't able to be modified.

I've since reflashed my SSD, installed a new OS, and went through all of the steps to reinstall homebridge and the necessary plugins. Wink still doesn't work, while the yamaha does until I put wink back in the mix. This is what leads to me believe something is wrong here! The only error that I see is below:

May 06 08:11:29 homebridge homebridge[23732]: Fri, 06 May 2016 13:11:29 GMT Accessory [Homebridge] Got Characteristic "Brightness" value: 0
May 06 08:11:29 homebridge homebridge[23732]: Fri, 06 May 2016 13:11:29 GMT EventedHTTPServer [::ffff:172.16.1.211] HTTP Response is finished
May 06 08:11:30 homebridge homebridge[23732]: Fri, 06 May 2016 13:11:30 GMT EventedHTTPServer [::ffff:172.16.1.211] HTTP request: /characteristics
May 06 08:11:30 homebridge homebridge[23732]: Fri, 06 May 2016 13:11:30 GMT HAPServer [CC:22:3D:E3:CE:41] HAP Request: PUT /characteristics
May 06 08:11:30 homebridge homebridge[23732]: Fri, 06 May 2016 13:11:30 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":15,"iid":8,"value":false}]
May 06 08:11:30 homebridge homebridge[23732]: Fri, 06 May 2016 13:11:30 GMT Accessory [Homebridge] Setting Characteristic "On" to value false
May 06 08:11:30 homebridge homebridge[23732]: [5/6/2016, 8:11:30 AM] [Wink] Changing target property 'powered' of the light_bulbs called Office Lights to false
May 06 08:11:30 homebridge homebridge[23732]: Fri, 06 May 2016 13:11:30 GMT Accessory [Homebridge] Error setting Characteristic "On" to value false: Unsupported
May 06 08:11:30 homebridge homebridge[23732]: Fri, 06 May 2016 13:11:30 GMT EventedHTTPServer [::ffff:172.16.1.211] HTTP Response is finished

Pivot Power Genius communication issues

Note: I left a previous version of this comment on the closed enhancement request a few days ago, but wasn't sure if it would be seen since the issue was closed, so here's an updated version after more testing....

I installed 1.0.3 and...viola...homebridge sees my pivot power genius (ppg) outlets!

The PPG devices also appear in the Insteon+ app, but they don't have any controls. When I click on them they just show the name of the device with the placeholders for mfr and serial no. When I try to operate by Siri, response is "Sorry, I can't do that."

To test the problem, I removed Insteon+ and installed iDevices. With iDevices, the PPG outlets show up as switchable devices. When I toggle the on/off switch in the app, the homebridge server output shows, for instance, "Changing target property 'powered' of the undefined called Ava's Radiator to 0" (or 1, depending on the device state known to the app). This change does not get pushed to the PPG outlet. When I leave the app and return or when I refresh the devices in the app, the powered status of the PPG outlets in the app is changed back to whatever the powered status was when the app was installed. When I try toggling a PPG device in Siri, I get the same response as with Insteon+, "Sorry, I can't do that."

Finally, I tried the Elegato Eve app. It has the same behavior as iDevices. However, when I try to toggle a PPG outlet, a little red warning symbol appears with the message, "HomeKit reported a communication failure. Please try again."

I should add that with all three apps, the following devices work flawlessly: Chamberlain myQ, GE Link bulbs, and Cree connected bulbs.

Thanks for all your work on this plugin! Any guidance you could provide would be appreciated.

Color control of Lights

I have a EcoSmart (home depot brand) multi color LED. It seems to work fine for on/off and dimming through the homebridge, but they aren't advertising color control to HomeKit.

Not sure if there is any planned work to support this I'm going to try to work through it on my own but any tips about where to look/start would be appreciated.

Integration request: Quirky Aros AC

The Wink plug-in is amazing! I couldn't have imagined so many of my devices could be working with HomeKit so quickly.

Are there any plans for Aros AC's to be included at some point?

Or, considering these units are advertised as wifi and can be used without a Wink hub, is it possible that another existing plug-in that I've overlooked may be compatible with them already?

Thanks

sensor_pods data isn't being displayed

The three sensor_pods around the my house are reporting data to homebridge but the data isn't being displayed in the correct parameters even though it shows it as a device (blank data field).

Door/Window/Contact Sensors

In order for Siri to respond to my queries if a door was opened/closed, I needed to add the following Characteristic;
Characteristic.CurrentDoorState
In order for the Door/Window notifications to come via HomeKit, then the device needs to stay as a Service.Door or Service.Window (which means putting up with the unused Target Position and Position State). The HomeKit notifications rely on the Characteristic.CurrentPosition changing value. Siri relies on the Characteristic.CurrentDoorState (which appears to be a mandatory Characteristic for Service.GarageDoor)

"Unexpected end of input" Error

When I add the Wink plugin, I get the following error message when I start HomeBridge:

SyntaxError: Unexpected end of input
    at Object.parse (native)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge-wink/node_modules/wink-js/index.js:68:19)
    at emitNone (events.js:72:20)
    at IncomingMessage.emit (events.js:166:7)
    at endReadableNT (_stream_readable.js:905:12)
    at doNTCallback2 (node.js:441:9)
    at process._tickCallback (node.js:355:17)
raw message  
/usr/local/lib/node_modules/homebridge-wink/index.js:118
                    for (var i = 0; i < devices.data.length; i++) {
                                               ^

TypeError: Cannot read property 'data' of undefined
    at /usr/local/lib/node_modules/homebridge-wink/index.js:118:33
    at /usr/local/lib/node_modules/homebridge-wink/node_modules/wink-js/index.js:241:9
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge-wink/node_modules/wink-js/index.js:75:7)
    at emitNone (events.js:72:20)
    at IncomingMessage.emit (events.js:166:7)
    at endReadableNT (_stream_readable.js:905:12)
    at doNTCallback2 (node.js:441:9)
    at process._tickCallback (node.js:355:17)

Here is the Wink related portion from my config.son file:

{
            "platform": "homebridge-wink.Wink",
            "name": "Wink",
            "client_id": "xxxxxx",
            "client_secret": "xxxxxx",
            "username": "xxxxx",
            "password": "xxxxxx",
            "hide_groups": ["garage_doors", "thermostats"],
            "hide_ids": []
    }

Any advice about how to fix this?

Thanks.

Siri does what she's told and then claims she can't find the device

This was reported in #3 but isn't related to the original request other than being found during user testing.
When requesting Siri to work with a home kit device, she does it and then reports that she can't find the device.
This appears to be due to the callback not sending the original request's value back to Siri and wasn't found during original testing because I did my testing with Apple's Homebridge Developer test app.
A resolution will be submitted soon on this.

TypeError: Path must be string. Received null

Trying to run the plugin and getting the following error -

[5/22/2016, 5:05:43 PM] ERROR LOADING PLUGIN homebridge-wink:
[5/22/2016, 5:05:43 PM] TypeError: Path must be a string. Received null
at assertPath (path.js:7:11)
at Object.dirname (path.js:1324:5)
at Object. (/usr/lib/node_modules/homebridge-wink/node_modules/config-file/index.js:17:21)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)
at Function.Module._load (module.js:407:3)
at Module.require (module.js:466:17)
at require (internal/module.js:20:19)

Application Error from wink server seems to crash HomeBridge

I have noticed that occasionally my HomeBridge dies and the only consistent thing is a log of:

SyntaxError: Unexpected token <
    at Object.parse (native)
    at IncomingMessage.<anonymous> (/home/pi/.nvm/versions/node/v0.12.8/lib/node_modules/homebridge-wink/node_modules/wink-js/index.js:62:19)
    at IncomingMessage.emit (events.js:129:20)
    at _stream_readable.js:908:16
    at process._tickCallback (node.js:355:11)
raw message <!DOCTYPE html>
<html>
    <head>
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <style type="text/css">
        html, body, iframe { margin: 0; padding: 0; height: 100%; }
        iframe { display: block; width: 100%; border: none; }
      </style>
    <title>Application Error</title>
    </head>
    <body>
      <iframe src="//s3.amazonaws.com/heroku_pages/error.html">
        <p>Application Error</p>
      </iframe>
    </body>
</html>

Error Mesage?

Anyone know what this is and how it can be fixed?

It seems to happen anytime I leave homebridge running for a few hours.

SyntaxError: Unexpected token <
at Object.parse (native)
at IncomingMessage. (/usr/local/lib/node_modules/homebridge-wink/node_modules/wink-js/index.js:68:19)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:913:12)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)
raw message


html, body, iframe { margin: 0; padding: 0; height: 100%; }
iframe { display: block; width: 100%; border: none; }

Application Error


Application Error


Honeywell Total Comfort Control API

My current setup -

Older Honeywell Thermostats using Redlink Gateway to Total Comfort Control API

Homebridge (running on Mac) sends commands to Wink Hub which sends commands to Total Comfort Control API.

So if I use Siri here is what works:
"Siri, what is the LIVING ROOM AC temperature?"

However, it stops working after that. If I say "Siri, set LIVING ROOM AC to 75 degrees" it will send the command to the Wink Hub. The Wink Hub will change the temperature and then poll the API. But rather than update the Total Comfort Control to the desired temperature, it defaults the Wink Hub back to the current Thermostat settings. Thus the Homebridge to Wink set up works but something happens with Wink calling the API through this process.

When I change settings with just the Wink app, the commands process as expected. So this is something to do with the Homebridge script, or how the Wink Hub interprets what the HomeKit command says from Homebridge.

Aros Doesn't connect properly in iOS 10 Home app

Having trouble getting my Aros to register properly in the iOS 10 Home app... using a raspberry pi 3 with raspbian.

Installation of the plugin seems to go fine (though I did get a few warnings?). When I try to turn the Aros on from the Home app I can see the command printed out in the console like this:

Changing target property 'powered,mode' of the undefined called TV Room to true,cool_only

I assume the undefined doesn't help, but there is no instruction for how to define the item. It shows up as Aros in my wink app and was set up that way so I'm not sure what the issue is. Any help?

Request to support GE Link Bulbs

This request is to provide support GE Link Bulbs (on/off and light dimming)
GE Link Bulbs are a very common Wink accessory as they were packaged with hubs when they initially came out.

hue lights turn on with every time home bridge starts up

I have an issue where my hue lights turn themselves on when home bridge starts up and I believe it is more related to when the wink plugin registers the wink devices because every so often they hue lights turn themselves on. I don't need to control the phillips hue lights with the wink plugging because I upgrade my phillips hue bridge to the home kit compatible one. is there any way to disable the phillips hue lights from a turning on by themselves and by possibly hide them from the home kit devices.

WARN deprecated

I am trying to install the plugin and I get this returned:

npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
/usr/lib

Both graceful and minimatch are higher than the versions stated as the minimum versions.

I am on a raspberry pi 2 running raspbien.

Update README

You have "Nest" listed as the label needed. Should it not be Wink??

Thermostats Home Kit Error

First I want to say thank you for all of your work on this plugin. It has been awesome, and continues to improve with every release.

Currently I am having an issue with Thermostats. I am able to query and view the status of the thermostat, but am unable to update/change the temperature from either Sir or any HomeKit app. The homekit apps return an error, in my case "Eve" states "HomeKit reported a communication failure. Please try again."

I am using a Honeywell WiFi thermostat. I do have a nest I can install and test with to see if that account integration works.

Thanks!

Issues in iOS 10

I'm using the new Home app on iOS 10. When I have this plugin added in my platforms array in my config, the Home app won't connect to homebridge. If I remove the plugin, then the app will connect. I've tried connecting the app, then shutting down homebridge and adding the plugin back in. Everything boots, but no accessories show up.

Has anyone been able to get this working?

Can't toggle switches

I have a pretty simple setup - a wink hub and 2 toggle switches right now.

I can run homebridge and flipping the switches shows

[8/1/2016, 6:15:28 PM] [Wink] Changing target property 'powered' of the undefined called Office Interior to 0

The lights do not turn on or off and on the homekit app I get an exclamation mark on the switch (it also doesn't show it as turned off so it knows something is wrong).

I tried running homebridge with the --debug flag, but I don't get any addition information than

[8/1/2016, 6:15:32 PM] [Wink] Refreshing Wink Data

I'm happy to jump into the code myself to fish out the issue, but I don't see any tests, and I'm not exactly sure where to dive in since I don't have an error message. Any ideas?

Any chance that Lutron Connected Bulb Remote paired with Wink can be visible to Homebridge?

I bought a Lutron Connected Bulb Remote Control with the intention of mapping control of my garage door to its buttons. This is not a Pico remote, but one that can be used to control 3rd party ZigBee lights. Wink extends it's versatility by allowing its buttons to be mapped to shortcuts. Basically you can have the remote trigger all sorts of stuff in your home beyond lighting control.

It turns out the the Wink hub limits this versatility such that it cannot be used to operate door locks and garage doors due to security concerns. I thought that I might be able to work around this by instead using a HomeKit rule to map a keypress to garage door operation, but it appears that the Homebridge-Wink plugin ignores the remote.

Is it possible to tweak a setting to have the remote visible to HomeKit? Having the remote visible to HomeKit would be amazing. There are a couple of other uses I can think of for this remote if it were available.

This is the remote I am referring to:
http://www.lutron.com/en-US/Products/Pages/Components/ConnectedBulbRemoteControl/Overview.aspx

It is the same size as a Pico and can be wall mounted in the same way. Ideally, I'd like to mount this near my backyard door, with control for the garage door mapped to the up and down buttons, and control for a an EcoPlug switch controlling patio lights mapped to the light on / light off buttons.

Would be a killer addition to the HA environment to not have to use my phone for frequently used commands. Also the WAF would be quite high as well.

Any help or ideas are greatly appreciated!

leakSMART Sensor

There is no support for water sensors.

I have added support to my js file by copying the Humidity Detection, and setting;

  that.device.last_reading.liquid_detected
  .addService(Service.LeakSensor)
  .getCharacteristic(Characteristic.LeakDetected)

But I have no idea how to use github, or submit stuff, so hopefully someone here can add the support.

Pivot Power Genius Outlet Support

This is a feature request for adding on off home bridge integration with various Wink compatible smart outlets for example the Pivot Power Genius could be one or the Outlink wall reciprocal as another.

Intermittent issue with - SyntaxError: Unexpected token <

I've been periodically getting an error in my logs. Haven't been able to figure out what is triggering it, but afterwards, my devices are all unresponsive. I need to restart HomeBridge to get functionality back. Seems to happen every 2-3 days or so...

Error is below:

SyntaxError: Unexpected token <
    at Object.parse (native)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge-wink/node_modules/wink-js/index.js:68:19)
    at emitNone (events.js:72:20)
    at IncomingMessage.emit (events.js:166:7)
    at endReadableNT (_stream_readable.js:893:12)
    at doNTCallback2 (node.js:429:9)
    at process._tickCallback (node.js:343:17)
raw message <!DOCTYPE html>
    <html>
    <head>
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <style type="text/css">
        html, body, iframe { margin: 0; padding: 0; height: 100%; }
        iframe { display: block; width: 100%; border: none; }
      </style>
    <title>Application Error</title>
    </head>
    <body>
      <iframe src="//s3.amazonaws.com/heroku_pages/error.html">
        <p>Application Error</p>
      </iframe>
    </body>
    </html>

Issue with

hi, thanks for all your work. This "issue" is simple. I have the GoControl premium security kit. Apparently the strobe light with red LED also constitutes a 'light'. So, you should include "siren" in your list groups that one can include or exclude. This was my result, so just update your post for others. Cheers! [Wink] Device Ignored By Group - Group sirens, ID 8374, Name Siren & Strobe

LAN API?

Wink's API seems to be painfully slow and doesn't work all the time. I even had to add code in that continually tries to update the device for awhile (until it works). Given HomeKit is all about local networks, I figure it might be faster if we skipped their cloud API and talked to the hub directly.

I did some research and ran across a few sites that mentioned it is possible, so it might be worth exploring further.

home bridge won't start due to error after registering honeywell wifi thermostat

I'm receiving and error and am unsure why it started all of the sudden. home bridge won't initialize and stops at this output

[Wink] Initializing platform accessory 'ROCKWELL THERM'...
errorhub { [Error: connect ETIMEDOUT 10.0.1.14:5222]
code: 'ETIMEDOUT',
errno: 'ETIMEDOUT',
syscall: 'connect',
address: '10.0.1.14',
port: 5222 }

Allow for security devices like doors and garage doors to be open with Siri without unlocking phone

Allow for security devices like doors and garage doors to be open with Siri without unlocking phone
Make door think it is a light or plug? Or trigger of another device ?
What about a switch in the configuration that could allow the garage to be a true garage for those that want it that way and or to also allow for it to act more like a power outlet on (open) or off (shut)

The way I would implement this would be to have a configuration option “groups to treat as switches”. That would allow people not concerned with security to add locks, garage door openers and whatever else.

Install failures repeated attempts

I'm having this issue, i got a new wink hub trying to add wink pluggin to my homebridge server on my iMac on node.js, please advise? somewhat new to this, been using homebridge for my wemo devices for about 2-3 months now without an issue. running my server from my iMac. thanks again

………..

Oh, I've royally screwed it up now. tried downgrading and reinstalling few ways i found online, now it isn't working at all......

homebridge
/usr/local/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:35
throw ex;
^
Error: Module version mismatch. Expected 46, got 48.
at Error (native)
at Object.Module._extensions..node (module.js:434:18)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/usr/local/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:24:20)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
i made a copy of all i did in terminal if that might help any as well......

…………….

bought multiple wink devices and a hub and still haven't been able to correct my homebridge to work with all my new devices

_G E Switch (in wall) z wave_
wink hub
Lightify oshram garden outdoor colored lights

My newest attempt......and logs of the failures

Bradleys-iMac:~ bradleyrawleigh$ sudo npm cache clean -f
Password:
npm WARN using --force I sure hope you know what you are doing.
Bradleys-iMac:~ bradleyrawleigh$ sudo npm install -g n
/usr/local/bin/n -> /usr/local/lib/node_modules/n/bin/n
[email protected] /usr/local/lib/node_modules/n
Bradleys-iMac:~ bradleyrawleigh$ sudo n lts

 install : node-v4.4.7
   mkdir : /usr/local/n/versions/node/4.4.7
   fetch : https://nodejs.org/dist/v4.4.7/node-v4.4.7-darwin-x64.tar.gz
################################################################## 100.0%

installed : v4.4.7

Bradleys-iMac:~ bradleyrawleigh$ sudo npm install -g homebridge

Password:

[email protected] install /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/curve25519
node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/Users/bradleyrawleigh/.node-gyp/4.4.7"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/curve25519/.node-gyp"
CXX(target) Release/obj.target/curve/node_curve.o
SOLINK_MODULE(target) Release/curve.node

[email protected] install /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/ed25519
node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/Users/bradleyrawleigh/.node-gyp/4.4.7"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/ed25519/.node-gyp"
CC(target) Release/obj.target/ed25519/src/ed25519/keypair.o
CC(target) Release/obj.target/ed25519/src/ed25519/sign.o
CC(target) Release/obj.target/ed25519/src/ed25519/open.o
CC(target) Release/obj.target/ed25519/src/ed25519/crypto_verify_32.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_double_scalarmult.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_frombytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_scalarmult_base.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_precomp_0.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p2_0.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p2_dbl.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_0.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_dbl.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_to_p2.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_to_cached.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_tobytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_madd.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_add.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_msub.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_sub.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p1p1_to_p3.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p1p1_to_p2.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_tobytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_0.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_1.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_cmov.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_copy.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_neg.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_add.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_sub.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_mul.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_sq.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_sq2.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_invert.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_tobytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_isnegative.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_isnonzero.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_frombytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_pow22523.o
CC(target) Release/obj.target/ed25519/src/ed25519/sc_reduce.o
CC(target) Release/obj.target/ed25519/src/ed25519/sc_muladd.o
CXX(target) Release/obj.target/ed25519/src/ed25519.o
SOLINK_MODULE(target) Release/ed25519.node

[email protected] install /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/mdns
node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/Users/bradleyrawleigh/.node-gyp/4.4.7"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/mdns/.node-gyp"
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_browse.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_enumerate_domains.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_get_addr_info.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_process_result.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref_deallocate.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref_sock_fd.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_register.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_resolve.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_update_record.o
CXX(target) Release/obj.target/dns_sd_bindings/src/mdns_utils.o
CXX(target) Release/obj.target/dns_sd_bindings/src/network_interface.o
CXX(target) Release/obj.target/dns_sd_bindings/src/socket_watcher.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_ref.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_create.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_deallocate.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_set_value.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_get_length.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_buffer_to_object.o
SOLINK_MODULE(target) Release/dns_sd_bindings.node

[email protected] install /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum
node-pre-gyp install --fallback-to-build

[bignum] Success: "/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/binding/bignum.node" is installed via remote
/usr/local/bin/homebridge -> /usr/local/lib/node_modules/homebridge/bin/homebridge
[email protected] /usr/local/lib/node_modules/homebridge
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])

Bradleys-iMac:~ bradleyrawleigh$ sudo npm install -g homebridge-wink
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
[email protected] /usr/local/lib/node_modules/homebridge-wink
└── [email protected] ([email protected], [email protected],

[email protected])

*****Not sure where to go from here honestly......getting further in unfamiliar territory now.

Running HomeBridge from node.js on my iMac (side note)

thanks for any further advice again!

sorry I'm very new to GitHub, and unsure how to best use its features honestly. thanks for any and all advice…….

below is my config.json copied file:

{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:”,
"port": 51827,
"pin": "031-45-
*”
},

"description": "This is an example configuration file with all supported devices. You can use this as a template for creating your own configuration file containing devices you actually own.",

"accessories": [
    {
        "accessory": "Applescript",

"name": "Screen Saver",
"on": "tell application ''/Volumes/Macintosh HD/Users/_/Desktop/Scripts/ScreenSavorON.app'' to activate",
"off": "tell application ''/Volumes/Macintosh HD/Users/
_
/Desktop/Scripts/ScreenSavorOFF.app'' to activate"
}
],
"platforms":[
{
"platform": "BelkinWeMo",
"name": "WeMo Platform",
"expected_accessories" : "7",
"timeout" : "45",
"no_motion_timer": "120",
"homekit_safe" : "1"
}

                            ]
                     }

i have tried to add the following to the above file for my wink pluggin setup and failed as shown at the top:

{
"platform": "Wink",
"name": "Wink",
"client_id": "1a0878c0c227c33****”,
"client_secret": "c865799b11**
**”,
"username": “[email protected]",
"password": “PASS”,
"hide_groups": [],
"hide_ids": [],
"temperature_unit" : "F"

                 }

Siri times out when opening/closing garage door

When I tell Siri to open/close my garage door, it all works good but she gives up waiting for a response before the door actually finishes opening/closing. Is it possible to tweak that timeout setting?

leakSMART Valve

The leakSMART valve is detected as a binary_switch, however, it does not use the 'powered' Property. For the leakSMART valve to operate, you must read/write to

device.last_reading.opened
that.updateWinkProperty(callback, "opened", value)

Thank You

No issue to report, just wanted to say thank you for the work on this plugin. Great job. Pretty simple to install and get up and running.

No current devices are being added

So I had my Hue brdige+lights connected, along with my Nest thermostat+co2+cam, to my Wink hub. I deleted all of them and added them to homebridge separately. However, now when I turn on the wink module to get the remaining Wink controlled devices (a schlang connect deadbolt, lutron casseta remotes and wall dimmers, a bunch of cree and osram bublbs that Hue doesnt like much)... everything BUT the actual connected devices come through. So I get the Nest and Hue devices which are no longer connected, but I dont get my lock or remotes/wall dimmers, etc.

In the logs I see it pulling in all those devices and their IDs so I suppose I can use hide_id{} to get rid of them. But I also see it saying:
Jun 19 22:48:53 odin homebridge[7404]: [6/19/2016, 10:48:53 PM] [Wink] Device Ignored Not In HomeKit - Group hubs, ID 436963, Name Front Door Dining Room -- this is a Lutron Pico Remote

Jun 19 22:48:53 odin homebridge[7404]: [6/19/2016, 10:48:53 PM] [Wink] Device Ignored Not In HomeKit - Group hubs, ID undefined, Name Livingroom -- actually not sure what this is but I am sure it is something I was messing with

Jun 19 22:48:53 odin homebridge[7404]: [6/19/2016, 10:48:53 PM] [Wink] Device Ignored Not In HomeKit - Group hubs, ID 436963, Name Athena -- Athena being the Wink hub's name.

Nowhere do I see the deadbolt or the dimmer that the pico remote is tied to.

Any suggestions?

Version mismatch, how to correct?

I am an OLD dos guy in a MacOS world. I got homebridge installed and running. But when I installed the Wink plugin, I get this version error. Some of the solutions I found were over my head (doesn't take much) and I was never sure the solution I found was for this problem -- don't want to make things worse.

Any help appreciated and if this the wrong way to get help, let me know that too. first time submitting an issue on GitHub.
-Thanks

/usr/local/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:35
throw ex;
^

Error: Module version mismatch. Expected 46, got 48.
at Error (native)
at Object.Module._extensions..node (module.js:434:18)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/usr/local/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:24:20)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)

Z-Wave Shades (Somfy)

When I change the Target Position, I get;
[wink] Changing target property 'position' of the undefined called Kitchen to 0
But nothing happens.
I put in some logging lines of code to see where the code fails, line 83 of wink-accessory.js;

    } else if (this.device.desired_state[sProperty] == undefined) {
        callback(Error("Unsupported"));
        return;
    }

When I comment out these lines, it progresses thorough and the blinds operate. However, as there is no feedback from these blinds, I get a message saying;
[wink] Unable to determine if update was successful.

I am curious as to how commenting those lines out worked. Surely if this was 'undefined', the write to the API wouldn't have worked, and the blinds wouldn't have operated?

Dynamically Register/Unregister Devices

One of the devices I have in abundance is the GE Link Bulb.
I'm wanting to utilize the "connected" flag in the Wink API to properly Register/Unregister the bulbs with HomeKit when the light switch is turned on or off.
In addition, when a new device is added or removed in Wink, that should be reflected in HomeKit. I believe the accessory will still have to be removed from HomeKit manually, but it should at least show as unavailable.

In the development of these other devices, I believe this should be possible and will require changes to hap-nodejs and likely home kit. The Wemo project definitely wants this because of how device discovery works on that platform. Because of this, it will likely take a while to get rolled out and fully working. Should I find it not possible, I will notate that here and close the ticket.
If doing this causes errors to log on the iPhone in the HomeKit Developer app, even if the error is not shown to the user, I will consider it not supported.

Quirky Powerstrip Not Working

It is listed as supported, but I can't seem to get the Quirky Powerstrip to work with HomeKit apps.

Eve gives the most information and it says "HomeKit reported a communication failure."

Homebridge outputs "[Wink] Changing target property 'powered' of the undefined called OutletB to 0", and when loading it says "[Wink] Initializing platform accessory 'OutletB'...".

Homebridge has also output this at one point while loading:
,"desired_state":{"powered":false},"last_reading":{"powered":false,"powered_updated_at":1453737818.2041435,"desired_powered_updated_at":1453737818.7502193}},{"powered":false,"scheduled_outlet_states":[],"name":"Outlet #2","outlet_index":1,"outlet_id":"50049","icon_id":"4","parent_object_type":"powerstrip","parent_object_id":"25024","desired_state":{"powered":false}

Which leads me to believe it may be looking for a true/false string input as opposed to 1/0?

What is the status of this plugin?

I'm currently having a wink issue with the homebridge-legacy-plugins module, so I'm wondering if I can plug this in instead. Is it ready for that? Also, is it the same one that's here? https://www.npmjs.com/package/homebridge-wink (I notice the usernames aren't the same…)

And if I plug this in, how does the config know to use this instead of the one in homebridge-legacy-plugins? Does it automatically take over?

homebridge-wink causes homebridge to crash if wink API is unavailable.

[Wink] Refreshing Wink Data
response in http:



<style type="text/css">
html, body, iframe { margin: 0; padding: 0; height: 100%; }
iframe { display: block; width: 100%; border: none; }
</style>
<title>Application Error</title>


<iframe src="//s3.amazonaws.com/heroku_pages/error.html">

Application Error


</iframe>


SyntaxError: Unexpected token <
at Object.parse (native)
at IncomingMessage. (/usr/lib/node_modules/homebridge-wink/node_modules/wink-js/index.js:67:19)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:905:12)
at nextTickCallbackWith2Args (node.js:478:9)
at process._tickCallback (node.js:392:17)
raw message



<style type="text/css">
html, body, iframe { margin: 0; padding: 0; height: 100%; }
iframe { display: block; width: 100%; border: none; }
</style>
<title>Application Error</title>


<iframe src="//s3.amazonaws.com/heroku_pages/error.html">

Application Error


</iframe>


/usr/lib/node_modules/homebridge-wink/node_modules/wink-js/index.js:223
for( var dataIndex in data.data ) {
^

TypeError: Cannot read property 'data' of undefined
at /usr/lib/node_modules/homebridge-wink/node_modules/wink-js/index.js:223:41
at IncomingMessage. (/usr/lib/node_modules/homebridge-wink/node_modules/wink-js/index.js:74:7)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:905:12)
at nextTickCallbackWith2Args (node.js:478:9)
at process._tickCallback (node.js:392:17)

Error: The requested accessory 'Wink' was not registered by any plugin.

Hi,
I am trying to run Homebridge on my Raspberry Pi, and whenever I start it, I can't get my Wink accessories to work and I get this error:

Error: The requested accessory 'Wink' was not registered by any plugin.
at API.accessory (/usr/lib/node_modules/homebridge/lib/api.js:60:13)
at Server._loadAccessories (/usr/lib/node_modules/homebridge/lib/server.js:233:42)
at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:72:38)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:968:3

I have installed the plugin using: npm install -g homebridge-wink
And I have Node.js installed, version 4.4.7.

Although, if I run that command again, I get:

pi@raspberrypi:~$ sudo npm install -g homebridge-wink
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
[email protected] /usr/lib/node_modules/homebridge-wink
└── [email protected] ([email protected], [email protected], [email protected])

Is that a problem? ^

Let me know if I can provide more information,
Thanks

Wink Devices "Not Responding" on iOS 10 Beta?

I started a fresh install of home bridge + homebridge-wink after installing the iOS Beta and can connect to wink (with the exception of the "locks" group).

I'm getting "no response" from the wink devices in the Apple Home app.

Any one else seeing this or resolved?

I'm on node 5.5

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.