zigpy / zigpy-cli

Command line interface for zigpy
GNU General Public License v3.0
44 stars 12 forks source link

Would be good to trigger OTA directly from the zigpy-CLI #39

Open pipiche38 opened 1 year ago

pipiche38 commented 1 year ago

It would be a nice feature of the zigpy-cli command to be able to allow OTA firmware update

Hedda commented 9 months ago

Maybe me just reading between the lines in https://github.com/zigpy/zigpy/pull/1102 it sounds as puddly might have some kind of plan related to that?

https://github.com/zigpy/zigpy/pull/1102

I'm hoping to move request/response matching into the main ControllerApplication, allowing for more granular control over requests/responses within async code and for dynamically attaching objects that expect responses. In the future, this will allow for sending requests to NWK addresses directly and to wait for a response, without the need for intermediate Device objects.

As a proof of concept, below is a synchronous OTA manager that can send a specific OTA image to a specific device, without modifying the global ZCL cluster definitions ...

@pipiche38 looks like you contemplating implementing notifications + management for OTA in Zigbee Plugin for Domoticz?

https://github.com/zigbeefordomoticz/Domoticz-Zigbee/issues/1293

https://github.com/zigbeefordomoticz/Domoticz-Zigbee/pull/1294

PS: By the way check out indirectly related request/discussion which as well is dependent on such functions -> https://github.com/zigpy/zigpy/discussions/951

Hedda commented 7 months ago

FYI, check out this newly proposed pull request for zigpy -> https://github.com/zigpy/zigpy/pull/1321