AlexxIT / SSHCommand

Run any SSH command on remote server from Home Assistant service call
https://github.com/AlexxIT/Blog
MIT License
89 stars 7 forks source link

SSH_Command in Configuration.yaml #28

Open labouman opened 1 month ago

labouman commented 1 month ago

I have a question about SSH_Command i've added it in configuration.yaml als you discribed with the link to secret and then i can't find out how to select is when i want to send a command to that specific host.

AlexxIT commented 4 weeks ago

I don't understand question.

labouman commented 4 weeks ago

i've added the following to my configuration.yaml

ssh_command:
  host: 192.168.1.123
  port: 22
  user: pi
  pass: !secret ssh_parssword

And now i want to use this configuration inside an automation to exacute an SSH_command to this specific host without filling it all up again.

AlexxIT commented 4 weeks ago

Just call service: https://github.com/AlexxIT/SSHCommand?tab=readme-ov-file#usage