[userModule] Security Zone (Updated 2016/06/01)

Tips, Tricks and Scripts to enhance your home automation and workaround known device bugs, limitations and incompatibilities
Coffeelover
Posts: 34
Joined: 21 Sep 2015 15:47

Re: [userModule] Security zone (Updated 2016/02/20)

Post by Coffeelover »

Hi,

I've just checked, that its version 1.03 of base module running. This is the latest available version on the app store on WD NAS.

Is there a manual update option available?

Regards
cesonm
Posts: 2
Joined: 16 Mar 2016 01:51

Re: [userModule] Security zone (Updated 2016/02/20)

Post by cesonm »

Hi Maros.
I've been testing the module, and i'm not able it rises an alarm. Doing a basic configuration , with the default parameters and just choosing a door sensor to trigger the test, apparently according to the z-wave log, the trigger test is being catched by the security module, but the module never changes to the alarm state.It also doesn't write the alarm event.
As you can see bellow, i'm forcing the binary sensor to change from off to on, with the Security Define Zone in ON state, the SecurityZone gets the event from the sensor, but the module doesn't change to the alarmed state.. On the other hand, it's not possible to save the Checks threshold value.. If i leave it empty, or if i write there for examen a 1, apparently it's not saved... Taking into account that you need the threshold value to alarm the module , maybe there is a relation..
I have the last version of z-wave 2.1.1 on raspi B, last module-base version, and the last security-zone version. I have been checking your code a little bit, trying to force a default threshold value, but there wasn't luck..
Thank you very much for your time and help.


[2016-03-15 23:07:13.770] [core] --- SecurityZone_90 performCommand processing: {"0":"on","1":{}}
[2016-03-15 23:07:13.811] [core] [SecurityZone-90] Delayed arming zone 90
[2016-03-15 23:07:13.912] [core] [SecurityZone-90] Set activation delay
[2016-03-15 23:07:18.951] [core] [SecurityZone-90] Arm zone 90
[2016-03-15 23:07:18.964] [core] Notification: device-info (device-OnOff): {"dev":"Security Zones Energy","l":"on"}
[2016-03-15 23:07:19.281] [core] [BaseModule-64] Set lastLevel to on for SecurityZone_90 (was off)
[2016-03-15 23:07:26.608] [core] [SecurityZone-90] Triggered test from Puerta Principal Sensor 2-0-48-1 Fibar Group (ZWayVDev_zway_2-0-48-1)
[2016-03-15 23:07:26.841] [core] [SecurityZone-90] Triggered test from Puerta Principal Sensor 2-0-48-1 Fibar Group (ZWayVDev_zway_2-0-48-1)
cesonm
Posts: 2
Joined: 16 Mar 2016 01:51

Re: [userModule] Security zone (Updated 2016/02/20)

Post by cesonm »

Hi Maros again
I have download the module you have in beta, and the problem is solved, it was related with the threshold value as i supposed, .. Now it works, thank you very much..Here you have the traces working

2016-03-15 23:48:29.886] [core] --- SecurityZone_89 performCommand processing: {"0":"on","1":{}}
[2016-03-15 23:48:38.380] [core] [SecurityZone-89] Triggered test from Puerta Principal Sensor 2-0-48-1 Fibar Group (ZWayVDev_zway_2-0-48-1)
[2016-03-15 23:48:38.415] [core] [SecurityZone-89] Alarm
[2016-03-15 23:48:38.527] [core] [SecurityZone-89] Emit security.intrusion.alarm
[2016-03-15 23:48:38.531] [core] Notification: warning (module): Alarm! Intrusion was detected in zone Security Zones Intrusion: Puerta Principal Sensor 2-0-48-1 Fibar Group (Entradita)
[2016-03-15 23:48:38.537] [core] [SecurityZone-89] Triggered test from Puerta Principal Sensor 2-0-48-1 Fibar Group (ZWayVDev_zway_2-0-48-1)
[2016-03-15 23:48:38.781] [core] [SecurityZone-89] Triggered test from Puerta Principal Sensor 2-0-48-1 Fibar Group (ZWayVDev_zway_2-0-48-1)
eugene_kolesov
Posts: 12
Joined: 19 Apr 2016 14:39

Re: [userModule] Security zone (Updated 2016/02/20)

Post by eugene_kolesov »

Hello.
Thank you for an excellent module. Everything works fine.
Tell me please, I'm using EventWatcher and run the script. As it is possible to get the name of the triggered sensor in this script?
Many thanks
eugene_kolesov
Posts: 12
Joined: 19 Apr 2016 14:39

Re: [userModule] Security zone (Updated 2016/02/20)

Post by eugene_kolesov »

vDev=this.controller.devices.get("SecurityZone_NN");
Dvc=vDev.get('metrics:triggeredDevcies');
maros
Posts: 103
Joined: 05 Apr 2014 11:21

Re: [userModule] Security zone (Updated 2016/02/20)

Post by maros »

Latest version of EventWatcher also exposes the original event to the custom JavascriptEvent code. Just check out a variable called event
Z-Way 2.2.4 on Raspi B | My Zway GitHub repos | Amazon Wishlist to support module development
Post Reply