View unanswered posts | View active topics It is currently Thu May 23, 2013 5:34 am



Reply to topic  [ 2 posts ] 
 Advancement made on working with KeypadLincs 
Author Message
User avatar

Joined: Oct 08, 2010
Posts: 246
Location: Boston, MA
Post Advancement made on working with KeypadLincs
On the advice from Jay into looking into attachments to create what I would call "functions" in a programming language, I uncovered part of the puzzle in working KPLs (KeypadLincs). I have created code as an attachment with allows you to call it as such:

Code: Select all
Keypad_Controller(KeypadName, ButtonLetter, Scene, NewState)


So you might call it like this below to tell the kitchen keypad to light up button "B" and turn on the PowerLinc group called "Dinner Lights".
Code: Select all
Keypad_Controller("Kitchen Keypad", "B", "Dinner Lights", TRUE)


This works well, put in a "push" mode - it makes an event happen from code. Great for AppleScript where you want to simulate someone pushing a button on a keypad. But there's a problem - I need to also trap when someone presses the real button. I need to "poll" they KPL.

Now I could just write a bunch of Triggers that trap for button presses and go from there, but I am trying to do this in automated way so that the Indigo user doesn't have a lot to fuss with. And it occurs to me this can be done with the command:
Code: Select all
on receive insteon event instnStatusChanged for address switchAddress


What I am trying to do is have an Attachment script that say 'I see someone pushed a button "B" on "Kitchen Keypad"'. I think from there I can create some code that will link of of this together.

Has anyone solved this other side of the problem - the poll via an Attachment?

_________________
Dave


Fri Feb 18, 2011 6:35 pm
Profile
User avatar

Joined: Oct 08, 2010
Posts: 246
Location: Boston, MA
Post Re: Advancement made on working with KeypadLincs
I think this new post just gave me my answer - Thanks (again) Jay!
viewtopic.php?f=9&t=6567

_________________
Dave


Sat Feb 19, 2011 7:50 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


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.