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

Allow configuration of IKEA update URL #508

Merged
merged 1 commit into from Sep 30, 2020

Conversation

Adminiuga
Copy link
Collaborator

Allow configuration of IKEA update URL via ikea_update_url configuration parameter.
For example in Home Assistant core configuration.yaml add:

zha:
  zigpy_config:
    ota:
      ikea_provider: true
      ikea_update_url: http://fw.test.ota.homesmart.ikea.net/feed/version_info.json

@coveralls
Copy link

coveralls commented Sep 30, 2020

Coverage Status

Coverage increased (+8.0e-05%) to 99.887% when pulling 010f08b on Adminiuga:ac/ikea-custom-url into a1010cb on zigpy:dev.

@Adminiuga Adminiuga merged commit a9f1537 into zigpy:dev Sep 30, 2020
@Adminiuga Adminiuga deleted the ac/ikea-custom-url branch September 30, 2020 20:52
@MattWestb
Copy link
Contributor

MattWestb commented Oct 12, 2020

Thanks cod master !!!

I was downgrading oncontroll outlet in deCONZ to 10005777-3.1-TRADFRI-control-outlet-2.0.022.ota.ota.signed and then deleting it in deCONZ and pairing it in ZHA.

First I was putting the same OTA file in the /config/zigpy_ota and restarting ZHA and it was not updating the plug.
Then adding the normal "ikea_provider: true" and its downloading but throwing the invalid OTA file and not sending it to the device.
Then putting one 2.0.024 OTA file from deCONZ in the ots folder and restating ZHA and repower the plug. Its starts updating and I disconnecting it for more testing.
Deleting the 2.0.024 nd adding ikea_update_url: http://fw.test.ota.homesmart.ikea.net/feed/version_info.json

Restarting ZHA and repower the plug and its starting the update OK.

Great work done !!!

Only missing possibility forcing loafing of one older version of OTA files theru folder load and config parameter like:

zha:
  zigpy_config:
    ota:
      override_with_local_version: true

@puddly
Copy link
Collaborator

puddly commented Oct 12, 2020

"override_with_local_version: true" should be the default behavior as of #505.

Are you 100% sure you have the correct OTA file for the device? The broken image from the IKEA website will not even be considered so if the local one isn't being picked up it may be a problem with the file (or the file-based loader is having problems unwrapping the IKEA container).

@MattWestb
Copy link
Contributor

I have old OTA files that was downloaded in deCONZ and is working (and the test json is also working).
For the same version (server / local) its working, i have trying with the same version and the ZHA is starting sending the local file to the device.

My proposal is that having one older (lower version) local OTA file and sending it to the device and doing one "downgrade" as its possible in deCONZ.

Then having the 2.0.022 in the local OTA folder the device is getting the 2.0.024 from the test server = good for "normal" users but not for advance testing.
Also if the device is on 2.0.024 and the local is 2.0.022 its not getting the "downgrade" OTA.

Perhaps i should caling the config parameter "force_version_downgrade" or "override_device_version".

Its only one proposal and if i really need doing it I can doing it in deCONZ (that have losing all devices lats week and Bellows have getting all of them).

@MattWestb
Copy link
Contributor

@walthowd I was putting the ikea_update_url: in the wiki but was not changing the text so much.
Can you taking one look so i did not destroying you work !!!

@walthowd
Copy link
Contributor

Yup, looks great! What we really need now is someone to host a IKEA update URL somewhere that only has working firmware in it!

@MattWestb
Copy link
Contributor

For the moment is it not necessary then only IKEA GW and the new scene shortcut button (no update only new device) have being added from the last good ones in the test URL and the all other is at production standard. I finding it interesting wath is happening little later if IKEA is releasing one new GW and locking all updates to their end devices or is fixing bad data setting in the devices (with patch commands for the user data) or if its only corrupted / damaged files on the server.

Great working done !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants