Author |
|
WayneW Groupie
Joined: March 29 2005 Location: United States
Online Status: Offline Posts: 50
|
Posted: September 28 2007 at 08:22 | IP Logged
|
|
|
Is there a fairly simple way to produce a log of my Insteon devices and when they changed? I know I can use the "device status" screen to see the timestamp of the last change, but I am interested in what happened & when, when I am not looking.
I confess that I only use PH for Insteon linking and loading into the M1XSP.
I really only need three things - the device name, the time/date stamp and what the device was set to.
|
Back to Top |
|
|
jbbtex Senior Member
Joined: February 15 2007 Location: United States
Online Status: Offline Posts: 181
|
Posted: September 28 2007 at 10:46 | IP Logged
|
|
|
Under the Reports Menu select Events Log.
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: September 29 2007 at 22:11 | IP Logged
|
|
|
Wayne,
You could use the Event log and filter for just the Insteon events or even do a SQL statement to try and extract just the Insteon commands. However, some commands are direct and some are group and knowing what happened within a group would not be easy.
However, it should be simple enough to do what you want for future Insteon transactions. To set this up, open the PowerHome Explorer and go to the Triggers section. I would setup a trigger as follows:
INSTEON CHANGE
Insteon Device Change
Raw Formula
ph_writefile("insteonchangelog.txt",0,string(today(),"yyyy-m m-dd hh:mm:ss") + "~t" + ph_getvar_s(2,10) + "~tFrom: " + ph_getvar_s(1,9) + "~tTo: " + ph_getvar_s(1,10) + "~r~n")
Enabled
Insteon Device Chg
[ALL]
1
(Any)
[LOCAL9] <> [LOCAL10]
This should do it. Anytime an Insteon device changes, including via a group, it will fire this trigger. Since you've chosen [ALL], it will fire this trigger for each device that is affected. Since the Boolean field is [LOCAL9] <> [LOCAL10], it will ONLY write an entry to the log if the status of the device actually changes.
Hope this helps,
Dave.
|
Back to Top |
|
|
cmhardwick Senior Member
Joined: July 08 2006 Location: United States
Online Status: Offline Posts: 290
|
Posted: September 30 2007 at 09:40 | IP Logged
|
|
|
Ooooh, I like the boolean there. I get SO MANY extra triggers on my setup to update xlobby, that it sometimes can't keep up (cleanup messages, etc). Gotta remember to put that in when I get home!
Little things like this is why I try to read ALL the new messages. Even if the topic may not apply to my situation, there are often little tweaks that will help my other situations
__________________ Cicero, Enjoying automation!
|
Back to Top |
|
|
|
|