I have a shellscript running on the same device as HASS which gives a binary output.
I’d like to use this output for an automation.
For now I tweaked it to write the status in a temp file which is checked by HASS via the command_line sensor, simply running a cat on the file every 3 seconds.
Now 3 seconds can be an eterinity when it comes to toggling the lights so I’m looking for something like a RESTful way of pushing the information.
So far I have only found the TCP component and MQTT - both of which appear to be an overkill.
What’s the easiest way to implement something like this? Or to hack it?
I got it working fine and now the automation does exactly what I want
Although I stumbled accross the input_boolean as well I didn’t find any examples for its use in automation although I guess it’s quite similar to other binary sensors.
In the next refactoring/learning round I’ll give it a shot!
And as I personally hate coming across forum posts which say “solved” but not how. (NOTE: The if part is unneccessary and a leftover of an experiment - will be reworked )