Skip to content

Custom entity rows that prevent users from unlocking a lock, disarming a security system(alarm), opening a cover(garage door).

License

Notifications You must be signed in to change notification settings

frozenwizard/onlylocklock

Repository files navigation

GitHub GitHub all releases GitHub release (latest SemVer) hacs_badge

onlylocklock

This project provides custom entities row for locks, covers and alarm systems in Home Assistant. The intent is to expose the locks/covers/alarm so that they can only be locked/closed/armed and not be unlocked/opened/disarmed through the ui. This is good for wall tablets or for users with restricted access.

This entity row only allows the lock command to be called on a lock and prevents the more-info popup from being shown. It looks like a normal lock row. Similarly, the only close cover row only allows the close_cover command to be called on a cover. The only arm alarm only allows the arm_alarm_home or arm_alarm_away to be called on an alarm_control_panel.

Usage

Add the type "custom:only-lock-lock-row" to your lock or "custom:only-close-cover-row" to your cover or "custom:only-arm-alarm-row" to your security system. Configuration is the same for both types in that they only have entity to be configured. Note that cover is intended an only tested on "Garage doors", it will work on other cover types.

Example

entity: lock.front_door
type: custom:only-lock-lock-row

Or

entity: cover.garage_door
type: custom:only-close-cover-row

Or

entity: alarm_control_panel.house
type: custom:only-arm-alarm-row

Inside an Entities Card Configuration

type: entities
entities:
- entity: lock.front_door
  type: custom:only-lock-lock-row

Demo

Roadmap

In general, the intended purpose of this is complete, outside of maintenance/cleanup. However, there are some optional features I want to add.

  • Add battery level icon next to lock
    • Requires setting a battery sensor entity per lock.
  • Allow specific user to unlock and view the more info popup.
  • Support theming?

About

Custom entity rows that prevent users from unlocking a lock, disarming a security system(alarm), opening a cover(garage door).

Topics

Resources

License

Stars

Watchers

Forks

Packages