Closed Fredrik81 closed 9 months ago
If you is not having ZHA on the master you need putting it in the config for the client (on the master) or it cant loading all component OK. Your problem is the OTA configure that is not standard and making problems not the ZHA itself. Delete the
remote_providers:
url: "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/index.json"
and im very sure you problems is solved then its not supported setting for ZHA.
If you is not having ZHA on the master you need putting it in the config for the client (on the master) or it cant loading all component OK. Your problem is the OTA configure that is not standard and making problems not the ZHA itself. Delete the
remote_providers: url: "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/index.json"
and im very sure you problems is solved then its not supported setting for ZHA.
I'm not asking why is my ZHA reporting error, my question is:
Is it possible to use remote_providers with home assistant in current version of zigpy
Remote providers are currently for development purposes. The metadata format is zigpy-specific and won't accept just any JSON. See https://github.com/zigpy/zigpy-cli#generate-ota-index-files
Is it possible to use remote_providers with home assistant in current version of zigpy? I see no documentation on the topic (if my searches did not file me).
FYI, the documentation about that zigpy OTA index files schema format for manufacturers is in the zigpy wiki in this repository:
https://github.com/zigpy/zigpy/wiki/OTA-Information-for-Manufacturers
Also check out the readme file for zigpy-cli about using it to generate zigpy compatible OTA index files:
https://github.com/zigpy/zigpy-cli#generate-ota-index-files
As stated, the existing index.json file in Koenkk's zigbee-OTA does not follow the metadata format that is specific to zigpy. See:
https://github.com/Koenkk/zigbee-OTA/issues/263
(for a more detailed backstory about zigpy support for Koenkk's zigbee-OTA repository refer to the discussion here -> https://github.com/zigpy/zigpy/issues/535 ).
Other than that read also the documentation in zigpy wiki for manual OTA updates or when a provider is already available:
https://github.com/zigpy/zigpy/wiki/OTA-Device-Firmware-Updates
PS: Off-topic but FYI, if an end-users just want a simple workaround for third-party downloading then check out zha-toolkit:
Is it possible to use remote_providers with home assistant in current version of zigpy? I see no documentation on the topic (if my searches did not file me).
The code I'm testing and I receive the following error: voluptuous.error.MultipleInvalid: expected a list for dictionary value @ data['ota']['remote_providers]