But I am very new to Hubitat and I am missing something. How do I add say Relay 1 off a hacked relay to a lighting scene or to a dashboard command? This seems like something trivial to do, but I am just missing the place to do that. You can associate the device to anything, but you cant specify the relay to trigger from what I can see?
Really great app/driver!
I'm a recent Wink refugee, and I can't believe I waited so long to switch. I've converted the first of my 3 wink relays and now I'm trying to figure out capabilities. I've figured out how to use a custom command to turn the screen backlight on/off.
But I can't figure out how to read the proximity value from the relay. I see that it's displayed in the device information, and can even see it updating. But I guess I'm new enough that I can't figure out how to get to the value for use in rule machine.
@josh I don't know how complicated it is or not but any chance you can kinda explain how to modify the code get the both relay switches show up as separate devices or child devices in Hubitat? Or point me to some docs I can look at. I realized you not using the Wink relays anymore.
What have you researched so far? After a quick search on the community, it looks like this would be the approach for parent-child devices on Hubitat:
Based on a quick look, it seems to mimic much of the SmartThings approach to child devices, so my STWinkRelay code from SmartThings which uses a parent-child approach may be helpful to you as a reference as well:
Hi,
I'm very new to Hubitat, coming from Wink. I've never used Android and I think I got stuck in the process at the point after "adb install -r STWinkRelay_0-3-0a.apk". This command seemed to work pushing the file into folder /data/local/tmp/. However the app doesn't appear on the Relay screen. Do I need to "install" it first? I don't know what to do as the next step. Again, I've never used anything Android. How do I make the the new Relay appear on the relay screen, and how do I start the app?
Open a command prompt as Administrator on your PC and navigate to the C:\ADB folder.
Type adb connect ipaddressofwinkrelay and hit Enter. If this fails to connect, reboot the Wink Relay using the small button at the very bottom and try again once it comes back up.
Once you are connected, type: adb push wink-projectone-release.apk /data/local/tmp
When it completes, open an ADB shell by typing: adb shell
Type SU to elevate your permissions: su Note: You'll need to Allow su to run as root by tapping Allow on the Wink Relay screen after typing this command.
Change your working folder: cd /data/local/tmp
Mount the file system as read and write: mount -o rw,remount /system (Note the space)
Copy the old Wink app to tmp folder and rename it: cp /system/app/wink-projectone-release.apk /data/local/tmp/wink-projectone-release-orig.apk
Remove the old Wink app: rm /system/app/wink-projectone-release.apk
Copy the new Wink app into place of the old one. cp ./wink-projectone-release.apk /system/app/wink-projectone-release.apk
Set permissions on the new Wink app to allow it to work: chmod 644 /system/app/wink-projectone-release.apk
Clean the Dalvik Cache to remove all traces of old app: rm -rf /data/dalvik-cache/*
Exit ADB shell by typing: exit (Note: You may need to type this twice, pressing Enter after each one to get back to the C:\adb prompt)
These steps aren't necessary. When rooting the device, you can stop at step 32.
We end up installing a custom app that replaces the Wink Relay built in app, so the steps you quoted aren't necessary.
Did you see the STWinkRelay app installed in the app drawer of the Wink Relay? If you installed Nova Launcher per step 16 of the linked guide, you should be able to open the app drawer and see the installed app.
The ADB installation approach is also more of an advanced approach. Any reason you didn't just want to install the app from a web browser installed on the Wink Relay (also should have been installed in step 16 of the linked guide)?
Thanks for trying to help.
I completely missed these steps because I could not find "Root Package Disabler (VuDanThanh)"
"33. Open APKPure again and search for Root Package Disabler (VuDanThanh) and install it.
Open Package Disabler, and swipe left to the System category. Scroll down to find the WinkUpgrade (com.wink.winkupgrade) service and check the box. You'll also want to disable the Uber Widget (com.wink.widget.uber) and the Fitbit Widget (com.wink.widget.fitbit)."
I found and downloaded an app called "Disable Application" but when I started it it didn't find the services mentioned in the description (com.wink.winkupgrade etc).
I did all the following steps after.
At "42. Type SU to elevate your permissions: su Note: You'll need to Allow su to run as root by tapping Allow on the Wink Relay screen after typing this command." there was no message on the Relay screen so I couldn't "Allow" anything.
When i reboot the Relay the old Wink app starts automatically.
Just to reiterate, you should stop at step 32. There is no need to install and package disabler, custom patched Wink Relay app, or anything.
All you need is to get the device rooted and then install the custom STWinkRelay app from this thread. The custom STWinkRelay app will handle disabling the built in Wink Relay app and then takes over all the functions.