Moin zusammen,
hat jemand schonmal in eine custom-button-card eine restriction-card eingebaut?
Ich würde gerne beim klicken auf die button-card einen Pin abfragen um dann
ein Script zu starten um z.B. die Haustür zu öffnen.
Hat jemand eine Idee zur Umsetzung? Das u.a. Beispiel funktioniert leider nicht.
Gruß
AndiFidi
type: custom:button-card
name: Wohnungstür öffnen
icon: mdi:sofa-outline
entities:
- card:
entity:script zum öffnen der Tür öffnen
restrictions:
confirm:
exemptions:
- user: xyz
pin:
code: 12345
type: custom:restriction-card
color: auto
size: 30%
show_state: false
show_label: true
aspect_ratio: 1.5/1.1
tap_action:
action: more-info
haptic: light
styles:
card:
- border-radius: 12px
label:
- color: gray
- font-size: 12px
- font-family: Helvetica
- padding: 0px 10px
- justify-self: start
img_cell:
- align-self: center
- text-align: start
- margin-left: 0px
name:
- justify-self: center
- padding-left: 0px
- padding-bottom: 20px
- font-weight: normal
- font-family: Helvetica
- font-size: 17px
- color: "#37823a"
icon:
- color: "#37823a"
state:
- color: "#37823a"
- justify-self: center
- padding-left: 0px
- font-weight: normal
- font-family: Helvetica
- font-size: 13px