Can we adjust the customization of updater.updater so it shows the version of the available update under the badge?
Now it takes another click to have the more-info window pup up and display version (state) of the update. Would be nicer if it said Update 0.63 Available.
Maybe a template {{states.updater.updater.state}}…? No way to edit it since it gets created dynamically if and when available?
I scrapped updater because it never seemed to actually update at a reasonable time. I currently use this as my sensor, which outputs the upstream version…
Then I have an automation that notifies me whent he value changes, and provides a link to the blog so I can check for breaking changes before I upgrade…
automation:
- alias: Update Available Notifications
initial_state: 'on'
trigger:
platform: state
entity_id: sensor.ha_upstream
action:
- delay: '00:30:00'
- service: notify.mf
data:
message: 'Update for Home Assistant is available. https://home-assistant.io/blog/'
(The delay is to make sure the blog post is up before I click on the link as sometimes it takes a little while).
- alias: 'Update Available Notifications'
id: '1511601478026'
trigger:
platform: state
entity_id: updater.updater
condition: []
action:
service: notify.marijn
data_template:
message: 'Update {{ states.updater.updater.state }} for Home Assistant
is available and
check {{states.updater.updater.attributes.release_notes}} for
the latest changes.'
which has the same warning Would the upstream version be something else?
Still the question remains
can we change the text below the badge to display the {{states.updater.updater.state}} value? Could we set the friendly_name through customize? Thats the text below the badge isn’t it?
im trying to have the UoM show the available version with this template:
sensors:
ha_update_available:
friendly_name: 'HA Update Available'
unit_of_measurement: '{{states.sensor.ha_latest_version.state}}'
value_template: >-
{%- if states.sensor.ha_latest_version.state != "unavailable" and
states.sensor.ha_latest_version.state != states.sensor.ha_installed_version.state -%}
Yes
{%- else -%}
No
{%- endif -%}
icon_template: >-
{%- if states.sensor.ha_latest_version.state != "unavailable" and
states.sensor.ha_latest_version.state != states.sensor.ha_installed_version.state -%}
mdi:alert-box
{% else %}
mdi:approval
{% endif %}
dienst go yet, although the tempting tool shows the template itself is correct. Ive also tried this through customization but the front-end stays like this. Would you know a way?
btw, don’t look at all the colors, im experimenting a bit with visibility…