Skip to content

Releases: iantrich/restriction-card

restriction-lock-row-margin-left

22 Oct 02:53
Compare
Choose a tag to compare
name Default Description
restriction-lock-row-margin-left 24px Manually bump the left margin of the lock icon in rows

allow for inferring of row type based on entity

21 Oct 17:58
Compare
Choose a tag to compare
type: "custom:hui-entities-card"
entities:
  - card:
      entity: cover.garage_door
    restrictions:
      block: true
    type: "custom:restriction-card"
    row: true
  - entity: light.kitchen

cleanup click handlers

21 Oct 03:19
Compare
Choose a tag to compare
1.0.7

cleanup click handlers

add action option

21 Oct 02:31
Compare
Choose a tag to compare

Action type to trigger the unlock. Options are tap, double_tap, or hold. Default is tap

Name Type Requirement Description
action string Optional Action type to trigger the unlock. Options areΒ tap,Β double_tap, orΒ hold. Default isΒ tap

add duration option

18 Oct 00:08
Compare
Choose a tag to compare

New Option

Name Type Requirement Description
duration number Optional Duration of unlock in seconds. Default isΒ 5

initial support for rows

17 Oct 18:47
Compare
Choose a tag to compare

new row option which will set the icon's margin-left to 24px
image

new theme option restriction-lock-margin-left so that you can position the left/right for card lock icon

introduce condition object to card and restriction objects

17 Oct 04:13
Compare
Choose a tag to compare

e.g.

type: 'custom:restriction-card'
card:
  entity: light.kitchen
  type: 'custom:hui-light-card'
restrictions:
  block:
    condition:
      value: 'on'
      operator: ==
      entity: light.kitchen

introduce theme variables for lock coloring

17 Oct 02:53
Compare
Choose a tag to compare

Theme Variables

The following variables are available and can be set in your theme to change the appearance of the lock.
Can be specified by color name, hexadecimal, rgb, rgba, hsl, hsla, basically anything supported by CSS.

name Default Description
--restriction-regular-lock-color --primary-text-color Lock color
--restriction-success-lock-color --primary-color Lock color when unlocked
--restriction-blocked-lock-color --error-state-color Lock color when card is blocked
--restriction-invalid--color --error-state-color Lock color after an invalid attempt to unlock

custom dialog text

17 Oct 02:07
Compare
Choose a tag to compare

Added text option to confirm, pin and block restrictions

Initial Release

16 Oct 22:11
Compare
Choose a tag to compare
1.0.0

actually functional