We have moved at community.getvera.com

Author Topic: Devices seem to be "losing sync" in Vera  (Read 9585 times)

Offline dubbedout

  • Full Member
  • ***
  • Posts: 179
  • Karma: +3/-5
Re: Devices seem to be "losing sync" in Vera
« Reply #30 on: December 17, 2015, 07:23:11 pm »
This should fix the plugin crashing with your Wink Relay...

Can't get into WebUI again, seeing this error:

Code: [Select]
01 12/17/15 17:20:30.266 LuaInterface::LoadCode: [string "-- Wink_Connect 0.20.36..."]:434: nesting of [[...]] is deprecated near '[' <0x77347320>

Offline cybrmage

  • Moderator
  • Hero Member
  • *****
  • Posts: 1104
  • Karma: +113/-43
Re: Devices seem to be "losing sync" in Vera
« Reply #31 on: December 17, 2015, 08:24:10 pm »
This should fix the plugin crashing with your Wink Relay...

Can't get into WebUI again, seeing this error:

Code: [Select]
01 12/17/15 17:20:30.266 LuaInterface::LoadCode: [string "-- Wink_Connect 0.20.36..."]:434: nesting of [[...]] is deprecated near '[' <0x77347320>

Crap!!!

I added an older file to the archive...

Not having a good day 8-{


Offline dubbedout

  • Full Member
  • ***
  • Posts: 179
  • Karma: +3/-5
Re: Devices seem to be "losing sync" in Vera
« Reply #32 on: December 18, 2015, 04:06:56 pm »

Crap!!!

I added an older file to the archive...

Not having a good day 8-{
Looks like everything is working.  The Relay is there but data isn't correct and the motion isn't working to trigger events (which I think you are aware of).  The Ring motion and button are working to trigger events! The ISP5 switch is working but not updating status.

Thanks for all your hard work on this plugin!

Offline cybrmage

  • Moderator
  • Hero Member
  • *****
  • Posts: 1104
  • Karma: +113/-43
Re: Devices seem to be "losing sync" in Vera
« Reply #33 on: December 19, 2015, 01:38:43 am »
The Relay is there but data isn't correct and the motion isn't working to trigger events (which I think you are aware of). 

The changes I made are a stop-gap measure. Originally, a device for the Wink Relay would only be created if there was API data for the Wink Relay AND the sensor device associated to it. Now, if there is API data for the Wink Relay, a device is created for it...

Now, there is a bug in the Wink API... When you added the Ring doorbell, the data for the Doorbell device and it's associated sensor was added BUT Wink Relay's associated sensor pod disappeared for the .sensors group. The .sensors group (a system generated group that is normally hidden in the Wink APP) is the only was to get the reference to the sensor_pod_id for the Wink Relay sensors.

I suspect that that the actual sensor pod data is still available in the API data, but there is no way to get to it without the sensor_pod_id. There are signs that the data is still available, as the temperature/humidity/proximity/presence readings still appear in the .sensors group under reading_aggregation...

I could use the data from the reading_aggregation as the data for the Wink Relay device (when the sensor pod is not accessible), but that would create problems if there are more than one Wink Relay's on the account...

I have reported the issue to Wink... Ideally, they will fix the issue...

The ISP5 switch is working but not updating status.

Can you provide logs showing a full on/off/on or off/on/off cycle of the switch...


Offline dubbedout

  • Full Member
  • ***
  • Posts: 179
  • Karma: +3/-5
Re: Devices seem to be "losing sync" in Vera
« Reply #34 on: December 19, 2015, 11:09:37 am »
Can you provide logs showing a full on/off/on or off/on/off cycle of the switch...

The first couple of on/off commands didn't work right after the resync so I did a few more.

https://www.dropbox.com/s/8ap836tf3fa1l2v/WinkISP5Log01.txt?dl=0


Edit:  This looks like it is more of an issue between Wink and the iHome ISP5 switch..the Wink app very rarely shows the correct status of the ISP5.
« Last Edit: December 20, 2015, 02:29:22 pm by dubbedout »

Offline cybrmage

  • Moderator
  • Hero Member
  • *****
  • Posts: 1104
  • Karma: +113/-43
Re: Devices seem to be "losing sync" in Vera
« Reply #35 on: December 21, 2015, 12:08:37 am »
Edit:  This looks like it is more of an issue between Wink and the iHome ISP5 switch..the Wink app very rarely shows the correct status of the ISP5.

This may be part of the issue... but, since I had no idea what data the notification contained... the processing did cause the plugin to crash...

Attached is an update that *should* fix it...

« Last Edit: December 13, 2017, 01:45:16 am by cybrmage »

Offline dubbedout

  • Full Member
  • ***
  • Posts: 179
  • Karma: +3/-5
Re: Devices seem to be "losing sync" in Vera
« Reply #36 on: December 31, 2015, 10:26:15 pm »
I wasn't able to really test the last update due to my Wink hub crashing and had to send it back the other day.  Tonight, I just repaired all my bulbs to either my Relay or a Link Hub. I was able to sync and get all my bulbs back, of course they were named differently due to Wink keeping the old devices stored and not actually removing them. 

I'm not sure what's going on here as the plugin says Ready but if I try to change any status it fails and if I try to manually sync it says DEVICE NOT READY.

Here's a log of a Luup restart: https://www.dropbox.com/s/id8sbdzei1t2mdw/WinkCrashLog.txt?dl=0

EDIT:  Another thing I've noticed is my trippers (that were originally paired to my Relay and not the Wink hub) have continued to operate correctly with the plugin.  Which leads me to believe that it's definitely caused by having to re-pair all my devices and remove them from the old hub.
« Last Edit: January 03, 2016, 03:12:27 pm by dubbedout »

Offline cybrmage

  • Moderator
  • Hero Member
  • *****
  • Posts: 1104
  • Karma: +113/-43
Re: Devices seem to be "losing sync" in Vera
« Reply #37 on: January 04, 2016, 11:22:36 am »
I wasn't able to really test the last update due to my Wink hub crashing and had to send it back the other day.  Tonight, I just repaired all my bulbs to either my Relay or a Link Hub. I was able to sync and get all my bulbs back, of course they were named differently due to Wink keeping the old devices stored and not actually removing them. 


Looks like it's still running into issues caused by the lack of sensor data for the Wink Relay...
« Last Edit: December 13, 2017, 01:45:31 am by cybrmage »