Hello everyone,
I’m working on integrating my home security system to Vera, I purchased a Wiznet device and was able to figure out how to hook it up to my vera. The only thing that was different than the instructions was the baud rate on mine was 9600 and I believe 38400 was mentioned.
Other than that I have done the integration and was able to scan partition 1 for the 8 zones that I have. The only question that I have now is the only thing that I’m able to do from the vera is arm the system. I was hoping to be able to get events and build logic around things like doors being opened but for some reason I’m not seeing anything in vera actually telling me that the door has opened. I turned on debug logging and I see events in the logs when I open the door but nothing in the UI???
Can anyone help me here? I’ve attached a screenshot of what I have so far.
Below is some data that I’m seeing in the logs around a door open event, you can also see below I’m able to arm the system from my phone but for some reason it won’t let me disarm the system.
There’s something very dodgy about that log. There are absolutely no zone status messages (04) coming from the serial port. My first guess is that you haven’t enabled asynchronous zone status messages to be transmitted from the panel.
Capture the Luup log while you do a Luup engine restart (the Reload button at top right). The log enumerates what messages are enabled.
The same log may help identify why disarming is failing. But let’s get the zone status working first as it is more fundamental.
Futzle,
Thanks much for the information. That is very possible that I haven’t enabled asynchronous zone status messages… I have read the owners manual to my system many times and I’m not understanding how to configure the status messages. I’m thinking that the previous owner didn’t give me the master code because when I hit *8 “code” nothing happens. Maybe I’m missing something there. I noticed that I can hit *1 for “Master Mode”, but that only allows me to arm and disarm.
Here is what the logs look like after a lua reload:
50 02/08/13 7:44:06.015 luup_log:125: Initializing Caddx NX-584 __LEAK__ this:323584 start:3313664 to 0x1f7e000 <0x2b735680>
50 02/08/13 7:44:06.016 luup_log:125: Opening serial port <0x2b735680>
50 02/08/13 7:44:06.017 luup_log:125: Sending message and waiting for response: 0x21 Interface Configuration Request <0x2b735680>
50 02/08/13 7:44:06.018 luup_log:125: Message: Outgoing: 0x7e 0x01 0x21 0x22 0x23 <0x2b735680>
50 02/08/13 7:44:06.304 luup_log:125: Received good message 0x01 <0x2b735680>
50 02/08/13 7:44:06.305 luup_log:125: Message: Incoming message body: 0x32 0x2e 0x30 0x30 0x42 0x03 0xfa 0x07 0x00 0x48 <0x2b735680>
50 02/08/13 7:44:06.305 luup_log:125: Handling message: 0x01 Interface Configuration <0x2b735680>
50 02/08/13 7:44:06.305 luup_log:125: Firmware version 2.00 <0x2b735680>
50 02/08/13 7:44:06.306 luup_log:125: Zone Name enabled <0x2b735680>
50 02/08/13 7:44:06.306 luup_log:125: Log Event enabled <0x2b735680>
50 02/08/13 7:44:06.306 luup_log:125: Set Clock enabled <0x2b735680>
50 02/08/13 7:44:06.307 luup_log:125: Secondary Keypad Function enabled <0x2b735680>
50 02/08/13 7:44:06.307 luup_log:125: Sending message and waiting for response: 0x3b Set Interface Clock <0x2b735680>
50 02/08/13 7:44:06.308 luup_log:125: Message: Outgoing: 0x7e 0x07 0xbb 0x0d 0x02 0x08 0x07 0x2c 0x06 0x13 0x46 <0x2b735680>
50 02/08/13 7:44:06.543 luup_log:125: Received good message 0x1d <0x2b735680>
50 02/08/13 7:44:06.544 luup_log:125: Message: Incoming message body: <0x2b735680>
50 02/08/13 7:44:06.544 luup_log:125: Sending message and waiting for response: 0x28 System Status Request <0x2b735680>
50 02/08/13 7:44:06.545 luup_log:125: Message: Outgoing: 0x7e 0x01 0x28 0x29 0x2a <0x2b735680>
50 02/08/13 7:44:06.708 luup_log:125: Received good message 0x08 <0x2b735680>
50 02/08/13 7:44:06.709 luup_log:125: Message: Incoming message body: 0x01 0x00 0x04 0x00 0x00 0x02 0x00 0x00 0x00 0x01 0x34 <0x2b735680>
50 02/08/13 7:44:06.709 luup_log:125: Handling message: 0x08 System Status <0x2b735680>
50 02/08/13 7:44:06.710 luup_log:125: Valid partition 1 <0x2b735680>
50 02/08/13 7:44:06.710 luup_log:125: PIN length is 4 <0x2b735680>
50 02/08/13 7:44:06.710 luup_log:125: Handling message: 0x08 System Status <0x2b735680>
50 02/08/13 7:44:06.774 luup_log:125: Setting up partition 1 <0x2b735680>
50 02/08/13 7:44:06.774 luup_log:125: Sending message and waiting for response: 0x26 Partition Status Request <0x2b735680>
50 02/08/13 7:44:06.775 luup_log:125: Message: Outgoing: 0x7e 0x02 0x26 0x00 0x28 0x52 <0x2b735680>
50 02/08/13 7:44:06.911 luup_log:125: Received good message 0x06 <0x2b735680>
50 02/08/13 7:44:06.911 luup_log:125: Message: Incoming message body: 0x00 0x20 0x00 0x00 0x40 0x05 0x04 0x80 <0x2b735680>
50 02/08/13 7:44:06.911 luup_log:125: Handling message: 0x06 Partition Status <0x2b735680>
50 02/08/13 7:44:06.922 luup_log:125: Searching for zone 1 <0x2b735680>
50 02/08/13 7:44:06.923 luup_log:125: Zone 1 (ENTRY DOOR): D_DoorSensor1.xml <0x2b735680>
50 02/08/13 7:44:06.923 luup_log:125: Searching for zone 2 <0x2b735680>
50 02/08/13 7:44:06.924 luup_log:125: Zone 2 (FRONT DOOR): D_DoorSensor1.xml <0x2b735680>
50 02/08/13 7:44:06.924 luup_log:125: Searching for zone 3 <0x2b735680>
50 02/08/13 7:44:06.924 luup_log:125: Zone 3 (DECK DOOR): D_DoorSensor1.xml <0x2b735680>
50 02/08/13 7:44:06.925 luup_log:125: Searching for zone 4 <0x2b735680>
50 02/08/13 7:44:06.926 luup_log:125: Zone 4 (BASEMENT SLIDER): D_DoorSensor1.xml <0x2b735680>
50 02/08/13 7:44:06.926 luup_log:125: Searching for zone 5 <0x2b735680>
50 02/08/13 7:44:06.927 luup_log:125: Zone 5 (BSMT GARAGE DOOR): D_DoorSensor1.xml <0x2b735680>
50 02/08/13 7:44:06.927 luup_log:125: Searching for zone 6 <0x2b735680>
50 02/08/13 7:44:06.927 luup_log:125: Zone 6 (GLASSBREAK): D_MotionSensor1.xml <0x2b735680>
50 02/08/13 7:44:06.928 luup_log:125: Searching for zone 7 <0x2b735680>
50 02/08/13 7:44:06.928 luup_log:125: Zone 7 (BSMT MOTION): D_MotionSensor1.xml <0x2b735680>
50 02/08/13 7:44:06.929 luup_log:125: Searching for zone 8 <0x2b735680>
50 02/08/13 7:44:06.929 luup_log:125: Zone 8 (SMOKE DETECTORS): D_SmokeSensor1.xml <0x2b735680>
50 02/08/13 7:44:06.930 luup_log:125: Searching for zone 9 <0x2b735680>
50 02/08/13 7:44:06.930 luup_log:125: Searching for zone 10 <0x2b735680>
50 02/08/13 7:44:06.930 luup_log:125: Searching for zone 11 <0x2b735680>
50 02/08/13 7:44:06.931 luup_log:125: Searching for zone 12 <0x2b735680>
50 02/08/13 7:44:06.931 luup_log:125: Searching for zone 13 <0x2b735680>
50 02/08/13 7:44:06.931 luup_log:125: Searching for zone 14 <0x2b735680>
50 02/08/13 7:44:06.942 luup_log:125: Searching for zone 15 <0x2b735680>
50 02/08/13 7:44:06.943 luup_log:125: Searching for zone 16 <0x2b735680>
50 02/08/13 7:44:06.943 luup_log:125: Searching for zone 17 <0x2b735680>
50 02/08/13 7:44:06.943 luup_log:125: Searching for zone 18 <0x2b735680>
50 02/08/13 7:44:06.944 luup_log:125: Searching for zone 19 <0x2b735680>
50 02/08/13 7:44:06.944 luup_log:125: Searching for zone 20 <0x2b735680>
50 02/08/13 7:44:06.945 luup_log:125: Searching for zone 21 <0x2b735680>
50 02/08/13 7:44:06.945 luup_log:125: Searching for zone 22 <0x2b735680>
50 02/08/13 7:44:06.946 luup_log:125: Searching for zone 23 <0x2b735680>
50 02/08/13 7:44:06.946 luup_log:125: Searching for zone 24 <0x2b735680>
50 02/08/13 7:44:06.947 luup_log:125: Searching for zone 25 <0x2b735680>
50 02/08/13 7:44:06.947 luup_log:125: Searching for zone 26 <0x2b735680>
50 02/08/13 7:44:06.947 luup_log:125: Searching for zone 27 <0x2b735680>
50 02/08/13 7:44:06.948 luup_log:125: Searching for zone 28 <0x2b735680>
50 02/08/13 7:44:06.948 luup_log:125: Searching for zone 29 <0x2b735680>
50 02/08/13 7:44:06.948 luup_log:125: Searching for zone 30 <0x2b735680>
50 02/08/13 7:44:06.949 luup_log:125: Searching for zone 31 <0x2b735680>
50 02/08/13 7:44:06.949 luup_log:125: Searching for zone 32 <0x2b735680>
50 02/08/13 7:44:06.950 luup_log:125: Searching for zone 33 <0x2b735680>
50 02/08/13 7:44:06.950 luup_log:125: Searching for zone 34 <0x2b735680>
50 02/08/13 7:44:06.950 luup_log:125: Searching for zone 35 <0x2b735680>
50 02/08/13 7:44:06.951 luup_log:125: Searching for zone 36 <0x2b735680>
50 02/08/13 7:44:06.951 luup_log:125: Searching for zone 37 <0x2b735680>
50 02/08/13 7:44:06.951 luup_log:125: Searching for zone 38 <0x2b735680>
50 02/08/13 7:44:06.962 luup_log:125: Searching for zone 39 <0x2b735680>
50 02/08/13 7:44:06.962 luup_log:125: Searching for zone 40 <0x2b735680>
50 02/08/13 7:44:06.963 luup_log:125: Searching for zone 41 <0x2b735680>
50 02/08/13 7:44:06.963 luup_log:125: Searching for zone 42 <0x2b735680>
50 02/08/13 7:44:06.963 luup_log:125: Searching for zone 43 <0x2b735680>
50 02/08/13 7:44:06.964 luup_log:125: Searching for zone 44 <0x2b735680>
50 02/08/13 7:44:06.964 luup_log:125: Searching for zone 45 <0x2b735680>
50 02/08/13 7:44:06.965 luup_log:125: Searching for zone 46 <0x2b735680>
50 02/08/13 7:44:06.965 luup_log:125: Searching for zone 47 <0x2b735680>
50 02/08/13 7:44:06.965 luup_log:125: Searching for zone 48 <0x2b735680>
50 02/08/13 7:44:07.294 luup_log:125: Setting state for partition 1 <0x2b735680>
50 02/08/13 7:44:07.295 luup_log:125: ChimeEnabled: 0 <0x2b735680>
50 02/08/13 7:44:07.296 luup_log:125: AlarmMemory: 0 <0x2b735680>
50 02/08/13 7:44:07.297 luup_log:125: Alarm: None <0x2b735680>
50 02/08/13 7:44:07.297 luup_log:125: DetailedArmMode: Ready <0x2b735680>
50 02/08/13 7:44:07.298 luup_log:125: ArmMode: Disarmed <0x2b735680>
50 02/08/13 7:44:07.299 luup_log:125: Setting state for zone 1 <0x2b735680>
50 02/08/13 7:44:07.300 luup_log:125: Tripped: 0 <0x2b735680>
50 02/08/13 7:44:07.301 luup_log:125: Armed: 0 <0x2b735680>
50 02/08/13 7:44:07.312 luup_log:125: Setting state for zone 2 <0x2b735680>
50 02/08/13 7:44:07.312 luup_log:125: Tripped: 0 <0x2b735680>
50 02/08/13 7:44:07.314 luup_log:125: Armed: 0 <0x2b735680>
50 02/08/13 7:44:07.314 luup_log:125: Setting state for zone 3 <0x2b735680>
50 02/08/13 7:44:07.315 luup_log:125: Tripped: 0 <0x2b735680>
50 02/08/13 7:44:07.315 luup_log:125: Armed: 0 <0x2b735680>
50 02/08/13 7:44:07.316 luup_log:125: Setting state for zone 4 <0x2b735680>
50 02/08/13 7:44:07.317 luup_log:125: Tripped: 0 <0x2b735680>
50 02/08/13 7:44:07.317 luup_log:125: Armed: 0 <0x2b735680>
50 02/08/13 7:44:07.318 luup_log:125: Setting state for zone 5 <0x2b735680>
50 02/08/13 7:44:07.319 luup_log:125: Tripped: 0 <0x2b735680>
50 02/08/13 7:44:07.320 luup_log:125: Armed: 0 <0x2b735680>
50 02/08/13 7:44:07.320 luup_log:125: Setting state for zone 6 <0x2b735680>
50 02/08/13 7:44:07.321 luup_log:125: Tripped: 0 <0x2b735680>
50 02/08/13 7:44:07.322 luup_log:125: Armed: 0 <0x2b735680>
50 02/08/13 7:44:07.336 luup_log:125: Setting state for zone 7 <0x2b735680>
50 02/08/13 7:44:07.336 luup_log:125: Tripped: 0 <0x2b735680>
50 02/08/13 7:44:07.338 luup_log:125: Armed: 0 <0x2b735680>
50 02/08/13 7:44:07.339 luup_log:125: Setting state for zone 8 <0x2b735680>
50 02/08/13 7:44:07.339 luup_log:125: Tripped: 0 <0x2b735680>
50 02/08/13 7:44:07.340 luup_log:125: Armed: 0 <0x2b735680>
50 02/08/13 7:44:07.341 luup_log:125: Finished initialization <0x2b735680>
Here is a door opening then closing:
50 02/08/13 7:58:06.391 luup_log:125: Received good message 0x06, acknowledge requested <0x31d76680>
50 02/08/13 7:58:06.391 luup_log:125: Message: Incoming message body: 0x00 0x20 0x00 0x00 0x40 0x05 0x00 0x80 <0x31d76680>
50 02/08/13 7:58:06.392 luup_log:125: Handling message: 0x06 Partition Status <0x31d76680>
50 02/08/13 7:58:06.392 luup_log:125: Setting state for partition 1 <0x31d76680>
50 02/08/13 7:58:06.394 luup_log:125: ChimeEnabled: 0 <0x31d76680>
50 02/08/13 7:58:06.394 luup_log:125: AlarmMemory: 0 <0x31d76680>
50 02/08/13 7:58:06.395 luup_log:125: Alarm: None <0x31d76680>
50 02/08/13 7:58:06.396 luup_log:125: DetailedArmMode: Disarmed <0x31d76680>
50 02/08/13 7:58:06.397 luup_log:125: ArmMode: Disarmed <0x31d76680>
50 02/08/13 7:58:06.398 luup_log:125: Sending message: 0x1D Positive Acknowledge <0x31d76680>
50 02/08/13 7:58:06.398 luup_log:125: Message: Outgoing: 0x7e 0x01 0x1d 0x1e 0x1f <0x31d76680>
50 02/08/13 7:58:08.627 luup_log:125: Received good message 0x06, acknowledge requested <0x31d76680>
50 02/08/13 7:58:08.627 luup_log:125: Message: Incoming message body: 0x00 0x20 0x00 0x00 0x40 0x05 0x04 0x80 <0x31d76680>
50 02/08/13 7:58:08.628 luup_log:125: Handling message: 0x06 Partition Status <0x31d76680>
50 02/08/13 7:58:08.628 luup_log:125: Setting state for partition 1 <0x31d76680>
50 02/08/13 7:58:08.630 luup_log:125: ChimeEnabled: 0 <0x31d76680>
50 02/08/13 7:58:08.630 luup_log:125: AlarmMemory: 0 <0x31d76680>
50 02/08/13 7:58:08.631 luup_log:125: Alarm: None <0x31d76680>
50 02/08/13 7:58:08.631 luup_log:125: DetailedArmMode: Ready <0x31d76680>
50 02/08/13 7:58:08.633 luup_log:125: ArmMode: Disarmed <0x31d76680>
50 02/08/13 7:58:08.633 luup_log:125: Sending message: 0x1D Positive Acknowledge <0x31d76680>
50 02/08/13 7:58:08.634 luup_log:125: Message: Outgoing: 0x7e 0x01 0x1d 0x1e 0x1f <0x31d76680>
The Luup log confirms my suspicions: it isn’t printing “All message codes are supported.” which means that at least one message is disabled. I’m surprised that it’s working as well as it is, actually.
The Luup log also confirms that arm-with-PIN and disarm-with-PIN are disabled too (“Primary Keypad Function with PIN enabled” is not printed).
You really need that programming code. The programming code is not the same as the master PIN. There is no way to recover the code or to reset it without specialized equipment. When the alarm system ships the default code is 9731 (correction) 9713. You may as well try it.
Any chance I that I can get help from someone on this board to direct me in the the right way to enable these messages? I have looked over the installation manual and I’m not able to correlate the items listed below in the instructions to the installation manual to get my panel sending the right messages.
Thanks in advance for your help!
Preparing the alarm system interface
The NX-584 must be programmed from a keypad connected to the alarm system.
Set the baud rate to match the setting on the other end of the serial cable. I use 38400, the default.
The interface must accept the following message types:
Interface configuration message 01h
Zone status message 04h
Zones snapshot message 05h
Partition status message 06h
Partitions snapshot message 07h
System status message 08h
Interface configuration request 21h
Zone status request 24h
Zones snapshot request 25h
Partition status request 26h
Partitions snapshot request 27h
System status request 28h
Optional message types:
Zone name message 03h and Zone name request 23h, if you have keypads that can display zone names and you want the plugin to fetch the names of the zones from the keypad.
Set clock/calendar command 3Bh, if you want Vera to set the clock on the panel whenever the Luup plugin is started.
Primary keypad function with PIN 3Ch, if you want Vera to be able to arm or disarm a partition with a PIN.
Secondary keypad function 3Eh, if you want Vera to be able to run Quick Arm and Quick Stay.
Zone bypass toggle 3Fh, if you want Vera to be able to arm or bypass zones.
Log Message 0Ah, if you want to get system status information from the panel.
(Todo: write instructions for this, referring to the NX-584 installation manual.)
whoamib, is your interface board an NX-584 expansion or the NX-8E main board?
Edit: also, are you using an LCD keypad or LED keypad?
Edit edit: Here is a handy post from user eddie showing the precise setup for the NX-8E. If you are using the NX-584 the main difference is that the device address is “72#” not “0#”, and the Locations are in the range 0-3 not 208-211.
For the NX-584, you should have got the installation manual with it. If not, Google for it. Here is one I found online. Page 5 shows how to get into program mode, and pages 7-11 describe the locations and segments that you need to program. The layout is pretty much the same as eddie’s NX-8E post, only the locations are differently mapped:
[ul][li]NX-8E location 208 is NX-584 location 1[/li]
[li]NX-8E location 209 is NX-584 location 0[/li]
[li]NX-8E location 210 is NX-584 location 2[/li]
[li]NX-8E location 211 is NX-584 location 3[/li][/ul]
Futzle,
Thank you so much for your help! That was very helpful, I was looking in the wrong manual completely. I have the NX-584 expansion card that I installed, and I have the LED keypad. I typed in 72# then got to the locations 0-3, and was on my way.
It seems to be working pretty well, except I’m having a little trouble going to Arm or Bypass mode, it seems to only work sometimes. Other than that I’m off and running with the system.
There are probably still some remnant bugs related to bypassing zones. The serial protocol only gives the option to toggle bypass state, making it only as reliable as the plugin’s ability to keep track of the current state. Do make sure that you have enabled the “Toggle Zone Bypass” (3F) message in Location 3.
If you can reproduce a bug reliably please report it here and I will try to fix it or work around it.