From: Matthew W. <mat...@us...> - 2007-01-06 19:56:25
|
Joey French wrote: > Okay, so here it is. It is important to note that my cm11 is not > functioning properly, and I have since stopped using it on my home > setup. However, I would still like to implement this functionality to > some extent, and would LOVE to see it used on other, more reliable > interfaces (so far, I don't know which to buy to replace mine). Joey, It looks like the Generic_Item $Power_Supply (defined in mh/code/common/mh_control.pl) will be set to 'Restored' for one pass when the CM11 sends a power fail detected signal. So, the best way to trigger off this would be something like: $Power_Supply->tie_event("&my_neat_subroutine",'Restored'); Matt |