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.
Is updater not working for anyone else lately? Haven't gotten notifications for the last few updates
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
All fixed!
Neither. It wasnāt updated to latest version on the server side. Itās now been updated.
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!
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 -%}
@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.
@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"