Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Newbie question - on at sunset off at mid Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
groston
Newbie
Newbie
Avatar

Joined: November 05 2007
Location: United States
Online Status: Offline
Posts: 16
Posted: November 12 2007 at 19:25 | IP Logged Quote groston

I just got my Insteon system working today - thanks for help provided previously.

I am trying to start with something simple: turn a light on at sunset and turn it off at midnight.

I have the timed event setup to execute a macro at sunset. Within this macro, I have figured out how to turn the light on. But, what do I do to turn it off at midnight? Since I am a newbie, I am trying to use the macro detail interface, however, I am willing to try something else.

Also, is there a good description, including examples, of some basic macros?

Thanks.

__________________
Gerald P. Roston
gerry (at) pairofdocs (dot) net
Back to Top View groston's Profile Search for other posts by groston Visit groston's Homepage
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: November 12 2007 at 19:36 | IP Logged Quote BeachBum

Easiest way I know of is to create a timed event and specify sunset for turning on and absolute time for turning off. You would point to a macro that performs the On and Off functions. Also in the Powerhome directory there is a Quickstart Guide that is helpful.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
groston
Newbie
Newbie
Avatar

Joined: November 05 2007
Location: United States
Online Status: Offline
Posts: 16
Posted: November 12 2007 at 19:42 | IP Logged Quote groston

Beach Bum,

I kinda, sorta had figured things out to the level of description you kindly provided. I was looking for a little more detail with respect to actual implementation.

__________________
Gerald P. Roston
gerry (at) pairofdocs (dot) net
Back to Top View groston's Profile Search for other posts by groston Visit groston's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: November 12 2007 at 19:54 | IP Logged Quote TonyNo

You could also create two Timed Events of type Device Control instead of a macro and do it directly...

2007-11-13 16:21:58 - Sunset - Daily - Absolute -15 - 2007-11-13 16:36:58 - Device Control - INSTEON+PORCH LIGHT+ON

2007-11-14 00:00:00 - Exact - Daily - None 0 - 2007-11-14 00:00:00 - Device Control - INSTEON+PORCH LIGHT+OFF
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: November 14 2007 at 10:39 | IP Logged Quote BeachBum

Here is an example of a one liner that you can play with.    Create a Sunset timed event:

2007-11-13 16:21:58 - Sunset - Daily - Absolute - 0 - 2007-11-13 16:36:58 – Raw Formula - ph_devicebtn(5,"porch", ion, "255" ) + ph_createtimedevent(2, 'ph_devicebtn(5,"porch", ioff, "0" )', datetime(today(),time("23:59:00")))


Substitute your actual Insteon ID for “porch”. This should fire everyday at Sunset and turn the light on plus create a one shot Timed Event that will trigger at 11:59:00 PM and turn the light off.


__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 

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