This is currently not being worked on for more features but I am happy to accept any pull requests.
Custom Lovelace card to password protect or lock entire Home Assistant cards. Based upon vertical-stack-in-card. This is not a bulletproof method and is just an implementation of client-side security. But could be useful against children or flatmates poking where they shouldn't.
There are 3 types of locks. Locks are activated when clicking on any card.
Left - Password Protected.
Middle - Timeout to fade.
Right - Confirm Unlock
Name | Type | Default | Description |
---|---|---|---|
type | string | Required | custom:love-lock-card |
cards | list | Required | List of cards |
title | string | Optional | Card title |
popup | string | Optional | password, confirm, timeout |
password | string | Required | Only required with popup:password |
-
Install the
love-lock-card
card by copyinglove-lock-card.js
to<config directory>/www/love-lock-card.js
-
Link
love-lock-card
inside yourui-lovelace.yaml
resources:
- url: /local/love-lock-card.js
type: js
- Add a custom card in your
ui-lovelace.yaml
Password Example
type: 'custom:love-lock-card'
title: Lounge
popup: password
password: 1234
cards:
- entity: light.hue_white_lamp_1
name: Lounge Lamp
type: light
Confirm Example
type: 'custom:love-lock-card'
title: Lounge
popup: confirm
cards:
- entity: light.hue_white_lamp_1
name: Lounge Lamp
type: light
Timeout Example
type: 'custom:love-lock-card'
title: Lounge
popup: timeout
cards:
- entity: light.hue_white_lamp_1
name: Lounge Lamp
type: light
Idea comes from Thomasloven's lovelace-toggle-lock-entity-row
Based on vertical-stack-in-card