Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Notified when a light is turned on Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
tbeckman
Senior Member
Senior Member


Joined: December 30 2007
Location: United States
Online Status: Offline
Posts: 149
Posted: January 13 2008 at 01:14 | IP Logged Quote tbeckman

As a part of my vacation schema... how would I send my self an email, text message... if someone turned on light in the house. I was thinking of triggering it based on an insteon signal but I wasn't sure if when the computer turned on a light if it would trigger that as well. Thank you.
Back to Top View tbeckman's Profile Search for other posts by tbeckman
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: January 13 2008 at 12:00 | IP Logged Quote TonyNo

Look at this post.

Maybe you can check TEMP5 (the address of the sending device) to make sure it's not your PLC.

There may be a better way.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
tbeckman
Senior Member
Senior Member


Joined: December 30 2007
Location: United States
Online Status: Offline
Posts: 149
Posted: January 13 2008 at 21:00 | IP Logged Quote tbeckman

I hate to be such a newbie... I looked at the page you referenced and it almost makes since... I am getting there. However, could I get someone to spell out the formula that I may use to make this happen? Thank you so much.
Back to Top View tbeckman's Profile Search for other posts by tbeckman
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: January 13 2008 at 23:36 | IP Logged Quote TonyNo

Heh. No problem. I found a glitch anyway.

Create an Insteon Device Change trigger to call your macro to send the email/text message with [Any] for all three parameters and add this formula to the Boolean field of the trigger:

if( "[TEMP5]"<>"x.x.x" and [TEMP4]=5, 1, 0)

Replace the x.x.x with your PLC address.

The TEMP4 check makes sure to only trigger once on the change and not for the group cleanup.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: January 15 2008 at 17:09 | IP Logged Quote dhoward

Also, since this is supposed to fire only when on vacation, I would create a global variable called VACATION. When not on vacation, set this global to 0. When on vacation, set the global to 1. With this in place, all you need to do now is change the "Boolean" field in your trigger from 1 to {VACATION} and it will now only fire when the global VACATION variable is set to 1.

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