.. image:: https://github.com/kk7ds/pynx584/actions/workflows/test.yaml/badge.svg
This is a tool to let you interact with your NetworX alarm panel via the NX584 module (which is built into NX8E panels). You must enable it in the configuration and enable the operations you want to be able to do before this will work.
This tool supports both the ASCII or Binary home automation protocol (and works with the binary only NX590E in addition to the ASCII or binary NX584/NX8E)
Install Locally
::
The server must be run on a machine with connectivity to the panel, which can be a local serial port, or a Serial-over-LAN device (i.e. a TCP socket). For example::
or::
Once that is running, you should be able to do something like this::
$ nx584_client summary +------+-----------------+--------+--------+ | Zone | Name | Bypass | Status | +------+-----------------+--------+--------+ | 1 | FRONT DOOR | - | False | | 2 | GARAGE DOOR | - | False | | 3 | SLIDING | - | False | | 4 | MOTION DETECTOR | - | False | +------+-----------------+--------+--------+ Partition 1 armed
$ nx584_client arm-stay
$ nx584_client arm-exit
$ nx584_client arm-auto
$ nx584_client disarm --master 1234
Install via Docker Compose
Before creating the Docker container, you need to define how you connect to the panel (local serial port, or a Serial-over-LAN device (i.e. a TCP socket)) in the :code:docker-compose.yml
file. Uncomment and edit the :code:environment
section to fit your needs::
version: "3.2"
services: pynx584: container_name: pynx584 image: kk7ds/pynx584 build: context: .docker dockerfile: Dockerfile restart: unless-stopped ports:
To build the image, create the Docker container and then run it, make sure you're at the root of the checked out repo and run::
You should now be able to conect to the pynx584 Docker container via its exposed port (default :code:5007
).
The config.ini
should be generated once the controller reports the first
zone name. However, here is a full config.ini
if you want to pre-populate
it with zone names::
[config]
max_zone = 5
euro_date_format = False
[email] fromaddr = security@foo.com smtphost = imap.foo.com
[zones]
1 = Front Door 2 = Garage Entry 3 = Garage Side 4 = Garage Back 5 = Kitchen
Your NX panel must be configured properly to allow this software to work with it. If it was configured by a monitoring company, there is a very good chance that it will need quite a bit of tweaking first. Here is a good start to what needs to be set and how:
Protocol: ASCII
Speed: 38400 Baud (OR WHICHEVER YOU CHOOSE)
Enabled Transition Messages:
Enabled Commands: