|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
Notification that sensors are offline?I've got a half dozen X10 motion sensors and 'bout the same # of door sensors. What drives me nuts is that occasionally one goes off line (dies completely or just dead batteries), and then everything works oddly until I get the chance to track down what's not working. A ways back I tried to write up something for myself to notify me (email) but it never worked, and i'll bet that code is in there somewhere - can someone point me to it? Rick Rick Steeves http://www.sinister.net In reality nothing is more damaging to the adventurous spirit within a man than a secure future - Alexander Supertramp ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ________________________________________________________ To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 |
|
|
Re: Notification that sensors are offline?On Sun, Sep 27, 2009 at 09:43:34PM -0400, misterhouse@... wrote:
> > > I've got a half dozen X10 motion sensors and 'bout the same # of door sensors. > > What drives me nuts is that occasionally one goes off line (dies > completely or just dead batteries), and then everything works oddly > until I get the chance to track down what's not working. > > A ways back I tried to write up something for myself to notify me > (email) but it never worked, and i'll bet that code is in there > somewhere - can someone point me to it? Well, how do you propose that mh knows that an X10 sender is dead? The only thing I can think of is to have a hash that contains all your sensors, initialize it to 24H or more, and each time a sensor is triggered you reset the time for that sensor to 24H. Every minute, you decrement all counters by 1, and if one reaches 0 you put out a message that said sensor might be dead. That's all I can think of. Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/ ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ________________________________________________________ To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 |
|
|
Re: Notification that sensors are offline?On Sun, 27 Sep 2009 21:43:34 -0400
misterhouse@... wrote: > > > I've got a half dozen X10 motion sensors and 'bout the same # of door sensors. > > What drives me nuts is that occasionally one goes off line (dies > completely or just dead batteries), and then everything works oddly > until I get the chance to track down what's not working. > > A ways back I tried to write up something for myself to notify me > (email) but it never worked, and i'll bet that code is in there > somewhere - can someone point me to it? > > Rick X10 security motion and door/window sensors have a "heartbeat" and transmit their current status every 60 to 90 minutes. They also include a bit in each transmission which is set when the battery is low. Marc's suggestion of setting a countdown timer at each received transmission, periodically counting it down, and sending a message if the timer reaches zero is the way to go. Non-security X10 motion sensors have neither a heartbeat nor a low battery flag, so unless you're certain they will be triggered at least once daily (possibly by the built-in dawn/dusk sensor), you're out of luck. Regards, Charles Sullivan ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ________________________________________________________ To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 |
|
|
Notification that sensors are offline?misterhouse@... writes:
> > > I've got a half dozen X10 motion sensors and 'bout the same # of door sensors. > > What drives me nuts is that occasionally one goes off line (dies > completely or just dead batteries), and then everything works oddly > until I get the chance to track down what's not working. > > A ways back I tried to write up something for myself to notify me > (email) but it never worked, and i'll bet that code is in there > somewhere - can someone point me to it? Motion_Item (part of the Lighting, Occupancy, Motion, Presence object set, but can be used alone) has an inactivity alarm for motion sensors which is intended for just this use. See the code example in lib/Motion_Item.pm --Brad ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ________________________________________________________ To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 |
|
|
Re: Notification that sensors are offline?Thanks, that's what I was looking for! Rick At 12:50 PM 9/30/2009, Brad Bosch wrote: >misterhouse@... writes: > > > > > > I've got a half dozen X10 motion sensors and 'bout the same # of > door sensors. > > > > What drives me nuts is that occasionally one goes off line (dies > > completely or just dead batteries), and then everything works oddly > > until I get the chance to track down what's not working. > > > > A ways back I tried to write up something for myself to notify me > > (email) but it never worked, and i'll bet that code is in there > > somewhere - can someone point me to it? > >Motion_Item (part of the Lighting, Occupancy, Motion, Presence object >set, but can be used alone) has an inactivity alarm for motion >sensors which is intended for just this use. > >See the code example in lib/Motion_Item.pm > >--Brad > >------------------------------------------------------------------------------ >Come build with us! The BlackBerry® Developer Conference in SF, CA >is the only developer event you need to attend this year. Jumpstart your >developing skills, take BlackBerry mobile applications to market and stay >ahead of the curve. Join us from November 9-12, 2009. Register now! >http://p.sf.net/sfu/devconf >________________________________________________________ >To unsubscribe from this list, go to: >http://sourceforge.net/mail/?group_id=1365 ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ________________________________________________________ To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 |
|
|
Re: Notification that sensors are offline?Back to tinkering with this - not working for me.
items.mht: X10MS, L5, Yard2_Motion, Front(0;1), Motion, Motion_Sensors MOTION, Yard2_Motion, Motion_Yard2 monitor_sensors.pl (which is enabled) $Motion_Yard2->set_inactivity_alarm( 48, "&net_mail_send(subject => 'MH: Dead Sensor', text => 'Yard 2 motion detector battery may be dead');" ); # In hours Any ideas why? I use &net_mail_send in other places and it's working. Rick On Wed, Sep 30, 2009 at 12:50 PM, Brad Bosch <bradbosch@...> wrote:
------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ________________________________________________________ To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 |
|
|
Re: Notification that sensors are offline?Rick Steeves wrote:
> Back to tinkering with this - not working for me. > > items.mht: > > X10MS, L5, Yard2_Motion, Front(0;1), Motion, > Motion_Sensors > MOTION, Yard2_Motion, Motion_Yard2 > > monitor_sensors.pl <http://monitor_sensors.pl> (which is enabled) > $Motion_Yard2->set_inactivity_alarm( 48, "&net_mail_send(subject => 'MH: > Dead Sensor', text => 'Yard 2 motion detector battery may be dead');" ); > # In hours > > > Any ideas why? I use &net_mail_send in other places and it's working. no; but, I would add some debug statements in Motion_Item.pm just before and after the eval statement that invokes the alarm action. In svn, it's around line 115. I'd probably add some debug statement prior to the eval statement indicating the eval is about to be invoked (that way you know that the timer is attempting to run net_mail_send. Then, after the eval statement I'd print out $@ if $@ exists (i.e., print the error if one occurred during the eval). ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ________________________________________________________ To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 |
|
|
Re: Notification that sensors are offline?At 02:47 PM 10/14/2009, Gregg Liming wrote:
>no; but, I would add some debug statements in Motion_Item.pm just before >and after the eval statement that invokes the alarm action. In svn, >it's around line 115. I'd probably add some debug statement prior to >the eval statement indicating the eval is about to be invoked (that way >you know that the timer is attempting to run net_mail_send. Then, after >the eval statement I'd print out $@ if $@ exists (i.e., print the error >if one occurred during the eval). I believe I've found the problem. Following the instructions without thinking, I had: $Motion_Yard2->set_inactivity_alarm( 48, "&net_mail_send(subject => 'MH: Dead Sensor', text => 'Yard 2 motion detector battery may be dead');" ); That was just in the general code, which means, I think, to reset the inactivity alarm every single time it looped through the code, not executing. I can see a couple of (minor) improvements to that code: -reset the timer after an alert -clarify that it's an intialize to set the inactivity alarm -Update so that the default log event indicates the correct # of hours, instead of a flat 24. but I'm not a SVN person. Best way to check them in? Rick ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ________________________________________________________ To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 |
|
|
Re: Notification that sensors are offline?At 09:52 PM 10/14/2009, Rick Steeves wrote:
>I can see a couple of (minor) improvements to that code: >-reset the timer after an alert >-clarify that it's an intialize to set the inactivity alarm >-Update so that the default log event indicates the correct # of >hours, instead of a flat 24. I also ended up making changes that would only apply to me. For purposes of whether my security sensors are working, 'I tweaked it so that 'normal' also counts as still there, so the sensors that don't get triggered often (like my back door) won't report battery dead until they're not reporting alert OR normal. rick ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ________________________________________________________ To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 |
| Free embeddable forum powered by Nabble | Forum Help |