I just picked up a Wink hub and two GE bulbs yesterday at HD. I have one use case - when I get home & it's dark out, I want a light to turn on inside. Easy, right?
I was immediately staggered at how limited the automation portion of this system is. There is no setting for "After Sunset", which just befuddles me beyond belief. Why would I ever want a home automation system to do anything with lights when it's still day time? Additionally, the geofencing built in didn't work for me today, so instead of messing around with that I wanted to find a reliable solution.
Fortunately, I found this thread and, more specifically, a link to the Tasker Profile for using Wink with Voice controls. I didn't want the voice control aspect of it, but the skeleton was there for me to do as I wished. And that brings me to the meat and potatoes of this post - how to use that Tasker profile without the voice control part, so that you can automate you home using any Tasker hook. In my case, I just wanted that single light to turn on when I've arrived home and connected to my home wifi, so that's what I'll cover here.
Here's the link to the Google+ Tasker Integration
https://plus.google.com/app/basic/stream/z12guxibomastvsgh04cgfvpfvbdvvwjm1k
Step 1: Import the above file, and set up your username and password as described
Step 2: Clone the "Wink Voice Received" task and name it something like "Wink Initiate Command"
Step 3: Edit the new task, on the first line change it so "Name %raw To @par1" (This lets us send in a parameter as if it's the voice command)
Step 4: Now we can create new, simple tasks, that control anything with Tasker just like the voice commands. For example, I created 4 tasks - On and Off for each of my two lights:
Bedroom Light On
Bedroom Light Off
Entrance Room On
Entrance Room Off
All these tasks do is call the above "Wink Initiate Command"
Under "Parameter 1 (%par1)" you enter the command exactly as you would have spoken it:
The basic command is "Turn/Lock/Unlock <device name as it appears in the Hub app> <action you want performed>"
"Turn the Living Room Light on"
"Turn the Library Light Off"
"Lock the Front Door"
"Unlock the back door"
etc...
Step 5: To set up a wifi geofence, create a new Profile of type "State -> Net -> Wifi Connected" and assign the task - in my case it's "Entrence Room Light On"
My use case and hardware only involves smart light bulbs at this point in time. While I'm sure there's a way to use the API and Tasker to monitor the Tripper and other devices, I'm not sure how well that would work since you'd need to constantly poll the Wink API for status updates. On the other hand, you could probably use it to monitor the status of an open door by polling once a minute, and if it's been opened for 10 minutes, send an alert (another feature sorely lacking in the Wink app).
I hope this is helpful, I know I'm stoked that I can now do more "Automation" with my new Home Automation Controller - especially since that means that I probably don't even need to use the Wink app anymore (and probably won't until I get a sensor that needs it - damn thing is always crashing). You will notice that I didn't touch on the "After Sunset" portion of my requirements, because, well, I haven't gotten to it yet. (EDIT: It was easy, solution below)