Hello
Im trying to create a button that will run a remote command on another server. The command needs a password, that I plan to get as “input_text”. Not sure if this can be done, but here’s what I have:
Configuration.yaml …
input_text:
passphrase:
mode: password
shell_command:
deluge_start1: ssh -i /config/ssh/id_rsa -o ‘StrictHostKeyChecking=no’ [email protected] ‘deluge-web {{ value }}&’
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Ui-Lovelace: …
- type: “custom:button-card”
entity: script.deluge_button
name: Start Deluge
icon: mdi:kodi
tap_action:
action: call-service
service: shell_command.deluge_start1
data_template:
value: >
{{states.input_text.passphrase.state}}
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Im getting the following error on .yaml check.
Invalid config for [input_text]: expected a dictionary for dictionary value @ data[‘input_text’][‘mode’]. Got ‘password’. (See /config/configuration.yaml, line 24).