Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Getting started with formulas/triggers Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
sarcophage
Newbie
Newbie


Joined: June 15 2009
Online Status: Offline
Posts: 9
Posted: July 20 2009 at 09:22 | IP Logged Quote sarcophage

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 View sarcophage's Profile Search for other posts by sarcophage
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: July 20 2009 at 13:15 | IP Logged Quote grif091

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 View grif091's Profile Search for other posts by grif091
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: July 20 2009 at 14:33 | IP Logged Quote TonyNo

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 View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
sarcophage
Newbie
Newbie


Joined: June 15 2009
Online Status: Offline
Posts: 9
Posted: July 21 2009 at 14:11 | IP Logged Quote sarcophage

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 View sarcophage's Profile Search for other posts by sarcophage
 
Brandon
Newbie
Newbie
Avatar

Joined: December 29 2009
Location: United States
Online Status: Offline
Posts: 36
Posted: December 30 2009 at 16:55 | IP Logged Quote Brandon

TonyNo wrote:
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


TonyNo::

I wasn't able to research your tutorial. Is it still available?

Thanks,
Brandon
Back to Top View Brandon's Profile Search for other posts by Brandon
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: December 30 2009 at 23:52 | IP Logged Quote TonyNo

Yes, my ISP is now blocking port 80. =/

http://tonyno.ods.org:8080/ph/PHTutorial1-AddingDevicesandMa kingThemDoSomething.htm
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum