zigpy-cli icon indicating copy to clipboard operation
zigpy-cli copied to clipboard

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

Open pipiche38 opened this issue 2 years ago • 2 comments

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

pipiche38 avatar Jul 05 '23 13:07 pipiche38

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 avatar Nov 09 '23 07:11 Hedda

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

Hedda avatar Jan 12 '24 07:01 Hedda