[OBSOLETE] Wink Relay - Custom SmartThings Integration

Thank you! That’s the best way to support this project!

SharpTools is my day job, so when you subscribe to SharpTools.io and support my day job that provides me the luxury of working on fun side-projects like this!

2 Likes

No probably. Hopefully some people from this thread venture over and try it out also.

Just a quick update, I went back and checked the wink to find under services SSDP was stopped. I clicked some buttons and once it was running it showed up in the smarthings classic app.

I look forward to future updates and thanks for the speedy response.

1 Like

Also another request to have maybe 2 layouts. One for people that have updated their relay to the latest wink software (larger font) and one for people that did not update (smaller font).

I choose not to update because i feel the wink relay slows down significantly after the update.

I wonder if you could manually change the screen resolution to match what it’s set to after the Wink Relay update.

When I checked the resolution of my Wink Relay which had the update, I’m seeing the following

PS C:\Users\JoshuaLyon> adb shell "dumpsys display | grep mBaseDisplayInfo"
    mBaseDisplayInfo=DisplayInfo{"Built-in Screen", app 480 x 800, real 480 x 800, largest app 480 x 800, smallest app 480 x 800, 42.0 fps, rotation0, density 240 (213.0 x 213.0) dpi, layerStack 0, type BUILT_IN, address null, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}

I think you could issue the following commands via ADB to update your Wink Relay to use the new resolution:

adb shell "wm density 240"
adb shell "wm size 480x800"

 
Edit: Based on @Chris_Carlesco’s comment that his device without the Wink update is showing a resolution of 800x480 from whatismyresolution.com, it sounds like the device previously used a density of 160. I used the wm density command shown above with a density of 160 and I was able to get my device to look like your screenshot.

Try updating the device density and resolution using the commands shown above and if that works for you, I can look at making it an option to toggle the density from within the STWinkRelay app.

This worked to make the fonts larger! Looks perfect.
Thank you!

1 Like

I can’t connect to it through adb. I keep getting the below message. the IP i pulled from wifi settings on the wink relay and I do not get a prompt on the wink relay to accept the connection.

PS C:\Downloads\Android\android-sdk\platform-tools> ./adb connect XXX.XXX.X.XXX
cannot connect to XXX.XXX.X.XXX:5555: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060)

Do you have Developer Options enabled on the Wink Relay and have USB Debugging checked?

Once you get adb connected, if you don’t mind, can you please dump the display information before you run the wm density and wm size commands so I can have a record of what the ‘old’ values are just for confirmation.

adb shell "dumpsys display | grep mBaseDisplayInfo"

Got it. My computer is connected through Ethernet that was connected to my ISP’s router. My wifi router is plugged into that router. Once i moved the ethernet cable over it connected.

mBaseDisplayInfo=DisplayInfo{"Built-in Screen", app 480 x 800, real 480 x 800, largest app 480 x 800, smallest app 480 x 800, 42.0 fps, rotation0, density 160 (213.0 x 213.0) dpi, layerStack 0, type BUILT_IN, address null, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}

Edit: And your commands adjust the resolution to match. All looks good now. Thanks

1 Like

FYI,
I adjusted the setting to “wm density 220” from 240 because the e in Temperature was getting cut off.

Mine looks fine
image

1 Like

Hey Joshua thanks for this, this is an awesome work and we can keep using our relays. I manage to get one working the other one not booting pass the wink logo. I can’t seem to add the one that is working to webCore any suggestions ?? Is not in the add device list as the rest oh my things.

Thanks

I don’t personally use WebCoRE, but it was discussed a few times above. You can search this thread for more details.

I will Thanks

1 Like

Josh,
The resolution reverts back after a reboot. Is there a way to save that setting?

Another suggestion for an app update is to maybe allow us to set the proximity number that triggers the screen to turn on. I can feed you some numbers if you like below is what I have from 2 relays, I will get 2 more up and running today.

Relay 1 - reads 2200 at 2 feet away
Relay 2 - reads 3200 at 2 feet away

Also I just cracked open a new wink relay and did this install. I downloaded 6-7 assistive touch apps and none would work on this new relay. I found soft keys works good and I like that it doesn’t overlay on anything. I’m going to run that on my 4 relays. Just putting this out there for anyone that is also having problems.

I don’t follow. The 1.0 or newer versions already do that.

There are links to working copies directly in the footer of: http://wink.boshdirect.com

Is that an app? I’ll have to take a look and see how it works. Thanks for sharing!

Sorry I didnt realize the proximity sensor adjustment was in the settings or that your website had working AT apps. See below for soft keys app picture. Its the first one that comes up in apkpure when searching.

1 Like

Hi Kemaan hope you are doing fine can you please help me on how to make webCore find my devices when I go into devices is not in the list so I can add them any suggestion?

Thanks

I am having problem installing device type handler and child device handler

here is the error

No signature of method: script_app_metadata_ff5ac382_69ce_48ba_b8cf_511f409b95ac.metadata() is applicable for argument types: (script_app_metadata_ff5ac382_69ce_48ba_b8cf_511f409b95ac$_run_closure1) values: [script_app_metadata_ff5ac382_69ce_48ba_b8cf_511f409b95ac$_run_closure1@100a5047] Possible solutions: getMetadata(), getState(), setState(java.lang.Object), metaClass(groovy.lang.Closure)

Make sure you install each thing in the right place within the IDE.

SmartApp needs to be installed under My SmartApps
Devices needs to be installed under the My Device Handlers

Thank you so much I am far from good at this. Thank you for doing this. I have them loaded. My relay is working but I am not showing any apps on mobile. I have so much stuff that was on wink. Angry with what they have done. Any idea how to get Quirky Pivot Power Genius to work on smart things?