Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.

thomasloven/lovelace-toggle-lock-entity-row

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

toggle-lock-entity-row

THIS PLUGIN IS DEPRECATED

I RECOMMEND USING RESTRICTION-CARD WHICH DOES MORE THINGS BETTER




Avoid toggling entities by mistake in lovelace.

This will display a normal toggle with a lock symbol in front of it. Clicking the lock will make it go away and enable the toggle to be manouvered for five seconds.


resources:
  - url: /local/toggle-lock-entity-row.js
    type: js

views:
  - title: My view
    cards:
    - type: entities
      entities:
        - entity: light.my_lamp
          name: A lamp
          type: custom:toggle-lock-entity-row

lovelace-locked-toggle

Other options

If a list of users is supplied, only those users can disable the lock:

Note that this is not to be considered propper security. The lock can easily be circumvented.

    - type: entities
      entities:
        - entity: light.my_lamp
          name: A lamp
          type: custom:toggle-lock-entity-row
          users:
            - Thomas
            - Admin

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published