Yesterday I posted this and it seems a few people were interested so I’m releasing my first beta version of the card.
This is a custom lovelace card to lock entire cards and works exactly like vertical-stack-in-card, except you can specify a lock type. Password, Confirm, or Timeout lock.
Use case I’d imagine would be to stop children messing with the thermostat, or flatemates turning off and on things that shouldn’t be.
This is my first contribution to Home Assistant. I have no knowledge of Python and I’ve been scratching my head trying to understand Polymer but I did my best to provide a simple front-end quick lock.
Feedback is welcome, pull requests welcome.
Let me know if you experience bugs, this is beta.
Nice card! I’ve found good use for it However I found an issue. When I have a input-select in an entity card above the love-lock-card and the box with choices is drawn over the love-lock-card, I can’t pick any of the choices that are shown over the love-lock-card. Only after unlocking the card, I can choose the lowest choices. Hopefully you can fix that!
Hi @wummeke, could you provide a screenshot of your layout? I’m having trouble understanding what you mean. The love-lock-card should only cover the card you specify. So all entities within that card wouldn’t work unless you unlock it.
while parsing a block mapping in “/config/ui-lovelace.yaml”, line 1, column 1 expected , but found ‘’ in “/config/ui-lovelace.yaml”, line 289, column 5
title: Home
# Include external resources
resources:
- url: /local/slider-entity-row.js
type: js
- url: /local/love-lock-card.js
type: js
- url: /local/my-webfont.css
type: css
# Optional background for all views. Check https://developer.mozilla.org/en-US/docs/Web/CSS/background for more examples.
background: center / cover no-repeat url("/background.png") fixed
views:
# View tab title.
- badges: []
cards:
- entity: media_player.onkyo_receivery
type: media-control
- entity: media_player.samsung_tv_remote
type: media-control
type: 'custom:love-lock-card'
title: Lounge
cards:
- entities:
- entity: light.stue_lys
name: Lounge Lamp
type: entities
type: entities
password: '1234'
popup: password
path: media
title: Media
hi love your mod but i cant seem to get it to work followed install instructions but no luck please can you tell me if this works with latest version of HA supervised do you have video how to install and use?thanks