Smartthings Running on Wink Relay

Can anyone confirm that we are OK to update to the latest firmware? I did the non-root hack (downloaded browser (unfortunately one that doesn’t allow downloads…), downloaded startup manager, and assistive app)

I’m just using my SmartTiles and all is working well, but would like to keep it up to date as much as possible since I don’t know when the firmware was last updated.

I’d like to not get bricked - thank you :slight_smile:

1 Like

I’ve got a couple of these running (non-root); the oldest at firmware 1.0.202 and the most recent I set up a couple of months ago wound up at 1.0.602 after the initial Wink login/update to allow the proximity sensor to work. No issues running ActionTiles with either. I’m not sure if 1.0.602 is the latest (I suspect not).

1 Like

Just a sneak peak of something I’ve been working on…
image

I was surprised in the lack of response to @Mark_Wilson’s post indicating that he had put together some code for interfacing with the Wink Relay as it looks like he has done for Vera what a lot of people are interested in for SmartThings. I reached out to him and was inspired to put together a custom application to interface the Wink Relay with SmartThings.

I have the basic components of the application working with the ability to manually read sensor values, the ability to respond to the buttons being pressed, and the ability to control the light loads.

The next step is to clean up the code and make it interface with SmartThings which should be the easy part. Like others, I’ve found the Temperature and Humidity sensors to be fairly inaccurate and I’ve also found the Proximity sensor to be quite inaccurate. At the very least, I look forward to being able control the light loads directly from SmartThings and see the status of the lights in SmartThings.

6 Likes

That sounds promising. If you can directly interface w ST, we will no
longer need stringify. Are you willing to put your code up on github so we
can play around w/ it?

Once I get it all linked up, I’ll publish the working code. I’m looking at changing the approach as I currently have to poll the sensor values periodically (eg. every X seconds). This works fine for temperature/humidity, but wouldn’t work well for the motion/proximity sensor.

The buttons are currently implemented based on interrupts, so there’s a bit of C code behind the scenes which opens the GPIO pin and when the interrupt is triggered, it triggers the Java callback immediately.


If the motion/proximity sensor is important as a trigger, then I’ll need to look at an alternative method for polling the presence sensor and doing a calculation to determine the delta between the previous to value to determine if motion is detected.

The motion/proximity sensor actually responds with 4 values as you can see from the picture above… I haven’t quite figured out what unit of measure these are supposed to be. The first and third value tend to jump up close to 50-60k when I place my hand near the motion/proximity sensor above the screen. The second value seems to stay around 250-300 and the last value stays zero.

I have a second unit that I need to get setup to check if it’s returning similar values. It’s possible my motion/proximity sensor isn’t working well as it never worked well when the motion/proximity option was turned on in the Wink software. When I’m standing in front of the screen, the first value only goes up to around 8000 (eg. a relatively small delta when compared to the 50-60k when something is right by the sensor), so it seems more like a proximity sensor on a phone that expects to be sensitive really near your face but otherwise not sensitive at long distances.

4 Likes

Here’s my attempt at integrating and it works great with all of my needs and expectations:

1 Like

Just a quick update on the custom SmartThings integration and Wink Relay app mentioned in my previous post…

I have the basic integration with SmartThings working where I can control each of the relays and get sensor status directly from the Wink Relay (over the LAN). I also implemented a SmartApp which provides automatic discovery of the Wink Relays on the network that are running my custom Android app and it lets you easily add the custom Wink Relay device pictured in the screenshot above.

I still need to go back and wire up the sensor event logic on the Wink Relay to push status to SmartThings when each attribute deviates enough, but I expect that should be relatively straightforward now that the other puzzle pieces are in place. Still lots of polish needed, but I’m getting closer to having all the core pieces in place where it could be shared in an alpha release.

6 Likes

I’ve posted an Alpha version of my custom release of the Wink Relay to SmartThings integration:

If you’re feeling adventurous, give it a try. I’m sure there will be bugs, be prepared for it!

1 Like

I have two wink relays both stuck in boot loops and I’m wondering if anyone has been able to recover from that state? One occurred when I tried to factory reset (claims edison.zip signature cant be verified as others have mentioned). The other one just froze up and upon me resetting it also started looping (shows Wink relay splash screen and then restarts).

I have ordered a USB to serial cable so that I can get console access, but I don’t believe I’ve seen anyone successfully revive one yet. If anyone has any experience recovering from this situation, I’d be thankful for advice!

I wonder could a version of Android Go be installed on the Relay? That could help keep the footprint light enough for the hardware but enable new features.

The Wink Relay is currently running Android 4.3 (API 18) and Google Go was released alongside Android 8.1 (API 27). I haven’t seen any custom ROMs for the Wink Relay and with the hardware being a bit dated at this point, I’m focused on removing the stock Wink Relay apps and layering on a custom integration with SmartThings.

2 Likes

It looks like others have been able to pull the edison.zip file, so maybe you can push their copy back.

I’ve though about this, but I’m not sure how to go about pushing the edison.zip to the device. I won’t have any network connectivity to it from the recovery menu, just a serial connection. So I’d have to push the file over that somehow. I haven’t been able to find any details on how/if this can be done.

Hi, I followed the instructions from:
http://thingsthataresmart.wiki/index.php?title=Wink_Relay

i rooted successfully and did everything correctly. I installed the modified wink app. It rebooted and everything looked ok. However, Smartthings is still logging out. Anything you can suggest?

Wink has updated the app, and a modified version is not available at this time.
My Wink Relay is running the Wink software integrated with IFTTT to tie the light buttons into my ST right now.

I did see a recent thread on here where someone went about this slightly differently. I’ll see if I can find it for you.

Thank you. So even though you installed your modified version before the update and then disabled Winkupdate, it still updated the app?

Hello, here is Josh’s approche to integrating the Wink Relay to ST, it works pretty well

1 Like

This will let you control the Wink relay from within ST app, right?
What about controlling ST from within the Wink relay. once you install the ST app in the relay, it will log you out every hour. You original workaround from Synthesis is not working for me. Any other options?

1 Like

Correct this lets you control the Wink Relay from ST. For my set up I’m using ActionTile to control ST from the Wink Relay

There is no other free option to be able to control St from the relay without being logged out anymore?