Got a bash shell script that I pass 3 values to and it creates a 3 large integer numbers that I would like to have available for use inside an HA script.
Is there a method to set HA variables from within the shell script or return with the values or read as stdout or the like. Having trouble finding examples of such.
It would be very convenient if I could read and write to the variable component.
Can you elaborate a bit on this approach. New to HassIO and not sure exactly how to configure a sensor to view or read the stdout from my script. Plans are to issue a call to the shell script using the shell_command component.
The shell script will echo three integer values that I would like to capture and use within HASSIO scripts for further actions.
Also an example of the curl approach would also be helpful.
Well that seems pretty straight forward. I can’t believe how much time I spent googling the approach but not gettting a clear and simple example. Thank you will give it a shot tonite.
I presume I can use a curl GET to similarly retrieve info from HA sensors or variables, etc…