Open forty opened 2 years ago
Bonjour, Pour le moment, il n'y a pas de compatibilité OTA avec la zigate et (ZHA/Z2M). Je travaille sur le sujet.
Ah super, content de savoir que ce n'est pas moi qui faisait n'importe quoi :)
Question (peut être stupide, pardon, je débute en domotique): est ce que le support compatibilité OTA sur lequel vous travaillez se fait au niveau du firmware ou coté Z2M? (via un driver zigate?).
Si le changement est coté firmware, sera il possible de mettre à jour par un autre moyen pour avoir le firmware compatible OTA zigate/Z2M? J'ai cru comprendre que sur les version récente du Zlinky, l'OTA était le seul moyen de mettre à jour.
For your information, ZHA integration in Home Assistant uses zigpy library for OTA, see zigpy feature request -> https://github.com/zigpy/zigpy/issues/1060
Once such OTA provider is zigpy then can use OTA in ZHA https://www.home-assistant.io/integrations/zha#ota-firmware-updates
@Hedda when testing with ZHA I was downloading the firmware manually. ZHA did attempt to do the OTA (meaning that the firmware was correctly picked up) but it remained stuck at 0% progress. Z2M does automatically download the firmware, but then had the same issue and remained stuck à 0% progress.
If there is currently no OTA support for zigate on ZHA & Z2M, as @fairecasoimeme mentioned, it makes sense that it doesn't work I guess (I'm pretty new to home automation and I'm a bit baffled that every dongle/object/software triplet must be integrated separately with custom code and/or firmware - but from what I have been seeing so far, it seems to be the norm)
@Hedda when testing with ZHA I was downloading the firmware manually. ZHA did attempt to do the OTA (meaning that the firmware was correctly picked up) but it remained stuck at 0% progress.
OTA should work in ZHA (zigpy) if you manually downloaded the correct file and copy to the correct location (unpacked/uncompressed files only), and if that does not work then it might be an issue (e.g. a bug) with the zigpy library code that ZHA depends on, or it could just be that file was corrupted during download (or not unpacked/uncompressed).
https://github.com/zigpy/zigpy
https://github.com/zigpy/zigpy/issues
Maybe you could try with "zha-toolkit" which I believe has specifically been tested with ZHA and the LiXee ZLinky_TIC device, see:
@Hedda well I can try to redo the setup with ZHA and capture the logs, but it was essentially the same as the ones I shared for Z2M (ie the OTA starts, hang at 0% and ends up timing out). I have also tried triggering the OTA "manually" following some discussion here https://forum.hacf.fr/t/zha-ota-update-firmware/9693 with same result
service: zha.issue_zigbee_cluster_command
data:
ieee: "00:15:8d:00:05:d2:9a:35"
endpoint_id: 1
cluster_id: 0x0019
cluster_type: out
command_type: client
command: 0
args:
- 0
- 100
If you still have that specific problem with it hanging at 0% when trying to update correct the OTA firmware image with the ZHA integration in Home Assistant (which depends on the zigpy library) then suggest collect new debug logs after enabled debug logging and report that issue with to either Home Assistant core repository and/or the zigpy repository:
https://www.home-assistant.io/integrations/zha#debug-logging
https://www.home-assistant.io/integrations/zha#reporting-issues
Hello My conf is as follow : Raspberry / ZiGate+ / Zlinky firmware 9 Home Assistant 2022.11.1 Supervisor 2022.10.2 Operating System 9.3 Interface utilisateur : 20221102.1 - latest
I prepared OTA in the configuration.yaml file with
zha:
zigpy_config:
ota:
otau_directory: /config/zigpy_ota
ikea_provider: true
ledvance_provider: true
and dowloaded in /config/zigpy_ota with wget the latest version of Zlinky firmware (currently 11)
After restart, the output is
Bonjour @fairecasoimeme 👋
Auriez vous une update de l'avancée du support OTA avec ZHA/Z2M et Zigate? Pouvons nous aider d'une manière ou d'une autre? (Test, log, autre?)
Merci !
Bonjour @fairecasoimeme
Est ce que la mise à jour depuis Zigate du Zlinky est programmée ? Y a t'il un autre moyen de faire la mise à jour de Zlinky ? avec un autre dongle Zigbee? Dans ce cas lesquels sont compatibles?
Bonjour,
Je tente de mettre à jour le firmware via OTA. J'utilise un dongle ZiGate+. J'ai essaye ZHA et Zigbee2mqtt avec des résulats identiques.
Information du zlinky
Information de z2m
Les log de zigbee2mqtt liés au zlinky durant la tentative d'update:
De même, dans ZHA, l'update semble démarrer mais rester à 0%.
Auriez vous une idée de quel pourrait être mon problème?
Cordialement,