Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 107720

Not able to lock custom button card

$
0
0

Hi there,

I’m trying to the button for my curtains when the window is open. For now I’m using an input boolean, since I haven’t received the sensor yet. I can’t get it to function. It keeps giving me this error:

Configuration errors detected:
can not read a block mapping entry; a multiline key may not be an implicit key at line 6, column 11:
duration: 10
^

Code down below:

type: 'custom:button-card'
tap_action:
  action: toggle
lock:
  enabled: '[[[ return input_boolean.living_room_window === 'on'; ]]]'
  duration: 10
  unlock: hold
state:
  - value: open
    color: green
    icon: 'mdi:blinds-open'
  - value: closed
    color: red
    icon: 'mdi:blinds'
entity: cover.living_room_curtains

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 107720

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>