12.02.2020, 12:20
Hi
We run a Ness (aka ELK) DX16X alarm here which as an IP connection. The status reporting and control protocol is documented at the following link
http://www.nesscorporation.com/Software/...otocol.pdf
I can find integrations using this protocol for other platforms such as the following https://nessclient.readthedocs.io/en/lat...mples.html and https://community.home-assistant.io/t/ne.../23285/163 but nothing for LogicMachine as yet.
I've started writing a script to connect the the system and can receive data ok, but need some help with getting the specific info and processing the responses in LUA.
Initially I'm interested in mapping the state of each zone back to objects in Logic Machine (after sending a status update command) from a resident script but haven't been able to figure out the protocol as yet.
Does anyone have a script that can do this? Initially the is the info that I'm keen to track
0/210/1 Sealed/Unsealed state of Zone 1
0/210/2 Sealed/Unsealed state of Zone 2
0/210/3 Sealed/Unsealed state of Zone 3
0/210/4 Sealed/Unsealed state of Zone 4
0/210/5 Sealed/Unsealed state of Zone 5
0/210/6 Sealed/Unsealed state of Zone 6
0/210/7 Sealed/Unsealed state of Zone 7
0/210/8 Sealed/Unsealed state of Zone 8
0/210/9 Sealed/Unsealed state of Zone 9
0/210/10 Sealed/Unsealed state of Zone 10
0/210/11 Sealed/Unsealed state of Zone 11
0/210/12 Sealed/Unsealed state of Zone 12
0/210/13 Sealed/Unsealed state of Zone 13
0/210/14 Sealed/Unsealed state of Zone 14
0/210/15 Sealed/Unsealed state of Zone 15
0/210/16 Sealed/Unsealed state of Zone 26
and also the overall state of the alarm
0/210/20 All Zones Ok - true/false
0/210/30 Armed State - Disarmed (0), Fully armed (1), Partially armed (2)
0/210/40 Alarm Sounding - true/false
Many thanks in advance
Kind Regards
James
We run a Ness (aka ELK) DX16X alarm here which as an IP connection. The status reporting and control protocol is documented at the following link
http://www.nesscorporation.com/Software/...otocol.pdf
I can find integrations using this protocol for other platforms such as the following https://nessclient.readthedocs.io/en/lat...mples.html and https://community.home-assistant.io/t/ne.../23285/163 but nothing for LogicMachine as yet.
I've started writing a script to connect the the system and can receive data ok, but need some help with getting the specific info and processing the responses in LUA.
Code:
socket = require("socket").tcp()
socket:connect('192.168.1.150', 2401)
socket:send(command .. '\n')
res = socket:receive('*l')
log('\nNESSCommand: ' .. command .. '\nNESSResponse : ' .. res)
Initially I'm interested in mapping the state of each zone back to objects in Logic Machine (after sending a status update command) from a resident script but haven't been able to figure out the protocol as yet.
Does anyone have a script that can do this? Initially the is the info that I'm keen to track
0/210/1 Sealed/Unsealed state of Zone 1
0/210/2 Sealed/Unsealed state of Zone 2
0/210/3 Sealed/Unsealed state of Zone 3
0/210/4 Sealed/Unsealed state of Zone 4
0/210/5 Sealed/Unsealed state of Zone 5
0/210/6 Sealed/Unsealed state of Zone 6
0/210/7 Sealed/Unsealed state of Zone 7
0/210/8 Sealed/Unsealed state of Zone 8
0/210/9 Sealed/Unsealed state of Zone 9
0/210/10 Sealed/Unsealed state of Zone 10
0/210/11 Sealed/Unsealed state of Zone 11
0/210/12 Sealed/Unsealed state of Zone 12
0/210/13 Sealed/Unsealed state of Zone 13
0/210/14 Sealed/Unsealed state of Zone 14
0/210/15 Sealed/Unsealed state of Zone 15
0/210/16 Sealed/Unsealed state of Zone 26
and also the overall state of the alarm
0/210/20 All Zones Ok - true/false
0/210/30 Armed State - Disarmed (0), Fully armed (1), Partially armed (2)
0/210/40 Alarm Sounding - true/false
Many thanks in advance
Kind Regards
James