I have had a lot of fun trying to integrate the Black Friday special that wink.com had for the Wink Relay ($30 each so I bought two of them) and they’ve been fairly easy to hack and customize to my desires. If all else fails, reset and you’re back to scratch. Below are my complete notes on how to make this talk to SmartThings, MQTT, IFTTT and Home Assistant. Please see this page for step-by-step guides on some if not most of the steps below: ThingsThatAreSmart.wiki
Hold top button on the Wink Relay and press the small reset button located directly below the middle of the screen but behind the clear plastic. After the reset, let go of the top button. Doing the factory reset takes the Wink Relay back ALL THE WAY and removes any of the updates. This is a great way to restart everything. First is to run Wipe data/factory reset and afterwards Reset to Factory Image.
AFTER FIRST BOOT
Connect to wifi obviously. Put your finger over the proximity sensor (black oval on top of screen) then press and hold bottom button on the Wink Relay for about 30 seconds. The relay will flicker a few times and you will be taken to the standard Android home screen. At that point change the two very important settings. Settings->Security->Unknown Sources and put a check mark there. Then Settings->About and click Build Number many times. After enabling Developer Options, back up to Settings->Developer Options and uncheck then re-check USB Debugging. After this, you can connect to the Wink Relay via ADB. Try the following:
adb connect 192.168.0.33
adb connect 192.168.0.33:5554
You can always bring up the Launcher or Settings via ADB using:
adb shell am start -n com.android.launcher/com.android.launcher2.Launcher
adb shell am start -a android.settings.SETTINGS
After connecting is when you can do the following to install all the apps you want to. You can do that via the browser and apkpure.com or better & faster via ADB:
adb install c:\apks\Multi-action Home Button_2.2.7.apk
If you do an update (by logging into your Wink account on the Relay), just come back to Settings->Developer Options and check the “USB debugging” which was disabled in the upgrade. Recommending to upgrade all Wink stuff at least after installing a few key APK’s. Home button replacement/emulation, Launcher, BusyBox and Kingroot are the key 4 pieces.
The following set of applications should be considered:
Multi-action Home Button or Soft Keys Home Back Button (for Home button or soft-keys depending on desire)
Apex Launcher or Assistive Touch for Android (launcher for Android)
Firefox & Chrome Browser
ES File Explorer
ES Task Manager
Disable Application or App Disabler
Amcrest, MyDLink Lite, etc.
ROOTING THE WINK RELAY
Kingroot is the way to go. However, I had a desire to switch to the old reliable SuperSU but kept getting “su binary occupied” error when updating the binary via SuperSU. I found this thread which helped me to get rid of Kingroot and replace it with SuperSU. I’ve tried many methods and this one definitely works: here or here
I used the MRW scripted method rather than SuperSU-Me (but may end up testing it soon). After that, I updated to latest SuperSU and was able to update the binary with ease. The key was to realize that CHMOD does not work for some reason under /sdcard/mrw so I copied the mrw folder to /data/mrw then CHMOD 777 root.sh file with ./root.sh and finished without issues.
GOOGLE PLAY SERVICES
This was nice and exciting until the Google account kept being removed so it was a race against time to get all I want from Play Store before my account info disappeared. So it wasn’t really worth the hassle. Here’s the thread.
FINAL STAGE OF CONNECTING WINK RELAY TO SMARTTHINGS
For this I used IFTTT and it works great. First step is to install a Device Handler that I created (switch that toggles rather than stateful on/off swiches, which is essentially how the Wink Relay functions). After adding the Device Handler, create a new device and use the new handler for it. Provision the ST IFTTT SmartApp to have access to that new/fake switch. On the Wink Relay create two “shortcuts” to power on and power off the desired Wink Relay button. Obviously connect to both Wink and SmartThings via IFTTT. Then create 3 recipes in IFTTT. If Wink Button pressed then turn on or off (on & off do the same thing anyway) the fake ST button. Then create two more for SmartThings, if button is ON then run the Wink Shortcut for ON. Do the same for off.
I also have Home Assistant and MQTT (using smartthings-mqtt-bridge) enabled so I do indeed use WebHooks channel and call the IFTTT service via Home Assistant automations. However, the same can be achieved via SmartThings CoRE or even Wink Robots.
The white Home Assistant dashboard is very bright at night on the Wink Relay. Try using Firefox with color reversal achieved via one of these Add-ons: Night Reader for Firefox or Dark Background and Light Text. Don’t forget to pin your page using the sandwich on top right, page, add to home screen. Each Wink Relay got its own tab with exactly what I want for the Relay to show.
DEVICE HANDLER FOR WINK BUTTONS
The device handler tries to detect “duplicate” calls because that can cause some issues on a momentary/toggle/stateless switch. So there is an option in the handler where you can say how many seconds between calls. Default is 10 seconds to ignore subsequent calls.
Good luck and let me know if you have issues… do expect the answer to be “do a factory reset” at times