A Home Assistant integration that provides an admin panel for locking entities with PIN protection.
- 🔒 Lock entities with PIN/password protection
- 👤 User-based permissions
- 🎛️ Admin panel for managing locked entities
- 🔐 Prevent unauthorized changes to critical entities
- ⚙️ Full UI configuration
- Copy the
entity_lock_managerfolder to<config_dir>/custom_components/ - Restart Home Assistant
- Go to Settings → Devices & Services
- Click + Add Integration
- Search for "Entity Lock Manager"
Configuration is done through the UI:
- Go to Settings → Devices & Services
- Click + Add Integration
- Search for "Entity Lock Manager"
- Follow the setup wizard
Lock an entity with a PIN code.
service: entity_lock_manager.lock_entity
data:
entity_id: light.living_room
pin: "1234"Unlock an entity with the correct PIN.
service: entity_lock_manager.unlock_entity
data:
entity_id: light.living_room
pin: "1234"Check if an entity is currently locked.
service: entity_lock_manager.check_lock
data:
entity_id: light.living_roomSee SETUP_GUIDE.md for complete development setup instructions.
# Setup
py -m venv venv
.\venv\Scripts\Activate.ps1
pip install -r requirements_dev.txt
# Run tests
pytest tests/
# Format code
black custom_components/entity_lock_manager
isort custom_components/entity_lock_managerMIT License - see LICENSE file for details