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

Question about OTA update with zigpy-zigate #76

Open
Jsl-1 opened this issue Dec 23, 2020 · 9 comments
Open

Question about OTA update with zigpy-zigate #76

Jsl-1 opened this issue Dec 23, 2020 · 9 comments

Comments

@Jsl-1
Copy link
Contributor

Jsl-1 commented Dec 23, 2020

Hi,

All my ota update attempt have failed with zha/zigpy-zigate. Is there a known issue with this ? Does someone had success with ota update with zigpy-zigate ?

Here is a log with hue firmware update in ota folder. All ota update stopped at file_offset = 40

https://termbin.com/n6be

Thanks !

Zigate firmware 3.1d
HA core 2020.12.1 in docker

@Hedda
Copy link
Contributor

Hedda commented Jan 18, 2021

Have you created otau_directories and also manually downloaded + added the right OTA firmware update image files yourself?

https://www.home-assistant.io/integrations/zha/#ota-firmware-updates

zigpy only automatically download OTA firmware update image files for IKEA and Ledvance so far, so not for Philips Hue devices.

If want automatic OTA updates for Hue then you need to code a provider -> https://github.com/zigpy/zigpy/issues?q=ota

If that is the case then suggest that you specifically check out -> zigpy/zigpy#154

PS: I do not own zigate hardware myself so can not verify OTA working with zigate in ZHA but it works in zigpy-znp and bellows.

@Jsl-1
Copy link
Contributor Author

Jsl-1 commented Jan 18, 2021

Hi @Hedda,

All OTA files are fine and detected correctly by zigpy. OTA update transfert start but is stopped very early in the process. I have tried Ikea provider and some hue update files downloaded from https://github.com/Koenkk/zigbee-OTA/blob/master/index.json

I moved to zigpy-znp for now and ota update works perfectly without changing anything. So i'm pretty sure there's something broken in the process with zigate.

I can do more test next week with a clean HA instance and my unused zigate to help.

@max5962
Copy link

max5962 commented Jan 24, 2022

I think i have the same issue when trying to update a zigbee device : fairecasoimeme/Zlinky_TIC#44

@Hedda
Copy link
Contributor

Hedda commented Jan 25, 2022

@max5962 To rule out zigpy, any chance could also test ZHA with other compatible Zigbee Coordinator not using zigpy-zigate?

https://www.home-assistant.io/integrations/zha#compatible-hardware

@Jsl-1 for example wrote that tested a Texas Instruments based Zigbee Coordinator with "znp" which could help narrow it down:

I moved to zigpy-znp for now and ota update works perfectly without changing anything. So i'm pretty sure there's something broken in the process with zigate.

Sadly there is not yet an easy way to migrate back and forth between ZiGate and others so advice testing on a separate instance.

@pdecat
Copy link

pdecat commented Jan 25, 2022

A few months ago, I moved from using a Zigate v1 with zigpy-zigate to a zzh with zigpy-znp because the former had a maximum of 40 devices (I have 76 as of today), and there was no export/import migration process to Zigate v2.

I did the migration from Zigate to zzh progressively using Remote Home Assistant as one cannot have two ZHA integrations in a single HA instance.

Since then, all sort of issues I had with the Zigate v1 from time to time are gone (devices not responding to commands, unreadable attributes, and painful OTA with some devices).

Updating the firmware of the ZLinky_TIC went well twice for me.

@max5962
Copy link

max5962 commented Jan 26, 2022

@pdecat can you send a link of your coordinator ? ( i will updagrade too )

@pdecat
Copy link

pdecat commented Jan 26, 2022

It's the CC2652R based zzh: https://electrolama.com/projects/zig-a-zig-ah/

@max5962
Copy link

max5962 commented Jan 26, 2022

does 5btn ikea works with that coordinator ?

@pdecat
Copy link

pdecat commented Jan 26, 2022

It does, I've got 4 of them and button presses events are properly reaching ZHA and I use some in my automations. But one of the remotes is facing a quick battery drain issue since a recent firmware update I believe, despite all having the same firmware version. For now, I've replaced it by the new STYRBAR remote which uses rechargeable AAA batteries and had no apparent issue for over a month (got three of them, all fine).

PS: we should probably move this conversation elsewhere (maybe https://community.home-assistant.io/) to keep this issue on topic.

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

No branches or pull requests

4 participants