We have moved at community.getvera.com

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

Offline denix

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1088
  • Karma: +1/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #60 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?
Veras (1, 2, 3, Lite, Plus), lots of different Z-Wave modules, Luup plugins and theater/security integration.

Offline denix

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1088
  • Karma: +1/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #61 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...
Veras (1, 2, 3, Lite, Plus), lots of different Z-Wave modules, Luup plugins and theater/security integration.

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #62 on: January 29, 2011, 06:39:02 am »
ADD V2.3 adds the user adjustable variable include_routing_matrix_visualisation (as suggested by denix).

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #63 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

Offline denix

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1088
  • Karma: +1/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #64 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? :)
Veras (1, 2, 3, Lite, Plus), lots of different Z-Wave modules, Luup plugins and theater/security integration.

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #65 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.

Offline CMRancho

  • Hero Member
  • *****
  • Posts: 1008
  • Karma: +1/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #66 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.
Vera123beta; Schlage, Kwikset, TZEMT400; Linksys cams, Smarteye cams, HSM100; Aeon, Everspring, Cooper, Leviton, Intermatic, FortrezZ, Global Caché, USB-UIRT, Somfy, etc.

Offline denix

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1088
  • Karma: +1/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #67 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.
Veras (1, 2, 3, Lite, Plus), lots of different Z-Wave modules, Luup plugins and theater/security integration.

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #68 on: February 07, 2011, 10:04:56 am »
V2.4 adds information about Z-Wave signal quality.

Offline anthonyris

  • Sr. Member
  • ****
  • Posts: 250
  • Karma: +6/-1
Re: Alerter for Drowsy Devices (ADD)
« Reply #69 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.
Vera3x2, Leviton, GE dimmers, relays and lamp modules, Sonos, Nests...

Offline sjolshagen

  • Sr. Member
  • ****
  • Posts: 416
  • Karma: +5/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #70 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,
Vera3/UI5 @ v1.5.622

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #71 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.

Offline saf101

  • Sr. Newbie
  • *
  • Posts: 40
  • Karma: +0/-0
Re: Alerter for Drowsy Devices (ADD)
« Reply #72 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

Offline myhomeserver

  • Hero Member
  • *****
  • Posts: 874
  • Karma: +3/-5
  • http://www.MyZwave.net
Re: Alerter for Drowsy Devices (ADD)
« Reply #73 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)
MyZWave.net - See Our Z-Wave product Reviews
(formerly MyHomeServer)

Offline myhomeserver

  • Hero Member
  • *****
  • Posts: 874
  • Karma: +3/-5
  • http://www.MyZwave.net
Re: Alerter for Drowsy Devices (ADD)
« Reply #74 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 %
MyZWave.net - See Our Z-Wave product Reviews
(formerly MyHomeServer)