Lovelace Restriction Card - Client-side Security

Configuration errors detected:
unknown tag !<!secret> (6:46)

 3 | ... L
 4 | ...
 5 | ...ez the code
 6 | ...ret my_super_secret_complex_pin
-----------------------------------------^
 7 | ...
 8 | ... :button-card

I just got it ! I would have to switch my entire dashboard to yaml mode and no longer use the wizard

I made an “easy” button for my wife with macro buttons to select parts of the house and send the vacuum to clean them. However, for some reason I cannot figure out why when I press the button and try to execute the “start_vacuum” function it doesn’t actually do anything.

type: entities
entities:
  - card:
      entity: input_button.start_vacuum
    row: true
    type: custom:restriction-card
    restrictions:
      confirm:
        text: Confirm. Pigpen will clean selected areas.
      block:
        text: Pigpen must be docked and charged before starting.
        condition:
          operator: '!='
          value: docked
          entity: vacuum.valetudo_pigpen

If I just put the button in an entities list, like this it works great:

type: entities
entities:
  - entity: input_button.start_vacuum

Anyone know why the button doesn’t ‘toggle’ when I clear the soft lock and click the button?

Secondly, is there any way to build a more advanced condition statement so I can actually check the battery as well as the dock state?

Thanks!

Anyone with an idea on this? Probably impossible to achieve, but I didn’t see a “NO” from any pro here yet :slight_smile:

Time Based Restriction What am I missing

Hi all pretty new to HA any enjoying it alot.

I have a configuration for boolean that I would like to lock at time intervals.

No matter what Ive tried it stays locked.

can anyone help with this please.

here is the code.

type: custom:restriction-card
card:
  entity: input_boolean.chore_1
  name: Chore 1 Name
restrictions:
  block:
    text: Chore not allowed at this time
  condition:
    condition: or
    conditions:
      - condition: time
        after: '07:00:00'
        before: '09:00:00'
      - condition: time
        after: '14:00:00'
        before: '15:00:00'
row: true

Hello,

I would like to change the lock to the color red when it is closed, but no matter what I try, it doesn’t change. Could someone please help me?

type: entities
entities:
  - card:
      entity: automation.lufter_nachtmodus
    type: custom:restriction-card
    restrictions:
      confirm:
        text: Bist du sicher?
    row: true


Color should be either changed in a custom theme or by card-mod.

What would the code for Card Mod look like?

Go to the main card-mod thread - 1st post - find a link at the bottom titled “fantastic post” - “restriction-card” chapter