Open jwl17330536 opened 8 years ago
I am having a similar problem, though in my case I don't believe that any of the packages/dependencies were updated. It was working fine before I went away for some work travel, and then after I got back, was not.
It is just the homebridge-wink plugin that is failing, as the main homebridge module (where I have a Nest integrated) is working fine.
Using the Wink app to change states of light devices work fine, but any app going through the homebridge-wink plugin fails.
It does look like Wink updated their iOS app on April 20th, but I can't tell if the firmware on the Wink hub I'm using (Link Hub, v1.4.6, came with the GE lights) was updated. My suspicion is that something may have changed in the firmware that is now causing this incompatibility.
I've used a fresh install and copied my previous install paths on each release of homebridge and still can't get it to work.
Homebridge, wink, Debian. They all seem same over same and things don't work as they did a month ago. Can't change light power, don't see locks, etc.
Sent from my iPhone
On May 7, 2016, at 12:53 PM, tseatah notifications@github.com wrote:
I am having a similar problem, though in my case I don't believe that any of the packages/dependencies were updated. It was working fine before I went away for some work travel, and then after I got back, was not.
It is just the homebridge-wink plugin that is failing, as the main homebridge module (where I have a Nest integrated) is working fine.
Using the Wink app to change states of light devices work fine, but any app going through the homebridge-wink plugin fails.
It does look like Wink updated their iOS app on April 20th, but I can't tell if the firmware on the Wink hub I'm using (Link Hub, v1.4.6, came with the GE lights) was updated. My suspicion is that something may have changed in the firmware that is now causing this incompatibility.
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub
As described here, it sounds like the API v2 has somehow been broken.
The desired_state
property of the device
object is an empty hash, while the last_reading.connection
property is undefined
. This code expects those to not be undefined, and prevents the execution to continue.
Here's a dump of the device object I'm currently getting:
{ powered: false,
scheduled_outlet_states: [],
name: 'Outlet #1',
outlet_index: 0,
outlet_id: <some_id>,
icon_id: '4',
object_type: 'outlet',
object_id: '53094',
uuid: <some_uuid>,
parent_object_type: 'powerstrip',
parent_object_id: <some_id>,
icon_code: 'outlet-default',
desired_state: {},
last_reading:
{ powered: false,
powered_updated_at: 1467089287.8519056,
powered_changed_at: 1467089269.9839108,
desired_powered_updated_at: 1467089287.9223917 } }
I can confirm I'm not getting those missing values when calling the API directly using Wink API console
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