| Author |  | 
      
        | niels Newbie
 
  
 
 Joined: September 23 2007
 Location: United States
 Online Status: Offline
 Posts: 12
 | 
          Has anyone figured out whether there's a way to fire a trigger when the PH computer is running on UPS power?
           | Posted: September 29 2007 at 23:47 | IP Logged |   |  
           | 
 |  
 I happen to be running APC's PowerChute utility, don't know if that has a hook that anyone knows of?
 
 Alternately, since the UPS shows up as a battery in Windows, and since switching to UPS looks the same on this machine as switching to battery power on a laptop, I guess it would also be possible to simply look at the Windows power management and figure this out.
 
 Either way, it would be a pretty good indicator that power is out / came back, which will allow for code to get everything back in sync when the power comes back on.
 
 Niels.
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | cmhardwick Senior Member
 
  
  
 Joined: July 08 2006
 Location: United States
 Online Status: Offline
 Posts: 290
 | 
          It would be a nice way to have a history log of power outages, etc, since sometime the utilities that come free with various UPS don't do the logging.
           | Posted: September 30 2007 at 09:46 | IP Logged |   |  
           | 
 |  
 __________________
 Cicero, Enjoying automation!
 | 
       
        | Back to Top |       | 
       
       
        |  | 
        | gatchel Newbie
 
  
 
 Joined: December 21 2006
 Location: United States
 Online Status: Offline
 Posts: 24
 | 
          If you have an elk or an input of some sort you can simply wire a 120v relay powered from a standard outlet to the input. They also make this:
           | Posted: September 30 2007 at 11:52 | IP Logged |   |  
           | 
 |  
 http://www.winland.com/PS-110.htm
 
 
 there is a built in delay that may or may not be beneficial.
 
 
 Edited by gatchel - September 30 2007 at 11:54
 
 __________________
 Sign Here:____________________
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | BeachBum Super User
 
  
  
 Joined: April 11 2007
 Location: United States
 Online Status: Offline
 Posts: 1880
 | 
          There is also a message generated in SDM when the power is restored but to my knowledge PH does not catch it. I run on a laptop and face a recovery problem with X10 devices when there is a power failure. Insteon pretty much takes care of itself.
           | Posted: September 30 2007 at 12:33 | IP Logged |   |  
           | 
 |  
 __________________
 Pete - X10 Oldie
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | sharby Groupie
 
  
 
 Joined: May 13 2007
 Location: United States
 Online Status: Offline
 Posts: 50
 | 
          You can also put a "tap" on the serial port between the APC and the serial port to the computer (running Powerchute). You can then figure out the ASCII commands that the battery backup sends and write a complete ruleset within Powerhome.
           | Posted: September 30 2007 at 19:13 | IP Logged |   |  
           | 
 |  
 -=*Sharby*=-
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | cmhardwick Senior Member
 
  
  
 Joined: July 08 2006
 Location: United States
 Online Status: Offline
 Posts: 290
 | 
          not all are serial, some are USB now, but I assume same principle would apply
           | Posted: October 01 2007 at 09:44 | IP Logged |   |  
           | 
 |  
 __________________
 Cicero, Enjoying automation!
 | 
       
        | Back to Top |       | 
       
       
        |  |