Create Alarm Control Panel with No PIN - SWO-KEF1PA

I got some SWO-KEF1PA key fobs to control my home alarm, these work fine to “Arm Home”, “Arm Away” and “Panic” - but the disarm button does not work.

This happens because the fob sends code: ‘’, but HA expects code: ‘1234’.

From the Alarm Template page it appears I need to set code_template to an empty string, but I’m not sure where I’d set this for an alarm control panel created by a Zigbee device.

How can I either:

  1. Tell HA to accept code: ‘’.
  2. Configure the SWO-KEF1PA to send code: ‘1234’.
  3. Configure HA to expect and the SWO-KEF1PA to send a slightly less guessable code - accepting the signal is susceptible to sniffing for replay attacks.

Thanks in advance for any pointers!

Welcome to the forums. You got me curious & I googled that model. I don’t see a disarm button anywhere:

How exactly did you set it up to send a disarm command?

Sorry, didn’t get any notification about your reply :frowning:

The “home” button sends:

{'arm_mode': 0, 'arm_mode_description': 'Disarm', 'code': '', 'zone_id': 0}

I just stumbled upon the solution, which the UI shows as invalid…

  1. Go to Settings > Zigbee (recently added option)
  2. Scroll down to “Alarm control panel options”
  3. Clear “Master code for the alarm control panel(s)”
  4. Ignore the error that the field is required
  5. Click “Update Configuration”
  6. Go back to device and test