Author Topic: Tasker / Llama / NFC Integration  (Read 44258 times)

Offline garrettwp

  • Moderator
  • Master Member
  • *****
  • Posts: 6376
  • Karma: +226/-128
  • Vera 3, Lite, ISY994
Tasker / Llama / NFC Integration
« on: November 05, 2012, 01:16:56 am »
Custom Intents to work with Tasker, Llama and NFC Tags:

   For an always updated list see this link: http://www.authomation.net/documentation/intent-usage

  * On / Off Binary Switch & Dimmable Light - authomation://device/VeraID/deviceID/[on|off]
    Example: To turn on binary light for device 8
        authomation://device/3123456/8/on

  * Dim Dimmable Light - authomation://device/VeraID/deviceID/dim/75
    Example: To dim dimmable light for device 8 to 75%
      authomation://device/3123456/8/dim/75

  * Lock / Unlock Locks - authomation://device/VeraID/deviceID/[lock|unlock]
    Example: To unlock door for lock device 23
      authomation://device/3123456/23/unlock

  * Arm / Bypass Security Sensors - authomation://device/VeraID/deviceID/[arm|bypass]
    Example: To set security sensor device 10 to bypass
      authomation://device/3123456/10/bypass

  * Toggle - authomation://device/VeraID/deviceID/toggle
    Example: To toggle binary light device 8
      authomation://device/3123456/8/toggle

  * Thermostat set point - authomation://device/VeraID/deviceID/[setPointCool|setPointHeat]/77
    Example: To set thermostat device 17 cool setpoint to 77
      authomation://device/3123456/17/setPointCool/77

  * Thermostat fan mode - authomation://device/VeraID/deviceID/[ContinuousOn|Auto]
    Exmaple: To set thermostat device 17 fan to Auto
      authomation://device/3123456/17/fanmode/Auto

  * Thermostat mode - authomation://device/VeraID/deviceID/[Off|CoolOn|HeatOn|AutoChangeOver]
    Example: To set thermostat device 17 to heating mode
      authomation://device/3123456/17/mode/HeatOn

  * Scene - authomation://scene/VeraID/sceneID
    Example: To run scene 33
      authomation://scene/3123456/33

  * Alarm Panel - authomation://device/VeraID/deviceID/alarm/[arm | disarm]/pinCode
    Example: To disarm alarm panel with device id of 31
      authomation://device/3123456/31/alarm/disarm/1234

  * AV - authomation://device/VeraID/deviceID/av/[command]
    Commands: [play | pause | stop | next | previous | rewind | fastforward | repeat | shuffle | vol | mute]
    Example:
      To set av with device id of 83 to play
        authomation://device/3123456/83/av/play

      To set av with device id of 83 to volume of 55 percent
        authomation://device/3123456/83/av/vol/55

      To set av with device id of 83 to mute on  or off
        Mute On:
        authomation://device/3123456/83/av/mute/1

        Mute Off:
        authomation://device/3123456/83/av/mute/0
   
Change VeraID to the id of your vera unit and deviceID to the ID of the device.


NFC Task Launcher App Instructions:

1. Launch NFC Task Launcher
2. Click the plus sign at the top right corner of the app.
3. Select either "New Task" or "New Switch" (if you want to toggle between actions).
4. Enter a tag name (can be anything you want to help identify the tag action).
5. Press the "Add actions" button.
6. Select "Applications & Shortcuts"
7. Select "URL" and click next.
8. Enter the authomation uri syntax. For a scene it would be authomation://scene/1234567/20
    Where 1234567 is the vera unit id and 20 is the scene number to run.
9. Press OK when done entering the uri in the dialog box.
10. Click on the "Save & Write" tag at the top right hand corner.
11. In the options section, uncheck write tag name. (This will free up some data to be written to the tag)
12. Place tag on the bottom of your phone and let the tag writer write to the tag.
13. Once the tag is written, you should be good to go and the tag should function as it should.

- Garrett
« Last Edit: June 28, 2013, 11:55:34 am by garrettwp »

Offline Dignan17

  • Sr. Member
  • ****
  • Posts: 256
  • Karma: +2/-0
Using AuthomationHD with Tasker
« Reply #1 on: November 05, 2012, 01:33:58 am »
I thought I'd make a guide on how to use AuthomationHD with Tasker. There are alternatives to Tasker, but I've been using Tasker for years and I just like it. The following instructions were written with a newbie like me in mind. So without further ado, here we go.

There's a tiny bit of information you need to get up front. First do this:
  • Go to your dashboard and find the device or scene you want to manipulate
  • For devices, click on the wrench, then the settings tab and note the "Device #" at the top
  • For scenes, click on the wrench, and the note the "scene no." at the top of the entire page
  • Move on to your phone/tablet for the rest of the instructions...
Setting up Tasker to work with Authomation is very simple. Here are the instructions:
  • Open the Tasker app
  • Go to the Tasks tab by tapping it at the top
  • Press the "+" button at the bottom in the middle
  • Name your new task ("Turn On Office Lamp" for example), and press the check mark
  • Press the blue "+" button
  • Select "Misc"
  • Select "Send Intent"
  • In the first text box under "Action," enter the following without quotes: "android.intent.action.VIEW"
  • Further down the screen there's a text box for "Data," where you enter the string that will perform the action you want. For our example, we'll be turning a light on. [for a full list of the syntax for performing different actions, see the top of this thread, but for now I've repeated the information below if Garrett doesn't mind]
    To turn on the light on my desk, I enter the following without quotes: "authomation://device/31234567/36/on"
  • Next, scroll to the bottom of this window and press the dropdown under "Target" and select "Activity"
  • Press the green check mark
  • Press the green check mark again
You're done! To test your new task, press it, then press the blue play button at the bottom-right of the window. The action should be performed. If it isn't, post to this thread and we'll see what's wrong. New users (like me) should note that the "device #" above is NOT the "ID" number you see on a device's settings page. That's a different number. You want the number in bold on that same screen.

From here, you can use this task like you'd use any other task in Tasker. On the Profiles tab you can set any conditions you can think of to activate your new tasks. You could set your lights to come on when your home wifi is detected. Stuff like that.


Now, lets do something else neat with this new task. Lets make shortcuts on your home screen!

The following instructions are for the stock launcher. I use Apex Pro, which makes this a little easier.
  • Open the app/widget tray
  • Go to the widget section, scroll to the "T's"
  • Find either "Task" or "Task Cut" - either one is fine, they both do the same thing - and add it to your home screen where you want it
  • Choose the task we made above
  • You can edit your task here, but all it really requires is that you choose an icon of some sort for your new shortcut. To do this, click on the icon on the bottom-right of the dark blue area
  • When you're ready, press the green check button and you're done!
You should now have an icon on your home screen that will execute any device or scene in your AuthomationHD app. You could create an entire folder filled with these shortcuts to various tasks.

Using Tasker, you could really make your own scenes completely separately from Vera, though they'd only be on your phone. Of course, you can export Tasker tasks and import them into other instances of Tasker.


Please let me know if you have any questions about this stuff. I'm not a Tasker expert and I'm FAR from a Vera/AuthomationHD expert, that's for sure. I'm just someone who loves using whatever tool he can to accomplish the results he wants :D That said, many thanks to Garrett for the amazing work he's done with AuthomationHD. That's what made any of this possible, and he rocks.



Custom Intents to work with Tasker, Llama and NFC Tags:

  * On / Off Binary Switch & Dimmable Light - authomation://device/VeraID/deviceID/[on|off]
    Example: To turn on binary light for device 8
        authomation://device/3123456/8/on

  * Dim Dimmable Light - authomation://device/VeraID/deviceID/dim/75
    Example: To dim dimmable light for device 8 to 75%
      authomation://device/3123456/8/dim/75

  * Lock / Unlock Locks - authomation://device/VeraID/deviceID/[lock|unlock]
    Example: To unlock door for lock device 23
      authomation://device/3123456/23/unlock

  * Arm / Bypass Security Sensors - authomation://device/VeraID/deviceID/[arm|bypass]
    Example: To set security sensor device 10 to bypass
      authomation://device/3123456/10/bypass

  * Toggle - authomation://device/VeraID/deviceID/toggle
    Example: To toggle binary light device 8
      authomation://device/3123456/8/toggle

  * Thermostat set point - authomation://device/VeraID/deviceID/[setPointCool|setPointHeat]/77
    Example: To set thermostat device 17 cool setpoint to 77
      authomation://device/3123456/17/setPointCool/77

  * Thermostat fan mode - authomation://device/VeraID/deviceID/[ContinuousOn|Auto]
    Exmaple: To set thermostat device 17 fan to Auto
      authomation://device/3123456/17/fanmode/Auto

  * Thermostat mode - authomation://device/VeraID/deviceID/[Off|CoolOn|HeatOn|AutoChangeOver]
    Example: To set thermostat device 17 to heating mode
      authomation://device/3123456/17/mode/HeatOn

  * Scene - authomation://scene/VeraID/sceneID
    Example: To run scene 33
      authomation://scene/3123456/33
   
Change VeraID to the id of your vera unit and deviceID to the ID of the device.
« Last Edit: November 05, 2012, 01:48:16 am by Dignan17 »

Offline bigmonkey70

  • Jr. Member
  • **
  • Posts: 76
  • Karma: +1/-1
Re: Tasker / Llama / NFC Integration
« Reply #2 on: November 16, 2012, 02:07:05 pm »
With Tasker, Does it has to be a certain version?  I am using 1.2.1u2 and it has no Send Intent ... So I use Action Intent ...
then follow Dignan17 instruction to the letter and when click the blue play button, Nothing happen.

I tried so many time .... And decided to try Llama ... and it work fine using the same action and data command ... so I know that the Vera ID and Device ID is correct.


Offline Dignan17

  • Sr. Member
  • ****
  • Posts: 256
  • Karma: +2/-0
Re: Tasker / Llama / NFC Integration
« Reply #3 on: November 16, 2012, 11:09:53 pm »
Is there a reason you're using that version? The one on my phone is 1.3.3u1m and that's what I get from Play.

Offline lennier

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
Re: Tasker / Llama / NFC Integration
« Reply #4 on: November 18, 2012, 11:53:32 pm »
I've tried using the syntax shown in the screenshots in this post http://forum.micasaverde.com/index.php/topic,11517.msg84232.html#msg84232 as well as the syntax listed above, but I'm having no luck getting llama to work with these intents. Any idea what I'm doing wrong? Documentation on llama intents seems thin on the ground from my searching.

Offline lennier

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
Re: Tasker / Llama / NFC Integration
« Reply #5 on: November 19, 2012, 12:25:56 am »
I've tried using the syntax shown in the screenshots in this post http://forum.micasaverde.com/index.php/topic,11517.msg84232.html#msg84232 as well as the syntax listed above, but I'm having no luck getting llama to work with these intents. Any idea what I'm doing wrong? Documentation on llama intents seems thin on the ground from my searching.

Doh, sorry. Just realised this functionality is still only in the 2.1 beta.

Offline bigmonkey70

  • Jr. Member
  • **
  • Posts: 76
  • Karma: +1/-1
Re: Tasker / Llama / NFC Integration
« Reply #6 on: November 28, 2012, 03:16:23 pm »
is it possible to use tasker to

when you come home, execute scene to unlock door and turn on lights
When you leave home, excute scene to lock door and turn off lights

I did create a profile with wifi connected and add a task to execute a scene ...
but how do you create one for leaving home (i.e. wifi disconnected, etc) to execute a different scene?

Offline Dignan17

  • Sr. Member
  • ****
  • Posts: 256
  • Karma: +2/-0
Re: Tasker / Llama / NFC Integration
« Reply #7 on: November 28, 2012, 04:37:13 pm »
is it possible to use tasker to

when you come home, execute scene to unlock door and turn on lights
When you leave home, excute scene to lock door and turn off lights

I did create a profile with wifi connected and add a task to execute a scene ...
but how do you create one for leaving home (i.e. wifi disconnected, etc) to execute a different scene?
It's a little unintuitive, but I'm pretty sure you still go with "WiFi connected," but you check the "Invert" checkbox. I'm not positive as I haven't tied it, but I think that'll get you what you want.

As I'm sure that others around here will say, Llama might be better for this type of use, but Tasker should be fully capable of it too.

Offline Chimpware

  • Beta Testers
  • Sr. Member
  • *****
  • Posts: 426
  • Karma: +0/-0
Re: Tasker / Llama / NFC Integration
« Reply #8 on: February 10, 2013, 07:40:28 am »
Tried this with MFC Task Launcher and could not get it to work with my Nexus 4.  I tried a number of times with different devices just to achieve an on commend and no luck.  Copied syntax directly from we page and substituted my Vera ID and Device # and no luck.  Any ideas?

I am using a Nexus 4 on JB 4.2.1.

Offline garrettwp

  • Moderator
  • Master Member
  • *****
  • Posts: 6376
  • Karma: +226/-128
  • Vera 3, Lite, ISY994
Re: Tasker / Llama / NFC Integration
« Reply #9 on: February 10, 2013, 07:47:29 am »
Chimpware,

Are you using the beta version or the one from the market? Only the tasker integration is available in the current betas that you can download from this forum.

- Garrett

Offline Chimpware

  • Beta Testers
  • Sr. Member
  • *****
  • Posts: 426
  • Karma: +0/-0
Re: Tasker / Llama / NFC Integration
« Reply #10 on: February 10, 2013, 09:08:49 am »
Chimpware,

Are you using the beta version or the one from the market? Only the tasker integration is available in the current betas that you can download from this forum.

- Garrett

Suppose I should have read things better...

Of course I am using the market non-Beta version  ;D

Thanks.

Offline garrettwp

  • Moderator
  • Master Member
  • *****
  • Posts: 6376
  • Karma: +226/-128
  • Vera 3, Lite, ISY994
Re: Tasker / Llama / NFC Integration
« Reply #11 on: February 10, 2013, 10:47:10 am »
Give the beta a try. It's much better than the market version.

- Garrett

Offline woodchild

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +1/-0
Re: Tasker / Llama / NFC Integration
« Reply #12 on: February 20, 2013, 03:42:58 am »
I am exploring NFC functionality and just downloaded NFC task launcher 4.2.3(198) and Tasker version 1.3.3u2m. and have been usingAuthomation 2.0.3.1 for quite some times.

I have followed the steps given in NFC task launcher and it did not work. the same goes to if I configure it in Tasker.

what am I going wrong here? so Tasker 2.1 beta version is needed? if this is the case it means I cant run directly in NFC task laucher without involve of Tasker?

and where can i get the beta version as I am not able to locate it anywhere.

thanks

Offline garrettwp

  • Moderator
  • Master Member
  • *****
  • Posts: 6376
  • Karma: +226/-128
  • Vera 3, Lite, ISY994
Re: Tasker / Llama / NFC Integration
« Reply #13 on: February 20, 2013, 03:58:06 am »
The beta version is required as the app store version does not have this functionality. You can find the beta version in this sub-forum (AutHomation) at the top as it is marked as a sticky post.

http://forum.micasaverde.com/index.php/topic,11517.0.html

- Garrett

Offline garrettwp

  • Moderator
  • Master Member
  • *****
  • Posts: 6376
  • Karma: +226/-128
  • Vera 3, Lite, ISY994
Re: Tasker / Llama / NFC Integration
« Reply #14 on: February 20, 2013, 08:55:40 am »
Woodchild,

I moved this topic to the following:

http://forum.micasaverde.com/index.php/topic,11517.270.html

- Garrett