Author Topic: Elk disarm does not disarm devices in Vera  (Read 2801 times)

Offline activemind

  • Sr. Newbie
  • *
  • Posts: 45
  • Karma: +1/-0
Elk disarm does not disarm devices in Vera
« on: November 26, 2016, 12:02:11 pm »
I have most of the basic stuff working now, so am looking at the predefined modes in Vera.

First thing I notice is that the state of my individual devices does not change to disarm when I disarm the Elk.

Am I missing some config here where Elk is not reporting the status back to Vera? Does anyone have this working?

Like look at the capture below, my ELK is disarmed but my garage devices still show up as armed in Vera. 

Offline Quixote

  • Sr. Member
  • ****
  • Posts: 287
  • Karma: +10/-32
Re: Elk disarm does not disarm devices in Vera
« Reply #1 on: November 27, 2016, 01:08:28 am »
I could be wrong, but I think that it's an indication of the state of the sensor, ie.- armed=door closed. If anyone can correct me if I'm wrong, please do.
My "Karma" has been modified by 2 or 3 douchebags that didn't like that I criticized the plugin that they worship. I'm not actually a bad person.

Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3250
  • Karma: +190/-9
Re: Elk disarm does not disarm devices in Vera
« Reply #2 on: November 27, 2016, 07:04:59 am »
Assuming that the Elk panel plugin works like other alarm plugins: this is normal and correct. The armed status of a sensor is a Vera-side concept that doesn't map to anything that the alarm panel knows about. You can play with this switch however you like and it doesn't how the alarm panel partition behaves.  If your panel is armed, then tripping a zone will make the siren sound, whether the sensor is armed or not.

See two earlier semi-relevant threads about the difference between armed partitions and armed sensors: http://forum.micasaverde.com/index.php/topic,15316.msg116481.html#msg116481 http://forum.micasaverde.com/index.php/topic,36995.msg275963.html#msg275963

You can use this distinction to your advantage: use the alarm partition status to turn on/off security, and the sensor status to turn on/off automation.

Offline activemind

  • Sr. Newbie
  • *
  • Posts: 45
  • Karma: +1/-0
Re: Elk disarm does not disarm devices in Vera
« Reply #3 on: November 28, 2016, 01:03:57 am »
Thanks for the response.

Is there any way I can change the Vera state of the devices based on Elk state? I understand that this might require some changes to the plugin code but is there a API on the vera side that the plugin can called when suppose its disarmed?

-AM

Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3250
  • Karma: +190/-9
Re: Elk disarm does not disarm devices in Vera
« Reply #4 on: November 28, 2016, 04:44:29 am »
Is there any way I can change the Vera state of the devices based on Elk state?

Yes, I expect that you can make a couple of scenes that are triggered by the alarm partition's arm state, and make those scenes arm or disarm the sensors. I just don't know what you'd gain by doing that.

Offline shallowearth

  • Hero Member
  • *****
  • Posts: 951
  • Karma: +44/-9
Re: Elk disarm does not disarm devices in Vera
« Reply #5 on: November 28, 2016, 08:53:03 am »
With my alarm integration I use the House Mode plug in and the Mode settings do what you are talking about.  When Armed Stay, trigger a scene that changes the Vera mode to Night, and go into the Mode dashboard and set what sensors you want Armed.  When Armed Away trigger Away Mode on the Vera, and set the sensor arm/disarm in the Mode dashboard.   Ditto for Home, when you disarm the alarm, set the Vera mode to home, and make sure your sensor states are what you want in the Mode dash board for Home.

That is the most straight forward way to do what you want.



Offline activemind

  • Sr. Newbie
  • *
  • Posts: 45
  • Karma: +1/-0
Re: Elk disarm does not disarm devices in Vera
« Reply #6 on: November 28, 2016, 12:52:08 pm »
Thanks, I will have to check out the Home Mode plugin you are talking about. It seems to be doing what I want.

-AM

Offline bucko

  • Hero Member
  • *****
  • Posts: 637
  • Karma: +26/-7
    • Travel and Living in China
Re: Elk disarm does not disarm devices in Vera
« Reply #7 on: November 28, 2016, 07:28:26 pm »
I must be missing something here. The Vera state of a device (Armed, Bypass) has nothing to do with the alarm panel. Frankly I don't understand exactly what it has to do with anything.

All my devices are armed all the time, Why would you want them to be anything else?
That being said, I do have 1 thing that I bypass. I have 2 PLEG devices for my lighting. When I arm away, I have my PLEG lighting control go to bypass and another PLEG lighting control go to arm. My armed lighting control puts my lights on a mode that turns them off/on so my house has the occupied look from outside. Otherwise they are normally controlled via OC sensors when I am in house.

But security devices? Why would they not ALWAYS just be armed?
Vera 3, 40+ Fibaro relays & dimmers, IPUX cams, Elk M1 Gold, M1XEP, M1SP, XVOR, M1RB, Elk124, Monoprice HDMI matrix & 6 zone amp, Denon AVR, Panasonic A8000, BI DV,On Controls

Offline shallowearth

  • Hero Member
  • *****
  • Posts: 951
  • Karma: +44/-9
Re: Elk disarm does not disarm devices in Vera
« Reply #8 on: November 28, 2016, 07:57:13 pm »
@bucko, if you use any of the newer notifications in UI7 for security devices, you will know why you don't want your interior motion sensors armed while you are home... you will get endless notifications and alerts about the motion sensors being tripped as you move about the house.  Don't need to know someone is home tripping the motion sensors if I am already home :-)  But for example my flood sensor... I leave that armed all the time... definitely want to be notified that my washing machine is leaking even if I am home.  Since I have some sensors that are part of my security system, but some that are just z-wave Vera devices, having them all armed in Vera when I am away is good, having only some of them armed when I am home is also good, if I want to use the built in alert system (vs a plug in).



Offline bucko

  • Hero Member
  • *****
  • Posts: 637
  • Karma: +26/-7
    • Travel and Living in China
Re: Elk disarm does not disarm devices in Vera
« Reply #9 on: November 30, 2016, 09:29:44 pm »
OK I see. I am on UI5 and have always kept everything armed. UI7-different animal
Vera 3, 40+ Fibaro relays & dimmers, IPUX cams, Elk M1 Gold, M1XEP, M1SP, XVOR, M1RB, Elk124, Monoprice HDMI matrix & 6 zone amp, Denon AVR, Panasonic A8000, BI DV,On Controls

Offline activemind

  • Sr. Newbie
  • *
  • Posts: 45
  • Karma: +1/-0
Re: Elk disarm does not disarm devices in Vera
« Reply #10 on: December 02, 2016, 09:11:18 pm »
With my alarm integration I use the House Mode plug in and the Mode settings do what you are talking about.  When Armed Stay, trigger a scene that changes the Vera mode to Night, and go into the Mode dashboard and set what sensors you want Armed.  When Armed Away trigger Away Mode on the Vera, and set the sensor arm/disarm in the Mode dashboard.   Ditto for Home, when you disarm the alarm, set the Vera mode to home, and make sure your sensor states are what you want in the Mode dash board for Home.

That is the most straight forward way to do what you want.

Works perfect! This is exactly what I wanted. Thank you.

-AM

Offline activemind

  • Sr. Newbie
  • *
  • Posts: 45
  • Karma: +1/-0
Re: Elk disarm does not disarm devices in Vera
« Reply #11 on: December 02, 2016, 09:45:40 pm »
@bucko, if you use any of the newer notifications in UI7 for security devices, you will know why you don't want your interior motion sensors armed while you are home... you will get endless notifications and alerts about the motion sensors being tripped as you move about the house.  Don't need to know someone is home tripping the motion sensors if I am already home :-)  But for example my flood sensor... I leave that armed all the time... definitely want to be notified that my washing machine is leaking even if I am home.  Since I have some sensors that are part of my security system, but some that are just z-wave Vera devices, having them all armed in Vera when I am away is good, having only some of them armed when I am home is also good, if I want to use the built in alert system (vs a plug in).

What he said above!! I got 8K txt this month....thank god I am on unlimited plan  ::)

Offline Quixote

  • Sr. Member
  • ****
  • Posts: 287
  • Karma: +10/-32
Re: Elk disarm does not disarm devices in Vera
« Reply #12 on: December 05, 2016, 12:41:55 am »
Wow, ok. This stuff is a lot more confusing than I thought.
Can someone here that triggers scenes based on the arming or disarming of your system let me know the trick that I'm missing please? I haven't had any success.
I've used Lua code to prevent the scene from executing based on the type of arming/disarming of the system, but it only works as intended when I do a manual test of the scene rather than changing the arm state of the system (as it is supposed to function).
Thanks in advance.
My "Karma" has been modified by 2 or 3 douchebags that didn't like that I criticized the plugin that they worship. I'm not actually a bad person.

Offline shallowearth

  • Hero Member
  • *****
  • Posts: 951
  • Karma: +44/-9
Re: Elk disarm does not disarm devices in Vera
« Reply #13 on: December 05, 2016, 03:18:13 am »
Sorry Quixote, way more info needed.  What are you trying to do exactly?  you shouldn't have to use any LUA code for disarm, stay, or away, but If you want LUA code debugged you should post it.

Also what security system are you using?

Offline Quixote

  • Sr. Member
  • ****
  • Posts: 287
  • Karma: +10/-32
Re: Elk disarm does not disarm devices in Vera
« Reply #14 on: December 05, 2016, 09:51:54 am »
Sorry Quixote, way more info needed.  What are you trying to do exactly?  you shouldn't have to use any LUA code for disarm, stay, or away, but If you want LUA code debugged you should post it.

Also what security system are you using?

Yes, of course. Sorry for my vagueness.
I'm using an Elk M1, and I want to have announcements on my mobile phone using email messages sent to me which are then transformed into texts and read aloud by my phone using an Android app called eNotify.
I can manage most of that, but the problem is triggering those messages based on alarm system events.

Here is one scenario:
I walk to my front door and disarm the system from "Stay Instant", open the door and exit, arming the system using a system I have outside my front door. I receive an alert telling me that the system is "Armed Away". I will receive a text if the front door is opened while the system is armed in any state. Returning home I disarm the system (receive a text), enter and set the system to "Armed Stay Instant". In this case, the system differentiates between the two armed states and sends no text indicating that the system has been armed.
So far I've been trying to use the built-in triggers presented with scene creation (eg. - "Partition 1: Area 1 is Armed"), Sending "Smtp Notification Custom action" with the plugin as an action and some snippets of Lua like this entered into the Lua code section of the 3rd step of scene creation:

local allow = true
local status = luup.variable_get("urn:micasaverde-com:serviceId:AlarmPartition2","DetailedArmMode",6)
return ((status == "Ready") == allow)


I'm using the states "Ready", "Armed", and "StayInstant".
I hope that's more clear. Please let me know if I've left anything out.
Thanks.
My "Karma" has been modified by 2 or 3 douchebags that didn't like that I criticized the plugin that they worship. I'm not actually a bad person.