Safety: power the panel down before connecting a serial adapter to its interface, and have the installer do it if you are unsure. If the system is monitored, the pynx584 README warns that the panel may need quite a bit of tweaking first, so talk to the monitoring company before changing anything.
Step 1: panel settings
The README gives a good starting point for what the panel's interface needs. In summary: protocol ASCII, a speed such as 38400 baud, the transition messages enabled (interface configuration, zone status, partition status, system status and log event), and the commands enabled (interface configuration, zone name, zone status, zones snapshot, partition status, partitions snapshot, log event and system status requests). Keypad and X-10 messages and program data are optional. Follow the README and your panel's programming manual for how to set these.
Step 2: run the server
Either install with pip (pip install pynx584) and run it, for example:
Code: Select all
nx584_server --serial /dev/ttyUSB0 --baud 38400Code: Select all
nx584_server --connect 192.168.40.50:23Code: Select all
ports:
- "127.0.0.1:5007:5007"Step 3: zone names
The README says a config.ini is generated once the controller reports its first zone name, and you can pre-populate it with zone names, set max_zone, and set options such as use_binary_protocol and idle_time_heartbeat_seconds (the README notes the NX590 disconnects idle connections quickly).
Step 4: Home Assistant YAML
From the Home Assistant NX584 docs (both are YAML only):
Code: Select all
alarm_control_panel:
- platform: nx584
host: 127.0.0.1
port: 5007
binary_sensor:
- platform: nx584
host: 127.0.0.1
port: 5007
exclude_zones:
- 3
- 5
zone_types:
1: opening
2: opening
4: motion
6: moistureStep 5: security checks
- Check which interface the server is listening on (for example with ss -ltnp) and confirm that it is not reachable from other VLANs.
- Keep the master code out of automations and Git. The client's disarm command takes the code on the command line, which can end up in shell history.
- Do not automate disarm from presence or voice.
- Back up config.ini and your Home Assistant YAML.
The concord232 project follows the same pattern: install it with pip, run concord232_server --serial /dev/ttyUSB0 on the machine wired to the RS-232 module, check it with concord232_client summary, and then point Home Assistant at it using the Concord232 integration.
Discussion: did the panel settings give you any trouble, particularly if a monitoring company had programmed it? Which zone states and troubles are you using in automations?