Author |
|
tbeckman Senior Member
Joined: December 30 2007 Location: United States
Online Status: Offline Posts: 149
|
Posted: January 13 2008 at 01:14 | IP Logged
|
|
|
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 |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: January 13 2008 at 12:00 | IP Logged
|
|
|
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 |
|
|
tbeckman Senior Member
Joined: December 30 2007 Location: United States
Online Status: Offline Posts: 149
|
Posted: January 13 2008 at 21:00 | IP Logged
|
|
|
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 |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: January 13 2008 at 23:36 | IP Logged
|
|
|
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 |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: January 15 2008 at 17:09 | IP Logged
|
|
|
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 |
|
|