Skip to content

Home Assistant integration for PIN-protected entity locking

Notifications You must be signed in to change notification settings

nutshell86/entity_lock_manager

Repository files navigation

Entity Lock Manager

A Home Assistant integration that provides an admin panel for locking entities with PIN protection.

Features

  • 🔒 Lock entities with PIN/password protection
  • 👤 User-based permissions
  • 🎛️ Admin panel for managing locked entities
  • 🔐 Prevent unauthorized changes to critical entities
  • ⚙️ Full UI configuration

Installation

Manual Installation

  1. Copy the entity_lock_manager folder to <config_dir>/custom_components/
  2. Restart Home Assistant
  3. Go to SettingsDevices & Services
  4. Click + Add Integration
  5. Search for "Entity Lock Manager"

Configuration

Configuration is done through the UI:

  1. Go to SettingsDevices & Services
  2. Click + Add Integration
  3. Search for "Entity Lock Manager"
  4. Follow the setup wizard

Usage

Services

entity_lock_manager.lock_entity

Lock an entity with a PIN code.

service: entity_lock_manager.lock_entity
data:
  entity_id: light.living_room
  pin: "1234"

entity_lock_manager.unlock_entity

Unlock an entity with the correct PIN.

service: entity_lock_manager.unlock_entity
data:
  entity_id: light.living_room
  pin: "1234"

entity_lock_manager.check_lock

Check if an entity is currently locked.

service: entity_lock_manager.check_lock
data:
  entity_id: light.living_room

Development

See 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_manager

License

MIT License - see LICENSE file for details

Support

About

Home Assistant integration for PIN-protected entity locking

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published