Author |
|
sarcophage Newbie
Joined: June 15 2009
Online Status: Offline Posts: 9
|
Posted: July 20 2009 at 09:22 | IP Logged
|
|
|
Good morning, all -
I've just recently downloaded PowerHome2, and am really
excited about its extensibility and the already great set
of features it includes out of the box!
having said that, I am having a lot of trouble
understanding the differences between
macros/triggers/formulas, and how to implement them.
For example, if I wanted to code a motion sensor to flash
a lamplinc for 2 seconds, where would I even begin? I've
searched the wiki and the quick start, and neither have
quite given me the solution I'm looking for.
thanks in advance!
|
Back to Top |
|
|
grif091 Super User
Joined: March 26 2008 Location: United States
Online Status: Offline Posts: 1357
|
Posted: July 20 2009 at 13:15 | IP Logged
|
|
|
A Trigger fires when a particular event occurs. In this case you would define a Trigger to fire when the Motion Sensor sends a Group 1 ON message sequence to the PH2 PLM/PLC. This requires the Motion Sensor be linked as a Controller with the PH2 PLM/PLC as a responder. The motion sensor link must be started manually as the motion sensor does not support the Peek/Poke commands normally used by PH2 (and other apps) to write link records.
The Trigger can perform various things but I would suggest defining it to invoke a Macro when the trigger fires. Within the Macro you can code an Insteon command to turn ON then OFF the LampLinc. A Trigger can perform PH functions but there are issues with a Trigger issuing Insteon commands so the Macro is the better option.
EDIT: the following topic describes a Trigger for a Motion Sensor low battery. Change the Group to 1 for motion.
Link to Motion Sensor Trigger
Edited by grif091 - July 20 2009 at 13:22
__________________ Lee G
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: July 20 2009 at 14:33 | IP Logged
|
|
|
You may also want to look at a tutorial I did a ways back. It's for X10, but the concepts are the same for any other technology.
Getting Started with Formulas and Triggers
|
Back to Top |
|
|
sarcophage Newbie
Joined: June 15 2009
Online Status: Offline Posts: 9
|
Posted: July 21 2009 at 14:11 | IP Logged
|
|
|
fantastic - thank you, gentlemen! I am a developer, so I
understood the concepts of triggers and macros, but was
having trouble applying them to the devices. many thanks!
|
Back to Top |
|
|
Brandon Newbie
Joined: December 29 2009 Location: United States
Online Status: Offline Posts: 36
|
Posted: December 30 2009 at 16:55 | IP Logged
|
|
|
TonyNo::
I wasn't able to research your tutorial. Is it still available?
Thanks,
Brandon
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: December 30 2009 at 23:52 | IP Logged
|
|
|
Yes, my ISP is now blocking port 80. =/
http://tonyno.ods.org:8080/ph/PHTutorial1-AddingDevicesandMa kingThemDoSomething.htm
|
Back to Top |
|
|