We have moved at community.getvera.com

Author Topic: [_CODE_] ADD - Alerter for Drowsy Devices V2.6  (Read 62556 times)

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #30 on: January 01, 2011, 04:56:45 pm »
@mda

Thank you for sending me the logfiles.

Something is seriously wrong with your neighbors.  :-\

Your Master Bed Light (id 2) has neighbors 1,3,7,12,13,14,17,26,34, but there is no device with id 3 ...
In other words, the neighbors of your devices and the list of your devices are inconsistent.

I'll add some code to ADD to check for this kind of inconsistency.

If the inconsistency persists for more than two days, I'd suggest opening a support ticket.
« Last Edit: January 02, 2011, 06:51:06 am by Ap15e »

Offline mda

  • Sr. Member
  • ****
  • Posts: 464
  • Karma: +9/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #31 on: January 01, 2011, 10:32:09 pm »
hmmm... i'll try excluding that light and re-including it, then healing the network, then i'll run the debug again and see if its any better. thanks!

Offline mda

  • Sr. Member
  • ****
  • Posts: 464
  • Karma: +9/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #32 on: January 02, 2011, 01:28:00 am »
did not fix it. in fact, many of my devices have 3 as a neighbor, and i don't have a device ID 3 (i have a device with Alt ID == 3, but not id == 3, in case that matters.) I opened at ticket #9322 with tech support. thanks for all your help!

Offline mda

  • Sr. Member
  • ****
  • Posts: 464
  • Karma: +9/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #33 on: January 02, 2011, 12:35:16 pm »
@Ap15e

Any thoughts on those duplicates in the scene controller? Ishtar steal problem or a script issue, or?

Thanks!

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #34 on: January 02, 2011, 01:42:00 pm »
@mda

Please test the latest version (V1.6). V1.6 should output a list of inconsistencies. If there are inconsistencies, the matrix won't be generated.

Offline michaelk

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +0/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #35 on: January 03, 2011, 10:31:10 pm »
thanks a pile!


Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #36 on: January 04, 2011, 03:45:15 am »
Please upgrade to ADD V1.8. There was a bug in earlier versions of ADD that could cause duplicate entries in the routing marix.

Offline sjolshagen

  • Sr. Member
  • ****
  • Posts: 416
  • Karma: +5/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #37 on: January 04, 2011, 09:59:07 am »
I could be missing something, but it seems that v1.8 has a (small) bug in that the last device either isn't functioning and the conclusion that everything is a-ok is incorrect, or the data for the last device (#51) is not included in the report?

Code: [Select]
2011-01-04 08:11:05                            1   2   3   4   6   7  12  13  14  15  16  19  21  22  23  43  44  45  46  47  48  49  50  51
--------------------------------------------------------------------------------------------------------------------------------------------
  1 Scene Controller                       |       2   3   4   6   7  12  13  14  15  16  19  21  22  23  43  44  45  46  47  48  49  50   
  2 Roof De-icing cables (front)           |           3   4   6   7  12  13  14  15  16  19      22  23  43  44  45  46  47  48  49       
  3 Roof De-icing cables (back)            |               4   6          13  14  15  16  19  21  22  23  43  44              48  49  50   
  4 Thermostat - Basement                  |                   6   7  12  13  14  15  16  19  21  22  23  43  44  45  46  47  48  49  50   
  6 Ceiling Lights - Basement              |                       7  12  13  14  15  16  19  21  22  23  43  44  45  46  47  48  49  50   
  7 Basement Motion Sensor - ZI000         |                                                                                               
 12 Living room - Ceiling Lights           |                              13  14  15  16  19  21  22  23  43  44  45  46  47  48  49  50   
 13 Dining Area - Floor light              |                                  14  15  16  19  21  22  23  43  44  45  46  47  48  49  50   
 14 Office Lamp                            |                                      15  16          22  23  43  44  45  46  47      49  50   
 15 Bedroom Fan                            |                                          16  19  21  22  23  43  44  45          48  49  50   
 16 South-West Window in-wall outlet       |                                              19  21  22  23  43  44  45  46  47  48  49       
 19 Battery for Humidity/Temp              |                                                                                               
 21 Outdoor 3-in-1                         |                                                                                               
 22 1st floor Thermostat                   |                                                          23  43  44  45  46  47  48  49  50   
 23 3/4 Bath Lights & Fans                 |                                                              43  44  45          48  49  50   
 43 Den: Heated Floor Switch               |                                                                  44  45  46  47  48  49  50   
 44 Thermostat - 2nd Floor                 |                                                                                  48  49  50   
 45 Garage & Outdoor Lights Controller |                                                                                  48  49  50   
 46 Garage Light                           |                                                                                  48  49  50   
 47 Outside Light & Camera             |                                                                                  48  49  50   
 48 Kitchen Counter Lights                 |                                                                  44      46  47      49  50   
 49 1st to 2nd floor stairs                |                                                                  44      46  47          50   
 50 Motion Sensor - Garage                 |                                                                  44      46  47               
 51 Motion: Front Door                     |                                                                  44      46  47               

I'm alive, no malfunctioning battery operated devices right now.
Vera3/UI5 @ v1.5.622

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #38 on: January 04, 2011, 10:24:26 am »
Are you sure that device #51 has neighbors ('Settings' tab -> 'Neighbors')?

Please post its:

Neighbors
Capabilities
WakeupInterval (from the 'Advanced' tab)
LastWakeup (from the 'Advanced' tab)

« Last Edit: January 04, 2011, 10:28:28 am by Ap15e »

Offline guessed

  • Community Beta
  • Master Member
  • ******
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Re: Alerter for Drowsy Devices (ADD)
« Reply #39 on: January 04, 2011, 01:44:24 pm »
@Ap15e, can you also add this data to the report:

    "Role"
    "VersionInfo"

from...
    "urn:micasaverde-com:serviceId:ZWaveNetwork1"

from DeviceId = 1 using luup.variable_get(...)

which will return a string like:
    "Suc SIS:YES PRI:YES"
    "2.78 L:1"


If you want to have fun, you can also print HomeID

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #40 on: January 05, 2011, 06:46:48 am »
@guessed

Done.

Offline guessed

  • Community Beta
  • Master Member
  • ******
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Re: Alerter for Drowsy Devices (ADD)
« Reply #41 on: January 05, 2011, 10:08:24 am »
Thanks!

Offline Les F

  • Hero Member
  • *****
  • Posts: 567
  • Karma: +7/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #42 on: January 08, 2011, 11:51:01 am »

Anyone had a problem with SMTP error 451???   

When I first tested the script I got email.  Then I pulled battery out of an hsm100 and did not get any error messages.  Added a quick log entry to the smtp call and got this back...

50      01/08/11 11:41:12.994   luup_log:0: smtp failure 451 See http://pobox.com/~djb/docs/smtplf.html. <0x2c0c>

So my mail server pointed me to a website... it basically says that all lines must be end in <CR><LF>. ah Or as an old c programmer its not happy with just a \n  it wants a \r\n

Google+ http://bit.ly/2MAVlkR / Instagram: http://bit.ly/2lIcsFT / Pinterest http://bit.ly/2KCSYRm (Yes, Pinterest is for guys too! take a look)

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #43 on: January 08, 2011, 12:34:59 pm »
@Les F

Do you know whether smtp.send appends <CRLF>.<CRLF> to the mail data?

Offline Les F

  • Hero Member
  • *****
  • Posts: 567
  • Karma: +7/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #44 on: January 08, 2011, 01:30:08 pm »

Trying to dig around now to see what I can find out.   Was half tempted to fire up a linux vm running sendmail to see what was really coming in.   (Times like this I wish I had tcpdump on vera!)  Might try to get downstream from vera and capture the smtp session to see if the whole message has a problem, or just one line in it...

Will post if I come up with anything on smtp.send or my other angle...

Les

Google+ http://bit.ly/2MAVlkR / Instagram: http://bit.ly/2lIcsFT / Pinterest http://bit.ly/2KCSYRm (Yes, Pinterest is for guys too! take a look)