Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thomasloven/lovelace-toggle-lock-entity-row
https://github.com/thomasloven/lovelace-toggle-lock-entity-row
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/thomasloven/lovelace-toggle-lock-entity-row
- Owner: thomasloven
- Archived: true
- Created: 2018-09-21T10:36:54.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-31T08:40:32.000Z (almost 5 years ago)
- Last Synced: 2024-08-02T20:45:49.007Z (3 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 62
- Watchers: 8
- Forks: 11
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
toggle-lock-entity-row
======================# THIS PLUGIN IS DEPRECATED
# I RECOMMEND USING [RESTRICTION-CARD](https://github.com/iantrich/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.---
```yaml
resources:
- url: /local/toggle-lock-entity-row.js
type: jsviews:
- title: My view
cards:
- type: entities
entities:
- entity: light.my_lamp
name: A lamp
type: custom:toggle-lock-entity-row
```![lovelace-locked-toggle](https://user-images.githubusercontent.com/1299821/45876486-0bc76e80-bd9b-11e8-8aa1-543fa4e3d14d.jpg)
### 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
```