Is updater not working for anyone else lately? Haven't gotten notifications for the last few updates

I have a notification (both persistent and telegram) for new updates. I just realized I havent gotten one for the last few point updates. Anyone else having issues? I havent changed anything with my automations.

Me too. Iā€™m using the AIO install on a Raspberry Pi. Didnā€™t get the notification icon to upgrade since version 39, I think.

My bad :flushed:

All fixed!

1 Like

@robbiet480 ā€“ So it was broken? Fixed in next release?

If so, thank you!

Neither. It wasnā€™t updated to latest version on the server side. Itā€™s now been updated.

1 Like

Should updater.updater be showing up in states as an entity? The update notification hasnā€™t worked for me and I donā€™t have a updater.updater in as an entity

that was easy!

I have it as an entity in my default view, but Iā€™m still not seeing the update.

Fortunately I built my own sensor to report the version numbers so I can see there is one available. I always rely on this.

-  platform: command_line
   command: python3 -c "import requests; print(requests.get('https://pypi.python.org/pypi/homeassistant/json').json()['info']['version'])"
   name: Current HA Version

-  platform: command_line
   name: Installed version
   command: "/srv/hass/hass_venv/bin/hass --version"

If iā€™m right, the updater runs 1 hour after HA start and then every day at the same time.
-> /srv/homeassi/lib/python3.4/site-packages/homeassistant/components/updater.py

    # Update daily, start 1 hour after startup
    _dt = datetime.now() + timedelta(hours=1)

If you canā€™t wait, change to 1 or 2 minutes.

    _dt = datetime.now() + timedelta(minutes=1)

and restart HA.

When your loglevel is debug,

logger:
  default: warn
  logs:
    homeassistant.components.updater: debug

you would see something like this:

17-04-21 00:57:30 INFO (Thread-6) [homeassistant.components.updater] Submitted analytics to Home Assistant servers. Information submitted includes {ā€˜uuidā€™: ā€˜dontknowyoushouldseeā€™, ā€˜timezoneā€™: ā€˜Europe/Berlinā€™, ā€˜os_versionā€™: ā€˜12.04ā€™, ā€˜archā€™: ā€˜x86_64ā€™, ā€˜python_versionā€™: ā€˜3.4.5ā€™, ā€˜devā€™: False, ā€˜distributionā€™: ā€˜ubuntuā€™, ā€˜os_nameā€™: ā€˜Linuxā€™, ā€˜virtualenvā€™: True, ā€˜dockerā€™: False, ā€˜versionā€™: ā€˜0.42.4ā€™}
17-04-21 00:57:30 INFO (Thread-6) [homeassistant.components.updater] You are on the latest version (0.42.4) of Home Assistant

The last line (You are on the latest version) missed before robbiet480`s fix.

If an update is available, the entity updater.updater gets populated and i think we should see our notifications.

Canā€™t wait for the next! :yum:

1 Like

You can use these sensors as an updater replacement, just include this:

sensor.hass_update_available

Wherever you want to check if an update is available.

(Modify '/usr/local/bin/hass' to reflect your binary location)

##################################################################
### Current HASS Version
###################################################################
- platform: command_line
  command: python3 -c "import requests; print(requests.get('https://pypi.python.org/pypi/homeassistant/json').json()['info']['version'])"
  name: Current HASS Version

##################################################################
### Installed HASS Version
###################################################################
-  platform: command_line
   command: "/usr/local/bin/hass --version"
   name: Installed HASS Version

##################################################################
### HASS Update Available
###################################################################
- platform: template
  sensors:
    hass_update_available:
      friendly_name: 'HASS Update Available'
      value_template: >-
        {%- if states.sensor.current_hass_version.state != states.sensor.installed_hass_version.state -%}
           {{ states.sensor.current_hass_version.state }}
        {%- else -%}
           No
        {%- endif -%}
5 Likes

@VDRainer ā€“ Thanks, I kept meaning to check updater.py to see when the updater.updater is scheduled to check for new versions.

The if logic has been updated because it didnā€™t work with dev versions.

Awesome, received the notification this morning. Appears to be working again!

Thank you!

@robbiet480, in 0.44 the line is missing once again. [quote=ā€œrobbiet480, post:5, topic:15936ā€]
It wasnā€™t updated to latest version on the server side.
[/quote]

Yep, now updated, was waiting for any major bugs to be found. Thanks for the reminder!

Is this broken again? Iā€™ve used the automation in the docs and itā€™s been 2 versions now with no updates.

I was on 0.47.1 and got notified when 0.48 was released.

I havenā€™t had a notification in about 7 or 8 versions tbh

Iā€™m going to start triggering the notification based on whether the installed version is lower than the version online. (like in Post 10 above).

Updater component is too unreliable (and appears, based on this conversation, to not be automated).

I have an automation rule setup and I got for .48.

This is what I have. Should I just delete the automation copied from the docs and use the ones above?

  - alias: 'update available'
    trigger:
      platform: state
      entity_id: updater.updater
    action:
      service: notify.notify
      data:
        message: "Update for Home Assistant is available"