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