View unanswered posts | View active topics It is currently Wed Jun 19, 2013 4:04 pm



Reply to topic  [ 3 posts ] 
 RF remotes 
Author Message

Joined: May 15, 2003
Posts: 26
Location: Montreal
Post RF remotes
Hello,

Seem to be having problems with commands passed from RF remotes triggering group actions.
Have wall mounted X-10 remotes and am using an attached script called 'listen wireless' (hacked from the Time Stamp Attachment script included in 1.8 ). Here's the gist of the script:

---------------------------
using terms from application "IndigoServer"
on receive x10 event of functionType for address addrString with increment dimVal with preset presetVal with xdata xdataVal with xcommand xcommandVal
-- first, let Indigo process the event:
continue receive x10 event of functionType for address addrString with increment dimVal with preset presetVal with xdata xdataVal with xcommand xcommandVal


if functionType is x10TurnOn and addrString is "G1" then
--------------------------------------- leaving
IndigoLog("AWAY")
execute group "Away"

end if

end receive x10 event
end using terms from
---------------------------


Now, under 1.8 it works fine and I get this in the log:

Received X10 G1 off
Action Group tvOn
Sent X10 G1 off

and get this in 2.0
Received X10 G1 off
Sent X10 G1 off


so it seems it does not trigger the Action Group. Any ideas?

Thanks :-)

Daniel


Sat Sep 09, 2006 9:33 am
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11815
Location: Texas
Post Re: RF remotes
Hi Daniel,

Looks like it might be a couple of different things. First, the argument key "increment" has been changed to "dim." I should have noted this in the ReadMe, but I'm not so sure I did. Additionally, the IndigoLog() command doesn't exist in the default install anymore. You might still have it defined in another attachment file though. Below is a version of the script with my changes that worked.

using terms from application "IndigoServer"
     on receive x10 event of functionType for address addrString with dim dimVal with preset presetVal with xdata xdataVal with xcommand xcommandVal
          -- first, let Indigo process the event:
          continue receive x10 event of functionType for address addrString with dim dimVal with preset presetVal with xdata xdataVal with xcommand xcommandVal
          
          if functionType is x10TurnOn and addrString is "G1" then
               log "AWAY"
          end if
     end receive x10 event
end using terms from


Regards,
Matt


Sat Sep 09, 2006 10:49 am
Profile WWW

Joined: May 15, 2003
Posts: 26
Location: Montreal
Post works
Ah ha!
Works like a charm, thanks Matt!

:-)


Sat Sep 09, 2006 11:10 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.