Pyronix Alarm (PyronixCloud)

Driver by Sammi · version 25

Connects Control4 to a Pyronix Enforcer or Euro panel through PyronixCloud, the same relay the HomeControl 2.0 app uses. No bridge box or server is needed: the controller talks to the cloud directly over TLS.

Unofficial integration. This driver uses a community reverse-engineered protocol, not a Pyronix API. Pyronix can change the cloud or app at any time and break it. It is not a substitute for the panel's own keypads, monitoring or signalling. Test arm and disarm on site before handing over.

What it does

Persistent mode and the HomeControl app. The panel accepts only one remote connection. In Persistent mode (the default, for instant status and alarms) Control4 holds that connection, so the customer's HomeControl app will show panel busy. If the customer still wants to use the app, choose On Demand: the app keeps working and Control4 updates every Poll Interval. Agree which with the customer at handover.

Requirements

Setup

You need the same four things you would type into the HomeControl 2.0 app. Nothing has to be extracted from a phone.

  1. Add the driver. It creates a Pyronix Panel device and one alarm device, which is renamed to your System Name. Its Room Selection binding auto-binds; add other rooms as needed.
  2. Enter Panel ID, System Name, App Password and User Code. The driver connects a few seconds after the last change.
  3. Check Connection Status shows Connected and Area Summary lists your areas.
  4. In Composer, refresh Navigators so the security UI picks up the zones.

The driver registers with PyronixCloud as its own client, like a second phone. Its name is shown in Cloud Client Name (for example Control4-3FA91C). The identity is created once and kept, so it survives reboots and driver updates. It is based on the controller and the Panel ID, so deleting and re-adding the driver on the same controller reuses the same identity.

Properties

PropertyDescription
Panel IDThe 8-character panel ID from HomeControl / PyronixCloud.
System NameThe system name as set up in the app.
App PasswordThe panel's app password (set in engineer menu / PyronixCloud).
User CodeThe alarm user code used to log in. Its permissions decide which areas can be set and unset.
Connection ModePersistent: stays connected for live status and alarms. The panel only allows one remote session, so the HomeControl app will show panel busy while Control4 is connected.
On Demand: connects every Poll Interval and for each command, then disconnects. The HomeControl app keeps working, but status can be up to one interval old.
Poll Interval (min)On Demand mode only. Default 2. After a session ends the cloud may refuse a new one for about 35 seconds.
Stay Connected After Command (s)On Demand mode: how long to stay connected after a command, to see the result.
Full Set / Part Set / Night Set UsesWhich panel area or level each Control4 arm button sets. Auto links a button to the area whose name contains "full", "part" or "night" (Full Set falls back to area 1). None means the button is not used. The Arm Modes read-only property shows the result.
Full / Part / Night Set Exit Time (s)Exit time shown as a countdown in Navigator while setting. The panel does not report its exit time over the cloud, so set these to match the panel's programming (default 30).
Set With FaultsWhat happens when the panel reports a fault (low or missing battery, supervision, tamper) that blocks a normal set. Ask First: Navigator asks whether to continue, and continuing sets with the faults overridden. Always: overrides without asking (status shows "Will Set Anyway"). Never: refuses and shows the faults. The panel still decides: some faults, such as an un-restored tamper, block setting even when overridden, and the driver then reports which faults need restoring.
Change Mode While SetWhat happens if a different mode is chosen while one is already on (for example Full Set while Night Set is on). Refuse (default): shows "Night Set is on - unset before choosing Full Set". Unset Then Set: unsets the current mode, then sets the new one. Note that this lets anyone who can arm also unset without a code, so only enable it where that is acceptable.
Force Arm (Omit Open Zones)Yes: open zones are omitted until next unset (what the HomeControl app does). No: setting fails if a zone is open, and Navigator offers to bypass.
Require Code To DisarmYes: the code typed in Control4 must match User Code before the driver unsets.
Auto Rename DevicesYes: the alarm device is renamed to the System Name. Set to No if you want to name them yourself.
Debug ModePrints protocol detail to the Lua output window.
App VersionOnly visible when Debug Mode is On. The app version to present to the cloud. Leave at 6.03.001 unless told otherwise.
Advanced: App User / Push ID / Device IDOnly visible when Debug Mode is On. Leave blank. Only fill these if PyronixCloud ever starts refusing self-generated clients and you need to copy the identity of a real HomeControl install.

Read-only: Zone Problems (detectors reporting low battery, tamper, supervision or a problem), Last Alarm, Connection Status, Cloud Client Name, Arm Modes, Last Error, Panel Info, Area Summary, Area n Name, Panel Faults, Recent Panel Log.

Actions

Connect Now, Disconnect (stops until Connect Now), Print Panel Status (areas, zones and outputs to the Lua window), Request Panel Log, Test Crypto Speed (times the key exchange on this controller; a login does two).

Programming

Zone events (use the alarm detectors in programming)

Every zone gets its own events on the Pyronix Panel device: PIRs get "Lounge PIR Motion" and "Lounge PIR Clear"; other zones get "Front Door Opened" and "Front Door Closed". Each zone also has a ZONE_n_OPEN variable for conditionals. They work whether the alarm is set or not, so detectors can drive lighting. Expect one to two seconds of delay through the cloud, and remember Pyronix wireless PIRs sleep for a few minutes after each trigger to save battery, so they are fine for "turn on" but not for "turn off when empty" timers. In On Demand mode zone events only arrive while connected, so use Persistent mode for this.

Chime

The Chime event fires when a door, window or contact zone opens while the alarm is unset; CHIME_ZONE holds its name. Program it to play a chime or send a notification.

Alarm details

When an alarm starts, the status shows the first zone that triggered while set, then the driver reads the panel log and shows the zone the panel logged (for example "Alarm - Full Set - Front Door"). ALARM_ZONE and the Last Alarm property hold it.

Commands: Set (Full Set / Part Set / Night Set, optional force), Unset, Set Panel Area, Unset Panel Area, Set Output, Omit Zone, Refresh.

Events: Armed, Disarmed, Alarm, Full Set Armed, Part Set Armed, Night Set Armed, Arm Failed, Chime, Panel Connected, Panel Connection Lost, Trouble, plus the per-zone events above.

Status text: the line under the security circle shows, for example, "Disarmed - Ready To Set", "Disarmed - Front Door Open", "Disarmed - Cannot Set: Case Tamper", "Setting Night Set - Leave Now, 25s", "Armed - Full Set (1 Zone Omitted)" or "Alarm - Full Set - Lounge". The same text is in the STATUS_TEXT variable.

Variables: ZONE_PROBLEMS, STATUS_TEXT, ALARM_ZONE, CHIME_ZONE, ZONE_n_OPEN, ALARM_STATE, ARMED, ARM_MODE, AREA_1_STATE to AREA_4_STATE, PANEL_CONNECTED, FAULTS.

Cancel: cancelling from Navigator only stops a set that is still in its exit delay. Unsetting a system that is fully set always needs the code (when Require Code To Disarm is Yes).

State mapping

PyronixControl4
Any area in alarmAlarm
Any area settingExit delay (arm type = that mode)
Any area setArmed, arm type Full Set / Part Set / Night Set
All unsetDisarmed ready; not ready if a zone is open or the Full Set area reports Cannot Set / Can Override

Control4 always shows all three buttons (it reads them from the driver file). A button set to None, or with no matching area, reports "not linked to a panel area" when pressed and does nothing.

Upgrading from version 7 or earlier

Version 8 replaces the four area devices with one. Delete the old driver and add this one again; Update Driver will not remove the old devices.

Notes and limits

Troubleshooting

Last Error / statusMeaning
Access deniedPanel ID, System Name or App Password wrong.
Panel busyAnother session (usually the phone app) is open. Close it, or use On Demand mode.
Panel not pollingThe panel is not talking to the cloud, or a session just ended. The driver retries after 40 s.
Subscription expiredRenew the HomeControl / PyronixCloud subscription.
Timed out (state login)Usually a wrong User Code or App Password.
Too many bad framesEncryption mismatch, almost always the App Password.

Credits

Protocol details from the community reverse-engineering in the open-source ha-pyronix-integration and aiopyronix projects. Pyronix, Enforcer, HomeControl and PyronixCloud are trademarks of their owners. This driver is not affiliated with or endorsed by Pyronix.