[Beta] Wink Relay - LAN Integration

Added manually via the app.

I typed in the IP address.

Seemed to work according to logs:

[app:75](http://192.168.86.56/logs/past#app75)2019-11-22 10:38:00.590 am [debug](http://192.168.86.56/installedapp/configure/75)Done with initialize.

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:38:00.343 am [info](http://192.168.86.56/device/edit/97)LCD Backlight: off

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:38:00.174 am [info](http://192.168.86.56/device/edit/97)Proximity: 5405

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:38:00.168 am [info](http://192.168.86.56/device/edit/97)Proximity (RAW): 5405 259 2284 0

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:37:59.976 am [info](http://192.168.86.56/device/edit/97)Humidity: 76.7

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:37:59.973 am [info](http://192.168.86.56/device/edit/97)Humidity (Raw): 76699

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:37:59.606 am [info](http://192.168.86.56/device/edit/97)Temperature: 86.3

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:37:59.596 am [info](http://192.168.86.56/device/edit/97)Temperature (Raw): 30171

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:37:59.212 am [info](http://192.168.86.56/device/edit/97)Relay 2: off

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:37:58.867 am [info](http://192.168.86.56/device/edit/97)Relay 1: off

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:37:58.464 am [debug](http://192.168.86.56/device/edit/97)Using IP: c0a85617 and port: 1f90 for device: 97

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:37:58.462 am [debug](http://192.168.86.56/device/edit/97)Subscribing to events from Wink Relay

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:37:58.459 am [debug](http://192.168.86.56/device/edit/97)Sending command /lcd/backlight to 192.168.86.23:8080

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:37:58.457 am [debug](http://192.168.86.56/device/edit/97)Using IP: c0a85617 and port: 1f90 for device: 97

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:37:58.453 am [debug](http://192.168.86.56/device/edit/97)Sending command /sensor/proximity/raw to 192.168.86.23:8080

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:37:58.451 am [debug](http://192.168.86.56/device/edit/97)Using IP: c0a85617 and port: 1f90 for device: 97

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:37:58.447 am [debug](http://192.168.86.56/device/edit/97)Sending command /sensor/humidity/raw to 192.168.86.23:8080

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:37:58.443 am [debug](http://192.168.86.56/device/edit/97)Using IP: c0a85617 and port: 1f90 for device: 97

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:37:58.439 am [debug](http://192.168.86.56/device/edit/97)Sending command /sensor/temperature/raw to 192.168.86.23:8080

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:37:58.437 am [debug](http://192.168.86.56/device/edit/97)Using IP: c0a85617 and port: 1f90 for device: 97

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:37:58.433 am [debug](http://192.168.86.56/device/edit/97)Sending command /relay/bottom to 192.168.86.23:8080

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:37:58.431 am [debug](http://192.168.86.56/device/edit/97)Using IP: c0a85617 and port: 1f90 for device: 97

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:37:58.371 am [debug](http://192.168.86.56/device/edit/97)Sending command /relay/top to 192.168.86.23:8080

[dev:97](http://192.168.86.56/logs/past#dev97)2019-11-22 10:37:58.367 am [debug](http://192.168.86.56/device/edit/97)Using IP: c0a85617 and port: 1f90 for device: 97

[app:75](http://192.168.86.56/logs/past#app75)2019-11-22 10:37:58.200 am [debug](http://192.168.86.56/installedapp/configure/75)Manually creating Wink Relay Device with dni: B479A7149ED1

[app:75](http://192.168.86.56/logs/past#app75)2019-11-22 10:37:58.189 am [debug](http://192.168.86.56/installedapp/configure/75)Adding manually entered devices...

[app:75](http://192.168.86.56/logs/past#app75)2019-11-22 10:37:58.172 am [debug](http://192.168.86.56/installedapp/configure/75)โ•‘ 1. Subscribing to events: ssdpTerm.urn:sharptools-io:device:WinkRelay:1

[app:75](http://192.168.86.56/logs/past#app75)2019-11-22 10:37:58.161 am [debug](http://192.168.86.56/installedapp/configure/75)Installed with settings: [manualDevice:192.168.86.23]

[app:75](http://192.168.86.56/logs/past#app75)2019-11-22 10:37:55.488 am [debug](http://192.168.86.56/installedapp/configure/75)Can install: true

[app:75](http://192.168.86.56/logs/past#app75)2019-11-22 10:37:55.486 am [debug](http://192.168.86.56/installedapp/configure/75)We have verified 192.168.86.23 manually!

[app:75](http://192.168.86.56/logs/past#app75)2019-11-22 10:37:52.491 am [debug](http://192.168.86.56/installedapp/configure/75)Can install: true

[app:75](http://192.168.86.56/logs/past#app75)2019-11-22 10:37:52.489 am [debug](http://192.168.86.56/installedapp/configure/75)We have verified 192.168.86.23 manually!

[app:75](http://192.168.86.56/logs/past#app75)2019-11-22 10:37:49.498 am [debug](http://192.168.86.56/installedapp/configure/75)Can install: true

[app:75](http://192.168.86.56/logs/past#app75)2019-11-22 10:37:49.497 am [debug](http://192.168.86.56/installedapp/configure/75)We have verified 192.168.86.23 manually!

[app:75](http://192.168.86.56/logs/past#app75)2019-11-22 10:37:46.489 am [debug](http://192.168.86.56/installedapp/configure/75)Can install: true

[app:75](http://192.168.86.56/logs/past#app75)2019-11-22 10:37:46.488 am [debug](http://192.168.86.56/installedapp/configure/75)We have verified 192.168.86.23 manually!

[dev:33](http://192.168.86.56/logs/past#dev33)2019-11-22 10:37:45.470 am [info](http://192.168.86.56/device/edit/33)OUTDOOR TV CABINET power is 0W

[dev:35](http://192.168.86.56/logs/past#dev35)2019-11-22 10:37:45.404 am [info](http://192.168.86.56/device/edit/35)OUTDOOR TV power is 0W

[dev:34](http://192.168.86.56/logs/past#dev34)2019-11-22 10:37:45.251 am [info](http://192.168.86.56/device/edit/34)OUTDOOR SOUND BAR power is 0W

[app:75](http://192.168.86.56/logs/past#app75)2019-11-22 10:37:43.554 am [debug](http://192.168.86.56/installedapp/configure/75)Can install: true

[app:75](http://192.168.86.56/logs/past#app75)2019-11-22 10:37:43.552 am [debug](http://192.168.86.56/installedapp/configure/75)We have verified 192.168.86.23 manually!

[app:75](http://192.168.86.56/logs/past#app75)2019-11-22 10:37:40.577 am [debug](http://192.168.86.56/installedapp/configure/75)---โ•”โ•โ•โ•โ•MANUAL DEVICE CALLBACKโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

[app:75](http://192.168.86.56/logs/past#app75)2019-11-22 10:37:40.574 am [debug](http://192.168.86.56/installedapp/configure/75)---โ•‘ โ˜… uuid:325b5cb75a9d975a @ 192.168.86.23:8080 (B479A7149ED1)

[app:75](http://192.168.86.56/logs/past#app75)2019-11-22 10:37:40.572 am [debug](http://192.168.86.56/installedapp/configure/75)---โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

[app:75](http://192.168.86.56/logs/past#app75)2019-11-22 10:37:40.363 am [debug](http://192.168.86.56/installedapp/configure/75)Sending command to 192.168.86.23:8080

[app:75](http://192.168.86.56/logs/past#app75)2019-11-22 10:37:40.361 am [debug](http://192.168.86.56/installedapp/configure/75)SENDING DEVICE.XML REQUEST

Would you recommend I remove the USER APP and retry to add it using AUTO DISCOVERY?

I waited a while and it did not go, so I used the manual IP address entry.

Does the line 145 mean anything to you.

I opened up the DRIVER and checked around that line of code, but it seemed like syntax and logic were fine.

Nope. :slight_smile:

I took a look at the code and assuming the line reported by the logs are right, it's just a conditional check that says when both relays are on mark the switch as on and when both relays are off mark the switch as off.

Have you tried rebooting the hub? Or perhaps deleting the device and readding it? (Ideally taking a backup before either of these actions in case something wonky is happening with the hub itself)

Good stuff.
Tried restarting.
Then when I went to remove the app, it saw the Wink Relay automatically.

I removed the original one.

Added the new one from the automatically detected one and all is well.

So clean.

In the logs, I can see the button presses being detected.

[dev:130](http://192.168.86.51/logs/past#dev130)2019-11-22 01:06:25.342 pm [info](http://192.168.86.51/device/edit/130)Relay 2: off

[dev:130](http://192.168.86.51/logs/past#dev130)2019-11-22 01:05:49.671 pm [info](http://192.168.86.51/device/edit/130)Relay 2: on

[dev:130](http://192.168.86.51/logs/past#dev130)2019-11-22 01:05:28.876 pm [info](http://192.168.86.51/device/edit/130)Relay 1: off

[dev:130](http://192.168.86.51/logs/past#dev130)2019-11-22 01:05:12.099 pm [info](http://192.168.86.51/device/edit/130)Relay 1: on

However, the rule does not seem to do anything even though I can run the actions from the rule edit screen.

UPDATE:

I edited the rule to trigger off a single button push instead of either one.

Now it works.

[dev:130](http://192.168.86.51/logs#dev130)2019-11-22 01:27:44.940 pm [info](http://192.168.86.51/device/edit/130)Relay 2: off

[dev:34](http://192.168.86.51/logs#dev34)2019-11-22 01:27:44.622 pm [info](http://192.168.86.51/device/edit/34)OUTDOOR SOUND BAR power is 0W

[dev:34](http://192.168.86.51/logs#dev34)2019-11-22 01:27:44.391 pm [info](http://192.168.86.51/device/edit/34)OUTDOOR SOUND BAR power is 0W

[dev:130](http://192.168.86.51/logs#dev130)2019-11-22 01:27:44.240 pm [info](http://192.168.86.51/device/edit/130)Bottom Button: off

[dev:34](http://192.168.86.51/logs#dev34)2019-11-22 01:27:44.176 pm [info](http://192.168.86.51/device/edit/34)OUTDOOR SOUND BAR power is 0W

[app:99](http://192.168.86.51/logs#app99)2019-11-22 01:27:43.953 pm [info](http://192.168.86.51/installedapp/configure/99)Action: Toggle: MEDIA ROOM LAMPS

[app:99](http://192.168.86.51/logs#app99)2019-11-22 01:27:43.927 pm [info](http://192.168.86.51/installedapp/configure/99)MEDIA ROOM LAMPS CONTROL Triggered

[app:99](http://192.168.86.51/logs#app99)2019-11-22 01:27:43.914 pm [info](http://192.168.86.51/installedapp/configure/99)MEDIA ROOM LAMPS CONTROL: MEDIA ROOM RELAY pushed 2

[dev:130](http://192.168.86.51/logs#dev130)2019-11-22 01:27:43.776 pm [info](http://192.168.86.51/device/edit/130)Bottom Button: on

[dev:130](http://192.168.86.51/logs#dev130)2019-11-22 01:27:42.114 pm [info](http://192.168.86.51/device/edit/130)Proximity: 5402

[dev:130](http://192.168.86.51/logs#dev130)2019-11-22 01:27:41.211 pm [info](http://192.168.86.51/device/edit/130)Proximity: 6044

[dev:130](http://192.168.86.51/logs#dev130)2019-11-22 01:27:40.255 pm [info](http://192.168.86.51/device/edit/130)Proximity: 6339

[dev:71](http://192.168.86.51/logs#dev71)2019-11-22 01:27:35.708 pm [info](http://192.168.86.51/device/edit/71)MEDIA ROOM LAMPS was turned on[digital]

[dev:130](http://192.168.86.51/logs#dev130)2019-11-22 01:27:32.130 pm [info](http://192.168.86.51/device/edit/130)Relay 2: on

[dev:130](http://192.168.86.51/logs#dev130)2019-11-22 01:27:31.718 pm [info](http://192.168.86.51/device/edit/130)Bottom Button: off

[app:99](http://192.168.86.51/logs#app99)2019-11-22 01:27:31.685 pm [info](http://192.168.86.51/installedapp/configure/99)Action: Toggle: MEDIA ROOM LAMPS

[app:99](http://192.168.86.51/logs#app99)2019-11-22 01:27:31.658 pm [info](http://192.168.86.51/installedapp/configure/99)MEDIA ROOM LAMPS CONTROL Triggered

[app:99](http://192.168.86.51/logs#app99)2019-11-22 01:27:31.645 pm [info](http://192.168.86.51/installedapp/configure/99)MEDIA ROOM LAMPS CONTROL: MEDIA ROOM RELAY pushed 2

[dev:130](http://192.168.86.51/logs#dev130)2019-11-22 01:27:31.503 pm [info](http://192.168.86.51/device/edit/130)Bottom Button: on
1 Like

So one more question:

If there a way to backup and restore this entire Wink Relay image from this working one to another one so I do not have to go through all those steps one by one again?

Hey Josh - have you been able to run Sharptools on the Wink Relay display? I have a bunch of old Wink Relays laying around I could re purpose!

I did try it out, but it's been a really long time. (I'm talking before SharpTools dashboards were even publicly released)

I had the same idea that I would run my dashboards on the Wink Relay, but I just found that the Wink Relays were just a bit too unstable for my liking. I ended up replacing the Wink Relay with a 10" wall mounted tablet (here's a relevant post from further up in this thread).

That is what I have done in 2 spots. Bought refurbished iPad minis and wall mounted them. Oh well, the Wink Relays will continue to collect dust!

1 Like

Well this is awkard.

After I got that first one working, I wanted to convert my other 5 relays.

I have one that will not reset no matter what I do.

Wipe data, reset factory image.

It just goes to the normal screen and boots and connects to my wifi and pretends like I didn't ask it to reset.

Any ideas?

Can I use that sideload from an ADB option? Got any other ways to force this to reset?

It sounds like it could be similar to what happened to one of my Wink Relays. I call it the "Groundhog Day" effect. I would factory reset the thing, but as soon as it would boot up, it was like nothing ever changed and it was back to how it was the day before. :open_mouth:

I never figured out how to fix it.

Sounds like what is happening to me.

I got 4 more to convert.

Hope this is the only.

For anyone interested.....I created a post outlining how to get the two light loads, i.e. top and bottom, to function independently within the Dashboard.

Didn't want to hijack the post with another tutoria of a separate topic.

OK you are officially creeping me out because this is what I came back here to read this entire thread for before asking and VOILA!

HA! I've been meaning to post it, just now got around to it.

Hello. I'm just in the process of trying to switch over from Wink to Hubitat, and I really like the functionality that my Relays give me (even though they're terribly underpowered and, as a result, not terribly stable). I have rooted my first Relay and installed the STWinkRelay app on it, and I installed the app code and driver code on my hub, but when I go to install the app on my hub and discover my relay, I can't get that process to succeed. I can see it find the Relay, and I can pick it in the listing that opens up, but the discovery process will not let me then click on the "Done" button. After a random period of 0.5 - 2 seconds from when I select my Relay, the drop-down list resets back to "Click to set" and I can never complete the discovery and app addition process. Am I missing something really stupid and simple here?

Thanks.

  • James

I vaguely recall this happening and I just clicked through really quickly after selecting the device to get it to work.

I think the discovery code probably needs to be updated to have a separate screen for discovery and a separate screen for device selection based on the way Hubitat works. That being said, I don't use my Wink Relays anymore... but if someone else wants to tweak the code, I'm happy to accept a PR for it! :smiley:

1 Like

Thanks for the reply. I did look at your code, find the spot where it calls for the discovery screen autorefreshes itself, and slow that way down. Unfortunately, when I did that I still didn't have any better luck. Selecting the device does nothing but just select the device until the next refresh. Selecting the device and hitting the "Done" button also does nothing but select the device until the next refresh. It seems like there isn't anything there that causes any action once I select the device. And, just barely getting started with this, I don't know enough about coding for Hubitat to be able to figure out what isn't working...not that I'm all that much of a programmer in the first place, mind you...

Never mind on that...it appears that Hubitat doesn't like Waterfox Classic. A different browser made all the difference. Slowing down the refresh rate in the code and then using a browser that was willing to play with Hubitat made the process work flawlessly.

1 Like