#i am not sure how to acomplish this I
1 messages · Page 1 of 1 (latest)
https://www.home-assistant.io/integrations/shell_command says that it takes a string, not a template, though it does show templates at the end
So, you could use templating to do that, pulling the values from input_text entites
shell_command:
ssh_unifi: >-
sshpass -p "{{ states('input_text.password') }}" ssh -o "StrictHostKeyChecking=accept-new" -v {{ states('input_text.username') }}@${{ states('input_text.ip_address') }} "{{ states('input_text.command') }}"
I wil try that thanks
If you get stuck, #templates-archived can help with templates