I’d like to reboot this thread.
I’m trying something similar to @f00dagi.
Running ha info (or ha info --raw-json as I use in my sensor) from SSH docker gives me a bunch of info I’d like to pipe into a sensor to make my update notification to Telegram a bit nicer:
Decided to install the Portainer add-on, entered cli on homeassistant container - and sure enough no “ha” or “hassio” command.
So - is there any way to add the command to the image?
Only problem is that docker is not available from within the homessistant container which executes the command_line sensors.
So it might be reasonable to setup cron to gather the info at an interval and inject it to a file and let a command line sensor “cat” that, but not without setting up ssh access to the host machine which I think is contrary to the HASSOS idea (maybe I’m wrong).
What I’m looking for is a way to get the information that “ha info” provides from within the standard HASSOS setup to be able to include it in automations, matching what is provided by the “version” sensor.