homeassistant-ssh
homeassistant-ssh copied to clipboard
When is the connection made?
Hi,
Thanks for providing this integration.
My question is: When does the integration make the SSH connection to the target device?
I'm looking for a way to talk to my DrayTek router, which takes SSH commands. I'll want to send it a command from Home Assistant very occasionally, like maybe once every couple of weeks. I'll maybe also in the meantime want to log into the router from other places to perform manual tasks.
But when I have a device created with the SSH integration to talk to the router I can't log in using SSH from anywhere else. So it seems to me that
- the SSH integration keeps an SSH connection permanently open to the target device
- the router only allows one SSH connection at a time.
So it further seems to me that what I want is something that will, when needed but only when needed, do the following:
- make the SSH connection to the router only when it's about to send the command
- send the necessary command
- immediately disconnect from the router.
Have I got that right, at least as far as the SSH integration is concerned? So it doesn't meet my use case?