You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A card to provide restrictions on Lovelace cards defined within.
Disclaimer
This card is not to be used as a means to truly protect an instance. Someone with the means and knowledge will be able to bypass the restrictions presented by this card should they choose to.
Minimum Home Assistant Version
Home Assistant version 0.110.0 or higher is required as of release 1.2.0 of restriction-card
Support
Hey dude! Help me out for a couple of π» or a β!
Conditional object to make restriction active. See Condition Options.
Exemption Options
Name
Type
Requirement
Description
user
string
Required
User id to exempt. This is found in the user profile ID.
Condition Options
Name
Type
Requirement
Description
value
string
Required
String representing the state.
entity
string
Required
Entity to use condition and is what also causes the card to update
attribute
string
Optional
Attribute of the entity to use instead of the state.
operator
string
Optional
Operator to use in the comparison. Can be ==,<=,<,>=,>,!=, or regex. Default is ==.
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
restriction-lock-margin-left
0px
Manually bump the left margin of the lock icon
restriction-lock-row-margin-left
24px
Manually bump the left margin of the lock icon in rows