No problem. Below are some text exports of a limited portion of my yatse intent stuff.
There is a profile called "Yatse Intent Received" which fires off the task "XBMC Intent Received" task. In this case, I want tasker to understand a state change in XBMC, in particular, if I pause/resume media in XBMC outside of tasker (like by remote control, or another app, etc.)
In this case, there is an intent received, I parse for the intent extras that I'd like to address and action:
Profile: Yatse Intent Received (73)
Event: Intent Received [ Action:org.leetzone.android.yatsewidget.INFO_STATUS_CHANGED Cat:None Cat:None Scheme:* Mime Type:* ]
Enter: XBMC Intent Received (72)
Task: XBMC Intent Received (72)
A1: [X] Flash [ Text:Intent data: %intent_data
Action: %evtprm1
First cat: %evtprm2
Sec cat: %evtprm3
URI: %evtprm4
MIME: %evtprm5
Extras:
STATUS_FLAG:
%org_leetzone_android_yatsewidget_status_flag
Isplaying:
%org_leetzone_android_yatsewidget_media_isplaying
Host status: %org_leetzone_android_yatsewidget_host_status Long:On ]
A2: Perform Task [ Name:XBMC Remote Resume Stop:Off Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ] If [ %org_leetzone_android_yatsewidget_media_isplaying ~ true ]
A3: Perform Task [ Name:XBMC Remote Pause Stop:Off Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ] If [ %org_leetzone_android_yatsewidget_media_isplaying ~ false ]
Here you can see, that A1 (currently disabled) will flash a toast message with various variables from the intent. In particular, I want to know if the current intent is telling me if the media state changed to playing, or paused. I then call my respective tasks "XMBC Remote Resume" if the intent says the media is playing, or "XBMC Remote Pause" if the intent says it was paused.
The reason I want to know the media state change, is that I sometimes have my philips Hue lights connected to the state of XBMC (variable %XBMC_LinkLights) If they are connected, when XBMC pauses, I want the lights to brighten. When it resumes, they go back into a dim mode.
Task: XBMC Remote Pause (181)
A1: If [ %XBMC_LinkLights ~ true ]
A2: Perform Task [ Name:Hue ALL Relax Medium Stop:Off Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
A3: Perform Task [ Name:COM Ack Stop:Off Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
A4: End If
Task: XBMC Remote Resume (195)
A1: If [ %XBMC_LinkLights ~ true ]
A2: Perform Task [ Name:Hue ALL Night Mode Stop:Off Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
A3: Perform Task [ Name:COM Ack Stop:Off Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
A4: End If
Sending intents is much easier. For example, I have profiles/tasks that will display SMS caller identity (you could flash the message content if you wish - but you never know who's watching with you ;) I also have profiles/tasks that if a call comes in (or I initiate an outgoing call) to pause the media. When the call is done - resume. I know Yatse has built-in support for this, but I want the advanced integration with tasker so I can interface with the lights, etc. So when everything is enabled, if a phone call comes in, these profiles/task combinations basically show the caller ID on the TV via a notification to yatse, then it pauses the media and brightens the lights. When I hang up, the lights dim, and XBMC resumes automatically.
Profile: Anon (46)
State: Call [ Type:Incoming Number:* ]
Enter: Notify Phone Call Incoming (60)
Exit: Notify Phone Call Exit (107)
Profile: Anon (75)
State: Call [ Type:Outgoing Number:* ]
Enter: Notify Phone Call Outgoing (114)
Exit: Notify Phone Call Exit (107)
Profile: Anon (113)
Event: Received Text [ Type:Any Sender:* Content:* ]
Enter: Notify SMS (85)
Task: Notify SMS (85)
A1: Perform Task [ Name:XBMC Notification Stop:Off Priority:5 Parameter 1 (%par1):Incoming transmission... Parameter 2 (%par2):Communique from %SMSRN Return Value Variable: ]
Task: XBMC Notification (30)
A1: Send Intent [ Action:org.leetzone.android.yatsewidget.ACTION_MEDIA_NOTIFICATION Cat:None Mime Type: Data: Extra:org.leetzone.android.yatsewidget.EXTRA_STRING_PARAMS:%par1|%par2 Extra: Package: Class: Target:Service ]
Task: Notify Phone Call Incoming (60)
A1: Perform Task [ Name:XBMC Pause Stop:Off Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
A2: Perform Task [ Name:XBMC Notification Stop:Off Priority:5 Parameter 1 (%par1):Incoming transmission... Parameter 2 (%par2):Call from %CNAME Return Value Variable: ]
Task: Notify Phone Call Exit (107)
A1: Perform Task [ Name:XBMC Resume Stop:Off Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
Task: Notify Phone Call Outgoing (114)
A1: Perform Task [ Name:XBMC Pause Stop:Off Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
I have a lot more that I've done with Yatse (like updating library, etc.) but once you get the hang of the basic intents and parsing the extras - you can pretty much do whatever you like.
Feel free to contact me if you need to discuss further..
Good luck!
Jason