Installed version of HassOS to compare with latest available?

Hi!

I want to indicate in my UI frontend if there are new home assistant and hassOS versions by comparing latest available with current. I have managed this for home assistant but not for hassOS.

To get the latest available version I use the following code to create a sensor.

- platform: template
  sensors:
    hassos_available_version:
      value_template: "{{ state_attr('sensor.latest_available_version', 'hassos') }}"

I have still not found a way to identify the current installed version. My best lead has been to get the information through the command line but it seems the information is not available from within home assistant?

I tried different variants of

- platform: command_line
  name: hassos
  command: hassio host info

Anyone that has a suggestion on how to proceed? Thanks!

Capture

@f00dagi If you haven’t found, I just stumble on the answer on another thread.

1 Like

Thanks alot!