Updating HA/Hass.io, checking for available versions and managing updates

How can I discover the current available version of Hass.io (or even what version I’m running) along with the version of HA? I can’t seem to find a place that lists the current version information. Is the version of Hass.io updated with each release of HA, or is HA just updated on top of existing version of Hass.io?

For example, I’m currently on Hass.io (something, not sure if there is a version number) with HA .59.2, and I’d like to skip HA .60 and go directly to HA .60.1. My console is offering me the upgrade to .60. Will it offer me .60.1 when Hass.io is updated with that release? Can I skip .60 or do I need to update to .60 before I will see my console offer .60.1?

If I could find a place that shows the current versions of Hass.io and HA it contains that would help (I’m sure I’m just missing that somewhere, right?). But also, is it possible to skip versions of HA and update after later releases are available?

Select Hassio from the left side of the screen.

Then select the three dots in the upper right side of the screen (with the blue background).
2018-01-06_21-23-57

Select Advance Settings.
2018-01-06_21-24-42

That will show the current version and the version that you are running.
2018-01-06_21-21-45

That page will tell you if an update is available and give a button to upgrade Hassio to a new version.

Also you can create a sensor thus:

# Version and Availability
  - platform: rest
    name: "HASS Current Version"
    resource: https://pypi.python.org/pypi/homeassistant/json
    value_template: '{{ value_json.info.version }}'
    scan_interval: 3600

  - platform: command_line
    name: "HASS Installed version"
    command: "head -5 /config/.HA_VERSION"
2 Likes

Great! @carbuthn and @DavidFW1960. I really appreciate your posts. To expound further, I have updater: in my configuration.yaml file and it’s panel on my main console, as well as the “Update Available” panel on my Hass.io page. Somehow I keep forgetting about that Advanced menu, so thanks.

But allow me to try to be more specific with my questions. Where on the web can I go to see the versions of Hass.io and the corresponding versions of HA embedded in them? And can I skip versions of HA when I update, or do I have to go through each version sequentially?

For example, this morning I see on my Update panel that .60.1 is available. And on my Hass.io page I’m being offered an update from .59.2 to .60 via Hass.io. I’m assuming that’s just because of the lag between HA update releases and Hass.io packaging of those releases. But where do I find answers to the above questions (or just reference the information)?

1 Like

Hass.io updates are released about 48 hours after the Home Assistant updates. If you wait a few more hours you’ll get the update from 59.0 to 60.1

And you can follow this pages:

And

Thanks for this thread. I’ve been running pip3 install --upgrade homeassistant and restarting the docker and this instruction tipped me off to the need to do it this way. I assume I don’t need to do the first two steps.

1 Like

You can also create a sensor to show you the current version and an automation to warn you of a new release

Thanks for those links, but again, those are Home-Assistant, not Hass.io. I’m looking for information on the later.

By just waiting I confirmed that I could skip upgrade versions of HA via my Hass.io updates as I suspected. But again, where’s the documentation about Hass.io? Or am I looking for something that doesn’t exist?

Yes, I think that is correct (you can skip the commands). I switched to Hass.io specifically to avoid command lines for managing the base OS. I obviously still dig in to the yaml files, but Hass.io allows me to focus there more, rather than on my Pi.

I’m using Hass.io myself and it works. I can post sensor and automation if you want.

Sure, I’d like to see what you’ve set up as it may be useful, but not sure how your code is going to help me find documentation on the web…

Home Assistant is Home Assistant no matter what OS supports it. Hass.io is just Home Assistant running inside a Docker on ResinOS. So, the links I posted works for Hassio too. What specific documentation do you need?

Yes, I understand.

Hass.io is a thing. Does it have a version number? Is there documentation about each release or update to it? Is there documentation about how to use it and manage it? Perhaps I should not have said “HA/Hass.io” in the title of my post as that seems to have caused confusion. I’m asking about managing Hass.io and documentation about that.

Open Home Assistant. On the left menu select Hass.io, click the three dots on the top left and choose Advanced Settings. There you’ll see a card named Host OS, Hass.io version is what appears after Host Control version (currently 1.1). Is there is an update the Latest available version will be higher number.

About the Hass.io releases you can have a look in Releases · home-assistant/hassio-build · GitHub. You have there the links to the image download and a small list of changes.

But, in my opinion, there is no Hass.io per se. It is a “thing” like you said. There is Home Assistant and ResinOS. So if you want to manage anything, it will be ResinOS.

On the website there is lots of documentation. Getting Started Docs for 18 different systems, with step-by-step information.

Hope this helps!

To get HA current version, use this sensor:

#### HA Version
- platform: command_line
  name: "HA ver."
  command: "cat .HA_VERSION"

To be notified of new versions, use this automation:

#### CHECK FOR SYSTEM UPDATES
- alias: 'Update Notifications'
  initial_state: 'on'
  trigger:
    platform: state
    entity_id: updater.updater
  action:
    - service: notify.browser_alerts
      data_template:
        title: '{{ as_timestamp (now()) | timestamp_custom("%d/%b/%Y %T") }}'
        message: 'New Home Assistant version available!'
        data:
          renotify: '1'

Remember that this notification is for the “general” HA version, Hassio version will be available about 48 hour after…

1 Like

Awesome. I was not related (for some stupid reason) “Host OS” as Hass.io and the underlying ResinOS. Thanks for persisting with me and for the link to the release notes. That’s exactly what I couldn’t find.

I haven’t done much with notifications yet, so I’ll take a look at your code and maybe use that to get me started.

Thanks again.

1 Like

Your welcome!

If you connect to the system via the SSH addon, you have restricted access to the command line but you have a few commands specific to Hass.io. When i type the command hassio ha info i get:

{
    "result": "ok",
    "data": {
        "version": "0.60.1",
        "last_version": "0.60.1",
        "image": "homeassistant/raspberrypi3-homeassistant",
        "custom": false,
        "boot": true,
        "port": 8123,
        "ssl": true,
        "watchdog": true
    }
}

This is JSON and using platform: command_line and a template you can get info to use in automations.

Ok. here goes.
Because i was trying to check whether we could delete older snapshots from within Hassio, i unwantedly clicked a backup which was hence executed.
(why is there no confirmation button in that process…)

luckily i had just copied al my config files the night before, so i copied those back again, resulting in the odd error which isnt too bad considering.

My Threshold binary sensors won’t work anymore though, and that reminded me of the exact same error message i got before when updating to 0.61.1 and the format of those sensors had changed. So checking the hassio version indeed shows my restores backup was from 0.60.1, the version not recognizing the newer threshold sensors.

Simple, click Hassio, see a new version is available and click update. I thought. Unfortunately thats errors out with an unknown error in the frontend. Checking the advanced settings shows the same available update, and gives the same error:

24

Any thought on how to update Hassio, maybe from the ssh terminal command-line? Ive tried this, but unfortunately no succes:
core-ssh:~# hassio ha update
{
“result”: “error”,
“message”: null
}

Appreciate your help.

Thanks,.
Marius

This question is not related to the initial post. Please open another thread.