#Button: Envisalink custom keypress

1 messages · Page 1 of 1 (latest)

nocturne tundra
#

I'm new to HA and trying to figure out if this is possible before I spend too much time setting up HA. I'm using an Envisalink device with the envisalink_new from HACS. I want a button that will send a custom keypress to the alarm. I've installed button-card so I can have a button.

I created a new dashboard and added a button-card button to a section. I don't understand how I'm supposed set the button up to send data via envisalink_new.

In the files for envisalink_new they have a yaml file that states:

Describes the format for available Envisalink services.

alarm_keypress:
name: Alarm keypress
description: Send custom keypresses to the alarm.
target:
entity:
integration: envisalink_new
domain: alarm_control_panel
fields:
keypress:
name: Keypress
description: "String to send to the alarm panel (1-6 characters)."
required: true
example: "*71"
selector:
text:

So I put that code into the card yaml like so:
type: custom:button-card
alarm_keypress:
name: Alarm keypress
description: Send custom keypresses to the alarm.
target:
entity:
integration: envisalink_new
domain: alarm_control_panel
fields:
keypress:
name: Keypress
description: String to send to the alarm panel (1-6 characters).
required: true
example: "*71"
selector:
text: null
section_mode: true
grid_options:
rows: 2
columns: 4

It seems this makes a button that isn't clickable. I realize this is a lot like learning to run before I crawl. Any help would be appreciated.

crimson walrus
#

What you have pasted into button-card is both in th3 wrong place (not under an action config section) and also is the blueprint for the action. Suggest you use developer tools to test out the action, then once you are happy with your action, go to YAML mode and then copy the YAML config over to button-card under ⁨tap_action:⁩.