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

What is your notify.notify? For example I had to change it to notify.pushover to make it work. I then had to configure pushover.

It hasnā€™t shown an update notification for me for quite a while.

I think Iā€™ll also try one of the alternatives above.

Thatā€™s what I will be doing.

If you are running HASSbian image use sensors below

  - platform: command_line
    command: python3 -c "import requests; print(requests.get('https://pypi.pyth$
    name: Current HA Version

  - platform: command_line
    name: Installed version
    command: "head -5 /home/homeassistant/.homeassistant/.HA_VERSION"

You didnā€™t paste the whole command for the Current HA Version:

python3 -c "import requests; print(requests.get('https://pypi.python.org/pypi/homeassistant/json').json()['info']['version'])"

Okay, so have I modified what @forbin posted to look at this. I have two files one for the sensors and one for the automation. As I am still kinda of new to creating my own automationā€™s will this work or do I need to trigger the update with a time some how?

hass_update.yaml

##################################################################
### 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: HASS - Current Version

##################################################################
### Installed HASS Version
###################################################################
- platform: command_line
  name: HASS - Installed version
  command: "head -5 /home/homeassistant/.homeassistant/.HA_VERSION"

##################################################################
### HASS comparison 
###################################################################
- 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 -%}
           Yes
        {%- else -%}
           No
        {%- endif -%}

update_available.yaml

- alias: Update Available 
  trigger:
    - platform: state
      entity_id: sensor.hass_update_available
  condition:
    - condition: state
      entity_id: sensor.hass_update_available
      state: 'Yes'
  action:
    service: notify.pushover
    data_template: 
      title: 'New Home Assistant Release'
      message: "Home Assistant {{ states.sensor.current_hass_version.state }} is now available"

Youā€™re making it unnecessarily complicated. Try this:

hass_update.yaml

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

- platform: command_line
  name: HASS Installed version
  command: "head -5 /home/homeassistant/.homeassistant/.HA_VERSION"

update_available.yaml

- alias: Update Available 
  trigger:
    - platform: state
      entity_id: sensor.hass_current_version
  condition:
    - condition: template
      value_template: '{{ states.hass_current_version.state != states.hass_installed_version.state }}'
  action:
    service: notify.pushover
    data_template: 
      title: 'New Home Assistant Release'
      message: "Home Assistant {{ states.sensor.hass_current_version.state }} is now available"
3 Likes

Hi

Is updater broken again? The out of the box notification worked for a while, and then again stooped.

@fanaticDave I am looking at your notification to pushover in the update_available.yaml.
Maybe I am missing something, but I would think that this would constantly send messages until you upgrade to the new version. Can you help me understand what would only make this fire once?

The notification is only sent when the state of sensor.hass_current_version changes. That is how the trigger works.

@berniebl ā€“ updater stopped working for me as well (why I sought out this thread). Glad to see Iā€™m not the only one. Currently on 0.53.0.

Currently tinkering in the dev template tool not having any luck:

  • {{ states("updater.updater") }} -> unknown
  • {{ states ("sensor.updater.updater") }} -> unknown
  • {{ states("sensor.hass_current_version") }} -> unknown
  • {{ states.hass_current_version.state }} -> None
  • {{ states.sensor.hass_current_version.state }} -> (blank)

updater stopped working for me as well (why I sought out this thread). Glad to see Iā€™m not the only one. Currently on 0.55.1.

  • {{ states("updater.updater") }} -> unknown
    
  • {{ states ("sensor.updater.updater") }} -> unknown
    
  • {{ states("sensor.hass_current_version") }} -> unknown
    
  • {{ states.hass_current_version.state }} -> None
    
  • {{ states.sensor.hass_current_version.state }} -> (blank)

Just to be clear: the only entity that Home Assistant provides (or should provide) without any configuration is updater.updater. I see you guys testing the entity sensor.hass_current_version but you have to add this sensor yourselves with the code in my previous post, a few posts up from here.

I was using MediaCowboy/fanaticDavidā€™s scripts, but donā€™t work anymore.

Do the scripts need updating or is the problem with Home Assistant, and they canā€™t be fixed at the moment?

python3 -c "import requests; print(requests.get('https://pypi.python.org/pypi/homeassistant/json').json()['info']['version'])"

returns 0.56.2 at the moment, so everything should work.

Do you mean you have this sensor in your HA instance

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

Or you ran that line of code from somewhere else?

I have that sensor running in HA and it just shows ā€˜unknownā€™. The one for ā€˜Installed Versionā€™ works OK though, and shows the version I have.

Yes, exactly the same.
Also running the command in a terminal with venv activated.
Python 3.5.2

Strange, it works OK running the command in Terminal in the venv, but shows ā€˜unknownā€™ in Home Assistant :confused:

In my personal setup, I use the following rest sensor to retrieve the available version of Home Assistant (and it still works):

- platform: rest
  name: "HA available version"
  resource: https://pypi.python.org/pypi/homeassistant/json
  value_template: '{{ value_json.info.version }}'
  scan_interval: 3600
3 Likes

This works fine for me:
Sensor:

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

Automation:

- alias: 'Update Available' 
  trigger:
    - platform: state
      entity_id: sensor.hass_current_version
  action:
    service: notify.telegram
    data_template: 
      title: "Home Assistant v{{ states.sensor.hass_current_version.state }} is now available"
      message: "Release notes: {{ states.updater.updater.attributes.release_notes }}"