[Beta] Wink Relay - LAN Integration

Did you run the configure() command on the main device? If you kept the existing device (even with upgrading the app and adding the new child device driver), you'll have to run the configure() command on the existing device so it will create the child devices.

1 Like

I have hit the configure button, I have not played with it for a bit, I'll see if I can get it working tonight.

I seem to be having the same issue. I loaded the driver and the child driver and when I created the second relay device there were no child drivers. So, I went in and clicked the configure button and still no child drivers. I don't know enough to play with any of this stuff, so desperately need some assistance. I have eight of these around the house. Thanks in advance!

Just deleted the app and all the drivers and reinstalled everything and then ran the app again. The app created the first relay with the backlight and the two switches. When I ran the app again to include the second relay, there were no child devices. Hit the configure button but it did not create the child devices either. Just wanted to make sure I hadn't missed something obvious.
Cheers

I'm having the exact same issue as you, I have two relays the first creates the child devices the second doesn't. But in both cases I still can't control the relays

@greenderrick and @dioffo what do your logs say when you tap the configure() button on the parent device? Tapping configure() should try to create the child devices and will log a debug warning if the devices already exist.

In the meantime, if having the child devices isn't important, you can always go back to the last known working version of the driver. Here's a link to the specific commit of that version:

--

@adamkempenich any thoughts on further troubleshooting steps?

Not without seeing what the logs are saying. I can push a bug fix after seeing those.

Hi Guys
Just rooting another one now. Will let you know in a half hour or so.
Cheers!

1 Like

OK, here we go: This is from the event log:

dev:1782020-04-02 16:49:01.616 errorjava.lang.NullPointerException: Cannot invoke method currentValue() on null object on line 182 (parse)

dev:1782020-04-02 16:49:01.592 infoTemperature: 80.4398

dev:72020-04-02 16:48:56.612 infoBig Bedroom Multisensor UV index is 0

dev:72020-04-02 16:48:56.493 infoBig Bedroom Multisensor illuminance is 2 Lux

dev:72020-04-02 16:48:56.446 infoBig Bedroom Multisensor battery level is 100%

dev:72020-04-02 16:48:55.618 infoBig Bedroom Multisensor humidity is 29%

dev:72020-04-02 16:48:55.482 infoBig Bedroom Multisensor temperature is 23.5Β°C

dev:1502020-04-02 16:48:41.665 errorjava.lang.NullPointerException: Cannot invoke method currentValue() on null object on line 182 (parse)

dev:1502020-04-02 16:48:41.640 infoTemperature: 76.5986

Cheers
Derrick

If you press configure, what do the logs say? (You’ll want to make sure Log Debug is turned on in Hubitat’s Wink Relay Device)

ere is what one of the relays is reporting. Does this look like what you are looking for?
32020-04-02 17:12:26.501 debug---╔════SSDP HANDLER════════════════════════════════════════════════════════════════════════════════════

app:1032020-04-02 17:12:26.498 debug---β•‘ Devices at start of ssdpHandler:

app:1032020-04-02 17:12:26.495 debug---β•‘ > β˜† uuid:fd7a426561ef82cb @ C0A80A29:1f90 (B479A71AC2EA)

app:1032020-04-02 17:12:26.492 debug---β•‘ > β˜… uuid:9a986f46d9ae4963 @ C0A80A41:1f90 (B479A7140054)

app:1032020-04-02 17:12:26.489 debug---β•‘ > β˜… uuid:86d2b564e8fc119d @ C0A80A40:1f90 (B479A70FD3DC)

app:1032020-04-02 17:12:26.483 debug---β•‘ > β˜† uuid:c0207f0d721bc3d3 @ C0A80A43:1f90 (B479A70FD43A)

app:1032020-04-02 17:12:26.455 debug---β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

app:1032020-04-02 17:12:26.452 debug---╔════SSDP HANDLER════════════════════════════════════════════════════════════════════════════════════

app:1032020-04-02 17:12:26.449 debug---╔════SSDP HANDLER════════════════════════════════════════════════════════════════════════════════════

app:1032020-04-02 17:12:26.446 debug---β•‘ Devices at start of ssdpHandler:

app:1032020-04-02 17:12:26.442 debug---β•‘ > β˜† uuid:fd7a426561ef82cb @ C0A80A29:1f90 (B479A71AC2EA)

app:1032020-04-02 17:12:26.439 debug---β•‘ > β˜… uuid:9a986f46d9ae4963 @ C0A80A41:1f90 (B479A7140054)

app:1032020-04-02 17:12:26.436 debug---β•‘ > β˜… uuid:86d2b564e8fc119d @ C0A80A40:1f90 (B479A70FD3DC)

app:1032020-04-02 17:12:26.433 debug---β•‘ > β˜† uuid:c0207f0d721bc3d3 @ C0A80A43:1f90 (B479A70FD43A)

app:1032020-04-02 17:12:26.430 debug---β•‘ Devices at start of ssdpHandler:

app:1032020-04-02 17:12:26.415 debug---β•‘ > β˜† uuid:fd7a426561ef82cb @ C0A80A29:1f90 (B479A71AC2EA)

app:1032020-04-02 17:12:26.393 debug---β•‘ > β˜… uuid:9a986f46d9ae4963 @ C0A80A41:1f90 (B479A7140054)

app:1032020-04-02 17:12:26.365 debug---β•‘ > β˜… uuid:86d2b564e8fc119d @ C0A80A40:1f90 (B479A70FD3DC)

app:1032020-04-02 17:12:26.336 debug---β•‘ > β˜† uuid:c0207f0d721bc3d3 @ C0A80A43:1f90 (B479A70FD43A)

app:1032020-04-02 17:12:26.294 debug---β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

app:1032020-04-02 17:12:26.224 debug---β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

app:1032020-04-02 17:12:24.579 debug---╔════SSDP HANDLER════════════════════════════════════════════════════════════════════════════════════

app:1032020-04-02 17:12:24.573 debug---β•‘ Devices at start of ssdpHandler:

app:1032020-04-02 17:12:24.570 debug---β•‘ > β˜† uuid:fd7a426561ef82cb @ C0A80A29:1f90 (B479A71AC2EA)

app:1032020-04-02 17:12:24.567 debug---β•‘ > β˜… uuid:9a986f46d9ae4963 @ C0A80A41:1f90 (B479A7140054)

app:1032020-04-02 17:12:24.565 debug---β•‘ > β˜… uuid:86d2b564e8fc119d @ C0A80A40:1f90 (B479A70FD3DC)

app:1032020-04-02 17:12:24.559 debug---β•‘ > β˜† uuid:c0207f0d721bc3d3 @ C0A80A43:1f90 (B479A70FD43A)

app:1032020-04-02 17:12:24.515 debug---β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

app:1032020-04-02 17:12:24.494 debug---╔════SSDP HANDLER════════════════════════════════════════════════════════════════════════════════════

app:1032020-04-02 17:12:24.491 debug---β•‘ Devices at start of ssdpHandler:

app:1032020-04-02 17:12:24.486 debug---β•‘ > β˜† uuid:fd7a426561ef82cb @ C0A80A29:1f90 (B479A71AC2EA)

app:1032020-04-02 17:12:24.483 debug---β•‘ > β˜… uuid:9a986f46d9ae4963 @ C0A80A41:1f90 (B479A7140054)

app:1032020-04-02 17:12:24.479 debug---β•‘ > β˜… uuid:86d2b564e8fc119d @ C0A80A40:1f90 (B479A70FD3DC)

app:1032020-04-02 17:12:24.477 debug---β•‘ > β˜† uuid:c0207f0d721bc3d3 @ C0A80A43:1f90 (B479A70FD43A)

app:1032020-04-02 17:12:24.447 debug---β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

app:1032020-04-02 17:12:24.433 debug---╔════SSDP HANDLER════════════════════════════════════════════════════════════════════════════════════

app:1032020-04-02 17:12:24.419 debug---β•‘ Devices at start of ssdpHandler:

app:1032020-04-02 17:12:24.363 debug---β•‘ > β˜† uuid:fd7a426561ef82cb @ C0A80A29:1f90 (B479A71AC2EA)

app:1032020-04-02 17:12:24.360 debug---β•‘ > β˜… uuid:9a986f46d9ae4963 @ C0A80A41:1f90 (B479A7140054)

app:1032020-04-02 17:12:24.357 debug---β•‘ > β˜… uuid:86d2b564e8fc119d @ C0A80A40:1f90 (B479A70FD3DC)

app:1032020-04-02 17:12:24.333 debug---β•‘ > β˜† uuid:c0207f0d721bc3d3 @ C0A80A43:1f90 (B479A70FD43A)

app:1032020-04-02 17:12:24.286 debug---β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

app:1032020-04-02 17:12:24.078 debugβ•‘ 2. Searching for urn:sharptools-io:device:WinkRelay:1

Don't know if this is any help, but when I checked the log, the only relay with a distinct name was the Master Bedroom Wink Relay. The others come up as Wink Relay, even though I changed their names in the device driver to distinctive names. Test Relay One Wink Hub and Test Relay 2 Wink Hub. (Changed the label and the device name both)

Cheers
Derrick

More info.

When running the App it would discover the relays but it would not let me select them, I had to manually add them using their IP address. The App then asks me to press the "Save" button. However, there is no "Save" button that appears, just a "Done" button.
Again, hopefully this helps narrow it down.

Cheers

Still getting the hang of this. Here is Test2's log when I hit the config button.

ev:1682020-04-02 17:59:56.418 debugBacklight child device has already been created

dev:1682020-04-02 17:59:56.394 debugChild 2 has already been created

dev:1682020-04-02 17:59:56.370 debugChild 1 has already been created

dev:1682020-04-02 17:59:11.708 errorjava.lang.NullPointerException: Cannot invoke method currentValue() on null object on line 182 (parse)

dev:1682020-04-02 17:59:11.681 infoHumidity: 43.613

dev:1682020-04-02 17:57:13.216 debugBacklight child device has already been created

dev:1682020-04-02 17:57:13.202 debugChild 2 has already been created

dev:1682020-04-02 17:57:13.188 debugChild 1 has already been created

--- Live Log Started, waiting for events ---

Here are the devices, so you can see that the Master Bedroom Relay has it's children, but the others do not.

Cheers

[Big Bedroom Bedroom Table Lamp

(Generic Z-Wave Switch)
](http://192.168.10.62/device/edit/36)|Generic Z-Wave Switch|System|05|2020-04-02 13:49:29 GMT|
|Big Bedroom Closet Light
(hueBridgeBulb)
|hueBridgeBulb|System|7/3|2020-03-30 18:18:09 GMT|
|Big Bedroom Multisensor
(Aeon Multisensor 6)
|Aeon Multisensor 6|System|03|2020-04-02 18:00:56 GMT|
|Big Bedroom Sitting Area Light One
(Generic Zigbee CT Bulb (dev))
|Generic Zigbee CT Bulb (dev)|System|2BF4

000D6F000B6FD4DD|2020-04-02 13:49:29 GMT|
|Big Bedroom Sitting Area Three
(Generic Zigbee CT Bulb (dev))
|Generic Zigbee CT Bulb (dev)|System|B61E

000D6F000B6F9BEF|2020-04-02 13:49:29 GMT|
|Big Bedroom Sitting Area Two
(Generic Zigbee CT Bulb (dev))
|Generic Zigbee CT Bulb (dev)|System|1F61

000D6F000B6F93AC|2020-04-02 13:49:29 GMT|
|Den Curio Cabinet Light
(Generic Z-Wave Switch)
|Generic Z-Wave Switch|System|08|2020-04-01 01:34:24 GMT|
|Guest Bedroom Table Lamp
(Generic Z-Wave Switch)
|Generic Z-Wave Switch|System|07|2020-04-01 11:03:00 GMT|
|Hue Bridge (72BA95)
(hueBridge)
|hueBridge|System|00178872BA95|2020-03-30 18:18:07 GMT|
|Kitchener's Room Bedside Table Lamp
(Generic Z-Wave Switch)
|Generic Z-Wave Switch|System|09|2020-03-31 21:59:32 GMT|
|Life 360 Refresh
(Life 360 Refresh)
|Application Refresh Button|System|arb-8|2020-03-30 18:18:34 GMT|
|Master Bedroom
(hueBridgeGroup)
|hueBridgeGroup|System|hueGroup:7/1|2020-04-02 05:35:18 GMT|
|Master Bedroom Bedside Table Lamp
(hueBridgeBulbCT)
|hueBridgeBulbCT|System|7/1|2020-04-02 17:01:31 GMT|
|Master Bedroom Bedside Table Lamp 2
(hueBridgeBulb)
|hueBridgeBulb|System|7/2|2020-04-02 17:01:31 GMT|
|Master Bedroom Harmony Hub
(Master Bedroom Harmony Hub)
|Logitech Harmony Hub Parent|User|d7deb5b7-3ad5-4eaa-b…|2020-04-02 01:02:03 GMT|
|Master Bedroom Wink Relay
(Master Bedroom Wink Relay)

Backlight
(Wink Relay Child)

Relay 1
(Wink Relay Child)

Relay 2
(Wink Relay Child)
|Wink Relay

Wink Relay Child

Wink Relay Child

Wink Relay Child|User

User

User

User|B479A70FD3DC

null-Backlight

null-Relay-1

null-Relay-2|2020-04-02 18:01:46 GMT|
|Ring Chime Pro - Attic
(Ring Generic Chime)
|Ring Generic Chime|User|RING-11447942|2020-04-01 19:13:11 GMT|
|Ring Chime Pro - Hallway
(Ring Generic Chime)
|Ring Generic Chime|User|RING-11447477|2020-04-01 19:13:11 GMT|
|Ring Video Doorbell Pro 2 - Front Door
(Ring Generic Camera)
|Ring Generic Camera|User|RING-11293831||
|Test Relay 2 Wink Relay
(Test Relay 2 Wink Relay)
|Wink Relay|User|B479A71AC2EA|2020-04-02 17:59:11 GMT|
|Test Relay One Wink Relay
(Test Relay One Wink Relay)
|Wink Relay|User|B479A7140054|2020-04-02 17:44:31 GMT|

Duh... I see what I did wrong. Somehow, the deviceID instantiation line didn't make it into createChildDevices in my last PR

@josh.. I submitted a PR with it fixed :slight_smile:

Edit: If you want to fix it in your copy, add this line after line 89:

def networkID = device.deviceNetworkId

In context, that would look like:

def createChildDevices(){
def networkID = device.deviceNetworkId
try{

Hi Guys

Pardon my ignorance, yet again, but what is a PR and how do I fix my issue? Like I said, really new to this. LOL! Thanks for looking into this. I really appreciate it.

Cheers!

A PR (pull request) is something you submit to modify code in a release. I submitted one to Josh (the original author of this integration).

I added a fix that you can apply to your code in my last post :slight_smile:

Thank you for your debug information!!

No issues. If it helps, that is great. Everyone benefits. So, now the next dumb question, this goes in the App, or the driver?

OK, found it in the driver and added the new line and then saved it. Now, do I re-run the app for each of the relays?