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

Initial implementation of Zigbee OTA updates. #213

Merged
merged 59 commits into from
Sep 6, 2019

Conversation

Adminiuga
Copy link
Collaborator

@Adminiuga Adminiuga commented Sep 6, 2019

Handle OTA cluster requests.
This is an experimental feature and is disabled by default. By enabling it you assume all responsibility for any unintended consequences.
To enable file based OTA, create a zigpy_ota directory in the same dir as zigbee.db. To enable IKEA provider, create an empty enable_ikea_ota file in zipgy_ota/ directory.

This PR only implements OTA cluster command handling and does not distribute any firmware files. It will download firmware for IKEA devices if it is enabled and there're IKEA devices on the network with an outdated firmware. The only other vendor distributing OTA files for their products is Dresden Elektronik

Fixes (kind of) #154

Send Status only for query_next_image_response(Status.NO_IMAGE_AVAILABLE)
and for image_block_response(Status.ABORT).
Allow providers to prefetch firmware.
Query all providers for a firmware, allowing provider to decide how to
handle missing firmwares.
@coveralls
Copy link

coveralls commented Sep 6, 2019

Pull Request Test Coverage Report for Build 603

  • 442 of 442 (100.0%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 600: 0.0%
Covered Lines: 3358
Relevant Lines: 3358

💛 - Coveralls

@coveralls
Copy link

Pull Request Test Coverage Report for Build 601

  • 441 of 441 (100.0%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 600: 0.0%
Covered Lines: 3357
Relevant Lines: 3357

💛 - Coveralls

@martin3000
Copy link
Contributor

Is there any documentation how OTA will work? Where do the firmware images come from?

@Adminiuga
Copy link
Collaborator Author

Adminiuga commented Sep 6, 2019 via email

@Adminiuga Adminiuga marked this pull request as ready for review September 6, 2019 14:21
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