Updated to Supervisor 2020.10.0 & now sensor wrongly advising add-on updates

Just upgraded to HA Supervisor 2020.10.0, and now my Supervisor sensor is saying that I have 20 add-ons needing an upgrade but I don’t.

This is the sensor code which has been working fine until this afternoon:

sensor:
  # Sensor to track available updates for supervisor & addons
  - platform: command_line
    name: Supervisor updates
    command: 'curl http://supervisor/supervisor/info -H "Authorization: Bearer $(printenv SUPERVISOR_TOKEN)" | jq ''{"newest_version":.data.version_latest,"current_version":.data.version,"addons":[.data.addons[] | select(.version != .installed)]}'''
    value_template: "{{ value_json.addons | length }}"
    json_attributes:
    - newest_version
    - current_version
    - addons

Any idea why this sensor is wrongly reporting these updates?

Seeing the same issue.

Running the curl command from the Home Assistant command line shows that the returned json payload has changed:

Untitled

It now returns a value update_available as true or false.

Just change the select statement at the end of the command to capture this to select(.update_available == true):

  - platform: command_line
    name: Supervisor Updates
    command: 'curl http://supervisor/supervisor/info -H "Authorization: Bearer $(printenv SUPERVISOR_TOKEN)" | jq ''{"newest_version":.data.version_latest,"current_version":.data.version,"addons":[.data.addons[] | select(.update_available == true)]}'''
    value_template: '{{ value_json.addons | length }}'
    json_attributes:
    - newest_version
    - current_version
    - addons
5 Likes

All fixed :smiley:

Thanks for your help