-
-
Notifications
You must be signed in to change notification settings - Fork 14
Troubleshooting Debug Logs
Debug logs capture the detailed decision-making inside Lock Code Manager — when codes are set/cleared, why a slot was enabled/disabled, and how entity states are evaluated. They are essential for diagnosing issues.
Add the following to your configuration.yaml and restart Home Assistant:
logger:
default: warning
logs:
custom_components.lock_code_manager: debug
homeassistant.components.zwave_js: debugNote: If your lock uses a different integration, replace
zwave_jswith your lock integration's domain (e.g.,homeassistant.components.mqttfor MQTT).
This enables debug logging for both LCM (config flow, providers, entity platforms, etc.) and the lock integration so you can see the full picture of what's happening on both sides.
- Enable debug logging as shown above and restart HA.
- Reproduce the issue.
- Go to Settings → System → Logs → Download full log and download the log file.
- Upload the full log file to your bug report, or paste relevant snippets.
Tip: Sharing the full log file is preferred — it preserves context that may be important for diagnosis. If you share a snippet instead, include a continuous time range with extra time before and after the issue. Don't stitch together separate log sections — that risks losing important context between them.
If you don't want to edit configuration.yaml, you can enable debug logging temporarily via Developer Tools → Services:
Service: logger.set_level
custom_components.lock_code_manager: debug
homeassistant.components.zwave_js: debugThis resets when HA restarts.
Debug logging is verbose and can impact performance and fill up your log file. Once you've captured the logs you need, reverse the process:
-
If you edited
configuration.yaml: Remove theloggerlines you added (or set them back towarning) and restart HA. -
If you used the
logger.set_levelservice: Simply restart HA — the temporary setting will be cleared automatically.
- All
lock_code_managerand lock integration log lines from before the issue occurs through the issue itself. Context leading up to the problem is often more useful than the error alone. - If the logs are long, upload them as a file rather than pasting inline.
- Do not redact entity IDs or state values unless they contain sensitive information (like PINs). Entity names and states are critical for diagnosis.
-
PINs are automatically obfuscated in debug logs as
pin#xxxxxxxx(an 8-character hex hash). The same PIN on the same lock always produces the same hash, so you can track a specific PIN across log entries without the actual code being exposed. Different locks and different HA instances produce different hashes for the same PIN. You do not need to redact these hashes when sharing logs.
Getting Started
Features
- Blueprints
- Tracking lock state change events
- Using Condition Entities
- Unsupported Condition Entities
- Number of Uses (deprecated)
- Notifications
Advanced
Development
Troubleshooting
FAQ
Supported Integrations