Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command and Output are Pulled by Sensor #1

Open
juan11perez opened this issue Nov 15, 2018 · 4 comments
Open

Command and Output are Pulled by Sensor #1

juan11perez opened this issue Nov 15, 2018 · 4 comments

Comments

@juan11perez
Copy link

juan11perez commented Nov 15, 2018

Ubuntu 18.04.1 LTS
HASS - Docker

First of all, thank you very much. Sensor is great!
I have some feedback/request. I used the sensor to run this command:
cat /var/run/reboot-required
The sensor provided this output:
cat /var/run/reboot-required ***system restart required****

It brings back the output along with the initial command. I can easily fix it with the value_template option, but is it intended to do that?

Thank you.

@juan11perez
Copy link
Author

@jchasey
Could you consider making a switch/command version of this? It would do away with ssh keys when firing commands to the host from a container or other servers.
Thank you

@elRadix
Copy link

elRadix commented Jan 27, 2019

@juan11perez
Copy link
Author

@elRadix thank you. I have a similar setup. In fact you dont need to create files in /usr/local/bin. if you're ssh"ing" into the host using the key, you can put the whole command in a shell_command within HASS.

the interesting thing about this sensor is that it doesnt need a key. only user/pasword. So you can use in other scenarios where generating a key may not be the easiest.

@ACrazyConcept
Copy link

Would love this as a switch too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants