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

LiXee Zigbee OTA provider in Home Assistant ZHA integration code? #66

Open
Hedda opened this issue Jun 7, 2022 · 0 comments
Open

LiXee Zigbee OTA provider in Home Assistant ZHA integration code? #66

Hedda opened this issue Jun 7, 2022 · 0 comments

Comments

@Hedda
Copy link

Hedda commented Jun 7, 2022

@fairecasoimeme Wondering if you could please consider contributing OTA download code for ZLinky_TIC firmware images for a LiXee Zigbee OTA provider to Home Assistant ZHA (Zigbee Home Automation) integration which depends on the "zigpy" library?

https://github.com/fairecasoimeme/Zlinky_TIC/releases

As you way or or may not know, Home Assistant is currently the world's most popular open-source home automation software application and its native ZHA integration is a Zigbee gateway implementation that is one the most popular integrations in Home Assistant as per statistics provided by the few percentages of their users who opt-in to submit usage analytics (as analytics is optional and disabled by default in Home Assistant).

ZHA does have support download code for third-party OTA providers however someone need to code each download source:

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

https://analytics.home-assistant.io/#integrations

Having more Zigbee OTA providers included with Home Assistant's ZHA integration is a common feature request from many users in the Home Assistant community, so would like to request that you yourself as the manufacturer submit the small piece of code needed to allow the zigpy library (script code written in Python programing language) to download Zigbee OTA images (Over-The-Air firmware updates) for your own devices from your public Zigbee OTA provider as the source:

https://github.com/zigpy/zigpy/blob/dev/README.md#zigbee-device-ota-updates

See zigpy OTA provider code (provider.py) in Python which include the URL links as source of Zigbee OTA files for direct download:

https://github.com/zigpy/zigpy/tree/dev/zigpy/ota

https://github.com/zigpy/zigpy/blob/dev/zigpy/ota/provider.py

It will need a "LiXee OTA Firmware provider" to handle image download (see "Skeleton OTA Firmware provider" for reference, as well as note provider.py also already has code to handle download of OTA files from IKEA, INOVELLI, and LEDVANCE as references).

Maybe also consider copying concept of index.json with metadata on all files like Koenkk repository has to make scripting easier:

https://github.com/Koenkk/zigbee-OTA/blob/master/index.json

zigpy does not yet support this json index or other OTA Index files but Zigbee2MQTT allow users to use it locally as descibed here:

https://github.com/Koenkk/zigbee2mqtt.io/blob/develop/docs/guide/usage/ota_updates.md#local-ota-index-and-firmware-files

PS: Please note that other than in the ZHA integration for Home Assistant the same zigpy library is also used as a dependency by the official Zigpy plugin for Jeedom as well as the Zigbee plugin for Domoticz, see:

https://doc.jeedom.com/en_US/plugins/automation%20protocol/zigbee/

and

https://www.domoticz.com/wiki/ZigbeeForDomoticz

PS: By the way, please also see this somewhat related discussion regarding here Koenkk zigbee-OTA repository -> zigpy/zigpy#535

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

1 participant