keymaster icon indicating copy to clipboard operation
keymaster copied to clipboard

ISSUE: AutoLock not working; Day and Night Auto Lock times show "unknown"

Open bobpaul opened this issue 3 months ago • 5 comments

Describe the bug I upgraded to "the beta" due to #454, but now Auto Lock doesn't work (it's enabled, but I'm unsure how to set the timeouts and it doesn't lock the lock). In Lovelace "Day Auto Lock" and "Night Auto Lock" show "unknown".

Environment (please complete the following information):

  • OS: HassOS
  • Type of system that HA is running on: Home Assistant Yellow
  • Home Assistant version: 2025.8.3
  • Hassio/Docker/Core?
  • Component version: v0.1.0-b4
  • Z-Wave integration name: zwave_js
  • Lock make and model: Yale YRL226

Logs not sure what to include.

Screenshots

Image Image

Additional context For the upgrade I deleted the keymaster device, uninstalled keymaster, and then installed (from HACS) version v0.1.0-b4. After that I copy/pasted the yaml snipplet from config/custom_components/keymaster/lovelace/{lockname}.yaml into a new card

bobpaul avatar Sep 02 '25 18:09 bobpaul

OK, I figured out a work around. If you look at that second screen shot showing the graph/log for the "Day Auto Lock" that the input field is disabled. It HA disables the input when it contains a null value.

Work Around

  1. Settings -> Devices & Services -> Integrations -> KeyMaster -> Choose the device

  2. In the Controls section, scroll down and look for a numeric input field with the units of "min" and a stopwatch icon. (Unless your lock name is very short, the field name will probably be cut off)

  3. Use mouse over to confirm fields for "Auto Lock Day" and "Auto Lock Night".

  4. Enter values in this fields. Image

  5. Check on the dashboard, and the field should now be visible (with the time you entered in 4) and it should be editable from the "___ Auto Lock" entity view (the graph view)

Image Image

Since fixing it, I can't easily reproduce it again (without uninstalling keymaster) because this is a Float field and HomeAssistant won't let me simply set the value to null.

Suggested Fix

When a new KeyMaster device is created, it should populate some valid, default value (0?) into the auto lock time values.

bobpaul avatar Sep 03 '25 15:09 bobpaul

Additional suggestion, move the auto lock time setting boxes to immediately below the enable auto lock switch in the config page, as it is now you have to scroll a long way to find it. Thanks for considering

Kdemontf avatar Sep 05 '25 17:09 Kdemontf

I have done that but the Auto-lock function does not seem to be working. My lock is configured to lock after 10 min day and night. But it no longer auto-locks. It worked under version .99, but not v0.1.0-b4.

inaxsesable avatar Sep 08 '25 12:09 inaxsesable

Auto-lock has been very flaky for me. It auto-locked a few times while the door was open. The retry_lock is supposed to fix this, but as I understand it, this option prevents auto-lock from attempting to lock the door when it's open and instead retries the lock operation when the door closes. I've opened a new issue #493

Cyberes avatar Oct 05 '25 23:10 Cyberes

Thanks for the way to manually input the minutes for the auto lock. It hasn't been working for me so i'll update this and test it over the weekend. Hopefully this fixes it as my door hasn't been locking and its frustrating me to no end. lol

bbjamm avatar Nov 07 '25 07:11 bbjamm