Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTA update check: inform about uncommon version mismatch #1005

Merged
merged 5 commits into from
Feb 23, 2020
Merged

OTA update check: inform about uncommon version mismatch #1005

merged 5 commits into from
Feb 23, 2020

Conversation

andreasbrett
Copy link
Contributor

Added debug message for cases where device firmware is newer than the latest version online. This should not happen but might be a helpful log message when version numbers were incorrectly interpreted or a manufacturer changed up the numbering scheme.

See #1000 (comment)

return -1/0/1 for version check
return -1/0/1 for version check
spot beta firmwares or version mismatch
ota/common.js Outdated
return available;
logger.debug(`Update available for '${device.ieeeAddr}': ${available < 0 ? 'YES' : 'NO'}`);
if (available > 0) {
logger.debug(`Firmware on '${device.ieeeAddr}' is newer than latest firmware online.`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably deserves to be a warning rather than debug level message?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, thanks

@Koenkk
Copy link
Owner

Koenkk commented Feb 23, 2020

Thanks!

@Koenkk Koenkk merged commit d512721 into Koenkk:master Feb 23, 2020
Koenkk added a commit to pedrolamas/zigbee-herdsman-converters that referenced this pull request Feb 23, 2020
Koenkk added a commit that referenced this pull request Feb 23, 2020
* Output OTA debug information from Osram devices

* Adds OTA update support for Osram/Ledvance devices

* Improves image availability checks

* Parse fullName element in metadata to retrieve fileVersion

* Renames osram references to more accurate ledvance

* Sync with #1005

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
@andreasbrett andreasbrett deleted the patch-1 branch August 3, 2020 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants