tomaae / homeassistant-mikrotik_router

Mikrotik router integration for Home Assistant
Apache License 2.0
282 stars 43 forks source link

HA not showing new ROS update available #323

Closed dragonat0r closed 6 months ago

dragonat0r commented 8 months ago

Describe the issue

Does not show that there is new update ## How to reproduce the issue

Expected behavior

Screenshots

image

image

Software versions

Diagnostics data

part from log:

2023-11-09 11:44:44.198 DEBUG (SyncWorker_8) [custom_components.mikrotik_router.mikrotikapi] API query: /system/package/update 2023-11-09 11:44:44.199 DEBUG (SyncWorker_8) [custom_components.mikrotik_router.apiparser] Processing source [{'channel': 'stable', 'installed-version': '7.12rc4', 'latest-version': '7.11.2', 'status': 'New version is available'}] 2023-11-09 11:44:44.199 DEBUG (SyncWorker_8) [custom_components.mikrotik_router.apiparser] Processing entry {'channel': 'stable', 'installed-version': '7.12rc4', 'latest-version': '7.11.2', 'status': 'New version is available'}

Traceback/Error logs

Additional context

tomaae commented 8 months ago

there should be more in a log after that

dragonat0r commented 8 months ago

log attached, filtered with "mikrotik" word

log.txt

hope this is enough

tomaae commented 8 months ago

debug looks fine, no problem there. I tried to reproduce the issue but I cannot. works fine with testing channel too. Can you upload integration diagnostics too? Maybe there will be some lead.

dragonat0r commented 8 months ago

integration diagnostics are attached config_entry-mikrotik_router-c285b569e9788a97ead78a8d41417ae7.json.txt

Meanwhile i observe some records into integration logbook like this:

Mikrotik BB hAP ax^3 RouterBOARD firmware update turned off 14:37:39 - 1 minute ago Mikrotik BB hAP ax^3 Uptime changed to November 7, 2023 at 23:55 14:37:39 - 1 minute ago Mikrotik BB hAP ax^3 RouterOS update turned off 14:37:39 - 1 minute ago Mikrotik BB hAP ax^3 RouterBOARD firmware update became unavailable 14:37:36 - 1 minute ago Mikrotik BB hAP ax^3 RouterOS update became unavailable 14:37:36 - 1 minute ago

dragonat0r commented 8 months ago

I think i found the reason for not showing new ROS update

probably when comparing current and available versions, integration counts only 7.12 part. Does not take on count rc4, in that case

Installed version 7.12rc4 Latest version 7.12

image

for example when versions differ, integration notes that there is an update:

Installed version 7.12rc4 Latest version 7.13beta1

image

tomaae commented 7 months ago

yea, it may have issues with text in version number. nto sure what I can do about it tho.

github-actions[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] commented 6 months ago

This issue was closed because it has been stalled for 5 days with no activity.