Author Topic: Tasker Integration  (Read 23579 times)

Offline rakstar

  • Moderator
  • Sr. Member
  • *****
  • Posts: 342
  • Karma: +0/-0
    • Home Buddy - Home Automation for Android and BlackBerry Playbook
Tasker Integration
« on: December 15, 2010, 04:34:02 am »
This is pretty awesome and I think you'd all agree.  I created a video tutorial on how to execute Home Buddy scenes through Tasker.  Now you can activate scenes on events you specify -- ex. when your device connects to your home wifi, when you get within a certain radius of a GPS location, when you dock your phone, etc.

Check out my Tips and Tricks page
https://sites.google.com/site/rakstar/homebuddy/tips

Feel free to use this topic to post questions or your experiences with Home Buddy/Tasker integration.

Offline kd5ftn

  • Sr. Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
Re: Tasker Integration
« Reply #1 on: December 16, 2010, 12:49:22 pm »
rakstar, this is awesome.

So far, I've used your tutorial and have created two profiles in Tasker. One that fires my "Lights On" scene when I connect to my home wifi network and a second profile that runs my "Lights Off" scene when I disconnect from my home wifi network.

I noticed the "Lights Off" scene was failing. This may be because it was trying to send the data right as the phone was switching network connections to 3G, so I added a short "wait" in tasker that will fire the "Lights Off" scene 10 seconds after it detects I've disconnected from the network.

I've only had this setup for a few hours now, so it's hard to tell if this will be practical for not. If your wifi randomly disconnects/reconnects on your phone while at home, it will trigger the lights to turn off/back on, so that may be pretty undesirable.

All in all, some seriously cool things that can be done when combining Tasker with Homebuddy.


Offline rakstar

  • Moderator
  • Sr. Member
  • *****
  • Posts: 342
  • Karma: +0/-0
    • Home Buddy - Home Automation for Android and BlackBerry Playbook
Re: Tasker Integration
« Reply #2 on: December 17, 2010, 12:09:11 am »
@kd5ftn Thanks for posting.  This is exactly what I was hoping to get from the community, some actual user experiences.  Perhaps an alternative is to do location based triggers -- so trigger your "Lights Off" scene when you get outside a specific radius of your house.  I'm not sure if this will work better or worse than the wifi-based setup but might be worth a shot.

Offline kd5ftn

  • Sr. Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
Re: Tasker Integration
« Reply #3 on: December 17, 2010, 12:17:17 pm »
You're exactly right rakstar, some additional logic would be required to make this function more fluidly. Right now, it's not bullet-proof. There's a few issues.
  • No audible confirmation from Home Buddy if the scene has been executed. If homebuddy encounters an error trying to execute a scene, a message will pop up on screen for a second, but if you have your phone in your hand, then there's not really a need for automating this with Tasker.
  • WiFi Connection may not be the best way to trigger scenes. I woke up at some point last night to all my lights being on. Apparently my phone dropped my wifi connection and reconnected, triggering the "Lights On" scene. Perhaps additional programming logic & delays in tasker can prevent re-connects from being interpreted as "coming home"

I'm a little hesitant in using Tasker's location-based context for this action. I'm already not satisfied with the battery life on my Evo, and there's got to be some impact from location polling that may shorten my battery life.

Perhaps using bluetooth connection for determining state, or even checking from an always on PC if the device is connected to the network may work better.

I look forward to hearing from others experimentation!

Offline mario23

  • Beta Testers
  • Sr. Member
  • *****
  • Posts: 281
  • Karma: +0/-0
  • V2|V3
Re: Tasker Integration
« Reply #4 on: December 20, 2010, 02:58:02 pm »
Awesome!!!

I saw this while browsing the Tasker site looking for a solution.

Well done sir!
Vera 3 Lite | Kwikset lever Lock (3) | 45609 ON/Off (9) | 45603 Module (1) | VRI10 Dimmer (1) | VP00R Match Dimmer (1) | VRI06 Dimmer (2) | VRS15 (5) | Intermatic HA01C Outlets (3) | Trane Thermostat | HSM100 3in1 Sensor | Foscam FI8905W ipcam (1) | Foscam FI8904W (2) | Foscam FI8918W (3)

Offline mario23

  • Beta Testers
  • Sr. Member
  • *****
  • Posts: 281
  • Karma: +0/-0
  • V2|V3
Re: Tasker Integration
« Reply #5 on: December 21, 2010, 09:58:30 am »
deleted for redundancy
« Last Edit: December 21, 2010, 10:19:54 am by mario23 »
Vera 3 Lite | Kwikset lever Lock (3) | 45609 ON/Off (9) | 45603 Module (1) | VRI10 Dimmer (1) | VP00R Match Dimmer (1) | VRI06 Dimmer (2) | VRS15 (5) | Intermatic HA01C Outlets (3) | Trane Thermostat | HSM100 3in1 Sensor | Foscam FI8905W ipcam (1) | Foscam FI8904W (2) | Foscam FI8918W (3)

Offline mario23

  • Beta Testers
  • Sr. Member
  • *****
  • Posts: 281
  • Karma: +0/-0
  • V2|V3
Re: Tasker Integration
« Reply #6 on: December 21, 2010, 10:19:05 am »
You're exactly right rakstar, some additional logic would be required to make this function more fluidly. Right now, it's not bullet-proof. There's a few issues.
  • No audible confirmation from Home Buddy if the scene has been executed. If homebuddy encounters an error trying to execute a scene, a message will pop up on screen for a second, but if you have your phone in your hand, then there's not really a need for automating this with Tasker.
  • WiFi Connection may not be the best way to trigger scenes. I woke up at some point last night to all my lights being on. Apparently my phone dropped my wifi connection and reconnected, triggering the "Lights On" scene. Perhaps additional programming logic & delays in tasker can prevent re-connects from being interpreted as "coming home"

I'm a little hesitant in using Tasker's location-based context for this action. I'm already not satisfied with the battery life on my Evo, and there's got to be some impact from location polling that may shorten my battery life.

Perhaps using bluetooth connection for determining state, or even checking from an always on PC if the device is connected to the network may work better.

I look forward to hearing from others experimentation!


Hey have you rooted your Evo yet?
I'm getting around 26 hours on a charge with a custom rom and kernal.
Just wanted to let you know as I had battery issues as well.
Vera 3 Lite | Kwikset lever Lock (3) | 45609 ON/Off (9) | 45603 Module (1) | VRI10 Dimmer (1) | VP00R Match Dimmer (1) | VRI06 Dimmer (2) | VRS15 (5) | Intermatic HA01C Outlets (3) | Trane Thermostat | HSM100 3in1 Sensor | Foscam FI8905W ipcam (1) | Foscam FI8904W (2) | Foscam FI8918W (3)

Offline mario23

  • Beta Testers
  • Sr. Member
  • *****
  • Posts: 281
  • Karma: +0/-0
  • V2|V3
Re: Tasker Integration
« Reply #7 on: December 11, 2011, 09:29:50 pm »
Hey rakstar, can you help me find the scene id number in my setup?
I see a whole lot of text but want to make sure I can figure this out.

I was also curious if you were going to update the app to work with google tv now that we finally have the market on there.

Thanks
Vera 3 Lite | Kwikset lever Lock (3) | 45609 ON/Off (9) | 45603 Module (1) | VRI10 Dimmer (1) | VP00R Match Dimmer (1) | VRI06 Dimmer (2) | VRS15 (5) | Intermatic HA01C Outlets (3) | Trane Thermostat | HSM100 3in1 Sensor | Foscam FI8905W ipcam (1) | Foscam FI8904W (2) | Foscam FI8918W (3)

Offline rakstar

  • Moderator
  • Sr. Member
  • *****
  • Posts: 342
  • Karma: +0/-0
    • Home Buddy - Home Automation for Android and BlackBerry Playbook
Re: Tasker Integration
« Reply #8 on: December 11, 2011, 11:09:14 pm »
@mario23 First of all, thank you so much for your donation!  I really appreciate it.

You could also use this site, http://jsonlint.com, to make the output a little more readable.  Or just email me your user data and I'll list them out for you.

I just got my Revue update yesterday (good stuff!) so yes I will for sure!  I've actually started on it already but I'm re-writing some other parts as well so it might take a while.

Offline kgrr

  • Full Member
  • ***
  • Posts: 155
  • Karma: +0/-0
  • My obsession: Totally automating my townhouse
    • My Facebook Page:
Re: Tasker Integration
« Reply #9 on: December 14, 2011, 02:49:08 pm »
Definitely awesome.  It seems to work well on my T-Mobile Samsung Galaxy S - Vibrant
---------------------
Vera2 (1.1.1350, UI4); ACT ZRW113W; GE/Jasco 45600, 45602, 45604, 45605 x3, 45606 x4, 45609 x11, 45614; Hawking HRDS1 x3; Intermatic CA9000 x2; Schlage BE369GR, WCE100; Trane TZEMT400AB32MAA
---------------------
Vera2 (1.5.255, UI5); ACT ZRW113W; Aeon HEM, SmartSwitch, GE/Jasco 45600, 45601, 45602, 45603, 45604, 45605, 45606, 45609, 45614; Hawking HRDS1; Intermatic CA9000; Schlage BE369GR, WCE100; SQ Blaster Plus; Squeezebox; Trane TZEMT400AB32MAA

Offline davem2421

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +0/-1
Re: Tasker Integration
« Reply #10 on: December 28, 2011, 12:43:23 pm »
How do I locate the device ID in UI5?

I was playing around with tasker and took a guess at a device ID but I'd like to set something up for a specific task just not sure how to locate that info with the new UI.

very cool by the way!!!

Thanks for sharing

Offline rakstar

  • Moderator
  • Sr. Member
  • *****
  • Posts: 342
  • Karma: +0/-0
    • Home Buddy - Home Automation for Android and BlackBerry Playbook
Re: Tasker Integration
« Reply #11 on: December 30, 2011, 12:05:41 am »
How do I locate the device ID in UI5?

I was playing around with tasker and took a guess at a device ID but I'd like to set something up for a specific task just not sure how to locate that info with the new UI.

very cool by the way!!!

Thanks for sharing

I have yet to upgrade to UI5 so I can't tell you where to find it in the UI, but if you're familiar with JSON, you can get it from your user data.  Follow the instructions here:

https://sites.google.com/site/rakstar/homebuddy/troubleshooting#user_data

then format the output here:

http://jsonlint.com/

Offline davem2421

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +0/-1
Re: Tasker Integration
« Reply #12 on: January 10, 2012, 07:43:08 am »
thanks! will give it a shoot

Offline mogul

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
Re: Tasker Integration
« Reply #13 on: January 22, 2012, 01:43:31 am »
Just tried this for the first time and it worked great!  ;D

I noticed that Tasker has a bunch of actions for specific apps listed under "3rd Party Actions"... I think if you talk to the author about adding specific support, you could make setup a whole lot easer. For example, in Tasker it would be: "3rd Party Actions > Home Buddy > Trigger Scene > (click magnifying glass) > (pick scene from list)"

Would be awesome!

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +11/-0
Re: Tasker Integration
« Reply #14 on: January 22, 2012, 09:06:56 am »
The LSI (Luup System Information) plugin provides device ids and scene ids.