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

Secret in template card

$
0
0

Trying to use a a secret in a template card But its failing to arm the alarm.

Getting this: Failed to perform the action alarm_control_panel/alarm_arm_home. ‘NoneType’ object has no attribute ‘get’

What is missing?

card:
  type: custom:mushroom-template-card
  primary: Hello, {{user}}
  secondary: How are you?
  icon: mdi:home
  multiline_secondary: false
  tap_action:
    action: perform-action
    perform_action: alarm_control_panel.alarm_arm_home
    target:
      entity_id: alarm_control_panel
    data:
      code: input_text.secret_pin


config.yaml: 
input_text:
  secret_pin:
    name: mysec
    initial: !secret mysec

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106087

Trending Articles



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