Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Insteon change log Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
WayneW
Groupie
Groupie


Joined: March 29 2005
Location: United States
Online Status: Offline
Posts: 50
Posted: September 28 2007 at 08:22 | IP Logged Quote WayneW

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 View WayneW's Profile Search for other posts by WayneW
 
jbbtex
Senior Member
Senior Member


Joined: February 15 2007
Location: United States
Online Status: Offline
Posts: 181
Posted: September 28 2007 at 10:46 | IP Logged Quote jbbtex

Under the Reports Menu select Events Log.
Back to Top View jbbtex's Profile Search for other posts by jbbtex
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: September 29 2007 at 22:11 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
cmhardwick
Senior Member
Senior Member
Avatar

Joined: July 08 2006
Location: United States
Online Status: Offline
Posts: 290
Posted: September 30 2007 at 09:40 | IP Logged Quote cmhardwick

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 View cmhardwick's Profile Search for other posts by cmhardwick Visit cmhardwick'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