Create event?

Tim Fitzgerald timfitz9 at gmail.com
Sat Feb 26 22:40:42 EST 2022


Hi -

I am a bit confused with how to use ‘create event’ properly in XTension. I am wondering if the latest beta version of XTension is not working properly with ‘event’ in general?

When I write a code:

set theMinute to 10
try
	suspend event "WD200 Bedroom" for theMinute * minutes
on error
	create event "WD200 Bedroom" that execute script "WD200 Switch Code" handler "doSetData" parameters {"Bedroom Light", "22”, "1", "0"} in theMinute * minutes
end try

When a motion is executed, the code above ran and the schedule event is created. The event in the Scheduled Events  looks like below:



I thought the scheduled event should be called WD200 Bedroom, not WD200 Switch Code (#1)? 

Also, when I tried to use 'remove event “WD200 Bedroom” ‘, it will not remove this event from scheduled events listing.

Can you tell me if I use the code wrong or is it a bug?
Thanks!
TIM


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20220226/99cdebe4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2022-02-26 at 9.26.38 PM.png
Type: image/png
Size: 24038 bytes
Desc: not available
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20220226/99cdebe4/attachment.png>


More information about the XTensionList mailing list