The Elk E27 Alarm Engine Integration is a Home Assistant custom integration for the Elk Products E27 Alarm Engine. It connects
directly to the panel on your local network, with no cloud service involved, and keeps Home
Assistant updated as the panel reports changes. Each area becomes an alarm control panel you
can arm and disarm. Each zone becomes a binary sensor. Panel-controlled lights, locks,
thermostats and outputs become light, lock, climate and switch entities. All communication goes
through the elke27 Python library
(PyPI).
Official repository: ElkProducts/Elk-E27. Add only that repository in the Marketplace or in HACS, not the development repository (mitchmitchell/Elk-E27) as well.
Install the integration from the Marketplace (Home Assistant 2026.11 or newer) or from HACS. Details under Installation.
- Get the panel's access code and passphrase from your installer. These link Home Assistant to the panel. They are not your alarm code.
- Go to Settings → Devices & services → Add integration → Elk E27 Alarm Engine Integration, choose Discover panels (or Manual setup), and enter the access code and passphrase.
- Add an Alarm panel card for an area and arm or disarm it with your numeric alarm user code.
- Configuration
- Actions
- Examples
- How it works
- Known limitations
- Known issues
- Retries and errors
- Troubleshooting
- FAQ
- Glossary
- Upgrading
- Removal
- Releases and changelog
- Support and contributing
- License
The integration creates a panel device, showing the panel's name, model, firmware
version, serial number and MAC address, and (since 0.2.0) one area device per area, linked
to the panel device. Each area's alarm control panel and its zones belong to that area's
device. Zones with no area and panel-wide entities (outputs, lights, locks, thermostats, panel
status) belong to the panel device. Entities are named after the names programmed into the
panel. If an item has no name, a fallback such as Area 1 or Zone 12 is used.
| Platform | One entity per | What you can do |
|---|---|---|
| Alarm control panel | Area | Arm away, arm home, arm custom bypass and disarm, all with a numeric user code |
| Binary sensor | Zone (zones defined as UNDEFINED at setup are skipped) |
See whether the zone is open/violated, bypassed or in trouble; bypass it with elke27.zone_bypass |
| Light | Panel light | Turn on/off and set brightness |
| Lock | Panel lock | Lock and unlock |
| Climate | Thermostat | Set HVAC mode, fan mode and heat/cool setpoints; see current temperature and humidity |
| Switch | Output | Turn the output on/off |
| Sensor (diagnostic) | Panel (2 sensors) | Panel name, and panel connection state (connected / disconnected) |
-
Arm away, arm home (the panel's Stay mode) and disarm. Each one needs your numeric alarm user code, which is entered in the Home Assistant keypad.
-
Arm night is offered from Home Assistant and sends the panel's Stay Instant mode when night arm is supported for that area. That requires application firmware 0.0.5.37 or later. An area armed in Stay Instant shows
armed_night. Arm vacation is still not offered from Home Assistant; if the area is armed in Vacation from a keypad or the Elk app, it showsarmed_vacation. If application firmware is older than 0.0.5.37, or the version is unknown, Arm night is not shown. If firmware is new enough but Stay Instant is off for the area, Arm night is shown and the command fails with an error asking you to enable Stay Instant in panel settings. -
Arm away may end up as armed home. If no entry/exit zone opens before the exit delay ends, the panel's auto-stay switches the area to Stay and it shows
armed_home. This is panel behavior. Check for botharmed_awayandarmed_homein automations. -
Arm custom bypass bypasses only the zones in this area that are open (faulted) and not already bypassed, using the code you enter, then arms the area in away mode.
- If the panel doesn't acknowledge a bypass, the area is not armed and an error is shown.
- Like arm away, the area may then end up
armed_homethrough auto-stay.
-
Disarming an armed area clears all zone bypasses (panel behavior). Disarming an area that is already disarmed does not.
-
When the panel rejects a request, the error shows the reason and the panel error code, for example invalid parameter (check the user code) (error 11004). See Panel error messages. The reason and code are also logged as a warning.
-
States reported:
disarmed,arming(during the exit delay),pending(during entry delay; simulator-proven only, not verified on hardware),armed_home,armed_away,armed_night,armed_vacation,triggered(alarm active) andunknown. -
unknownmeans the panel didn't report the area's arm mode, so Home Assistant can't tell whether it is armed. It is never shown asdisarmed. Check the keypad for the real state. Before 0.3.0 this case showeddisarmed; automations that test fordisarmedshould allow forunknownandarmed_vacation. -
Extra attributes:
Attribute Meaning readytruewhen the area is ready to armready_statusThe panel's ready status: RDY_AWAY,RDY_STAYorRDY_NOTfaulted_zone_idsIDs of zones in this area that are open and not bypassed faulted_zonesNames of those zones
| Method | Panel mode | Bypasses open zones? | Exit delay / auto-stay | Possible end state |
|---|---|---|---|---|
| Arm away | Away | No (open zones: error 11015) | Normal | armed_away, or armed_home via auto-stay |
| Arm home | Stay | No (open zones: error 11015) | Normal | armed_home |
| Arm night | Stay Instant | No (open zones: error 11015) | Normal | armed_night (application firmware 0.0.5.37 or later) |
| Arm custom bypass | Away | Yes, open zones in this area only | Normal | armed_away, or armed_home via auto-stay |
elke27.alarm_arm_automatic |
Away or Stay | Yes, open zones in this area only (0.1.7+) | Both cancelled | armed_away / armed_home |
- Codes must be numeric, using the digits 0–9 only (other numeral characters are rejected before anything is sent).
- An all-zero code (such as
0000) is rejected. - Leading zeros are dropped:
0123is sent to the panel as123.
-
The sensor is on when the zone is open/violated.
-
The device class comes only from the zone's definition in the panel, following Elk guidance. The zone's name and wiring don't affect it.
Zone definition Device class BURG INTERIORMotion BURG PERIM INST,BURG EE DELAYOpening FIRESmoke CARBON MONOXIDECarbon monoxide WATERMoisture Anything else (24-hour, tamper, panic, medical, automation, power supervision, hi/lo temp, unknown) None (generic) -
These are only defaults. If a zone is really something else (for example an interior door contact on a
BURG INTERIORzone), change it under the entity's settings with Show as. Home Assistant keeps your choice across reloads, restarts and upgrades. -
Unless you set Show as, the icon follows the zone definition (burglary entry/exit, perimeter, interior, 24-hour, tamper, fire, CO, panic, medical, automation, power supervision, water, hi/lo temp) and changes when the zone opens. With Show as set, Home Assistant shows its own open/closed icon for that type. An icon you picked yourself always wins.
-
Hi/lo temperature (HILO TEMP) zones are on/off binary sensors. They don't report a temperature.
-
Attributes:
definition,bypassed,trouble. -
To bypass a zone, use the
elke27.zone_bypassaction.
- On/off with brightness. The panel's 0–100 level is mapped to Home Assistant's 0–255 brightness scale (for example 50 ↔ 128).
- Turning a light on without a brightness value turns it on at its last level (the panel's "restore last level" command, level 100).
- Setting a brightness sends a level from 1 to 99; full brightness (255 or 100%) is level 99, which the panel reports back as 100 and Home Assistant shows as brightness 255. These level rules are confirmed by Elk.
- After a change, the integration asks the panel for the light's status again about 3 seconds later, because some (Z-Wave) dimmers report their new state late. After turning a light off it also asks right away; after turning one on it waits, because an immediate read can briefly report the light as off while it ramps up. A short delay before the state updates is normal.
- Lock and unlock. The state updates when the panel reports the change.
- HVAC modes: Off, Heat, Cool and Heat/Cool (the panel's Auto mode).
- Fan modes: Auto, On.
- Setpoints: a heat (low) and cool (high) setpoint, shown as a temperature range.
- Units and range: the thermostat works in °F, 40–99 °F, whole degrees. On a Home Assistant system set to °C, Home Assistant converts temperatures for display. Setpoints are sent to the panel as whole °F, so a °C setpoint is rounded and may shift slightly.
- Current humidity is shown when the thermostat reports it (a reading of 0 is treated as "no humidity sensor").
- Turn each panel output on or off. The state updates when the panel reports the change.
- Panel name: the name reported by the panel.
- Panel ready:
connectedwhile the integration has a ready session with the panel, otherwisedisconnected.
- Home Assistant 2026.10.0 or newer. Starting with 0.2.1 the minimum is 2026.10.0 (it was 2026.1.0). On an older Home Assistant, HACS won't offer 0.2.1; update Home Assistant first, or stay on 0.2.0.
- An Elk E27 panel on your local network that Home Assistant can reach over TCP. Manual setup connects on port 2101. Tested on an E27 with firmware 2.6.1, shown on the panel's device page in Home Assistant (the Elk app shows application 0.0.6.4, hardware 0.0.1.4, bootloader 0.0.2.24). Other versions may work but haven't been tested.
- The panel's linking credentials: an access code and a passphrase.
- Your panel's installer sets these on the panel, so ask your installer for them.
- They are used once, to link Home Assistant to the panel. They are not your alarm user code (PIN).
- Your alarm user code is entered separately each time you arm or disarm.
- Optional, for automatic discovery: Home Assistant must be on the same network segment as the panel. Discovery uses a UDP broadcast on port 2362. A Home Assistant container must use host networking for discovery to work. If discovery can't reach the panel, use manual setup.
- On Home Assistant 2026.11 or newer, install from the built-in Marketplace
(Settings → Marketplace). Until the integration appears in the default catalog,
use Add from link with
https://github.com/ElkProducts/Elk-E27, select Add, then open the repository and select Install. A first install opens setup without a restart; later updates still need a restart. On 2026.10, use HACS and add it as a custom repository. See Installation.
| Integration | elke27 library |
Home Assistant tested | Panel tested |
|---|---|---|---|
| 0.5.3 | 0.6.0 | CI: 2026.10.4 (minimum 2026.10.0); hardware: pending | pending (garage doors waived, not hardware-tested) |
| 0.5.2 | 0.6.0 | CI: 2026.10.4 (minimum 2026.10.0); hardware: RC PASS Dec 5 at c167ae9 (install and restart only) |
Docs-only release: installed on TEST hardware Dec 5 at c167ae9 with elke27 0.6.0, entities and registry unchanged; no arm or disarm run; garage doors waived (not hardware-tested) |
| 0.5.1 | 0.6.0 | CI: 2026.10.4 (minimum 2026.10.0); hardware: RC PASS Dec 4 at 77a0125 (TEST Home Assistant 2026.10.2) |
Arm Stay, Arm night (Stay Instant), elke27.alarm_arm_automatic, elke27.zone_bypass, reconnect and re-link passed on TEST hardware Dec 4 at 77a0125 with elke27 0.6.0; unknown arm outcome and partial bypass rollback simulator-only; garage doors waived (not hardware-tested) |
| 0.5.0 | 0.6.0 | CI: 2026.10.4 (minimum 2026.10.0); hardware: RC PASS Dec 2 at a16966e |
Arm night (Stay Instant) and Arm Stay passed on TEST hardware Dec 2 at a16966e with elke27 0.6.0; entry delay simulator-only; exit delay not hardware-proven; garage doors waived (not hardware-tested) |
| 0.4.0 | 0.6.0 | CI: 2026.10.4 (minimum 2026.10.0); hardware: RC PASS Nov 18 at 79fd081 |
Arm night (Stay Instant) and Arm Stay passed on TEST hardware Nov 18 at 79fd081 with elke27 0.6.0; entry delay simulator-only; exit delay not hardware-proven; garage doors waived (not hardware-tested) |
| 0.3.2 | 0.5.1 | CI: 2026.10.4 (minimum 2026.10.0); hardware: pending | pending (garage doors waived, not hardware-tested) |
| 0.3.1 | 0.5.0 | CI: 2026.10.4 (minimum 2026.10.0); hardware: pending | pending (garage doors waived, not hardware-tested) |
| 0.3.0 | 0.4.0 | Hardware: TEST Home Assistant 2026.10.2; CI: 2026.10.4 (minimum 2026.10.0) | Release-candidate test at 48ee195: TEST E27 panel, disarmed state verified on hardware; arm, vacation, night and triggered states verified in tests and simulator only; garage doors waived (not hardware-tested) |
| 0.2.1 | 0.3.15 | Hardware: 2026.10.2; CI: 2026.10.2 (minimum 2026.10.0) | Tested: E27 panel, model 260, firmware 2.6.1; garage doors not hardware-tested |
| 0.2.0 | 0.3.14 | CI: 2026.1.3 (minimum 2026.1.0); hardware: TBD | TBD |
| 0.1.9 | 0.3.13 | CI: 2026.1.3 (minimum 2026.1.0); hardware: TBD | TBD |
| 0.1.8.1 | 0.3.13 | Hardware: 2026.10.0; CI: 2026.1.3 (minimum 2026.1.0) | Tested: firmware 0.0.6.4, hardware 0.0.1.4, bootloader 0.0.2.24 |
| 0.1.8 | 0.3.12 | Hardware: 2026.10.0; CI: 2026.1.3 (minimum 2026.1.0) | Tested: firmware 0.0.6.4, hardware 0.0.1.4, bootloader 0.0.2.24 |
| 0.1.7 | 0.3.11 | Hardware: 2026.10.0; CI: 2026.1.3 (minimum 2026.1.0) | Tested: firmware 0.0.6.4, hardware 0.0.1.4, bootloader 0.0.2.24 |
| 0.1.6 | 0.3.10 | 2026.1.3, 2026.10.0 (minimum 2026.1.0) | Tested: firmware 0.0.6.4, hardware 0.0.1.4, bootloader 0.0.2.24 |
- Go to Settings → Marketplace. The first time you open it, read the community notice and select I understand the risks and agree. You can browse before that; installing needs the notice accepted.
- Until the integration appears in the default catalog, select Add from link in
the upper-right corner, enter
https://github.com/ElkProducts/Elk-E27, and select Add. Adding from a link needs a GitHub connection; the Marketplace walks you through GitHub's device sign-in if you don't have one yet. - Open the repository and select Install.
- A first install of this integration loads right away and opens the setup flow. You do not need to restart. If you close setup, add the integration later under Settings → Devices & services.
Updates still need a restart. After an update, a repair under Settings → System → Repairs can restart Home Assistant for you.
- Open HACS.
- Open the ⋮ (three-dot) menu in the top right and choose Custom repositories.
- Enter
https://github.com/ElkProducts/Elk-E27, set Type to Integration, and click Add. - Search HACS for Elk E27 Alarm Engine Integration, open it and click Download.
- Restart Home Assistant.
The button below opens the official repository in the Marketplace (Home Assistant 2026.11 or newer) or in HACS (2026.10) and offers to add it:
The hacs_repository link works in both places. Once added, you are notified when new
releases come out.
- Download the latest release from the Releases page.
- Copy the
custom_components/elke27folder into your Home Assistant configuration directory, so that you end up with<config>/custom_components/elke27/manifest.json. - Restart Home Assistant.
Home Assistant installs the required elke27 library automatically the first time the
integration loads.
Configuration happens entirely in the UI. There is no YAML.
- Go to Settings → Devices & services → Add integration and search for Elk E27 Alarm Engine Integration.
- Choose a setup method:
- Discover panels: searches your network for E27 panels.
- Manual setup: enter the panel's address yourself.
- If one panel is found, you only need to enter the access code and passphrase.
- If several panels are found, pick one from the list. Each entry shows its name, model, MAC and IP, and panels you have already added are marked (already configured). Then enter the access code and passphrase.
- Choose Rescan for panels if your panel isn't listed.
- If no panels are found, you'll see "No panels were discovered…". Rescan, or go back and use manual setup.
| Field | Description |
|---|---|
| Host | The panel's IP address or host name |
| Access code | Linking access code from your installer (not a PIN) |
| Passphrase | Linking passphrase from your installer |
Manual setup always uses port 2101.
The integration links to the panel, opens a session, waits up to 30 seconds for the panel to report ready, and reads the panel information. It then creates the entry, using the panel's name as the title or the host if the panel reports no name. Entities appear as soon as the panel's areas, zones, lights, locks, thermostats and outputs have been read.
The access code and passphrase are not stored. Only the link keys the panel issues during linking are saved.
There is no options flow. Nothing needs configuring after setup.
There is no reconfigure option, and the integration doesn't follow a panel to a new IP address on its own: reconnects use the stored address. Give the panel a DHCP reservation so its address never changes.
If the address does change, re-linking can't help: it reuses the stored host and port. What to do depends on whether the integration knows the panel's MAC address. It learns the MAC from network discovery, either during setup or, for 0.1.8 entries, on the first connect after upgrading to 0.1.8.1.
Upgraded entries keyed by a real panel serial keep that unique ID after the MAC fill, so changing their address means deleting and re-adding the entry (the steps below for an unknown MAC).
The MAC is known (and the entry is not keyed by a real panel serial):
- Go to Settings → Devices & services → Add integration → Elk E27 Alarm Engine Integration → Manual setup.
- Enter the new host, plus the access code and passphrase.
- The integration asks the panel at the new address for its MAC. When it matches, the existing entry's address is updated in place, and setup ends with "This panel is already configured." Nothing is deleted, and your entities are kept.
The MAC isn't known (the panel never answered discovery), or the panel at the new address doesn't answer discovery: the new address counts as a new panel.
Delete the old entry first. Adding the panel at the new address without deleting it leaves two entries for the same panel.
- Delete the integration entry (Settings → Devices & services → Elk E27 Alarm Engine Integration → ⋮ → Delete).
- Add the integration again at the new host, with the access code and passphrase.
- Entity IDs may change. Update automations, scripts and dashboards, or rename the new entities back to the old IDs.
If the stored link keys are missing or rejected when the integration loads, Home Assistant shows a reauthentication notice in two places: a card under Settings → Devices & services and an issue under Settings → System → Repairs. Open either one and enter the access code and passphrase again (Reconfigure panel). The flow checks that you are linking the same panel by comparing MAC address or panel serial (not the integration's client ID). The entry reloads with new link keys. Your entities and their IDs stay the same. Re-linking only refreshes the link keys for the stored address; to change the address, see Changing the panel's address.
If the keys are rejected while reconnecting, the integration stops retrying and starts the reauthentication flow once, so the notice appears. Entities stay unavailable until you re-link (or reload the integration).
You can't start a re-link from Home Assistant. To re-link on purpose, remove Home Assistant's link from the panel in the Elk Connect mobile app (this needs your installer code), then reload the integration and open the notice. (This procedure has not been hardware-tested yet.)
The standard Home Assistant actions for alarm panels (alarm_control_panel.*), lights,
locks, climate and switches work with this integration's entities. The integration also adds
two actions. Keep user codes in secrets.yaml rather than writing them into automations.
Changed in 0.1.7. In 0.1.6 this action did not bypass zones, and an open zone made the arm fail with area not ready (open or faulted zones) (error 11015).
Arms one or more Elk E27 areas from an automation or script. It is designed for unattended
arming when everyone has left, driven by geofencing (person / device_tracker entities
and zones) or occupancy sensors. Your Home Assistant automation decides when to arm.
| Field | Required | Description |
|---|---|---|
target |
yes | One or more Elk E27 alarm control panel entities, or a device or area that contains them |
mode |
yes | away or home |
code |
yes | Numeric alarm user code |
What it does, for each targeted area:
- Bypasses every open (faulted), not-yet-bypassed zone in that area using your code. Zones in other areas are never changed.
- Arms immediately, with the panel's exit delay and auto-stay both cancelled, so an away
arm shows
armed_awaywithin about a second and stays away.
Disarming an armed area clears those bypasses (panel behavior).
When something fails. Panel refusals are never retried. The failure is reported straight away, with the area, the zone and the panel's reason. What happens to the bypasses this call made depends on whether the failure is definite:
- A bypass fails (for example zone A is bypassed, then the panel refuses zone B): the area is not armed, and zone A is un-bypassed again.
- The panel refuses the arm (a panel error code such as area not ready, a missing or invalid user code), or the arm command was never sent because the panel was not connected: the area is not armed, and the bypasses made for it are undone.
- The arm result is unknown (a timeout, a dropped connection, or another error where the
panel may have acted): the bypasses are left in place, because the area may be armed
and relying on them. The error, the Repairs issue and the event say the result is unknown
and list the bypassed zones. Check the area on the panel; if it is not armed, clear the
bypasses with
elke27.zone_bypassandbypass: false.
The rollback sends one un-bypass per zone, in reverse order, and never retries it. This
matters because the panel only clears bypasses when an armed area is disarmed;
disarming an area that never armed leaves them in place. If an un-bypass fails, the error,
the Repairs issue and the event name those zones as still bypassed
(still_bypassed_zone_ids). Clear them with elke27.zone_bypass and bypass: false.
Zones are named with their name and number, for example Front door (16), or just the
number if the zone has no name.
Calls for the same area run one at a time: a second call waits until the first has
finished bypassing, arming and any rollback. Before acting, each call asks the panel for
the area's arm state and the zones' bypass state and uses the panel's answers directly (one
request each, never retried; if one fails, that part uses the integration's latest copy). If the area is already armed (in any
mode), the call does nothing and succeeds: no bypass, no arm, no rollback. Zones that are
already bypassed are skipped, and only zones bypassed by this call are ever rolled back. If
the panel refuses a bypass or the arm because the area is already armed (error 11028), the
area status is read again: if it is armed, the call succeeds as a no-op (logged, no error,
Repairs issue or event); otherwise the result is reported as unknown. Nothing is rolled back
in either case. Arm away, arm home, arm custom bypass and elke27.zone_bypass (for zones with a
known area) share the same per-area lock, so a rollback can't race a manual change.
A disarm always wins. Disarming an area does not wait for the lock. The code is checked
first; a missing or non-numeric code is rejected and changes nothing. While the disarm is
being sent, any elke27.alarm_arm_automatic call for that area (running or still queued)
pauses before its next command, so it cannot send a bypass or an arm that lands after the
disarm. Once the disarm has actually been sent, the paused call is cancelled whatever the
outcome (the panel accepts it, it times out, or the connection drops), unless the panel
definitively refuses the disarm (for example a wrong code). A cancelled call sends nothing
more: no further bypasses, no arm and no rollback. It reports stage: cancelled
(outcome: not_armed) with the zones it had bypassed, or was bypassing. If the panel refuses
the disarm, or the disarm is never sent (a missing or invalid code, or the panel isn't
connected), nothing is cancelled and automatic arming carries on. A command the call had already sent before the disarm (a bypass, or the arm
itself) still reaches the panel first, so the disarm comes after it and the area ends
disarmed. Disarming an armed area clears its bypasses on the panel; if the area never
armed, the zones listed may still be bypassed, so clear any that are with
elke27.zone_bypass and bypass: false. Nothing is retried.
In each case Home Assistant raises an error, creates a Repairs issue for that area, and
fires an elke27_arm_automatic_failed event, so you
can alert yourself. The issue goes away when the panel reports the leftover bypasses as
no longer bypassed, or when the area is later armed as requested. A cancelled call that
left no leftover bypasses does not raise an issue. If you want to retry, do it in your
automation.
Several targets. Each area is handled on its own, in entity ID order. A failure in one area doesn't stop the others, and areas armed earlier in the same call stay armed. Each failed area gets its own Repairs issue and event. The action reports an error if any area failed.
Use the standard alarm_control_panel.alarm_arm_away / alarm_arm_home actions when you
want the panel's normal exit delay and auto-stay behavior without automatic bypasses.
action: elke27.alarm_arm_automatic
target:
entity_id: alarm_control_panel.main_floor # example entity ID
data:
mode: away
code: !secret elk_alarm_codeFired once for each area that elke27.alarm_arm_automatic could not arm (0.1.7+). The event
data includes:
| Key | Description |
|---|---|
entity_id |
Alarm control panel entity that was being armed |
area_id |
Elk area number |
stage |
bypass (a zone bypass failed, so the area was not armed), arm (the bypasses succeeded but the panel refused the arm, or it was never sent) or arm_uncertain (the arm result is unknown, for example a timeout) or cancelled (a disarm of the area cancelled the call; nothing more was sent) |
outcome |
not_armed (the area is known not to be armed; bypasses were rolled back, except when stage is cancelled) or unknown (check the panel; bypasses were left in place) |
zone_id |
Zone that could not be bypassed (null when stage is arm, arm_uncertain or cancelled) |
reason |
Panel or integration reason (the alarm code is never included) |
bypassed_zone_ids |
Zones in this area that this call bypassed before the failure |
rolled_back_zone_ids |
Of those, the zones whose bypass was undone after the failure |
still_bypassed_zone_ids |
Zones still bypassed: un-bypasses that failed, or, when outcome is unknown, every zone bypassed by the call. If the area is not armed, clear them with elke27.zone_bypass and bypass: false |
See Retry automatic arming after a failure for an example.
Bypasses one or more zones so they are ignored while the area is armed, or removes the bypass.
| Field | Required | Description |
|---|---|---|
target |
yes | One or more Elk E27 zone binary sensors |
code |
yes | Numeric alarm user code |
bypass |
no | true (default) to bypass, false to remove the bypass |
action: elke27.zone_bypass
target:
entity_id: binary_sensor.back_door # example entity ID
data:
code: !secret elk_alarm_code
bypass: trueThe zone's bypassed attribute shows the result. If the panel refuses, the action fails with
the panel's reason, for example zone cannot be bypassed (error 11023).
With several zones, they're bypassed one at a time. Before sending, the action checks each target (entity, zone and code format only). If a later command fails, including a timeout after the panel already applied the change, the integration rolls back the acknowledged and unknown-outcome zones and reports the result. On every exit, those zones are written back, their status is read, and a persistent Repairs issue is raised for zones that are still changed or unconfirmed. The error lists which zones were restored, still changed, or unconfirmed, except after a refusal or a missing PIN; those zones are on the Repairs issue. The panel's current status wins over a write acknowledgement. If you cancel the action, rollback still runs. This replaces the old persistent notification.
Disarming an armed area clears all bypasses (panel behavior); disarming an area that is already disarmed does not.
!secret only works in YAML files (such as automations.yaml or a package), not in the UI
automation editor. Store the code in secrets.yaml, for example elk_alarm_code: "1234".
Arms once nobody has been in the home zone for 5 minutes and the area is still disarmed.
elke27.alarm_arm_automatic bypasses any open zones in that area first (0.1.7+), so there's
nothing else to check.
- alias: "Arm Elk E27 when everyone leaves"
triggers:
- trigger: numeric_state
entity_id: zone.home
below: 1
for: "00:05:00"
conditions:
- condition: state
entity_id: alarm_control_panel.main_floor # example entity ID
state: disarmed
actions:
- action: elke27.alarm_arm_automatic
target:
entity_id: alarm_control_panel.main_floor
data:
mode: away
code: !secret elk_alarm_code
mode: singleThe same pattern works with occupancy sensors: trigger when they have shown no presence for a
while, and use mode: home to arm stay instead.
Notifies you whenever automatic arming fails. It retries only a definite failure, where
the area is known not to be armed: stage is bypass or arm and outcome is
not_armed. Every other failure is notified but never retried:
cancelled: someone disarmed the area while it was arming. That disarm was deliberate, so the area must not be re-armed automatically.arm_uncertain(outcome: unknown): the panel may already be armed, with the bypasses still in place. A person needs to check the panel first.- Any other or future
stagevalue is also left alone, because the example only allows the two it knows are safe.
Before the delayed retry, it checks again that the area is still disarmed and that
nobody is home (zone.home is 0). If someone came back or armed the area in the
meantime, it stops.
- alias: "Retry Elk E27 automatic arm after a failure"
triggers:
- trigger: event
event_type: elke27_arm_automatic_failed
actions:
- action: notify.notify
data:
title: "Elk E27 did not arm"
message: >-
Area {{ trigger.event.data.area_id }} not armed
({{ trigger.event.data.stage }}, {{ trigger.event.data.outcome }}):
{{ trigger.event.data.reason }}.
Still bypassed: {{ trigger.event.data.still_bypassed_zone_ids }}
# Allowlist: only retry definite failures where the area is known not to be armed.
- condition: template
value_template: >-
{{ trigger.event.data.stage in ['bypass', 'arm']
and trigger.event.data.outcome == 'not_armed' }}
- wait_template: "{{ state_attr(trigger.event.data.entity_id, 'ready') == true }}"
timeout: "00:10:00"
continue_on_timeout: false
# Re-check right before retrying: still disarmed, and still nobody home.
- condition: template
value_template: "{{ is_state(trigger.event.data.entity_id, 'disarmed') }}"
- condition: state
entity_id: zone.home
state: "0"
- action: elke27.alarm_arm_automatic
target:
entity_id: "{{ trigger.event.data.entity_id }}"
data:
mode: away
code: !secret elk_alarm_code
mode: singlemode: single and a single retry keep it from looping if the panel keeps refusing.
- alias: "Elk E27 alarm triggered"
triggers:
- trigger: state
entity_id: alarm_control_panel.main_floor
to: triggered
actions:
- action: notify.notify
data:
message: "ALARM: {{ state_attr('alarm_control_panel.main_floor', 'friendly_name') }} triggered"Because auto-stay can turn arm away into armed home, check for both:
conditions:
- condition: state
entity_id: alarm_control_panel.main_floor
state:
- armed_away
- armed_home- Local push: the integration holds a persistent, encrypted session with the panel and updates entities when the panel reports changes. It doesn't poll on a schedule.
- Linking identity: Home Assistant identifies itself to the panel with a client ID. Setup generates a random 12-digit client ID for each entry and sends it when linking. It is stored in the config entry, so it stays the same across restarts. It is the integration's own ID, not a panel serial number.
- Reconnects: if the connection drops, entities become unavailable and the integration keeps reconnecting with a delay that starts at 2 seconds and doubles up to 60 seconds (about 72 s with jitter) between attempts, with no limit on attempts (0.2.1 and later; 0.2.0 doubled up to 5 minutes). When the connection comes back, it refreshes everything from the panel. If the panel rejects the link keys, it stops retrying and shows a re-link (reauthentication) notice once (see Re-linking).
- Detecting a dropped connection: a dead connection is usually noticed within about 35 seconds for an idle link (30 seconds without traffic, plus a 5-second probe). If a command is in flight, the integration first waits for that command's timeout, then probes. "Panel connection lost" is logged once at WARNING when it happens. Until it's noticed, commands fail with "The panel did not respond in time; the command may not have been applied." This disconnect handling may still change in later releases.
- New items: areas, zones, lights, locks, thermostats and outputs that show up after setup get entities automatically.
These are by design or limits of the panel.
- Arming
- A numeric user code is always required to arm or disarm. All-zero codes are rejected and leading zeros are dropped.
- Arm night is offered when the panel reports night arm support; arm vacation is not offered from Home Assistant.
- Arm away and custom bypass may end as
armed_homethrough the panel's auto-stay. - Custom bypass always arms in away mode, and only bypasses open zones in that area.
- Disarming an armed area clears all zone bypasses (panel behavior).
- The area shows
armingduring the exit delay (#54).
- No code prompt for other devices: lights, locks, outputs and thermostats are controlled without a user code. If your panel demands a code for one of those commands, the action fails with "PIN required to perform this action."
- Thermostats
- Native °F, whole degrees, 40–99 °F. On °C systems Home Assistant converts for display, and setpoints are rounded to whole °F.
- Heat/cool setpoints are always shown as a range, whatever the mode.
- HVAC action (heating/cooling/off) is inferred from the selected mode. It does not show whether the equipment is actually running.
- Only Auto and On fan modes are supported.
- Garage doors: added in 0.2.1 but not yet tested on hardware; see Garage doors.
- Setup
- Manual setup always uses port 2101.
- There is no options or reconfigure flow (see Changing the panel's address).
- Discovery only works on the same network segment as the panel.
These are problems that are tracked for a fix.
- Stale zone entities: a zone you delete in the panel, or change to
UNDEFINED, keeps its entity. Delete it yourself in Home Assistant. (UNDEFINEDzones are only skipped at first setup.) - Address changes: after the panel's IP address changes, reconnects keep using the old address. Use a DHCP reservation. If the integration knows the panel's MAC, run Manual setup at the new address to update the entry in place; otherwise delete the old entry first, then add it again (adding without deleting leaves two entries for the same panel; see Changing the panel's address).
- Occasional dropped connection during thermostat traffic. The integration reconnects by itself. Entities may be briefly unavailable.
The integration handles connection problems and panel refusals differently.
Connection drops are retried automatically. If the connection to the panel drops, the integration reconnects with a growing delay: it starts at 2 seconds and doubles after each failed attempt, up to 60 seconds between attempts (about 72 s with jitter). There is no limit on the number of attempts. It only stops if the panel requires re-linking (see Re-linking). Entities are unavailable while it reconnects.
Single commands are not retried. An arm, disarm, bypass or device command is sent once. If the panel doesn't reply in time (5 seconds after the command is sent; 15 seconds for a zone bypass), the command fails with "The panel did not respond in time; the command may not have been applied." Time spent waiting to be sent isn't counted, so the error can take longer to appear. If the connection drops while it's being sent, it fails with "Lost connection to the panel; …". Check the device's state before trying again.
Panel refusals are never retried. When the panel refuses a request, for example not authorized, zone cannot be bypassed or area not ready, the integration reports it immediately as a Home Assistant error with the reason and error code. See Panel error messages.
If you want a failed command to be retried, do it in your automation or script. For
example, wait until the area is ready and call the action again.
Rollback runs once. When elke27.alarm_arm_automatic undoes its bypasses, each un-bypass
is sent once and never retried.
A failed elke27.alarm_arm_automatic also creates a Repairs issue and fires the
elke27_arm_automatic_failed event, which you can use
to retry (see the example). The issue clears
when leftover bypasses are reported as no longer bypassed, or when the area is later
armed as requested.
Added in Elk E27 Alarm Engine Integration 0.2.1, but not yet tested on hardware: opening and closing a real door was not verified for this release. It requires elke27 0.3.15, which Home Assistant installs for you. This is an added feature: updating from 0.2.0 needs no delete and re-add, and your existing entities don't change.
Each garage door set up on your panel appears in Home Assistant as a garage door cover on the panel device. It uses the name set on the panel, or "Garage door " if the panel has none.
Supported
- Open the door.
- Close the door.
- See whether the door is open or closed.
Not supported
- Stop: you can't stop the door partway.
- Position: you can't set or see how far open it is.
- "Opening" and "Closing" states: the integration doesn't guess that a door is moving.
- A door the panel reports as stopped, or in any other state than open or closed, shows as unknown.
Before you start
- The user code the integration signs in with must belong to a panel user with automation permission. Without it, the panel refuses open and close commands and Home Assistant shows: "The panel refused the garage door command; the configured Elk user may lack automation authority".
Things to know
- Closing from Home Assistant works the same as pressing your opener's remote. There is no extra warning and no setting to turn off remote closing, so check that the doorway is clear before you close it from an automation or while away.
- Each command is sent once. If the integration can't tell whether the panel received it, you see "Garage door command may or may not have reached the panel; check the door before retrying", and the integration reads the door's status once; it never resends the command.
- After each command the integration reads the door's status once.
- If the panel is disconnected, the cover shows as unavailable and commands aren't queued ("Not connected to the panel; the garage door command was not sent.").
Not yet verified on hardware
- Opening and closing a real door.
- Whether door changes show up right away or only after a refresh.
- Hardware confirmation of the error messages and of status after open/close.
Use Download diagnostics on the entry. Useful fields:
| Field | What it tells you |
|---|---|
client_ready, last_update_success |
Whether the panel session is up and ready (the library's ready state), and whether the last refresh worked. |
client_present |
Whether the integration holds a client object. It can be true while the link is down and the client waits to reconnect, so use client_ready for link state. |
reconnect_attempts, repairs_issue_active, reauth_requested |
Reconnect progress after a link drop; a Repairs issue appears only after 3 consecutive non-network failures (a plain network outage raises none), and re-auth when the panel rejects the link keys. |
snapshot_stale, stale_area_ids, stale_zone_ids |
Whether the library marks panel data stale; a snapshot stale for over 60 s while connected gets one automatic read. |
fallback_refresh_count, last_fallback_at, stale_auto_refresh_count |
Soak counters: post-command fallback reads and automatic stale reads since the entry loaded. |
elke27_version, integration_version |
Installed versions; include them when reporting an issue. |
area_device_count |
How many area devices the integration created. |
entry_state |
The entry's state (for example loaded or setup_error). An entry that isn't loaded only has the entry fields (versions, link-keys presence, redacted identity), with no session or snapshot fields. |
Host, panel MAC, unique ID and client ID are redacted; link keys are never included.
| Message | What to check |
|---|---|
| Unable to connect to the panel… | The host/IP is correct, the panel is online, and Home Assistant can reach it on TCP port 2101 (or the port the panel advertised during discovery). |
| Unable to authenticate with the panel… | The access code and passphrase are correct. These are the linking credentials set by your installer, not your alarm code. Confirm them with your installer if in doubt. |
| The panel requires linking… | Enter the access code and passphrase again. |
| The panel has no room for another linked client… | The panel keeps a list of linked clients, and it's full. This often happens after deleting and re-adding the integration several times, because each add links a new client ID and the old ones stay on the panel. Remove an unused linked client using the Elk Connect mobile app; this needs the installer code, so contact your installer if you don't have it. Then add the integration again. Your access code and passphrase are not the problem. |
| No panels were discovered… | The panel is online and on the same network segment, and UDP broadcast on port 2362 isn't blocked. Otherwise use Manual setup. |
| This panel is already configured. | The panel already has an entry, matched by MAC address, or by the panel's serial number when it reports a real one, or, if neither is reported, by the same host and port. |
| Elk E27 upgrade notes can't be read (Repairs) | See Upgrade problems shown in Repairs. |
If the upgrade from 0.1.x can't finish, Elk E27 stops before changing anything it can't undo and puts an issue under Settings → System → Repairs. Open it and follow the steps. Take a full Home Assistant backup first (Settings → System → Backups) if you haven't.
| Repairs issue | What to do |
|---|---|
| Elk E27 upgrade notes can't be read | Select Submit to rebuild the notes from your current entities and reload. Nothing is restored from a backup and no names or entity IDs change. If a panel item has more than one older entity and the choice depends on which you edited last, a second screen lists the entities it will keep and the ones it will leave unavailable. Submit if that's right; if not, close it and restore your pre-upgrade backup. |
| Elk E27 upgrade blocked by leftover entities | The issue lists every entity in the way (usually left over from a 0.2.0 trial). Select Submit to see the confirm screen, which lists exactly what will be deleted. Submitting it deletes only those Elk E27 entities, along with their history link, then retries the upgrade, so take a backup first. If some listed entities belong to another integration entry, the confirm screen names them and says how many it can't delete; remove those by hand under Settings → Devices & services → Entities. If none can be deleted for you, the screen lists them and only retries. To keep them, close the screen, delete or rename them yourself under Settings → Devices & services → Entities, then open the issue again and submit to retry. |
| Elk E27 upgrade blocked by a leftover device | Delete the listed leftover Elk E27 device by hand under Settings → Devices & services → Devices (open it, ⋮ → Delete), then open the issue and select Submit to retry. |
| Elk E27 upgrade blocked by leftover items | Both leftover entities and a leftover Elk E27 device are in the way. First delete the leftover device by hand under Settings → Devices & services → Devices (open it, ⋮ → Delete). Then open the issue and select Submit: the confirm screen lists exactly which entities will be deleted, and submitting it deletes only those, along with their history link, then retries the upgrade, so take a backup first. |
| Elk E27 upgrade interrupted / Elk E27 upgrade couldn't save | Select Submit to retry. After an interruption, entities already converted are kept and the upgrade picks up where it stopped; after a failed save, every change was undone and the upgrade starts over. If it keeps failing, restore your pre-upgrade backup and download diagnostics before reporting it. |
| Duplicate Elk E27 entities from the older version | Nothing is blocked; the upgrade kept one entity per panel item. Go to Settings → Devices & services → Entities, search for each listed entity ID, open it, select the gear icon, then Delete. Reload Elk E27 afterwards and the issue clears. |
When the panel rejects an arm, disarm or bypass, the error shows the panel's own reason and error code (in 0.1.7, including 11004 and 11008). Codes not listed here are shown as a number.
| Code | Message | What to do |
|---|---|---|
| 11004 | invalid parameter (check the user code) | Check the user code. It must be numeric and not all zeros; leading zeros are dropped. |
| 11008 | not authorized | The user code isn't allowed to do this in that area. Check the user's permissions in the panel. |
| 11015 | area not ready (open or faulted zones) | Close the open zones (see the area's faulted_zones attribute), bypass them, or use arm custom bypass. |
| 11023 | zone cannot be bypassed | The zone's panel programming doesn't allow bypass. |
| 11027 | area is in alarm; disarm to clear it first | Disarm the area to clear the alarm first. |
| 11028 | not allowed while armed | The area is armed. elke27.alarm_arm_automatic treats this as already armed (success, no change). |
| 11037 | invalid user code | The code isn't a valid user code on the panel. |
Enter your numeric alarm user code in the keypad dialog, or in the code field of an action.
Versions before 0.1.5 sent thermostat setpoints to the panel multiplied by 10, so 68 °F was stored as 680. Version 0.1.5 and later send whole degrees, and show any oversized stored value correctly (680 is shown as 68.0).
To fix it, update and change the setpoint once. The panel then stores the correct value.
Check the Panel ready diagnostic sensor. If it says disconnected, the integration has
lost its session with the panel and is reconnecting. Make sure the panel is powered and
reachable on the network. Brief drops during thermostat changes are a
known issue and recover by themselves.
The integration reconnects automatically, with a delay that starts at 2 seconds and doubles up to 60 seconds (about 72 s with jitter) between attempts. It refreshes everything from the panel, and entities come back shortly after the panel reconnects.
While entities are unavailable, Home Assistant itself skips them when you call an entity
action (for example light.turn_on, lock.unlock or alarm_control_panel.alarm_disarm):
the call returns without an error, but nothing is sent to the panel. This is standard Home Assistant
behavior for every integration, not something this integration can change. In
automations, check the entity's state first (or use a condition on it) if you need to know
the action ran. The integration's own actions, elke27.alarm_arm_automatic and
elke27.zone_bypass, do report an error when the panel is not connected.
To trace a call that seemed to do nothing, look in the Home Assistant log. When the link
drops, the integration logs one WARNING line, Panel connection lost; that is the line to
look for. Home Assistant may also log "Referenced entities … are missing or not currently
available", but it does not always: in Home Assistant 2026.1.3, entity_service_call
silently skips entities that are registered but unavailable. A disarm or other entity
action sent during that window returns success (HTTP 200 from the REST API) without reaching
the panel.
If a command fails with "The panel did not respond in time; the command may not have been applied." or "Lost connection to the panel; the command may not have been applied.", the connection is being checked and will be re-established automatically. Check the device's state before retrying.
- Rollback failed: if an un-bypass fails, a Repairs issue and the event
(
still_bypassed_zone_ids) list the zones that are still bypassed. Rollback runs once and is not retried. Check the panel, then un-bypass them withelke27.zone_bypassandbypass: false. - Uncertain arm result (
stage: arm_uncertain,outcome: unknown): after a timeout or dropped connection, the bypasses are deliberately left in place, because the area may be armed. Check the panel. If the area is armed, there's nothing to do. If it isn't, un-bypass the listed zones. - Cancelled by a disarm (
stage: cancelled): if the area never armed, the listed zones may still be bypassed. Clear any that are.
Reload the integration (Settings → Devices & services → Elk E27 Alarm Engine Integration → ⋮ → Reload). This reconnects and recreates the entities from the panel. If the link keys were rejected, the reload also brings up the re-link prompt.
Normal for some dimmers: the state is re-read about 3 seconds after a change.
To capture logs from both the integration and the library, add this to configuration.yaml
and restart:
logger:
default: warning
logs:
custom_components.elke27: debug
elke27_lib: debugThe Enable debug logging button on the integration page only covers
custom_components.elke27. Use the YAML above if you also need the library's logs, which is
usually the case for connection problems.
Before sharing logs, check them for alarm user codes, IP addresses and other sensitive information.
Go to Settings → Devices & services → Elk E27 Alarm Engine Integration, open the ⋮ menu on the entry and choose Download diagnostics.
- The download contains the panel snapshot, with sensitive values redacted by the library.
- Host, panel MAC, unique ID and client ID are redacted; link keys are never included.
Attach it to bug reports.
What's the difference between the access code, the passphrase and my user code? The access code and passphrase are linking credentials from your installer, used once at setup. Your user code (PIN) is what you enter to arm, disarm or bypass.
Why don't I see arm night? Arm night sends Stay Instant and needs application firmware 0.0.5.37 or later. If the version is older or unknown, the Arm night action is not shown. If firmware is new enough but Stay Instant is off for the area, Arm night appears but the command fails with an error asking you to enable Stay Instant in panel settings.
I armed away, but it shows armed home. That's the panel's auto-stay: no entry/exit zone
opened during the exit delay. elke27.alarm_arm_automatic cancels auto-stay.
Does this need the cloud? No. Everything is local.
What happens if I disarm while an automatic arm is running? The disarm wins. It's sent
right away, and once it's sent, the automatic arm stops, unless the panel definitively
refuses the disarm (for example a wrong code). A refused disarm, or one that's never sent
(missing code, panel not connected), lets the automatic arm continue. See
elke27.alarm_arm_automatic.
Why can't I find it in the Marketplace or in HACS? It isn't in the default
Marketplace catalog (or the older HACS store) yet. On Home Assistant 2026.11 or
newer, open Settings → Marketplace, select Add from link, enter
https://github.com/ElkProducts/Elk-E27, and select Add. Then open the
repository and select Install. A first install opens setup without a restart.
On 2026.10, add that URL as a custom repository (type Integration) in HACS,
then download it and restart. See
Installation. Add only the official Elk Products repository,
not the development repository as well.
Does it retry if something fails? It keeps reconnecting after a dropped connection, but a single command or a refused request is not retried. See Retries and errors.
Can I bypass a zone? Yes, one or more, with elke27.zone_bypass.
Disarming an armed area clears bypasses.
Can I control a garage door? Since 0.2.1 (open, close and open/closed state), not yet tested on hardware; see Garage doors.
Does it support Celsius? For display, yes: Home Assistant converts. The panel works in whole °F, so setpoints you set in °C are rounded.
- Area: a partition of the panel, armed and disarmed on its own. One alarm panel entity each.
- Away / Stay (Home): the E27's main arming modes. Stay leaves interior zones unarmed.
- Stay Instant (Night): arm night (
armed_night) from Home Assistant when application firmware is 0.0.5.37 or later and night arm is supported for the area. - Auto-stay: the panel switches Away to Stay if no entry/exit zone opens during the exit delay.
- Exit delay: time to leave after arming before the area is fully armed.
- Bypass: tell the panel to ignore a zone until the area is disarmed.
- Linking / link keys: the one-time pairing of Home Assistant with the panel; the panel issues link keys that the integration stores.
Update in the Marketplace or HACS and restart Home Assistant. No re-link, no delete and
re-add. Entity IDs stay the same. Your automations and dashboards keep working. This release
still uses elke27 0.6.0. If you set a zone's "Show as" type, the zone now shows Home
Assistant's own icon for that type, and the icon changes when the zone opens or closes. To
set it, go to Settings → Devices & services → Entities, open the zone, select the gear
icon, and pick a type under Show as. Zones without a "Show as" type keep their own icons.
If you picked your own icon for the zone, that icon still wins. Clear it in the same
settings dialog to get the open/closed icon.
Update in the Marketplace or HACS and restart Home Assistant. No re-link, no delete and re-add. Entity IDs
stay the same. This release still uses elke27 0.6.0. It is a documentation-only update with
no behavior change: links point at the renamed ElkProducts/Elk-E27 and mitchmitchell/Elk-E27
repositories, and the README section about a possible built-in version was removed.
Update in the Marketplace or HACS and restart Home Assistant. No re-link, no delete and re-add. Entity IDs
stay the same. This release still uses elke27 0.6.0. Multi-zone bypass now rolls back and
reports every exit, including a timeout after the panel already applied the change, and the
same unknown-outcome case is fixed for Arm automatic. Zone messages use the zone's name
and number, and automatic arming failures (including rollback summaries) are shown as
Repairs issues. Bugs and feature requests now go to the official ElkProducts issue tracker.
Development work and pull requests stay on mitchmitchell/Elk-E27.
Update in the Marketplace or HACS and restart Home Assistant. No re-link, no delete and re-add. Entity IDs
stay the same. This release still uses elke27 0.6.0. If an arm command may or may not
have reached the panel, the error is now the same for away, stay and night. Bypassing
several zones at once now checks each target first (entity, zone and code format only).
If a later command fails, it rolls back the changes it confirmed, and any zone it could
not restore is normally listed in the error. After a refused bypass (a rejected or
missing code, or a condition such as the zone not being ready or not bypassable),
unrestored zones are listed on the Repairs issue, not in the error; check Repairs
rather than relying on the error to identify zones left changed. This replaces the old
persistent notification. A timeout, unacknowledged write or other panel error is
reported in the error only. A zone whose write timed out after the panel applied it is
not rolled back or listed, and an unexpected error while rolling back can
stop the loop without listing zones; those cases are fixed in 0.5.1. The integration
now ships its own icon and logo.
Update in the Marketplace or HACS and restart Home Assistant. No re-link, no delete and re-add. Entity IDs
stay the same. This release installs elke27 0.6.0 automatically. An area in Stay Instant
now shows armed_night instead of armed_home, so check automations that relied on
armed_home for Stay Instant. Arm night needs panel application firmware 0.0.5.37 or
later.
Update in the Marketplace or HACS and restart Home Assistant. No re-link, no delete and re-add. Entity IDs
stay the same. This release installs elke27 0.5.1 automatically.
Update in the Marketplace or HACS and restart Home Assistant. No re-link, no delete and re-add. Entity IDs
stay the same. This release installs elke27 0.5.0 automatically.
If you set debug logging on a library sub-logger by name (for example
elke27_lib.session), use the new module names (elke27_lib.session_thread, and so
on). elke27_lib: debug still covers all library loggers.
Update in the Marketplace or HACS and restart Home Assistant. No re-link, no delete and re-add. Entity IDs
stay the same. This release installs elke27 0.4.0 automatically.
Check automations that test for disarmed. An area can now show unknown (the panel
did not report an arm mode) or armed_vacation (armed in Vacation mode at the panel)
where 0.2.1 showed disarmed. See Alarm control panel (areas).
Upgrading from 0.1.x still follows the 0.2.1 path first (one re-link). This release does not change that path.
Important
Upgrade in place, one re-link. From any 0.1.x, update to 0.2.1 in the Marketplace or in HACS, restart Home Assistant, then enter your access code and passphrase once on the Reconfigure panel card. Do not delete the integration. Your entity IDs, registry IDs, names you set, icons, areas, labels, disabled and hidden state, automations, dashboards and history are kept.
- Take a full Home Assistant backup first (Settings → System → Backups, include the database) and keep a copy off the machine. Restoring that backup is the only way to roll back to 0.1.x: there is no downgrade, and 0.1.x refuses to load an upgraded entry.
- Update in the Marketplace or HACS and restart Home Assistant. Home Assistant shows the re-link in two places: an attention-required card for the integration under Settings → Devices & services, and a "Reauthentication is needed" entry in Repairs. Open either one to get Reconfigure panel.
- Enter the access code and passphrase. This links Home Assistant to the panel again with a new client ID; the panel's Network Devices list gets a new entry, and you can remove the old 0.1.x one there when you like.
- Done. On that first start the integration rewrites its unique IDs and moves the panel device to the new identity before any entity loads. It is all or nothing: if anything conflicts (for example entities left over from a 0.2.0 trial), nothing is changed, a Elk E27 upgrade blocked Repairs issue lists the conflicts, and the entry waits. Open it to delete the listed leftovers (after a confirm screen) and retry; it then completes. Entities left over as duplicates from very old versions are listed in a Repairs issue and left untouched for you to delete. See Upgrade problems shown in Repairs.
Action targets: elke27.alarm_arm_automatic and elke27.zone_bypass must target the area
device (or an alarm panel or zone entity), not the panel device. Since each area is now its own
device, an automation that targeted the panel device needs to target the area device instead.
What changes: each area the panel reports is now its own device, and its alarm panel and
zones sit under it, named after the area (for example "Main House Front Door"). Entity IDs
do not change, so only dashboard captions that show friendly names look different. Alarm
panels and zones that took their area from the panel device keep that area. If you want the
old displayed names back, scripts/restore_entity_names.py renames entities from a saved
list (dry run by default, with undo; see its --help). It reads an entity_id,name CSV, or
with --from-markdown the Markdown names table saved before the upgrade (one row per entity
with entity_id and displayed name (friendly_name) columns). A registry name replaces
the whole displayed name, so by default each entity gets its exact old displayed name (device
name plus zone name, e.g. " Front Door"); --original-name uses the bare name
("Front Door") instead.
--apply saves an undo map listing every planned rename before the first write, refuses to
overwrite an existing map unless you pass --force, and never deletes the map, even if it
fails part way (for example when the connection drops). --undo sets each entity back to its
old name and skips any that already match, so it is safe to re-run; only a successful
--undo --apply removes the map.
--to-csv names.csv only converts the table, without connecting:
scripts/restore_entity_names.py --from-markdown names.md --to-csv names.csv
HA_TOKEN=... scripts/restore_entity_names.py --url ws://homeassistant.local:8123 names.csv
HA_TOKEN=... scripts/restore_entity_names.py --url ... names.csv --apply --map applied-map.json
HA_TOKEN=... scripts/restore_entity_names.py --url ... --undo applied-map.json --applyAlready on 0.2.0 (deleted and re-added)? Nothing changes for you. Went from 0.1.x to 0.2.0 by mistake? Don't delete the entry: update to 0.2.1 and re-link. Requires elke27 0.3.15, which Home Assistant installs for you.
0.2.0 has no in-place upgrade from 0.1.x. Go from 0.1.x straight to 0.2.1, which upgrades in place with one re-link. If you did install 0.2.0 over 0.1.x, the entry shows "This entry was created before the client ID existed, or its client ID is invalid." Don't delete it: reinstall the 0.1.x you had (0.2.0 doesn't change the entry) or update to 0.2.1 and re-link.
Each area appears as its own device, with its zones under it; the area's alarm panel is
named after the area, and zones are named " ". Zones with no area and panel-wide
entities (outputs, lights, locks, thermostats, panel status) stay on the panel device. A new
0.2.0 install (not an upgrade) creates entity IDs from those names, for example
alarm_control_panel.<area>, and areas or zones with the same name get _2, _3 IDs.
Requires elke27 0.3.14, which Home Assistant installs for you.
See the 0.2.0 release notes.
Update in the Marketplace or HACS and restart Home Assistant. No delete and re-add is needed from 0.1.8 or
0.1.8.1. Mostly internal cleanup (typed snapshots, strict typing). Config entry, device and
entity identity and entity names are unchanged compared with 0.1.8.1, and the legacy pin
cleanup on setup is the same as 0.1.8. One change may affect scripts: diagnostics no longer
include snapshot_available. Requires elke27 0.3.13.
Upgrading from 0.1.7 straight to 0.1.9: follow To 0.1.8 below (delete and re-add;
config entry, device and entity identity change; installing over 0.1.7 without deleting
leaves duplicate _2 entities). See the
0.1.9 release notes.
Upgrading from 0.1.7: delete each Elk E27 entry first, then install 0.1.8.1 and add the
panel again (the 0.1.8 steps). Installing over 0.1.7 without deleting leaves duplicate
entities with a _2 suffix.
Update in the Marketplace or HACS and restart Home Assistant. No delete and re-add is needed from 0.1.8: on the first connect, the panel MAC from network discovery is stored and becomes the entry's unique ID, unless the entry is keyed by a real panel serial, which it keeps (changing the address of such an entry means deleting and re-adding it). Entity and device IDs stay on the config entry ID. See the 0.1.8.1 release notes.
Upgrading from 0.1.7: Delete each Elk E27 integration entry and add it again. There is no in-place migration. Entity and device IDs may change, so review and update automations, scripts, and dashboards that reference Elk E27 entities.
Breaking changes — all 0.1.7 users must delete and re-add the integration.
Remove each Elk E27 config entry under Settings → Devices & services, then add the panel again with the same linking credentials.
- Entity unique IDs and device identifiers follow the panel MAC address when the panel
reports one, otherwise the panel hardware serial, otherwise the config entry ID.
Panels today: the panel's own messages carry no MAC, and current firmware reports a
placeholder serial, which is ignored. The MAC seen during network discovery is not used for
identity in 0.1.8 (0.1.8.1 adds it). Without a MAC or real serial, the config entry
unique_idstays unset, setup dedupes on host:port, and devices and entities are keyed on the config entry ID. An IP change counts as a new panel: re-link can't change the address (it reuses stored host and port), so delete the entry and add it again at the new address. - The integration serial used for E27 linking identifies Home Assistant, not the panel, and is never used as config or entity identity.
- Entity unique IDs and entity IDs may change; review dashboards, automations, and scripts after re-adding.
- Requires elke27 0.3.12 (release notes) (#54). Reconnect policy (#53): auth failures
during automatic reconnect start re-link once; three non-transport failures since the last
successful connect (transport failures in between do not reset the count) can raise a
reconnect_failedRepairs issue while retry continues.
No identity or config breaking changes (unique IDs, entity IDs, settings kept). Behavior changes that may affect automations:
elke27.alarm_arm_automaticnow arms with open zones. It bypasses the open (faulted) zones in its area and arms immediately. In 0.1.6 it refused with area not ready (error 11015). Automations that relied on that refusal will now arm. Add your own condition (for example the area'sreadyattribute) if you want the old behavior.- Disarming during an automatic arm can leave zones bypassed. If you disarm before the
area has armed, the call stops (
stage: cancelled) and zones it already bypassed stay bypassed. Clear them withelke27.zone_bypassandbypass: false. Disarming an area that did arm clears its bypasses. - Commands while disconnected now fail. Commands sent while the panel isn't connected fail with an error instead of appearing to succeed. Entities go unavailable during a disconnect and recover after the automatic reconnect.
Other changes:
- Requires
elke270.3.11 (installed automatically). - Failed bypasses or arms are rolled back (once), except when the result is uncertain.
Failures create a persistent notification and fire
elke27_arm_automatic_failed. - Disarm always wins over an automatic arm in progress.
- Panel error messages show the panel's real reason; codes must use the digits 0–9.
Upgrading from 0.1.5 keeps your entities and their unique IDs. Check your automations for these changes:
- Requires
elke270.3.10 (installed automatically). - Arm night removed. The E27 has no night mode.
- Area attributes:
ready_status_displayandtroublewere removed.readyandready_statusnow report real values. Faulted-zone attributes cover only zones in that area. - Custom bypass now bypasses only open zones in the target area, and won't arm if a bypass isn't acknowledged.
elke27.alarm_arm_automaticdoesn't bypass open zones in 0.1.6; an open zone makes it fail with error 11015. Bypassing (in the targeted area only) arrived in 0.1.7.- New:
elke27.zone_bypassaction, panel error reasons and codes in error messages, thermostat current humidity, faster light state updates.
- Go to Settings → Devices & services → Elk E27 Alarm Engine Integration, open the ⋮ menu on the entry and choose Delete.
- If you installed from the Marketplace (Home Assistant 2026.11 or newer), open Settings → Marketplace, open the repository, and choose Uninstall from the ⋮ menu. If you installed through HACS (2026.10), open HACS, find Elk E27 Alarm Engine Integration, and choose Remove. Then restart Home Assistant. After a Marketplace uninstall, a repair can restart Home Assistant for you if the integration is still running.
- If you installed manually, delete
<config>/custom_components/elke27and restart.
Release notes for each version are on the
Releases page. Library changes
are tracked in the elke27 repository.
- Bugs and feature requests:
open an issue. Please include:
- Home Assistant version, integration version and
elke27library version - Panel firmware version
- A diagnostics file and debug logs (check them for codes first)
- The exact error text, including the error code
- Home Assistant version, integration version and
- Development work and pull requests stay on mitchmitchell/Elk-E27.
- Library: mitchmitchell/elke27.
- Contributing: see CONTRIBUTING.md.
- The repo includes a VS Code dev container.
scripts/setupinstalls the development requirements.scripts/developstarts a local Home Assistant with the integration loaded.scripts/lintruns Ruff.
This is a community integration. It is not an official Home Assistant integration.
MIT. See LICENSE.