Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: noob timing Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
C_harles
Newbie
Newbie


Joined: March 08 2006
Online Status: Offline
Posts: 1
Posted: March 08 2006 at 00:10 | IP Logged Quote C_harles

I would like to setup a button where onece hit would turn on a light for 30sec then turn it off.
Back to Top View C_harles's Profile Search for other posts by C_harles
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: March 08 2006 at 04:03 | IP Logged Quote dhoward

Charles,

Welcome to PowerHome!

This should be pretty easy. You didnt indicate what level you're at and since you're new here, I'll assume that you're just starting out.

The first thing I would do is create a macro. Most all configuration is done from the PowerHome Explorer so go ahead and open that. Navigate the left hand pane to macros. In the right-hand pane, go to the empty line (or right-click and select "Insert"). Give the macro a meaningful ID name. Give it a description as well. Both are required. The ID can be shorter as this is what will be used later in formulas. The Description is what will appear on a button.

After creating the Macro Header record, click on the little button to the left of the line to go to Macro Detail. Here is where we'll define what we want to do. You didnt say what kind of light you're controlling (X-10 or Insteon, etc), so I'll give generic instructions of both. If X-10, choose a command type of X-10 raw. The first command will be for the X-10 address. Go all the way to the end and press the "tab" key and you'll get a new line. You can also add new lines by "right-clicking" and select "Insert". The second line will be another X-10 raw command turning on your light. If your device is on A1, your lines will look like:

10 X-10 Raw "Your controller ID" A 1
20 X-10 Raw "Your controller ID" A ON

If you are using Insteon, then can use the Insteon command and do it in a single line.

The next line, use a "Wait" command with a "Send Keys" value of 30.

Follow the "Wait" command with the appropriate X-10 or Insteon commands to turn the light off.

Next navigate in the left hand pane to "Control Center". Create an appropriate "Control Center Tab" if you don't already have one. Click on the button to the left and go to "Control Center Button Details". Create a new button of type "Macro" and use the ID of your newly created macro. Exit the Explorer. If the Control Center is currently open, close and reopen it. Your button will now be there. If you want to reposition or resize the button, right-click on the control center and choose "Design View".

Let me know if this is what you needed to know and I apologize if this was too basic.

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward'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