The Vera Community forums have moved!

Advanced => Programming => Plugins & Plugin Development => Topic started by: Ap15e on December 25, 2010, 04:49:53 pm

Title: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: Ap15e on December 25, 2010, 04:49:53 pm
EOL, unsupported.

ADD addresses the missing feature documented at http://bugs.micasaverde.com/view.php?id=1244.
It was inspired by the thread at http://forum.micasaverde.com/index.php?topic=5100.0 and is meant to be used within a scene ('Luup' tab) with an interval based timer.

If a battery operated device is drowsy (defined as: 'current time' - LastWakeup > sensitivity * WakeupInterval), ADD will send an email to an address of your choice. In addition, ADD can send heartbeat messages.

Installation:
Create a new scene, copy the Lua code into the 'Luup' tab, adjust the user adjustable variables in the Lua code (you have to modify the SMTP server settings), 'Save lua', setup 'Timers', SAVE

Download:
https://docs.google.com/leaf?id=0Bz4omZm4gYcsNTVlYTlhOTItODM1ZS00NmRkLWJiM2MtNjU3ZTgxMjJhMjI0&hl=en_US&authkey=CICPpuwJ

Sample output:

Code: [Select]
Vera's Z-Wave routing matrix

2011-02-07 15:56:43           1  36  83  84  89  91  94 111 125 129 131 134 135 139 140 142 144 146 151 154 157 162 167 171 174 181 183 184 185
-----------------------------------------------------------------------------------------------------------------------------------------------
  1 Scene Controller      |      36  83  84  89  91  94 111 125         134 135 139 140 142 144 146 151     157             174 181           
 36 B  Wandspiegellampe   |          83  84      91  94     125                                             157             174 181           
 83 AZ Deckenlampe        |              84      91  94 111 125 129                         144     151     157             174 181           
 84 AZ Schreibtischlampe  |                      91  94                                     144                             174 181           
 89 WZ Stehlampe West     |                                                                 144     151 154                 174               
 91 FL Bewegungsmelder    |                             111 125                             144     151 154 157             174               
 94 AZ Tuerkontakt        |                             111 125                             144     151 154 157             174               
111 AR Abstellraumlampe   |                                 125                             144     151 154 157             174 181           
125 K  USL                |                                                                 144     151 154                     181           
129 K  3-in-1             |                                                                                                                   
131 WZ Rollladen S        |                                                                             154                 174               
134 WZ Danfoss O          |                                                                 144     151 154                 174               
135 AZ 3-in-1             |                                                                                                                   
139 WZ Danfoss N          |                                                                                                                   
140 SZ 3-in-1             |                                                                                                                   
142 B  Danfoss            |                                                                                                                   
144 K  Deckenlampe Kueche |                                                                                 157             174 181           
146 B  3-in-1             |                                                                                                                   
151 WZ Stehlampe Ost      |                                                                                                     181           
154 WZ Rollladen W        |                                                                                                 174 181           
157 SZ Deckenlampe        |                                                                                                 174 181           
162 AZ Taster 2f          |                                                                                                                   
167 TR Scene Controller   |                                                                                                                   
171 AR Motion Sensor      |                                                                                                                   
174 SZ Window Covering    |                                                                                                     181           
181 WZ 3-in-1             |                                                                                                                   
183 AZ 2f Mar             |                                                                                                                   
184 Taster 2f             |                                                                                                                   
185 Remotec Z-URC 550EU   |                                                                                                                   

dot:
https://chart.googleapis.com/chart?...

neato:
https://chart.googleapis.com/chart?...

twopi:
https://chart.googleapis.com/chart?...

circo:
https://chart.googleapis.com/chart?...

fdp:
https://chart.googleapis.com/chart?...

 91 FL Bewegungsmelder                      : Last wakeup   562 WakeupInterval(s) ago (WakeupInterval:   1800 seconds, BatteryLevel:    1)

139 WZ Danfoss N                            : Battery level    8, last battery report     0 hour(s) ago
 91 FL Bewegungsmelder                      : Battery level    1, last battery report    50 hour(s) ago


LastUpdate          : 1297088640 (2011-02-07 15:24:00)
LastDongleBackup    : 1297026447 (2011-02-06 22:07:27)
AutoConfigure       : nil
NetStatusID         : 1
NetStatusText       : #131: Getting the name
ComPort             : /dev/usb/tts/0
NodeID              : XXX
VersionInfo         : 2.78 L:1
HomeID              : House: XXXXX Node 1 Suc 1
Role                : Suc SIS:YES PRI:YES
ResetMode           : nil
InclusionMode       : nil
NodeType            : nil
Timeout             : nil
Multiple            : nil
SimulateIncomingData: nil
PollingEnabled      : 1
PollDelayInitial    : 20
PollDelayDeadTime   : 10
PollMinDelay        : 10
PollFrequency       : 60
LastError           : Node 139 failed
DelayProcessing     : nil

Signal quality (PollOk / PollNoReply / PollTxFail / failure rate)

 36 B  Wandspiegellampe                        14020     12    nil   0 %
 83 AZ Deckenlampe                             13006    816    nil   6 %
167 TR Scene Controller                          nil    nil    nil   0 %
 84 AZ Schreibtischlampe                       13940     23    nil   0 %
125 K  USL                                      7878   5013    nil  39 %
134 WZ Danfoss O                                   2    nil    nil   0 %
135 AZ 3-in-1                                   1337      3      1   0 %
171 AR Motion Sensor                             nil    nil    nil   0 %
174 SZ Window Covering                          7803   4602    nil  37 %
140 SZ 3-in-1                                   1377      1      2   0 %
142 B  Danfoss                                   nil    nil    nil   0 %
144 K  Deckenlampe Kueche                      11945   1453    nil  11 %
183 AZ 2f Mar                                    nil    nil    nil   0 %
184 Taster 2f                                    nil    nil    nil   0 %
185 Remotec Z-URC 550EU                          nil    nil    nil   0 %
151 WZ Stehlampe Ost                            9948   2445    nil  20 %
154 WZ Rollladen W                              6085    661    nil  10 %
157 SZ Deckenlampe                              9446   3372    nil  26 %
162 AZ Taster 2f                                 nil    nil    nil   0 %
146 B  3-in-1                                   1379      5      1   0 %
 89 WZ Stehlampe West                           9086    602    nil   6 %
131 WZ Rollladen S                                 1  10225    nil 100 %
139 WZ Danfoss N                                 nil    nil    nil   0 %
181 WZ 3-in-1                                   1091     17      2   2 %
129 K  3-in-1                                    888     18    nil   2 %
111 AR Abstellraumlampe                        10627   2609    nil  20 %
 91 FL Bewegungsmelder                          1007      6      1   1 %
 94 AZ Tuerkontakt                              1794    nil    nil   0 %

ADD 2.4, running time: 1 second(s)

History:
V1.1  adds support for battery level reporting.
V1.2  adds support for Z-Wave routing matrix.
V1.3  adds support for timestamp of Z-Wave routing matrix.
V1.4  fixes a bug if 'Capabilities' does not exist - thanks to dcowan
V1.5  fixes a bug if 'Capabilities' is an empty string - thanks to dcowan
V1.6  checks if a neighbor does exist - thanks to mda
V1.7  adds more checks for neighbor consistency - thanks to mda
V1.7a cosmetic changes
V1.8  renumbered devices fixed
V1.9  adds information about Z-Wave network, version number, running time - thanks to guessed
V2.0  adds compliance with RFC 2821 - thanks to Les F
V2.1  adds battery level report - thanks to Les F
V2.2  adds visualisation of neighbors - thanks to guessed
V2.3  adds the user adjustable variable include_routing_matrix_visualisation
V2.4  adds information about Z-Wave signal quality
V2.5  adds internal device ID to signal quality table
V2.6  updates variables for urn:micasaverde-com:serviceId:ZWaveNetwork1
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: akashk on December 26, 2010, 10:45:06 am
Thanks for the code Ap15e. I will test this out with my hotmail account.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: dcowan on December 27, 2010, 05:13:46 pm
I had to make a change to the Capabilities check

local capabilities = tonumber(string.match(Capabilities,'([%d]*),'))
   if (capabilities ~= nil) and (capabilities< 128)

to stop a nil error.  This made it run.  Then when I run it I get no devices are dead but I know I have one that is.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on December 27, 2010, 05:39:12 pm
@dcowan

Thanks for pointing out the 'Capabilities' bug. Fixed in version V1.4.

I would like to find out why your dead device doesn't get listed by ADD:

Title: Re: Alerter for Drowsy Devices (ADD)
Post by: renato on December 27, 2010, 06:32:38 pm
this is too complicated for me but i am saving it anyway and apply it once i become familiar with lua code (when is a big ?). thanks.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: denix on December 27, 2010, 07:11:45 pm
Thanks! Seems to work... :)

I just had to remove "user = SMTP_AUTH_USER" and "password = SMTP_AUTH_PW" lines from smtp.send() call, as my local mail server doesn't require authentication for local senders... :)
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: mda on December 28, 2010, 01:34:34 am
Thanks for the great code Ap15e !

if you have a moment, could you explain 'sensitivity' a bit?

thanks.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: mda on December 28, 2010, 02:32:14 am
...and one more question if i may:

the routing matrix generated shows:

   36 Breakfast Light        |                                                                              37

but that device in UI4 shows the following neighbors: 1,3,4,9,11,12,13,14,15,16,29,35,

if i understand correctly, i would have expected the emailed routing matrix to show 1,3,4,9,11,12,13,14,15,16,29, and 35 for device 36. several other devices have similar discrepancies. what am i missing?

thanks
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on December 28, 2010, 04:53:58 am
sensitivity explained:

Code: [Select]
WakeupInterval = 1800 seconds
LastWakeup     = 11:00
time now       = 11:31

age of last wakeup = time now - LastWakeup = 1860 seconds

For sensitivity = 1:
ADD generates a report for this device, because 'age of last wakeup' > sensitivity * WakeupInterval

For sensitivity = 2:
ADD does not generate a report for the device, because 'age of last wakeup' < sensitivity * WakeupInterval
ADD would generated a report for the device, if 'age of last wakeup' > 2 * 1800 seconds = 1 hour

The precision of the timer of the battery operated devices is limited. Therefore, a device configured with WakeupInterval 1800 seconds could send reports every 1820 seconds. In order to avoid false alerts, sensitivity should be > 1.

For critical applications (we all know that we mustn't use Vera for such applications ...) I would suggest setting sensitivity to 1.2. This allows for a timer deviation of 20%.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on December 28, 2010, 05:00:35 am
Quote
the routing matrix generated shows:

   36 Breakfast Light        |                                                                              37

but that device in UI4 shows the following neighbors: 1,3,4,9,11,12,13,14,15,16,29,35,

if i understand correctly, i would have expected the emailed routing matrix to show 1,3,4,9,11,12,13,14,15,16,29, and 35 for device 36. several other devices have similar discrepancies. what am i missing?

The neighbors are listed in the columns, not in the rows. If this does not answer your question, would you mind posting your matrix?
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: dcowan on December 28, 2010, 08:13:30 am
I still get

LuaInterface::CallFunction-3 Scene  12 failed [string "function scene_8()..."]:102: attempt to compare nil with number <0x2c0c>

unless I add a nil check before the tonumber call
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: dcowan on December 28, 2010, 08:44:54 am
I put a log statement in to test Capabilities and I get this from one device

50      12/28/10 7:42:25.840    luup_log:0: Capabilities= <0x340e>
50      12/28/10 7:42:25.841    luup_log:0: Capabilities=210,156,0,4,8,6|49,64,66,67,68,69,112,114,118,129,133,134, <0x340e>
10      12/28/10 7:42:26.440    LuaInterface::CallFunction-3 Scene 12 didn't return anything <0x340e>


I think the ,0x340e is the problem
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on December 28, 2010, 09:24:30 am
The 'Capabilities' of at least one of your devices must be strange (non-nil and not beginning with a number followed by a comma). Of course, we could fix it by checking for non-nil, but I'd like to understand what's going on.

Quote
Capabilities= <0x340e>
looks strange (empty string?)

Could you log the Capabilities of all your devices, please?

Code: [Select]
luup.log( v.description .. ' *'..tostring(Capabilities)..'*')

I would suggest discussing this issue via personal messages and returning to the thread with a final solution.

Just for reference:
http://wiki.micasaverde.com/index.php/ZWave_Command_Classes
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: FIST on December 28, 2010, 11:39:18 am
Thanks for the code! I've edited to use my ISP's SMTP server, but when I run the scene I don't get any emails (heartbeat  = 1 ). I also don't get any errors, but my understanding is that I should still get an email with heartbeat = 1.

Any suggestions??
Thanks!
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on December 28, 2010, 04:08:46 pm
@dcowan

V1.5 should work now.

For whatever reason the value of the 'Capabilities' variable for your 'Door Sensor'  is an empty string.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on December 28, 2010, 04:26:46 pm
@FIST

Yes, you should still get an email with 'hearbeat = 1' (in intervals as defined by the timer of your scene).

Please try the latest version (V1.5).

If V1.5 does not work from a scene, copy the code into the 'MiOS developers' -> 'Test Luup code (Lua)' window.
If the code fails there, chances are that your mail settings are wrong.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: FIST on December 28, 2010, 06:51:23 pm
Ap15e,

I copy/pasted exactly what you have - still wasn't getting an email so I used the smtp code from guessed post (http://forum.micasaverde.com/index.php?topic=3584.msg17474#msg17474) which looks exactly like yours and it works great!

Quick question, though, it's saying that one of my battery devices is malfunctioning:
15 Pantry Door                             : Last wakeup     2 WakeupInterval(s) ago (WakeupInterval:   1800 seconds, BatteryLevel:   80)


But the device is working just fine... ?

Again - thanks for the code!!
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on December 28, 2010, 06:59:04 pm
Well, the device doesn't wake up as instructed (or Vera does not receive the wakeup notification).
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: mda on December 30, 2010, 12:29:32 am
Thanks. here is my matrix. am i reading this wrong or is it telling me, for example, that my #36 Breakfast Light has no neighbors?

2010-12-29 21:20:39            1   3   4   5   7   9  10  11  12  13  14  15  16  17  26  29  34  35  36  37
------------------------------------------------------------------------------------------------------------
 1 _Scene Controller      |       3   4   4   5   7   7   9      11  12  12  13  13  14  14  15  16  17  17  26  26  29  34  34  35  36   
 3 Master Bed Light       |               5   7   9  10      12  13  14      16  17  26  29  34  35  36   
 4 1st Floor Thermostat   |                   7   9  10      12  13  14  15  16  17  26  29      35  36   
 5 Living Room Lamp       |                                                                               
 7 Entry Sensor           |                       9      11      13  14  15  16          29               
 9 Living Room Big Lamp   |                          10      12      14      16      26  29  34  35  36   
10 Front Door Lock        |                                          14  15  16          29               
11 2nd Floor Thermostat   |                                  12  13  14      16  17  26      34  35  36  37
12 Master Closet Light    |                                      13          16  17  26      34  35  36   
13 Den Light              |                                          14      16  17  26      34  35  36   
14 Entry Light Outside    |                                              15  16  17  26  29  34      36   
15 Dining Room Light      |                                                          26  29          36   
16 1st Floor Hall Light   |                                                      17  26          35  36   
17 Master Closet Sensor   |                                                          26                   
26 Master Bathroom Light  |                                                              29  34  35       
29 Living Room Light      |                                                                          36   
34 Master Bathroom Sensor |                                                                               
35 Kitchen  Light         |                                                                          36   
36 Breakfast Light        |                                                                               
37 Kitchen sensor         |                                                                               


per Vera's UI, that device #36 has the following neighbors: 1,3,4,9,11,12,13,14,15,16,29,35,

thanks.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on December 30, 2010, 04:47:42 am
If a device with id i has a a neighbor with device id j, you'll find i at the row for device j and at the column for device i:

Just check column 36: There is a '36' in the rows for all devices with device ids 1,3,4,9,11,12,13,14,15,16,29,35.

BTW, the row '1 _Scene Controller' looks strange (duplicate device ids).
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: mda on December 31, 2010, 02:05:21 am
thanks Ap153e, makes sense now.

do you think i should open a tech support case on the odd looking scene controller line? how would i describe the problem most clearly to them? thanks.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on December 31, 2010, 08:26:03 am
@mda

I can't rule out a bug in my code. Would you mind running the attached code (adjust the mail server setting) and sending the result via personal message?
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: denix on December 31, 2010, 03:05:02 pm
More generic question:

Why neighbors can only be with lower device IDs? Meaning device #4 can only have neighbors with IDs < 4... On the other hand - the higher device's ID, the more neighbors it can have.

Trying to "Update Neighbors Nodes" temporarily fixes the issue, but then higher ID nodes are lost after some time...

Anybody knows if this is Z-Wave limitation or a bug?
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on December 31, 2010, 04:07:07 pm
Some - more or less wild - speculations:

Title: Re: Alerter for Drowsy Devices (ADD)
Post by: denix on December 31, 2010, 04:46:42 pm
Some - more or less wild - speculations:

  • The entries above the diagonal are the Z-Wave routing matrix (obviously, at inclusion time a device with Z-Wave ID i does know nothing about a device with Z-Wave ID j > i, which gets added later).
  • Only the inclusion or the exclusion of a device does change the entries above the diagonal.

The normal sequential inclusion is understandable, but:


So, from what I've seen, this diagonal routing matrix is quite common... Weird :)
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on December 31, 2010, 05:02:02 pm
Even without a forced heal/repair devices below the diagonal appear and disappear.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: mda on December 31, 2010, 05:13:45 pm
Ap15e- i have sent you the output via PM. pls PM me if you did not get it. thanks much!
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on January 01, 2011, 06:42:11 am
Quote
Only the inclusion or the exclusion of a device does change the entries above the diagonal.

Counterexample:

Code: [Select]
2010-12-31 15:07:57           1  36  83  84  89  91  94 111 125 129 131 134 135 139 140 142 144 146 151 154 157 160 162 167 171 174 181 182
-------------------------------------------------------------------------------------------------------------------------------------------
  1 Scene Controller      |      36  83  84  89  91  94 111 125 129 131 134 135 139 140 142 144 146 151     157                 174 181   
 36 B  Wandspiegellampe   |          83  84      91  94     125                                             157                 174 181   
 83 AZ Deckenlampe        |      36      84      91  94 111 125                             144     151     157                 174 181   
 84 AZ Schreibtischlampe  |      36  83          91  94                                     144                                 174 181   
 89 WZ Stehlampe West     |                          94                                     144     151 154                     174     182
 91 FL Bewegungsmelder    |      36  83  84             111 125                             144     151 154 157                 174       
 94 AZ Tuerkontakt        |      36  83  84  89         111 125                             144     151 154 157                 174       
111 AR Abstellraumlampe   |          83              94     125                             144     151 154 157                 174 181 182
125 K  USL                |      36  83              94 111                                 144     151 154                         181 182
129 K  3-in-1             |                                                                                                               
131 WZ Rollladen S        |                                                                             154                     174     182
134 WZ Danfoss O          |              84  89         111 125                             144     151 154                     174       
135 AZ 3-in-1             |                                                                                                               
139 WZ Danfoss N          |                                                                                                               
140 SZ 3-in-1             |                                                                                                               
142 B  Danfoss            |                                                                                                               
144 K  Deckenlampe Kueche |          83  84  89      94 111 125                                             157                 174 181 182
146 B  3-in-1             |                                                                                                               
151 WZ Stehlampe Ost      |          83      89      94 111 125                                                                     181 182
154 WZ Rollladen W        |                  89      94 111 125                                                                 174 181 182
157 SZ Deckenlampe        |      36  83              94 111                                 144                                 174 181   
160 SZ Taster 2f          |                                                                                                               
162 AZ Taster 2f          |                                                                                                               
167 TR Scene Controller   |                                                                                                               
171 AR Motion Sensor      |                                                                                 157                           
174 SZ Window Covering    |      36  83  84  89      94 111                                 144         154 157                     181 182
181 WZ 3-in-1             |      36  83  84             111 125                             144     151 154 157                 174       
182 WZ Tannenbaum         |                  89         111 125                             144     151 154                     174       

and

Code: [Select]
2011-01-01 03:00:29           1  36  83  84  89  91  94 111 125 129 131 134 135 139 140 142 144 146 151 154 157 160 162 167 171 174 181 182
-------------------------------------------------------------------------------------------------------------------------------------------
  1 Scene Controller      |      36  83  84  89  91  94 111 125 129 131 134 135 139 140 142 144 146 151     157                 174 181   
 36 B  Wandspiegellampe   |          83  84      91  94     125                                             157                 174 181   
 83 AZ Deckenlampe        |      36      84      91  94 111 125                             144     151     157                 174 181   
 84 AZ Schreibtischlampe  |      36  83          91  94                                     144                                 174 181   
 89 WZ Stehlampe West     |                          94                                     144     151 154                     174     182
 91 FL Bewegungsmelder    |      36  83  84             111 125                             144     151 154 157                 174       
 94 AZ Tuerkontakt        |      36  83  84  89         111 125                             144     151 154 157                 174       
111 AR Abstellraumlampe   |          83              94     125                             144     151 154 157                 174 181 182
125 K  USL                |      36  83              94 111                                 144     151 154                         181 182
129 K  3-in-1             |                                                                                                               
131 WZ Rollladen S        |                                                                             154                     174     182
134 WZ Danfoss O          |              84  89         111 125                             144     151 154                     174       
135 AZ 3-in-1             |                                                                                                               
139 WZ Danfoss N          |      36  83      89             125                             144     151 154 157                 174       
140 SZ 3-in-1             |                                                                                                               
142 B  Danfoss            |                                                                                                               
144 K  Deckenlampe Kueche |          83  84  89      94 111 125                                             157                 174 181 182
146 B  3-in-1             |                                                                                                               
151 WZ Stehlampe Ost      |          83      89      94 111 125                                                                     181 182
154 WZ Rollladen W        |                  89      94 111 125                                                                 174 181 182
157 SZ Deckenlampe        |      36  83              94 111                                 144                                 174 181   
160 SZ Taster 2f          |                                                                                                               
162 AZ Taster 2f          |                                                                                                               
167 TR Scene Controller   |                                                                                                               
171 AR Motion Sensor      |                                                                                 157                           
174 SZ Window Covering    |      36  83  84  89      94 111                                 144         154 157                     181 182
181 WZ 3-in-1             |      36  83  84             111 125                             144     151 154 157                 174       
182 WZ Tannenbaum         |                  89         111 125                             144     151 154                     174       

The Danfoss devices are battery operated RA plus-w, WakeUpinterval is set to 900 seconds
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on January 01, 2011, 09:50:25 am
@mda

Code: [Select]
3 Master Bed Light       |              
4 1st Floor Thermostat   |            
5 Living Room Lamp  

should be

Code: [Select]
2 Master Bed Light       |              
3 1st Floor Thermostat   |            
4 Living Room Lamp  

I can't find a reason for the wrong ADD output. Please run the new debugging script on your Vera and please send the result via PM.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: denix on January 01, 2011, 02:25:35 pm
@Ap15e, since upgrading to 1142 last night, I started seeing nodes below the diagonal... I wonder if Aaron's changes to Z-Wave stack caused it :)
Unfortunately, the nodes below the diagonal still tend to disappear over time... :(
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e 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.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: mda 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!
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: mda 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!
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: mda 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!
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e 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.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: michaelk on January 03, 2011, 10:31:10 pm
thanks a pile!

Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e 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.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: sjolshagen 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.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e 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)

Title: Re: Alerter for Drowsy Devices (ADD)
Post by: guessed 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
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on January 05, 2011, 06:46:48 am
@guessed

Done.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: guessed on January 05, 2011, 10:08:24 am
Thanks!
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Les F 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

Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on January 08, 2011, 12:34:59 pm
@Les F

Do you know whether smtp.send appends <CRLF>.<CRLF> to the mail data?
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Les F 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

Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Les F on January 08, 2011, 01:40:17 pm
Found this: not sure it applies to version in vera... but its good reading.

http://w3.impa.br/~diego/software/luasocket/smtp.html

Has some good notes in its sample code about what does and doesn't do CRLF conversion...

 body = {
    preamble = "If your client doesn't understand attachments, \r\n" ..
               "it will still display the preamble and the epilogue.\r\n" ..
               "Preamble will probably appear even in a MIME enabled client.",
    -- first part: no headers means plain text, us-ascii.
    -- The mime.eol low-level filter normalizes end-of-line markers.
    [1] = {
      body = mime.eol(0, [[
        Lines in a message body should always end with CRLF.
        The smtp module will *NOT* perform translation. However, the
        send function *DOES* perform SMTP stuffing, whereas the message
        function does *NOT*.
      ]])
    },
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on January 08, 2011, 03:30:35 pm
@Les F

Thank you very much for your research.

From http://w3.impa.br/~diego/software/luasocket/mime.html:

Quote
A, n = mime.dot(m [, B])

Low-level filter to perform SMTP stuffing and enable transmission of messages containing the sequence "CRLF.CRLF".

A is the stuffed version of B. 'n' gives the number of characters from the sequence CRLF seen in the end of B. 'm' should tell the same, but for the previous chunk.

Note: The message body is defined to begin with an implicit CRLF. Therefore, to stuff a message correctly, the first m should have the value 2.

print((string.gsub(mime.dot(2, ".\r\nStuffing the message.\r\n.\r\n."), "\r\n", "\\n")))
--> ..\nStuffing the message.\n..\n..

Note: The smtp.send function uses this filter automatically. You don't need to apply it again.

Please test ADD V2.0. Thanks in advance.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: mda on January 09, 2011, 12:02:42 pm
@Ap15e

Running 2.0 I get this in my email: Role                : Suc SIS:YES PRI:NO

However I have no problem including new z-wave notes with my Vera. Should I not be able to do that if it is not primary? Thanks
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: guessed on January 09, 2011, 12:07:58 pm
You can include nodes as a Secondary Inclusion device if SIS:YES, even though you're not the Primary
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: mda on January 09, 2011, 01:19:55 pm
Thanks. Do I need to reset and rebuild my network to make vera primary or is there no down side to leaving as is? (I have never had another controller, no idea why it is not primary). Thanks for the advice!
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: guessed on January 09, 2011, 02:07:22 pm
We're still trying to work out if/what the downside is.  My Vera2 is in a similar state right now.

If your Network is small, then it may pay to reset and re-register "just in case"
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: mda on January 09, 2011, 04:25:12 pm
Thanks... This script is illuminating :)

Is 1.78 the current firmware for the vera 2 internal "dongle"? If not, can you point me to instructions for updating (I looked but could not find). Thanks again.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Les F on January 09, 2011, 04:50:08 pm

Okay,.. not to add feature creep... but....   ;D

How about defining a variable for battery level and alerting on battery level below that threshold on all battery devices in the network

I would be interested in modules that are working fine but have batteries getting low.  Going back to earlier threads with the fortrezz freeze sensor not reporting in and pipes busting.  It would be great to know when something is getting to the point where it needs a battery changed as well. (As I recall some devices only report the level of battery at the time they were added and not always the current battery level in vera)   

Also.. thanks to you Ap15e and mtf for code and code snippets, I dug in and bought a Lua book on Amazon and am going to get more into this.  Last time I actually bought a programming book was Perl about 8 years ago.  You all have got me back in the coding mood.

Les


Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on January 12, 2011, 10:03:03 am
V2.1 adds support for battery level reports (see section '-- Include a battery level report (Vera firmware >= 1.1.1142').

Firmware >= 1.1.1142 is required, because AFAIK earlier firmware revisions don't support the variable 'BatteryDate'.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: guessed on January 23, 2011, 01:43:48 am
@Ap15e,
If you want to have some fun, you could generate a URL like:
    https://chart.googleapis.com/chart?cht=gv:circo&chl=digraph{2->1;1->3;3->2;22->1;1->22;2;6;1->6;1->5;1->10;5->11;5->12;5->13;5->14;51}

and it'll generate a pseudo-graphical node map, including non-contactable nodes, and the directionality of the neighbor nodes in the ZWave Network.

Of course, it won't come out in the Email, but you can create a Hyperlink there that people can copy/paste if they're interested in seeing it...
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on January 23, 2011, 01:54:17 pm
Excellent idea - but the digraphs get cluttered and difficult to read. Nevertheless, the changes to ADD are trivial and will be incorporated into ADD 2.2.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: guessed on January 23, 2011, 02:15:07 pm
Great stuff, pity Google's autolayout options dont work better. 

Seems like the Circular one (the last diagram) might be the most useful.  did you get any better results with neato if you explicitly set the diagram size?

eg. &chs=2000x2000 or similar?
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on January 23, 2011, 02:47:28 pm
Maximum size is 300000 pixels ...
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on January 23, 2011, 03:28:33 pm
ADD 2.2 adds visualisation of neighbors. Just follow the links in the Email to get to the visualisations. For our purposes, circo seems to be the best layout algorithm.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Les F on January 23, 2011, 05:31:30 pm

2.2 working great!  Nice mapping!  (I have a simple network so its not too cluttered)

Thanks again!

Les
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: denix on January 28, 2011, 05:30:02 pm
Thanks for the great plugin!

Would it be better to move visualization links to the very bottom of the message body or make them optional through a variable in the code?

Another thing I noticed - it doesn't show all my battery devices in the list with corresponding battery levels and last report. It misses one Hawking HRDS1 Door/Window sensor and one FortrezZ WWA-01 water leak alarm. They work fine and show in Vera's Dashboard with sane battery levels. What is the algorithm to include them in the ADD list?
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: denix on January 28, 2011, 10:33:29 pm
BTW, here's a patch to allow SMTP connections w/o authentication by removing SMTP_AUTH_USER/PW variables.

PS. Forum does not allow .patch files...
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on January 29, 2011, 06:39:02 am
ADD V2.3 adds the user adjustable variable include_routing_matrix_visualisation (as suggested by denix).
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on January 29, 2011, 06:52:08 am
Quote
Another thing I noticed - it doesn't show all my battery devices in the list with corresponding battery levels and last report. It misses one Hawking HRDS1 Door/Window sensor and one FortrezZ WWA-01 water leak alarm. They work fine and show in Vera's Dashboard with sane battery levels. What is the algorithm to include them in the ADD list?

Code: [Select]
--
-- Include a battery level report (Vera firmware >= 1.1.1142)
--

 local include_battery_level_report = 1

 local battery_level_threshold      =   20   -- report all devices with battery level     <=   20; set to 255 to get all battery levels
 local battery_level_age_threshold  = 3600   -- report all devices with Now - BatteryDate >= 3600
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: denix on January 29, 2011, 08:38:29 pm
Ah, my bad. Thanks.

Any reason to ignore SMTP change? Am I missing some other obvious existing option? :)
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on January 31, 2011, 11:38:07 am
If MCV publishes the specification for the json files for Luup plugins, I will convert the script into a Luup plugin and incorporate your changes.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: CMRancho on February 01, 2011, 06:31:16 pm
Jeez. I don't know why I find this so overwhelming, but I do. I'd like to use this tool but, being the retard I am, I need step-by-step instructions. I installed DAD because you gave such easy to follow instructions, but this just escapes me. If you have the time, I'd sure appreciate it.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: denix on February 01, 2011, 06:51:22 pm
It's easy :)

Create a scene, at the Timers tab add a timer to it, when you want it to run ADD - preferably at specific time(s) instead of Interval based one, i.e. at 12am and/or 12pm... In the Luup tab, copy the context of ADD plugin and modify some variables in the beginning, at least the first 6 variables after the "BEGIN user adjustable variables" line. Save everything. Now this scene will run ADD at specific times. You can also run it manually by pressing "Run" on the scene in Dashboard.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on February 07, 2011, 10:04:56 am
V2.4 adds information about Z-Wave signal quality.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: anthonyris on February 10, 2011, 01:31:41 pm
Booyah. Thx for ADD. Very useful.

Still seeing 100% on all battery devices, but just do not believe it as batts are at least 6 mos old...

.//A.

V2.4 adds information about Z-Wave signal quality.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: sjolshagen on February 15, 2011, 06:50:55 am
Not sure if the issue is with my battery powered devices, ADD (using v2.4) or Mios (1.1.1186), but for whatever reason, none of the devices are showing the actual battery levels. They all claim to be at 100%, several months after the devices got installed and I'm having a hard time believing that they've not drained any power from the batteries at all, all while working. I have a couple of motion detectors, a couple of 3-in-1's and a temp/humidity sensor that are all battery powered.

I figure, since ADD is the reporting tool I'm using to see this, I'd start here looking for ideas on where to go next.

Thanks,
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on February 15, 2011, 12:10:54 pm
Please check the BatteryLevels on the 'Advanced' tab of your devices. There might be more than one BatteryLevel variable. Hover over the BatteryLevel string to get the name of the service the variable belongs to.

Please post your results.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: saf101 on February 15, 2011, 04:06:01 pm
AP15e
 the version 2.4 I'm running show correct battery levels but 1.1.1183 doesn't it show 100%

from the advance tab battery level = urn.micasaverde-com:ServiceID:HADevice1 on all my battery devices and compared them and mine match the advance tab

Scott
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: myhomeserver on February 25, 2011, 12:21:39 pm
Great Plugin.

Im looking at my signal % and I see some wierdness with the Sunroom Dimmer 1 that shows a high percentage of failed transmissions.  Wierd, since this is one of the closest modules to Vera2. I tried updating neighbors and reconfiguring the node. It's a GE/Jasco Dimmer lamp module. 

Thanks again for any help you guys can provide on this!

----------------------------------------------------------------------------------

Signal quality (PollOk / PollNoReply / PollTxFail / failure rate)

  2 Office-Wall                                 5075     70          1 %
  3 Standing Floor Lamp                         5090     26          1 %
  4 MiniMote Black - Bedroom                     nil    nil    nil   0 %
  5 GE Wireless Z-Wave Keypad                    nil    nil    nil   0 %
  6 GE In-Wall Scene Controller2                 nil    nil    nil   0 %
  8 HRDS Barn Door-Window                        713      4    nil   1 %
  9 Sliding Door Sensor                          nil    nil    nil   0 %
 10 Apt Porch Lights                            5103     12          0 %
 11 Main House Front Porch Lights               5108      7          0 %
 12 Coffee Maker Outlet                         4880    165          3 %
 13 Office Floor Lamp                           4968     57          1 %
 14 FRONTYARD XMAS Lights                       4939     64          1 %
 16 Haleys Fan                                  4974      4          0 %
 17 Floor Lamp                                  5008     13          0 %
 18 Accent Lamp                                 4906    126          3 %
 19 Sunroom Dimmer Lamp 1                        382   4288         92 %
 20 Kitchen Wall Receptacle-R                   4957      3          0 %
 21 Kitchen Wall Receptacle-L                   4934     17          0 %
 22 Mudroom Overhead                            5068      7          0 %
 23 crawlspace fan temporary                    4921      7          0 %
 24 Bedroom Lamp - Kim                          4845     66          1 %
 26 Water Main - OFF is OK                      4349    363          8 %
 27 Basement - Heat Tape                        4824     47          1 %
 30 Garage XMAS WREATH                          4705    144          3 %
 34 APT DOOR -  Deadbolt                         273     16          6 %
 36 _Scene Controller                            nil    nil    nil   0 %
 37 _Scene Controller                            nil    nil    nil   0 %
 38 _Scene Controller                            nil    nil    nil   0 %
 39 _Scene Controller                            nil    nil    nil   0 %
 42 _Scene Controller                            nil    nil    nil   0 %
 43 _Scene Controller                            nil    nil    nil   0 %
 44 _Scene Controller                            nil    nil    nil   0 %
 45 _Handheld Remote                             nil    nil    nil   0 %
 46 _Scene Controller                            nil    nil    nil   0 %
 47 Apt Water, Freeze Alarm                     1715    333    nil  16 %
 50 Garage Downstairs Light                     4683    152          3 %
 51 Guest Bedroom Lamp                          4787     81          2 %
 53 Electric Blanket Appliance                  4850      4          0 %
 54 Sunroom Dimmer Lamp 2                       4884     12          0 %
 55 _Scene Controller                            nil    nil    nil   0 %
 56 _Scene Controller                            nil    nil    nil   0 %
 57 _Scene Controller                            nil    nil    nil   0 %
 58 _Handheld Remote                             nil    nil    nil   0 %
 61 Kitchen Sink TrackLights                    4946     21          0 %
 64 3-in-1 Sensor                               1693    608         26 %
 65 Crawlspace 3-in-1                           1479     19    nil   1 %
 66 FortrezZ Strobe                              731   2272         76 %
 67 SUNROOM Floor Lamp                          4923      7          0 %
 68 FrontDoor Deadbolt                           452     10          2 %
 69 Fortrezz Strobe SSA2                        1143    415         27 %
 75 Desk Lamp                                   2404    179    nil   7 %
 76 Lava Lamp                                   2586     16    nil   1 %
 77 Backyard Outdoor Module                     2257    243    nil  10 %
 78 Aeon SES Pipe Heating Module                2563      5    nil   0 %
 80 _Scene Controller                            nil    nil    nil   0 %
 81 Freeze, Temp, Water Alarm                     95      1    nil   1 %
 83 Aeon Labs Micro Appliance                    360    nil    nil   0 %
 84 Barn Qwikset Door Lock                       nil    nil    nil   0 %
 86 Basement 3-in-1 sensor                        78      9    nil  10 %
 89 Kwikset Basement Door Lock                   nil    nil    nil   0 %
 90 Apt LR Accent Lamp                            81      1    nil   1 %
 91 On/Off Switch                                 50      3    nil   6 %
 92 _Home Energy Monitor                         nil      5    nil  83 %

ADD 2.4, running time: 2 second(s)
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: myhomeserver on March 19, 2011, 09:02:54 am
Just an update, I have been using ADD to send me reports of Vera2's condition every AM, and after the latest beta update and routing hack to update the Z-Wave routing, I see MUCH better results for communication. Compare this to the chart above, Vera is SO MUCH faster now and everything seems to be running nicely although a few devices seem to be having some high % drops, so I'll have to heal the network again...



==========================================================================

Signal quality (PollOk / PollNoReply / PollTxFail / failure rate)

  2 Office-Wall                                   19                 0 %
  3 Standing Floor Lamp                           19                 0 %
  4 MiniMote Black - Bedroom                     nil    nil    nil   0 %
  5 GE Wireless Z-Wave Keypad                    nil    nil    nil   0 %
  6 GE In-Wall Scene Controller2                 nil    nil    nil   0 %
  8 HRDS Barn Door-Window                        729      4    nil   1 %
  9 Sliding Door Sensor                           12    nil    nil   0 %
 10 Apt Porch Lights                              20                 0 %
 11 Main House Front Porch Lights                 20                 0 %
 12 Toaster Oven Outlet - Light                   18                 0 %
 13 Office Floor Lamp                             20                 0 %
 14 FRONTYARD XMAS Lights                         20                 0 %
 16 Haleys Fan                                    20                 0 %
 17 Floor Lamp                                    18                 0 %
 18 Accent Lamp                                   16                 0 %
 19 Sunroom Dimmer Lamp 1                         20                 0 %
 20 Kitchen Wall Receptacle-R                     20                 0 %
 21 Kitchen Wall Receptacle-L                     20                 0 %
 22 Mudroom Overhead                              20                 0 %
 23 crawlspace fan temporary                      19                 0 %
 24 Bedroom Lamp - Kim                            18                 0 %
 26 Water Main - OFF is OK                        18                 0 %
 27 Basement - Heat Tape                          18                 0 %
 30 Garage XMAS WREATH                                               0 %
 34 APT DOOR -  Deadbolt                           1                 0 %
 36 _Scene Controller                            nil    nil    nil   0 %
 37 _Scene Controller                            nil    nil    nil   0 %
 38 _Scene Controller                            nil    nil    nil   0 %
 39 _Scene Controller                            nil    nil    nil   0 %
 42 _Scene Controller                            nil    nil    nil   0 %
 43 _Scene Controller                            nil    nil    nil   0 %
 44 _Scene Controller                            nil    nil    nil   0 %
 45 _Handheld Remote                             nil    nil    nil   0 %
 46 _Scene Controller                            nil    nil    nil   0 %
 47 Apt Water, Freeze Alarm                     2329    471    nil  17 %
 50 Garage Downstairs Light                       18                 0 %
 51 Guest Bedroom Lamp                            18                 0 %
 53 Eric Bedside Lamp                             18                 0 %
 54 Sunroom Dimmer Lamp 2                         18                 0 %
 55 _Scene Controller                            nil    nil    nil   0 %
 56 _Scene Controller                            nil    nil    nil   0 %
 57 _Scene Controller                            nil    nil    nil   0 %
 58 _Handheld Remote                             nil    nil    nil   0 %
 61 Kitchen Sink TrackLights                      18                 0 %
 64 3-in-1 Sensor                                                    0 %
 65 Crawlspace 3-in-1                           1864     20    nil   1 %
 66 FortrezZ Strobe                                                  0 %
 67 SUNROOM Floor Lamp                            19                 0 %
 68 FrontDoor Deadbolt                             1                 0 %
 69 Strobe Alarm SSA2                                                0 %
 75 Desk Lamp                                     19                 0 %
 76 Lava Lamp                                     19                 0 %
 77 Backyard Outdoor Module                       11      1          8 %
 78 Aeon SES Pipe Heating Module                   6     12         67 %
 80 _Scene Controller                            nil    nil    nil   0 %
 81 Freeze, Temp, Water Alarm                    213      2    nil   1 %
 83 Aeon Micro SES Wall Outlet Light              10      9         47 %
 84 Barn Qwikset Door Lock                                           0 %
 86 Basement 3-in-1 sensor                                           0 %
 90 Apt LR Accent Lamp                            19                 0 %
 91 On/Off Switch                                 18                 0 %
 92 Home Energy Monitor                                              0 %
 94 _Door Lock                                                       0 %
 95 Aeon SES Micro Dimmer Track                   10      9         47 %
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: myhomeserver on March 23, 2011, 02:05:46 pm
Any way you can plop the Device ID in there next to the Node? This is a great way to get a listing of your network and it's nice to have a list of Device #'s when you are writing some code and updating scenes....

thanks for a great plugin!
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on March 24, 2011, 06:59:16 am
Done. ADD V2.5 is available from page 1.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: myhomeserver on March 24, 2011, 12:49:00 pm
thanks!  One of my Favorites and I like having my Z-Wave network report every morning when I check my email

Title: Re: Alerter for Drowsy Devices (ADD)
Post by: iflyM3 on March 24, 2011, 08:50:02 pm
o'kay, I am being a really stupid retard here and I really hate asking this but ahh... how do i get this to work with gmail?

I've tried port 25, port 465.  This should be configured for smtp (outbound) correct?

as per google:
Outgoing Mail (SMTP) Server - requires TLS or SSL:    
  smtp.gmail.com (use authentication)
  Use Authentication: Yes
  Port for TLS/STARTTLS: 587
  Port for SSL: 465
Account Name:    
  your full email address (including @gmail.com or @your_domain.com)
Email Address:    
  your email address (username@gmail.com or username@your_domain.com)
Password:    
  your Gmail password

my settings:
  local SMTP_SERVER = "smtp.gmail.com"
  local SMTP_AUTH_USER = "emailadd@gmail.com"
  local SMTP_AUTH_PW = "password"        
  local SMTP_PORT = "25"  (I tried port 465)
  local USER_SENDING = "myvera"
  local USER_RECEIVING = "emailadd@gmail.com"


any help or correcting of my stupidity would be greatly accepted and appreciated!!!  LOL!!  :/
 
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: JOD on March 24, 2011, 09:20:24 pm
Try changing:
local USER_SENDING = "myvera"
to:
local USER_SENDING = "emailadd@gmail.com"

JOD.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: oTi@ on March 24, 2011, 09:34:25 pm
I'm not sure SSL or TLS is supported by smtp.send().
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: iflyM3 on March 24, 2011, 09:37:24 pm
@JOD

-yeah, i tried that too as well as trying port 25 and port 465.


@oTi@

-i'm going to have to agree with you on that one.  does hotmail use SSL or TLS by any chance (do you know of off the top of your head)?

nevermind, i see that it does...
# Windows Live Hotmail SMTP port: 587
# Windows Live Hotmail SMTP TLS/SSL required: yes
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on March 25, 2011, 05:00:21 am
http://forum.micasaverde.com/index.php?topic=3584.msg17491#msg17491

Any taker?  :)
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: JOD on March 25, 2011, 09:48:05 am
Ap15e,

This is working great on my smaller system but it's bogging down and crashing my larger system. I did manage to get one good report that said the scene ran for 44 seconds and I can send you the email if that would help any.... The only graph that worked for me was ftp.

All the other graph URL's:
dot:, neato:, twopi:, circo:, returned "The requested URL /chart... is too large to process"

Is there a way I can remove these four non functioning graph requests from the code? This may reduce the load on the system and help speed up the scene.

I dont know where in the code it can be edited.
for  i = 1,#dottypes
       do
        output_line(dottypes..':')
        output_line('https://chart.googleapis.com/chart?cht=gv:'..dottypes..'&chl=digraph{'..dotstring..'}')
        output_line('')
       end


Any advice?

JOD.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: oTi@ on March 25, 2011, 10:17:35 am
Try changing
Code: [Select]
local dottypes  = { 'dot', 'neato', 'twopi', 'circo', 'fdp' }
to
Code: [Select]
local dottypes  = { 'fdp' }
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: JOD on March 25, 2011, 10:39:44 am
And I thought I checked every line of the code.. :-[

That should do it.

Thanks @OTI.

JOD.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on March 25, 2011, 10:54:04 am
Quote
dot:, neato:, twopi:, circo:, returned "The requested URL /chart... is too large to process"

Looks like a limitation of the Google API - but of course I cannot rule out a problem within ADD.
Please PM the output.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: JOD on March 25, 2011, 12:26:18 pm
I had to send it via email as the output from only one of the five graphs is in excess of 20,000 characters and was rejected.  'The message exceeds the maximum allowed length (20000 characters)"


JOD.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on March 28, 2011, 07:56:33 am
Quote
This is working great on my smaller system but it's bogging down and crashing my larger system. I did manage to get one good report that said the scene ran for 44 seconds and I can send you the email if that would help any.... The only graph that worked for me was ftp.

There is nothing I can do about it, because what you are experiencing is a limitation of Google's API. Your Z-Wave network has 86 nodes and 2195 edges.
 
You could try installing GraphViz ( http://www.graphviz.org/ ) and creating the diagrams on your own (use the string 'digraph{...}' as input for fdp, circo, neato, ...).
 
I've attached some beautiful (but useless ...) visualisations of your Z-Wave network.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Les F on March 28, 2011, 08:01:00 am

Those pictures give a whole new meaning to 'fully meshed network'

Title: Re: Alerter for Drowsy Devices (ADD)
Post by: mcvflorin on March 28, 2011, 08:14:50 am
Nice pictures, Ap15e.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: myhomeserver on April 10, 2011, 07:54:42 am
On ADD, Ive been running it for a few weeks with a new install on Vera2 1.1.1234

I'm wondering on the data collection with polling, and the chart of devices, nodes, polling, and fail %

Is this a collection of Historical data?  I was having an AEON HEM with 85% loss, so I moved it next to Vera and it's been there 2 days, but I still see a very high failure rate.  This seems that the data here is historical, how can I wipe out and start clean, so I can see a fresh report after 24 hours, this should give me a better indication on if the devices are working OK

Thanks!
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: JOD on April 10, 2011, 10:54:28 am
@Ap15e,

Thanks for looking into it, I'm surprised you were able to get neato and circo to work, in both of them you can still see my secondary controller node 91 and my ThinkStick node 7 circling like satellites.

I'm now up to 105 static nodes so fdp stopped working too, but the purpose of the App was for the battery reports which I am still getting every morning.
Thanks again,

JOD.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on April 10, 2011, 11:30:55 am
@myhomeserver

Quote
This seems that the data here is historical, how can I wipe out and start clean, so I can see a fresh report after 24 hours, this should give me a better indication on if the devices are working OK

The data is stored in your configuration file. Go to the 'Advanced tab', set the variables PollOk, PollNoReply, PollTxFail to 0, SAVE your changes.

Yes, it would be nice (and easy, just a few lines of Lua code ...) to be able to reset the counters of all devices simultaneously.
Any volunteer?  :)
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: huogas on May 07, 2011, 01:33:47 pm
@Ap15e
What is supposed to be the end result ? An email at every interval the timer was setup ?

I'm asking because I didn't see any result. Is there a simple way to see what is going on ?

Thanks
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on May 07, 2011, 03:46:13 pm
Quote
What is supposed to be the end result ? An email at every interval the timer was setup ?

Yes (but only if heartbeat is 1 ...).

Quote
I'm asking because I didn't see any result. Is there a simple way to see what is going on ?

Chances are that you've got your SMTP settings wrong.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: huogas on May 07, 2011, 03:56:11 pm
Quote
What is supposed to be the end result ? An email at every interval the timer was setup ?

Yes (but only if heartbeat is 1 ...).
Yes it is.
Quote
I'm asking because I didn't see any result. Is there a simple way to see what is going on ?

Chances are that you've got your SMTP settings wrong.
Parameters seems right. If they are not, that would explained why I was unable to send email for the last months...Just kidding... ;)

What can I do to track what is wrong with my installation ?
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on May 07, 2011, 04:55:00 pm
Run your ADD scene manually.

Run the ADD code from the 'Test Luup code (Lua)' window.

Check LuaUPnP.log for errors.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: huogas on May 07, 2011, 06:20:21 pm
Run your ADD scene manually.
Just no error, but no email...
Run the ADD code from the 'Test Luup code (Lua)' window.
CodE failed
Check LuaUPnP.log for errors.
Where is that file ?
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on May 07, 2011, 06:27:56 pm
http://192.168.x.y/cgi-bin/cmh/log.sh?Device=LuaUPnP

http://wiki.micasaverde.com/index.php/ZWave_Debugging
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Henk on May 08, 2011, 06:27:09 am
Last night recapping the day i realized i made a typo in the LUUP code as far as my SMTP server was concerned.
Opening the scene and going to the code page this morning i was surprised. I found the original code as provided by Ap15e.

All my changes (of which im SURE i saved several times) were gone and i was back at square 1.
Is this something other users have experienced too?

Redid the whole thing this morning and will wait and see what happens!

Regards,

Henk
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: huogas on May 08, 2011, 06:45:03 am

All my changes (of which im SURE i saved several times) were gone and i was back at square 1.
Is this something other users have experienced too?

I have to ask: how did you "save" ?
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Henk on May 08, 2011, 06:48:48 am
@huogas

ehm.... hitting the save code button at the bottom of the code page???
Then after that closing the scene and saving / reloading the LUA engine....

Was that wrong?

Yesterday i checked back several times and the changes were stil present....
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: huogas on May 08, 2011, 07:00:53 am
...
I just had to remove "user = SMTP_AUTH_USER" and "password = SMTP_AUTH_PW" lines from smtp.send() call, as my local mail server doesn't require authentication for local senders... :)
Same thing here.

Works now. Thanks.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Henk on May 08, 2011, 09:12:35 am
Same here, initially i had the auth lines empty (as in "") that didnt work.
Now i left the code intact but just commented the lines out with -- in front of the lines.

Email notification works now.

Only the urls included in the link give me an error 400 on the google api's like this;

400. That’s an error.
Your client has issued a malformed or illegal request.
The parameter 'chl=digraph' could not be parsed. Please check your syntax.
That’s all we know.

Any ideas? (browser= Chrome)

Henk
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on May 08, 2011, 11:03:37 am
ADD doesn't create HTML links; it depends on your mail client whether clicking on the "link" does work or not:

IceWarp web client: works
Thunderbird 2.0.0.24: doesn't work

Workaround: copy the complete "link" into your browser ...
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Henk on May 08, 2011, 02:38:34 pm
@Ap15e

Roger that, Mozilla Thunderbird 3.1x here, doesnt support it.
From within my webmail page its supported... the problem lies in the early break off of the url just before the {
by the mail client.

Copy/Paste into the webbrowser gives a workaround indeed, but is there a way to present the whole string as a clickable url by coding it that way?

Thx

Henk
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on May 08, 2011, 03:54:27 pm
ADD is an email notification tool and I regard html code within emails as a security risk.
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: axill on May 11, 2011, 02:57:27 am
Ap15e thanks a lot for the tool.

I've got an issue with graphs - ggole claims that link is too big:

https://chart.googleapis.com/chart?cht=gv:dot&chl=digraph{37-%3E1;37-%3E5;37-%3E6;37-%3E7;37-%3E8;37-%3E9;37-%3E10;37-%3E11;37-%3E17;37-%3E18;37-%3E19;37-%3E23;37-%3E25;37-%3E29;37-%3E31;37-%3E32;37-%3E35;37-%3E36;35-%3E1;35-%3E5;35-%3E6;35-%3E7;35-%3E8;35-%3E9;35-%3E11;35-%3E14;35-%3E15;35-%3E17;35-%3E18;35-%3E19;35-%3E20;35-%3E23;35-%3E25;35-%3E29;35-%3E32;35-%3E33;35-%3E36;35-%3E37;39-%3E5;39-%3E6;39-%3E7;39-%3E8;39-%3E9;39-%3E10;39-%3E11;39-%3E14;39-%3E15;39-%3E17;39-%3E18;39-%3E19;39-%3E20;39-%3E23;39-%3E25;39-%3E28;39-%3E29;39-%3E31;39-%3E32;39-%3E33;39-%3E35;39-%3E36;39-%3E37;29-%3E3;29-%3E5;29-%3E6;29-%3E7;29-%3E8;29-%3E9;29-%3E10;29-%3E11;29-%3E12;29-%3E14;29-%3E15;29-%3E17;29-%3E18;29-%3E19;29-%3E20;29-%3E21;29-%3E23;29-%3E25;29-%3E28;29-%3E31;29-%3E32;29-%3E33;29-%3E35;29-%3E36;29-%3E37;29-%3E38;29-%3E39;1;3-%3E1;3-%3E5;3-%3E6;3-%3E7;3-%3E8;3-%3E9;3-%3E10;3-%3E11;3-%3E14;3-%3E15;3-%3E17;3-%3E18;3-%3E19;3-%3E20;3-%3E21;3-%3E23;3-%3E25;3-%3E28;3-%3E29;3-%3E31;3-%3E32;3-%3E33;3-%3E35;3-%3E36;3-%3E37;19-%3E5;19-%3E6;19-%3E7;19-%3E8;19-%3E9;19-%3E10;19-%3E11;19-%3E14;19-%3E15;19-%3E17;19-%3E18;19-%3E20;19-%3E21;19-%3E23;19-%3E25;19-%3E28;19-%3E29;19-%3E31;19-%3E32;19-%3E33;19-%3E35;19-%3E37;4;7-%3E1;7-%3E5;7-%3E6;7-%3E8;7-%3E9;7-%3E10;7-%3E11;7-%3E14;7-%3E15;7-%3E17;7-%3E18;7-%3E19;7-%3E20;7-%3E25;7-%3E28;7-%3E29;7-%3E31;7-%3E32;7-%3E33;7-%3E35;7-%3E36;7-%3E37;6-%3E1;6-%3E5;6-%3E7;6-%3E8;6-%3E9;6-%3E10;6-%3E11;6-%3E14;6-%3E17;6-%3E19;6-%3E20;6-%3E23;6-%3E25;6-%3E28;6-%3E29;6-%3E32;6-%3E33;6-%3E35;6-%3E36;6-%3E37;25-%3E1;25-%3E3;25-%3E5;25-%3E6;25-%3E7;25-%3E8;25-%3E9;25-%3E10;25-%3E11;25-%3E12;25-%3E14;25-%3E15;25-%3E17;25-%3E18;25-%3E19;25-%3E20;25-%3E23;25-%3E28;25-%3E29;25-%3E31;25-%3E33;25-%3E35;25-%3E36;25-%3E37;25-%3E39;8-%3E1;8-%3E5;8-%3E6;8-%3E7;8-%3E9;8-%3E10;8-%3E11;8-%3E14;8-%3E15;8-%3E17;8-%3E18;8-%3E19;8-%3E20;8-%3E21;8-%3E25;8-%3E28;8-%3E29;8-%3E32;8-%3E33;8-%3E35;8-%3E36;8-%3E37;27;17-%3E1;17-%3E3;17-%3E6;17-%3E7;17-%3E8;17-%3E9;17-%3E10;17-%3E11;17-%3E12;17-%3E14;17-%3E15;17-%3E18;17-%3E19;17-%3E20;17-%3E21;17-%3E23;17-%3E25;17-%3E28;17-%3E29;17-%3E31;17-%3E33;17-%3E35;17-%3E37;31-%3E1;31-%3E5;31-%3E7;31-%3E9;31-%3E10;31-%3E11;31-%3E14;31-%3E17;31-%3E18;31-%3E19;31-%3E20;31-%3E21;31-%3E25;31-%3E28;31-%3E29;31-%3E33;31-%3E36;31-%3E37;21-%3E5;21-%3E8;21-%3E9;21-%3E11;21-%3E14;21-%3E17;21-%3E18;21-%3E19;21-%3E20;21-%3E23;21-%3E28;21-%3E29;21-%3E31;21-%3E32;33-%3E1;33-%3E5;33-%3E6;33-%3E7;33-%3E8;33-%3E9;33-%3E10;33-%3E11;33-%3E14;33-%3E17;33-%3E18;33-%3E19;33-%3E20;33-%3E23;33-%3E25;33-%3E28;33-%3E29;33-%3E31;33-%3E32;33-%3E35;33-%3E36;23-%3E1;23-%3E5;23-%3E6;23-%3E9;23-%3E10;23-%3E11;23-%3E14;23-%3E15;23-%3E17;23-%3E18;23-%3E19;23-%3E20;23-%3E21;23-%3E25;23-%3E28;23-%3E29;23-%3E33;23-%3E35;23-%3E37;36-%3E1;36-%3E5;36-%3E6;36-%3E7;36-%3E8;36-%3E9;36-%3E10;36-%3E11;36-%3E14;36-%3E18;36-%3E25;36-%3E28;36-%3E29;36-%3E31;36-%3E32;36-%3E33;36-%3E35;36-%3E37;34;28-%3E1;28-%3E3;28-%3E5;28-%3E6;28-%3E7;28-%3E8;28-%3E9;28-%3E10;28-%3E11;28-%3E14;28-%3E15;28-%3E17;28-%3E18;28-%3E19;28-%3E20;28-%3E21;28-%3E23;28-%3E25;28-%3E29;28-%3E31;28-%3E32;28-%3E33;28-%3E36;28-%3E39;38-%3E1;38-%3E5;38-%3E6;38-%3E7;38-%3E8;38-%3E9;38-%3E10;38-%3E29;38-%3E33;38-%3E35;38-%3E36;38-%3E37;15-%3E1;15-%3E7;15-%3E8;15-%3E9;15-%3E10;15-%3E11;15-%3E14;15-%3E17;15-%3E18;15-%3E19;15-%3E20;15-%3E23;15-%3E25;15-%3E28;15-%3E29;15-%3E35;5-%3E1;5-%3E6;5-%3E7;5-%3E8;5-%3E9;5-%3E10;5-%3E11;5-%3E14;5-%3E18;5-%3E19;5-%3E20;5-%3E21;5-%3E23;5-%3E25;5-%3E28;5-%3E29;5-%3E31;5-%3E32;5-%3E33;5-%3E35;5-%3E36;5-%3E37;13;12-%3E1;12-%3E5;12-%3E6;12-%3E7;12-%3E8;12-%3E9;12-%3E10;12-%3E11;12-%3E17;12-%3E25;12-%3E29;12-%3E32;12-%3E33;12-%3E35;12-%3E37;11-%3E1;11-%3E3;11-%3E5;11-%3E6;11-%3E7;11-%3E8;11-%3E9;11-%3E10;11-%3E12;11-%3E14;11-%3E15;11-%3E17;11-%3E18;11-%3E19;11-%3E20;11-%3E21;11-%3E23;11-%3E25;11-%3E28;11-%3E29;11-%3E31;11-%3E32;11-%3E33;11-%3E35;11-%3E36;11-%3E37;11-%3E39;18-%3E5;18-%3E7;18-%3E8;18-%3E9;18-%3E10;18-%3E11;18-%3E15;18-%3E17;18-%3E19;18-%3E20;18-%3E21;18-%3E23;18-%3E25;18-%3E28;18-%3E29;18-%3E31;18-%3E32;18-%3E33;18-%3E35;18-%3E36;18-%3E37;10-%3E1;10-%3E5;10-%3E6;10-%3E7;10-%3E8;10-%3E9;10-%3E11;10-%3E14;10-%3E15;10-%3E17;10-%3E18;10-%3E19;10-%3E20;10-%3E23;10-%3E25;10-%3E28;10-%3E29;10-%3E31;10-%3E32;10-%3E33;10-%3E36;10-%3E37;9-%3E5;9-%3E6;9-%3E7;9-%3E8;9-%3E10;9-%3E11;9-%3E14;9-%3E15;9-%3E17;9-%3E18;9-%3E19;9-%3E20;9-%3E21;9-%3E23;9-%3E25;9-%3E28;9-%3E29;9-%3E31;9-%3E32;9-%3E33;9-%3E35;9-%3E36;9-%3E37;14-%3E1;14-%3E5;14-%3E6;14-%3E7;14-%3E8;14-%3E9;14-%3E10;14-%3E11;14-%3E15;14-%3E17;14-%3E19;14-%3E20;14-%3E21;14-%3E23;14-%3E25;14-%3E28;14-%3E29;14-%3E31;14-%3E33;14-%3E35;14-%3E36;24;16;26;20-%3E1;20-%3E5;20-%3E6;20-%3E7;20-%3E8;20-%3E9;20-%3E10;20-%3E11;20-%3E14;20-%3E15;20-%3E17;20-%3E18;20-%3E19;20-%3E21;20-%3E23;20-%3E25;20-%3E28;20-%3E29;20-%3E31;20-%3E32;20-%3E33;20-%3E35;30;22;32-%3E1;32-%3E5;32-%3E6;32-%3E7;32-%3E8;32-%3E9;32-%3E10;32-%3E11;32-%3E18;32-%3E19;32-%3E20;32-%3E21;32-%3E28;32-%3E29;32-%3E33;32-%3E35;32-%3E36;32-%3E37;}
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: Ap15e on May 11, 2011, 06:47:26 am
If Google says so, its true! :)

Workaround:
http://forum.micasaverde.com/index.php?topic=5130.msg36510#msg36510
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: MNB on May 23, 2011, 10:46:37 pm
Slow question, If Hotmail and Gmail require TSL/SSL which doesn't seem to work with ADD then which SMTP's providers work (preferable free)?

I'm currently using "Windows LIVE", I updated the LUA code to reflect below with no success. Reading the thread I can't see any suggestions as to how others were able to get their ADD to work, any clues would be greatly appreciated, Mike

 local SMTP_SERVER = "smtp.live.com"
 local SMTP_AUTH_USER = "userid@msn.com"
 local SMTP_AUTH_PW = "password"       
 local SMTP_PORT = "25"
 local USER_SENDING = "userid@msn.com"
 local USER_RECEIVING = "userid@msn.com"
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: strangely on May 24, 2011, 02:06:34 am
Not sure which thread it was part of, but there was a solution to use an email forwarding service that has open SMTP.

I'll have a search for it.

**edit**

Here it is:

http://forum.micasaverde.com/index.php?topic=6309.0
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: scotthay on July 13, 2011, 11:41:18 am
Just installed this on several Vera's.  Very cool indeed thanks!

I have a question and I am sure it has been answered before, but I couldn't find it.  If I run this manually it seems to miss some of the battery devices in the area where it tells you the battery %.  You can run it three times in a row and it reports some but not all (and usually different) devices.  If I set a timer and have it run in the evening it always is perfect and has all battery devices listed.  Is there a reason why it is doing this?

Title: Re: Alerter for Drowsy Devices (ADD)
Post by: strangely on July 14, 2011, 01:00:28 am
Maybe vera is nocturnal :)

Do you have anything happening around the time ADD runs that makes sure the sensors are awake, such as they've recently been tripped, and therefore awake when ADD runs?
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: scotthay on July 14, 2011, 01:53:13 am
Not a thing, my battery devices in my home setup are;

Schlage Deadbolt
Two HM-TS001 Temp/Humidity Sensors
One Motion Sensor, can't remember the model off hand

I can run it a number of times manually and it will miss 1-2 of those devices every time, but for two nights in a row it has been perfect running automatically at 4am.

I also installed it in two other commercial installations I have, one with 4 Schlage Deadbolts and one with 6 of them and had same results running manually (misses 1-2 devices), haven't set them up to run automatically yet, but will try that asap.



Maybe vera is nocturnal :)

Do you have anything happening around the time ADD runs that makes sure the sensors are awake, such as they've recently been tripped, and therefore awake when ADD runs?
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: scotthay on July 14, 2011, 02:06:07 am
Just happened to be logged into Vera at 2am and noticed it running a heal (guess it does this every night at this time?).  Might that be why my 4am ADD run is showing all battery devices?  I think I remember most of them saying they last reported 2 hours ago, so that might make sense?

Not a thing, my battery devices in my home setup are;

Schlage Deadbolt
Two HM-TS001 Temp/Humidity Sensors
One Motion Sensor, can't remember the model off hand

I can run it a number of times manually and it will miss 1-2 of those devices every time, but for two nights in a row it has been perfect running automatically at 4am.

I also installed it in two other commercial installations I have, one with 4 Schlage Deadbolts and one with 6 of them and had same results running manually (misses 1-2 devices), haven't set them up to run automatically yet, but will try that asap.



Maybe vera is nocturnal :)

Do you have anything happening around the time ADD runs that makes sure the sensors are awake, such as they've recently been tripped, and therefore awake when ADD runs?
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: scotthay on July 14, 2011, 02:26:25 am
Manually ran it at 2:30ish (two times) and none of the battery devices showed up in the section below "I'm alive, no drowsy battery operated devices right now."

Will see what the report at 4am looks like and let you know later on today.

Just happened to be logged into Vera at 2am and noticed it running a heal (guess it does this every night at this time?).  Might that be why my 4am ADD run is showing all battery devices?  I think I remember most of them saying they last reported 2 hours ago, so that might make sense?

Not a thing, my battery devices in my home setup are;

Schlage Deadbolt
Two HM-TS001 Temp/Humidity Sensors
One Motion Sensor, can't remember the model off hand

I can run it a number of times manually and it will miss 1-2 of those devices every time, but for two nights in a row it has been perfect running automatically at 4am.

I also installed it in two other commercial installations I have, one with 4 Schlage Deadbolts and one with 6 of them and had same results running manually (misses 1-2 devices), haven't set them up to run automatically yet, but will try that asap.



Maybe vera is nocturnal :)

Do you have anything happening around the time ADD runs that makes sure the sensors are awake, such as they've recently been tripped, and therefore awake when ADD runs?
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: aecchalet on August 27, 2011, 02:27:03 am
@ap15e
I created an account with jangosmtp.net then modified the user adjusted segment of this plug in with the following: (** used to hide true account identity)
local SMTP_SERVER = "relay.jangosmtp.net"
  local SMTP_AUTH_USER = "********"
  local SMTP_AUTH_PW = "*********"        
  local SMTP_PORT = "25"
  local USER_SENDING = "myvera"
  local USER_RECEIVING = "******@gmail.com"

I set the scene timer to run 3x/week and clicked "Run" after I saved the scene.  I also tested the script in the Mios Developers/Test Luup Code and it seemed to run and "message sent successful" was generated.  I have not received any email from this plugin. Any suggestion?
Title: Re: Alerter for Drowsy Devices (ADD)
Post by: fall-line on August 30, 2011, 03:40:43 pm
Ape15, et al,

I've been running this tool weekly to monitor and diagnose my ever changing z-wave network. It has proven indispensable!

I do have a small issue that cropped up a while back. I believe this occurred during the upgrade to z-wave 3.20 earlier this spring. I've been largely out of touch with the system for a few months (got married, life got in the way) though and am just now starting to really resume testing and extending the network. I'm not getting the routing matrix as a part of the email output, and it appears to be relating to few devices that are present in the routing table, but do not actually exist. I've been through every device on my dashboard (and scoured my heal reports just to be sure) and cannot find the devices mentioned.

Here is the relevant output from ADD:
Device #   1 Scene Controller                         has neighbor #   3, but device #   3 does not exist or it isn't a Z-Wave device (its device_num_parent isn't 1).
Device #   1 Scene Controller                         has neighbor #   4, but device #   4 does not exist or it isn't a Z-Wave device (its device_num_parent isn't 1).
Device #   1 Scene Controller                         has neighbor #   5, but device #   5 does not exist or it isn't a Z-Wave device (its device_num_parent isn't 1).

This shows up in the place of the routing matrix (as expected the route visualization also doesn't appear), but the rest of the report displays correctly including battery operated devices, and signal quality report.

I realize this problem isn't actually due to this script, but the script is diagnosing (and it's use is limited  as I need to see the routing matrix) it so I thought I'd start here.

I'm sure this could be remedied by performing a Reset on the Z-Wave network, but would really like to avoid this for obvious reasons.

Any thoughts?

Thanks as always.

Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: Ap15e on August 30, 2011, 04:30:16 pm
Please upgrade to ADD V2.6:

V2.6  updates variables for urn:micasaverde-com:serviceId:ZWaveNetwork1
Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: Ap15e on August 30, 2011, 04:49:11 pm
@fall-line

Please submit a support ticket to MCV.
Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: fall-line on August 30, 2011, 04:59:36 pm
Thanks. That was my next step.

Cheers
Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: dcowan on November 22, 2011, 09:25:27 pm
I'm getting the same error

Device #   1 _Scene Controller                        has neighbor #   5, but device #   5 does not exist or it isn't a Z-Wave device (its device_num_parent isn't 1).

I've put a support ticket into MCV and they've said they can't help since its a "custom" plugin.   I've looked all through the UI and cannot find this mythical device 5.

Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: Ap15e on November 24, 2011, 07:36:55 am
fall-line, dcowan,

I'll have a look at it. Would you be willing to help with debugging the problem? You would have to install my WAI plugin and run some custom Lua code in the Test Luup code window.

BTW, are you using Insteon devices?
Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: dcowan on November 24, 2011, 10:00:39 am
I would be willing to.  I have written a few small luup scripts so i have a basic idea.  i do not have any insteon devices
Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: Ap15e on November 24, 2011, 05:26:00 pm
Please install WAI.

Please run the follwing code in the 'Test Luup code (Lua)' window (adjust the WAI_ID accordingly):

Code: [Select]
WAI_ID = 36 -- adjust accordingly

ZWDEVICE_SID = "urn:micasaverde-com:serviceId:ZWaveDevice1"

local output = ''

for k, v in pairs(luup.devices) do
 
 if v.id == '1'
  then

   local neighbours         = luup.variable_get( ZWDEVICE_SID, 'Neighbors'       , tonumber( k ) )
   local neighbours_inverse = luup.variable_get( ZWDEVICE_SID, 'NeighborsInverse', tonumber( k ) )

   output = output .. 'Internal ID 1 has device number '..tostring( k )..'<br>'..
                      'Neighbours: '..tostring(neighbours)..'<br>'..
                      'Inverse   : '..tostring(neighbours_inverse)..'<br>'

  end

 end

luup.variable_set( 'urn:upnp-ap15e-com:serviceId:WAI1', 'Location', output, WAI_ID )

Please post a screenshot of the WAI device output on the GUI.
Title: ADD - Results after installing UI5
Post by: silvereagle2208 on January 07, 2012, 07:38:40 pm
I was wondering if anyone else is sobserving the same results with ADD  that I have seen after installing UI5.  I installed UI5 and now have a much different result set than I did with UI4.  I only see interaction with my Vera 2 unit and some of my devices. I see no interaction of any of the devices which each other or back to the Vera 2 controller. Since a Z-wave network is a mesh network, one would expect that if there is no mesh, performance would be very weak.   That is what I am seeing with my system: very poor performance with a very poor reliability.

My question iis: Is this lack of a mesh network a problem with the ADD application, my Vera 2 controller, UI5, or some other combination of factors?  I have seen the same results with ADD 2.5 and 2.6.  I did not see this lack of a mesh network when I as using UI4. 

Is anyone else seeing similar results to what I am seeing?
Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: aecchalet on January 09, 2012, 09:14:49 am
Back in August, I created a scene and loaded the ADD plugin.  I tried several different free "open" smtp servers including jangosmtp.  It never worked with any of them so friday I called jangosmtp support to try to test my account.  They assured me that my account was working but couldn't explain why test messages were not forwarded to my account.  They had me try several changes to the user modified segment of the ADD plugin but I never received any messages when I pushed the button to "Run" the scene.  At their last request, I switched the line:
  local USER_SENDING = "myvera2"
to
  local USER_SENDING = "*********@jangomail.com". (********* is my userid at jangomail)
There was still no response when I "ran" the scene.
However, this morning I finally received output from this plugin.
(I am not sure if it was this last change made 2 days ago or more changes on their end to problem solve my account.)
==============================================================
Vera's Z-Wave routing matrix
2012-01-09 02:00:00
------
dot:
https://chart.googleapis.com/chart?cht=gv:dot&chl=digraph{}
neato:
https://chart.googleapis.com/chart?cht=gv:neato&chl=digraph{}
twopi:
https://chart.googleapis.com/chart?cht=gv:twopi&chl=digraph{}
circo:
https://chart.googleapis.com/chart?cht=gv:circo&chl=digraph{}
fdp:
https://chart.googleapis.com/chart?cht=gv:fdp&chl=digraph{}
I'm alive, no drowsy battery operated devices right now.
LastUpdate          : nil
LastHeal            : nil
LastDongleBackup    : nil
LastRouteFailure    : nil
NetStatusID         : nil
NetStatusText       : nil
ComPort             : nil
LockComPort         : nil
NodeID              : nil
VersionInfo         : nil
HomeID              : nil
Role                : nil
ResetMode           : nil
InclusionMode       : nil
NodeType            : nil
Timeout             : nil
Multiple            : nil
SimulateIncomingData: nil
PollingEnabled      : nil
PollDelayInitial    : nil
PollDelayDeadTime   : nil
PollMinDelay        : nil
PollFrequency       : nil
LastError           : nil
DelayProcessing     : nil
FailedOnly          : nil
Use45               : nil
UseMR               : nil
TO3066              : nil
LimitNeighbors      : nil
Signal quality (PollOk / PollNoReply / PollTxFail / failure rate)
ADD 2.6, running time: 0 second(s)
=============================================================
It doesn't look like it ran correctly.

When I clicked on the links in either IE8 or Google Chrome, a browser window openned with the link's url but the browser screen was blank.  Occassionally, I got the following error message:

Google
503. That’s an error.
The service you requested is not available yet.
Please try again in 30 seconds. That’s all we know.

I tried again but either got blank browser screens or the same error message.
Any suggestions?
Thanks
Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: Ap15e on January 09, 2012, 05:09:39 pm
ADD completed successfully (i.e., without runtime error), but obviously the output looks strange ...
Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: aecchalet on January 09, 2012, 05:42:10 pm
Could the strange output be a result of UI5 on my Vera2 or firmware version:  1.5.255?

Any idea why I can't get the graphs to work with either IE8 or google chrome?
Thanks
Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: Ap15e on January 09, 2012, 07:29:00 pm
ADD cannot get any information out of your Vera - I don't know why. Does the LSI (Luup System Information) plugin display any information about your Vera?
Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: silvereagle2208 on January 10, 2012, 04:25:31 pm
I believe I have found the source of the strange results I was seeing with with ADD on my Vera machine.  Since I upgrade to UI5 and the 1.5.255 firmware, my system appears to no longer be able to build a full Z-wave mesh network.  The only neighbors my devices have is the Vera 2 unit.   That is why my ADD topography only list the connections from my Vera 2 device to some of my Z-wave devices.   I wonder if this in a reason why acchalet is having difficulty as well?  I have submitted a ticker to support regarding the problem with the creating of the mesh network on my Vera 2 device.  Hopefully, they will be able to find a solution.
Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: aecchalet on January 10, 2012, 05:32:44 pm
I tried creating the LSI plugin but I don't think I was successful, see my post in that string.
Thanks
Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: trouty00 on January 15, 2012, 08:07:15 am
really useful plugin but having some issues with the results, maybe you can help here or maybe I need to be asking elsewhere.

basically, I have run the repair network (- configure) multiple times and have also just tried to update routing but my routes just don't seem to update. basically i get connectivity response problems from node 4 which only has a recorded neighbour 3 whereas node 5 is in between the controller and node 3 and node is in the opposite direction.

any thoughts on what i can do here, I know there has been some reports of incorrect mesh'ing with UI5, this is a new setup so don't really have anything to compare it too, I did have a test rig with homeseer set up and did have some similar issues with this same device so it could be the device i guess, maybe i should move around the nodes and see if that helps, the devices are all everspring on/off EVR_AN1573 modules with one motion detector.

here is the output

VERA 2 UI5 1.5.255

Vera's Z-Wave routing matrix

2012-01-15 12:52:44       1   2   3   4   5   6


-----------------------------------------------
 1 _Scene Controller |       2   3   4   5   6
 2 _Motion Sensor    |
 3 Kettle 3          |               4       6
 4 Amp 4             |           3
 5 LED 5             |                       6
 6 _Dimmable Light 6 |           3       5

dot:
https://chart.googleapis.com/chart?cht=gv:dot&chl=digraph{1;3->1;3->4;3->6;2->1;5->1;5->6;4->1;4->3;6->1;6->3;6->5;}

neato:
https://chart.googleapis.com/chart?cht=gv:neato&chl=digraph{1;3->1;3->4;3->6;2->1;5->1;5->6;4->1;4->3;6->1;6->3;6->5;}

twopi:
https://chart.googleapis.com/chart?cht=gv:twopi&chl=digraph{1;3->1;3->4;3->6;2->1;5->1;5->6;4->1;4->3;6->1;6->3;6->5;}

circo:
https://chart.googleapis.com/chart?cht=gv:circo&chl=digraph{1;3->1;3->4;3->6;2->1;5->1;5->6;4->1;4->3;6->1;6->3;6->5;}

fdp:
https://chart.googleapis.com/chart?cht=gv:fdp&chl=digraph{1;3->1;3->4;3->6;2->1;5->1;5->6;4->1;4->3;6->1;6->3;6->5;}

I'm alive, no drowsy battery operated devices right now.

 2 _Motion Sensor                          : Battery level   70, last
battery report    38 hour(s) ago


LastUpdate          : 1326629485 (2012-01-15 12:11:44)
LastHeal            : 1326631830 (2012-01-15 12:50:08)
LastDongleBackup    : 1326504576 (2012-01-14 01:29:36)
LastRouteFailure    : 1326631728
NetStatusID         : 1
NetStatusText       : OK
ComPort             : /dev/tts/1
LockComPort         : 1
NodeID              : nil
VersionInfo         : 3.20 L:1
HomeID              : House: ea1fa8e9 Node 1 Suc 0
Role                : Master SIS:NO PRI:YES
ResetMode           : nil
InclusionMode       : nil
NodeType            : nil
Timeout             : nil
Multiple            : nil
SimulateIncomingData: nil
PollingEnabled      : 1
PollDelayInitial    : 20
PollDelayDeadTime   : 10
PollMinDelay        : 30
PollFrequency       : 60
LastError           : Poll failed
DelayProcessing     : nil
FailedOnly          : nil
Use45               : 1
UseMR               : 0
TO3066              : 0
LimitNeighbors      : 0

Signal quality (PollOk / PollNoReply / PollTxFail / failure rate)

 2     9 _Motion Sensor                                                   0
%
 3    10 Kettle 3                                       1                 0
%
 4    11 Amp 4                                                            0
%
 5    12 LED 5                                                            0
%
 6    13 _Dimmable Light 6                                                0
%

ADD 2.6, running time: 0 second(s)

Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: aecchalet on March 31, 2012, 05:22:40 am
I first installed the ADD scene back in August.  After some problem getting the smtp figured out, I got it running but only got nil outputs.
I just upgraded to the latest firmware and now I suddenly started getting data!
It is good to see that if is finally working!
Now I have some questions interpreting the results.  Some of my devices don't list any associations.  Some are in more remote parts of my house but others are close to other devices.  The batteries for all are reported as acceptable but I suspect that device #48 has a dead battery.
Could devices 18, 39, 43 and 48 also have dead batteries even though this program doesn't indicate that?
Thanks!
_______________________________________________________
Vera's Z-Wave routing matrix

2012-03-30 02:00:01                1   2   4   5   6   7  17  18  24  31  36
 38  39  40  43  46  47  48  49  54  56
--------------------------------------------------------------------------------------------------------------------
 1 _Scene Controller          |       2   4       6   7  17      24  31  36
 38      40      46  47          54  56
 2 4 GR_Thermostat            |           4   5   6   7  17      24  31  36
 38      40      46  47      49  54  56
 4 5 Front Door Deadbolt      |       2           6   7          24  31  36
 38      40      46          49
 5 6 Garage Door Deadbolt     |       2           6   7          24  31
 38                          49
 6 7 Upper Back BR Dimmer     |       2   4   5       7  17      24  31  36
 38      40      46  47      49  54
 7 8 LH Appliance Module      |       2   4   5   6      17      24  31  36
 38      40      46  47      49  54  56
 17 13 GR_Motion Detector      |       2           6   7          24  31
                            49
 18 14 LH_Motion Detector      |

 24 20_LH_Thermostat           |       2   4   5   6   7  17          31  36
 38      40      46  47      49  54  56
 31 27 Garage Appliance Module |       2   4   5   6   7  17      24      36
 38      40      46  47      49  54
 36 32Lw Frt BR Dr Sensor      |       2           6   7          24  31
                            49
 38 34Lw Back BR Dr Sensor     |       2       5   6   7          24  31
                            49
 39 35Lw Hall Door Sensor      |

 40 36Lw Mstr BR Dr Sensor     |       2           6   7          24  31
                            49
 43 38Up BackBR_W Sensor       |

 46 41GR Lanai Dr Sensor       |       2           6   7          24  31
                            49
 47 42Up Hall Win Sensor       |       2           6   7          24  31
                            49
 48 43Garage_Door sensor       |

 49 44 Garage Outlet           |       2   4   5   6   7  17      24  31  36
 38      40      46  47          54  56
 54 49GR FDr Sensor            |       2           6   7          24  31
                            49
 56 51LH Window Sensor         |       2               7          24
                            49

dot:
https://chart.googleapis.com/chart?cht=gv:dot&chl=digraph{43;40->1;40->2;40->4;40->6;40->7;40->24;40->31;40->49;47->1;47->2;47->6;47->7;47->24;47->31;47->49;46->1;46->2;46->4;46->6;46->7;46->24;46->31;46->49;56->1;56->2;56->7;56->24;56->49;48;49->2;49->4;49->5;49->6;49->7;49->17;49->24;49->31;49->36;49->38;49->40;49->46;49->47;49->54;49->56;39;38->1;38->2;38->4;38->5;38->6;38->7;38->24;38->31;38->49;1;2->1;2->4;2->5;2->6;2->7;2->17;2->24;2->31;2->36;2->38;2->40;2->46;2->47;2->49;2->54;2->56;5->2;5->6;5->7;5->24;5->31;5->38;5->49;18;7->1;7->2;7->4;7->5;7->6;7->17;7->24;7->31;7->36;7->38;7->40;7->46;7->47;7->49;7->54;7->56;6->1;6->2;6->4;6->5;6->7;6->17;6->24;6->31;6->36;6->38;6->40;6->46;6->47;6->49;6->54;24->1;24->2;24->4;24->5;24->6;24->7;24->17;24->31;24->36;24->38;24->40;24->46;24->47;24->49;24->54;24->56;17->1;17->2;17->6;17->7;17->24;17->31;17->49;31->1;31->2;31->4;31->5;31->6;31->7;31->17;31->24;31->36;31->38;31->40;31->46;31->47;31->49;31->54;54->1;54->2;54->6;54->7;54->24;54->31;54->49;36->1;36->2;36->4;36->6;36->7;36->24;36->31;36->49;4->1;4->2;4->6;4->7;4->24;4->31;4->49;}

neato:
https://chart.googleapis.com/chart?cht=gv:neato&chl=digraph{43;40->1;40->2;40->4;40->6;40->7;40->24;40->31;40->49;47->1;47->2;47->6;47->7;47->24;47->31;47->49;46->1;46->2;46->4;46->6;46->7;46->24;46->31;46->49;56->1;56->2;56->7;56->24;56->49;48;49->2;49->4;49->5;49->6;49->7;49->17;49->24;49->31;49->36;49->38;49->40;49->46;49->47;49->54;49->56;39;38->1;38->2;38->4;38->5;38->6;38->7;38->24;38->31;38->49;1;2->1;2->4;2->5;2->6;2->7;2->17;2->24;2->31;2->36;2->38;2->40;2->46;2->47;2->49;2->54;2->56;5->2;5->6;5->7;5->24;5->31;5->38;5->49;18;7->1;7->2;7->4;7->5;7->6;7->17;7->24;7->31;7->36;7->38;7->40;7->46;7->47;7->49;7->54;7->56;6->1;6->2;6->4;6->5;6->7;6->17;6->24;6->31;6->36;6->38;6->40;6->46;6->47;6->49;6->54;24->1;24->2;24->4;24->5;24->6;24->7;24->17;24->31;24->36;24->38;24->40;24->46;24->47;24->49;24->54;24->56;17->1;17->2;17->6;17->7;17->24;17->31;17->49;31->1;31->2;31->4;31->5;31->6;31->7;31->17;31->24;31->36;31->38;31->40;31->46;31->47;31->49;31->54;54->1;54->2;54->6;54->7;54->24;54->31;54->49;36->1;36->2;36->4;36->6;36->7;36->24;36->31;36->49;4->1;4->2;4->6;4->7;4->24;4->31;4->49;}

twopi:
https://chart.googleapis.com/chart?cht=gv:twopi&chl=digraph{43;40->1;40->2;40->4;40->6;40->7;40->24;40->31;40->49;47->1;47->2;47->6;47->7;47->24;47->31;47->49;46->1;46->2;46->4;46->6;46->7;46->24;46->31;46->49;56->1;56->2;56->7;56->24;56->49;48;49->2;49->4;49->5;49->6;49->7;49->17;49->24;49->31;49->36;49->38;49->40;49->46;49->47;49->54;49->56;39;38->1;38->2;38->4;38->5;38->6;38->7;38->24;38->31;38->49;1;2->1;2->4;2->5;2->6;2->7;2->17;2->24;2->31;2->36;2->38;2->40;2->46;2->47;2->49;2->54;2->56;5->2;5->6;5->7;5->24;5->31;5->38;5->49;18;7->1;7->2;7->4;7->5;7->6;7->17;7->24;7->31;7->36;7->38;7->40;7->46;7->47;7->49;7->54;7->56;6->1;6->2;6->4;6->5;6->7;6->17;6->24;6->31;6->36;6->38;6->40;6->46;6->47;6->49;6->54;24->1;24->2;24->4;24->5;24->6;24->7;24->17;24->31;24->36;24->38;24->40;24->46;24->47;24->49;24->54;24->56;17->1;17->2;17->6;17->7;17->24;17->31;17->49;31->1;31->2;31->4;31->5;31->6;31->7;31->17;31->24;31->36;31->38;31->40;31->46;31->47;31->49;31->54;54->1;54->2;54->6;54->7;54->24;54->31;54->49;36->1;36->2;36->4;36->6;36->7;36->24;36->31;36->49;4->1;4->2;4->6;4->7;4->24;4->31;4->49;}

circo:
https://chart.googleapis.com/chart?cht=gv:circo&chl=digraph{43;40->1;40->2;40->4;40->6;40->7;40->24;40->31;40->49;47->1;47->2;47->6;47->7;47->24;47->31;47->49;46->1;46->2;46->4;46->6;46->7;46->24;46->31;46->49;56->1;56->2;56->7;56->24;56->49;48;49->2;49->4;49->5;49->6;49->7;49->17;49->24;49->31;49->36;49->38;49->40;49->46;49->47;49->54;49->56;39;38->1;38->2;38->4;38->5;38->6;38->7;38->24;38->31;38->49;1;2->1;2->4;2->5;2->6;2->7;2->17;2->24;2->31;2->36;2->38;2->40;2->46;2->47;2->49;2->54;2->56;5->2;5->6;5->7;5->24;5->31;5->38;5->49;18;7->1;7->2;7->4;7->5;7->6;7->17;7->24;7->31;7->36;7->38;7->40;7->46;7->47;7->49;7->54;7->56;6->1;6->2;6->4;6->5;6->7;6->17;6->24;6->31;6->36;6->38;6->40;6->46;6->47;6->49;6->54;24->1;24->2;24->4;24->5;24->6;24->7;24->17;24->31;24->36;24->38;24->40;24->46;24->47;24->49;24->54;24->56;17->1;17->2;17->6;17->7;17->24;17->31;17->49;31->1;31->2;31->4;31->5;31->6;31->7;31->17;31->24;31->36;31->38;31->40;31->46;31->47;31->49;31->54;54->1;54->2;54->6;54->7;54->24;54->31;54->49;36->1;36->2;36->4;36->6;36->7;36->24;36->31;36->49;4->1;4->2;4->6;4->7;4->24;4->31;4->49;}

fdp:
https://chart.googleapis.com/chart?cht=gv:fdp&chl=digraph{43;40->1;40->2;40->4;40->6;40->7;40->24;40->31;40->49;47->1;47->2;47->6;47->7;47->24;47->31;47->49;46->1;46->2;46->4;46->6;46->7;46->24;46->31;46->49;56->1;56->2;56->7;56->24;56->49;48;49->2;49->4;49->5;49->6;49->7;49->17;49->24;49->31;49->36;49->38;49->40;49->46;49->47;49->54;49->56;39;38->1;38->2;38->4;38->5;38->6;38->7;38->24;38->31;38->49;1;2->1;2->4;2->5;2->6;2->7;2->17;2->24;2->31;2->36;2->38;2->40;2->46;2->47;2->49;2->54;2->56;5->2;5->6;5->7;5->24;5->31;5->38;5->49;18;7->1;7->2;7->4;7->5;7->6;7->17;7->24;7->31;7->36;7->38;7->40;7->46;7->47;7->49;7->54;7->56;6->1;6->2;6->4;6->5;6->7;6->17;6->24;6->31;6->36;6->38;6->40;6->46;6->47;6->49;6->54;24->1;24->2;24->4;24->5;24->6;24->7;24->17;24->31;24->36;24->38;24->40;24->46;24->47;24->49;24->54;24->56;17->1;17->2;17->6;17->7;17->24;17->31;17->49;31->1;31->2;31->4;31->5;31->6;31->7;31->17;31->24;31->36;31->38;31->40;31->46;31->47;31->49;31->54;54->1;54->2;54->6;54->7;54->24;54->31;54->49;36->1;36->2;36->4;36->6;36->7;36->24;36->31;36->49;4->1;4->2;4->6;4->7;4->24;4->31;4->49;}

I'm alive, no drowsy battery operated devices right now.

 36 32Lw Frt BR Dr Sensor                   : Battery level  100, last
battery report     3 hour(s) ago
 38 34Lw Back BR Dr Sensor                  : Battery level  100, last
battery report     1 hour(s) ago
 39 35Lw Hall Door Sensor                   : Battery level   90, last
battery report     4 hour(s) ago
 40 36Lw Mstr BR Dr Sensor                  : Battery level  100, last
battery report     4 hour(s) ago
 4 5 Front Door Deadbolt                   : Battery level   76, last
battery report     1 hour(s) ago
 43 38Up BackBR_W Sensor                    : Battery level  100, last
battery report     2 hour(s) ago
 47 42Up Hall Win Sensor                    : Battery level   50, last
battery report     4 hour(s) ago
 48 43Garage_Door sensor                    : Battery level   86, last
battery report  2984 hour(s) ago
 17 13 GR_Motion Detector                   : Battery level  100, last
battery report     3 hour(s) ago
 54 49GR FDr Sensor                         : Battery level   80, last
battery report     2 hour(s) ago
 5 6 Garage Door Deadbolt                  : Battery level   94, last
battery report     7 hour(s) ago


LastUpdate          : 1333011860 (2012-03-29 02:04:00)
LastHeal            : 1333011847 (2012-03-29 02:04:00)
LastDongleBackup    : 1332808741 (2012-03-26 17:38:24)
LastRouteFailure    : 1333091247
NetStatusID         : 1
NetStatusText       : OK
ComPort             : /dev/tts/1
LockComPort         : 1
NodeID              : nil
VersionInfo         : 3.20 L:1
HomeID              : House: 1490028 Node 1 Suc 0
Role                : Master SIS:NO PRI:YES
ResetMode           : nil
InclusionMode       : nil
NodeType            : nil
Timeout             : nil
Multiple            : nil
SimulateIncomingData: nil
PollingEnabled      : 1
PollDelayInitial    : 20
PollDelayDeadTime   : 10
PollMinDelay        : 30
PollFrequency       : 60
LastError           : Poll failed
DelayProcessing     : nil
FailedOnly          : nil
Use45               : 1
UseMR               : 1
TO3066              : 0
LimitNeighbors      : 1

Signal quality (PollOk / PollNoReply / PollTxFail / failure rate)

 36    32 32Lw Frt BR Dr Sensor                       4290      2    nil   0
%
 38    34 34Lw Back BR Dr Sensor                      3100    152    nil   5
%
 39    35 35Lw Hall Door Sensor                       2828    nil      1   0
%
 40    36 36Lw Mstr BR Dr Sensor                      4193     33    nil   1
%
 4     5 5 Front Door Deadbolt                                            0
%
 43    38 38Up BackBR_W Sensor                         622    116    nil  16
%
 6     7 7 Upper Back BR Dimmer                     27581    142          1
%
 7     8 8 LH Appliance Module                      23118     50          0
%
 46    41 41GR Lanai Dr Sensor                        4190     16    nil   0
%
 47    42 42Up Hall Win Sensor                        3986     51    nil   1
%
 48    43 43Garage_Door sensor                           7    nil    nil   0
%
 49    44 44 Garage Outlet                           27511     69          0
%
 17    13 13 GR_Motion Detector                       6706     10    nil   0
%
 18    14 14 LH_Motion Detector                       6675     13    nil   0
%
 54    49 49GR FDr Sensor                             2877      1    nil   0
%
 56    51 51LH Window Sensor                          2810     26    nil   1
%
 24    20 20_LH_Thermostat                           27081    436          2
%
 31    27 27 Garage Appliance Module                 26842    130          0
%
 5     6 6 Garage Door Deadbolt                      2889     21          1
%
 2     4 4 GR_Thermostat                            27921     18          0
%

ADD 2.6, running time: 2 second(s)

Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: aecchalet on April 06, 2012, 07:37:34 am
When I try to cut and paste one of the very large graph strings into google chrome, I get the following error:
400. That’s an error.
Your client has issued a malformed or illegal request.
The parameter 'chl' has too many edges. Max allowed is 160.
That’s all we know.

Any suggestions for getting devices 18, 39, 43 and 48 to register properly?  I know that device 48 has a dead battery.  I suppose the first thing that I should do is test all of the batteries in these units and replace weak or dead ones.  Once I replace the batteries, I suppose I could run the ADD scene manually to see what the report is like.  I hesitate to delete/exclude/include/configure these devices if I don't have a way to determine if they are working properly.
Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: Ap15e on April 06, 2012, 07:51:43 am
Code: [Select]
When I try to cut and paste one of the very large graph strings into google chrome, I get the following error:
400. That’s an error.
Your client has issued a malformed or illegal request.
The parameter 'chl' has too many edges. Max allowed is 160.
That’s all we know.

Please see http://forum.micasaverde.com/index.php/topic,5130.msg36510.html#msg36510.
Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: frichter09 on April 13, 2012, 12:06:55 pm
@AP15E
just tried this for the first time.
This is freakin awesome!!! Did not work with my Gmail account for some reason but I got it working with my German web.de account.
EXCELLENT work!!!

Thanks again,
Flo
Title: Vera No longer reporting neighbors in ADD - Alerter for Drowsy Devices V2.6?
Post by: aecchalet on April 14, 2012, 10:13:48 am
I thought that I finally got this program working in the last month or so.
I am visiting my vacation home, which is a long way from my home.  I changed some batteries and tried unsuccessfully to install another sensor but now ADD is not finding neighbors for many of my devices.  At first I thought that this was because I had just done some work and ran a repair or heal.  However, it has been several days now and my ADD report has not improved.
Here is a routing report that I got before changing some batteries:
2012-04-04 02:00:00                1   2   4   5   6   7  17  18  24  31  36
 38  39  40  43  46  47  48  49  54  56
------------------------------------------------------------------------------------------------------------------
 1 _Scene Controller          |       2   4       6   7  17      24  31  36
 38      40      46  47          54  56
 2 4 GR_Thermostat            |           4   5   6   7  17      24  31  36
 38      40      46  47      49  54  56
 4 5 Front Door Deadbolt      |       2           6   7          24  31  36
 38      40      46          49
 5 6 Garage Door Deadbolt     |       2           6   7          24  31
 38                          49
 6 7 Upper Back BR Dimmer     |       2   4   5       7  17      24  31  36
 38      40      46  47      49  54
 7 8 LH Appliance Module      |       2   4   5   6      17      24  31  36
 38      40      46  47      49  54  56
 17 13 GR_Motion Detector      |       2           6   7          24  31
                            49
 18 14 LH_Motion Detector      |
 24 20_LH_Thermostat           |       2   4   5   6   7  17          31  36
 38      40      46  47      49  54  56
 31 27 Garage Appliance Module |       2   4   5   6   7  17      24      36
 38      40      46  47      49  54
 36 32Lw Frt BR Dr Sensor      |       2           6   7          24  31
                            49
 38 34Lw Back BR Dr Sensor     |       2       5   6   7          24  31
                            49
 39 35Lw Hall Door Sensor      |
 40 36Lw Mstr BR Dr Sensor     |       2           6   7          24  31
                            49
 43 38Up BackBR_W Sensor       |
 46 41GR Lanai Dr Sensor       |       2           6   7          24  31
                            49
 47 42Up Hall Win Sensor       |       2           6   7          24  31
                            49
 48 43Garage_Door sensor       |
 49 44 Garage Outlet           |       2   4   5   6   7  17      24  31  36
 38      40      46  47          54  56
 54 49GR FDr Sensor            |       2           6   7          24  31
                            49
 56 51LH Window Sensor         |       2               7          24
                            49

Here is my routing table after changing batteries and running "repair" or healing my system.
2012-04-14 06:50:09                1   2   4   5   6   7  17  18  24  31  36
 38  39  40  43  46  47  49  54  56  57
------------------------------------------------------------------------------------------------------------------
 1 _Scene Controller          |       2   4       6   7          24  31
                        49
 2 4 GR_Thermostat            |           4       6   7          24  31
                        49
 4 5 Front Door Deadbolt      |       2               7          24
                        49
 5 6 Garage Door Deadbolt     |                       7          24
                        49
 6 7 Upper Back BR Dimmer     |       2   4           7          24  31
                        49
 7 8 LH Appliance Module      |       2   4   5   6              24  31
                        49
 17 13 GR_Motion Detector      |
 18 14 LH_Motion Detector      |
 24 20_LH_Thermostat           |       2   4   5   6   7              31
                        49
 31 27 Garage Appliance Module |       2   4       6   7          24
                        49
 36 32Lw Frt BR Dr Sensor      |
 38 34Lw Back BR Dr Sensor     |
 39 35Lw Hall Door Sensor      |
 40 36Lw Mstr BR Dr Sensor     |
 43 38Up BackBR_W Sensor       |
 46 41GR Lanai Dr Sensor       |
 47 42Up Hall Win Sensor       |
 49 44 Garage Outlet           |       2   4   5   6   7          24  31
 54 49GR FDr Sensor            |
 56 51LH Window Sensor         |
 57 53_Garage Door Sensor      |

Does anyone have  a clue what has happened?  When I check the advanced tab and scroll down to neighbors, the fields on these devices are empty.
Thanks
Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: Les F on July 18, 2012, 07:39:32 pm
Okay, I haven't been active in the forums that much recently, but it seems that this code is no longer available??
Link is showing 404.  Post #1 says in red End of Life.

Is there a better version, newer version different download ?? what??

I know I have an old version and wanted to update it.

Oh man... i just saw that Ap15e is no longer active in the forum.

Anyone got the last copy of code, or did anyone pick up support?




Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: mcvflorin on July 19, 2012, 10:09:32 am
I have the last version, but I don't know if I can distribute it without Ap15e's permission. I'll send him an e-mail about this, though I don't know if he'll reply to it.
Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: garrettwp on July 19, 2012, 10:16:00 am
With out his permission, distribution of his code would not be recommended. I believe he removed his code for reasons of him leaving.

- Garrett
Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: Les F on July 19, 2012, 11:14:24 am
Not to worry....thought I would ask...  what you all said does make sense.
Title: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: teonebello on October 29, 2012, 05:34:07 pm
Is this Plug in still avaiable? Are there other Plug in to see the zwave Matrix?
Thank you
Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: oTi@ on October 29, 2012, 05:43:45 pm
Is this Plug in still avaiable? Are there other Plug in to see the zwave Matrix?
The plug-in is not available anymore. I'm not aware of another one to visualize the neighbor graph.
Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: Intrepid on December 31, 2012, 12:52:45 pm
I've had a few GE switches that go missing until I power-cycle them.  Is there any other way to notify me that they're not responding?  Looks like this plugin was what I needed.
Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: epierre on March 18, 2014, 05:35:15 am
no news about this plugin anymore ?
Title: Re: [_CODE_] ADD - Alerter for Drowsy Devices V2.6
Post by: garrettwp on March 18, 2014, 08:34:47 am
This plugin is not available anymore, nor will it ever become available. The developer of the plug-in is no longer on the forum and has removed their plug-ins. With respect to their wishes distributing of the plug-ins files is prohibited.

- Garrett