AlexxIT / SSHCommand

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

Store output in sensor #13

Closed alanmilinovic closed 1 year ago

alanmilinovic commented 1 year ago

Is it possible to save command output (stdout) in sensor?

alanmilinovic commented 1 year ago

I checked the code and I can see that you are storing output into log as info and returning true at the end of the function. It would be very useful to return it back as a value that can be later on used.

AlexxIT commented 1 year ago

Check this https://github.com/AlexxIT/PythonScriptsPro I have no plans to extend the functionality of this component. But you can solve the problem with my other component