Convert RM rule to WebCore

Hey folks. Dipping my toes in the WebCore world here.
I have a simple RM rule that is:

  1. Triggered by a tilt contact changing status.
  2. Sends a message to my iphone the contact Device Name and it's Status.

I tried to do the same in WebCore but found it not as straightforward.
I ended doing the below, which does work:
image

I just think that I should not have to create a variable to store the device status. Nor have to hard code the device name "Test contact" in the notification. I couldn't find a way to get the device name in to a variable.

So the question is: Is there a way to do WebCore Line 23 as simply as the RM line using %device% and %Value%?

Thanks!

I think you are looking for

$currentEventDevice
$currentEventValue
$currentEventAttribute

4 Likes

OMG... it works perfectly!
Thanks!

This topic was automatically closed 1095 days after the last reply. New replies are no longer allowed.