This profile will combine intentions in Podcast Addict and Integration to the pebble smart watch using the app Glance. The instructions here are very specific to my application but the information contained should help if you want to do other tasker, pebble tasks.

Requirements

You must have a pebble smartwatch

You must have installed glance

You must have podcast addict

Setup the glance tasker commands

When the glace app initiates the tasker command your tasker must send a message to the watch to tell it what options to show

Create a profile for "Pebble Glance Initiate"

Profile will be Event / System / Intent Received

Action will be "uk.co.finebyte.pebbleglance,TASKERINIT"

Create a task called "Glance Controls"

In this task misc / Send Intent

Action "uk.co.finebyte.pebbleglance.TASKERSEND"

Extra "msg:Play Podcast:Back 15 Sec:3rd function" ("3rd function" is extra space for additional tasks, I have my watch setup to play the last SMS when this is pressed)

I then clear a variable called "%PlayMode"

At this point when you tell glace to view tasker commands you should see these three items (not waiting / Waiting / Waiting)

Setup a profile that reads the glance button commands

I will detail how to read the commands first than below I will explain the process to control podcast addict

Create a profile called "Glance Button Commands"

This will be an Event / System / Intent Received

Action "uk.co.finebyte.pebbleglace.TASKERKEY"

The task needs to contain 3 if statements (one for top, middle and bottom buttons)

Top "%key" ~ "TASKERTOP"

Middle "%key" ~ "TASKERMID"

Bottom "%key" ~ "TASKERBOT"

Podcast Addict Controls

For this example I have configured the top button to play the first podcast in the playlist, after this has been started the button description will change to pause. When glance re-initiates play will be the default action again. You can change this function, but it really doesn't matter pressing "play" when you're already playing does nothing to podcast addict

If statement for "TASKERTOP"

Inside this statement I create an if statement that looks for variable "%PlayMode"

If "%PlayMode" = 1 (podcast addict is currently playing a track, and you want to pause)