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

Support OTA for Legrand 067771, 067772 #5899

Merged
merged 1 commit into from
Jun 20, 2023
Merged

Support OTA for Legrand 067771, 067772 #5899

merged 1 commit into from
Jun 20, 2023

Conversation

EXP-Carthage
Copy link
Contributor

No description provided.

@Koenkk Koenkk merged commit bcd4a14 into Koenkk:master Jun 20, 2023
1 check passed
@Koenkk
Copy link
Owner

Koenkk commented Jun 20, 2023

Thanks!

@agsola
Copy link

agsola commented Jul 1, 2023

I'm having a couple of issues.

One of my devices updated properly, but after updating, I got this error:
image
It was on version 0036 before updating.

The other, which is on version 0035, just doesn't update.
It says the device didn't reply to OTA update request or something like this. I've tried several times, even physically pressing the device to be "aware", trying to turn on of off from Z2M (which respond). But nothing...

@SilentT-FR
Copy link
Contributor

Hi @agsola i thinks its a same error we have with powersocket
the zigbee stack version was not the same onfile detection by the nodejsscript

Koenkk/zigbee-OTA#328

and legrand as be aware about the problem : https://developer.legrand.com/forums/topic/nlc-firmware-version/#post-9734

@agsola
Copy link

agsola commented Jul 1, 2023

And regarding the other issue, any idea of how to force it to upgrade?

@SilentT-FR
Copy link
Contributor

In fact its was already upgraded and to the last firmware

Just Z2M have fetched on your device report version 0 and on the update file a version 1
so its install the version 1 on your product,

but after the upgrade the device report 2

Like 1 and 2 was two number and 2 is upper than 1, so after OTA upgrade Z2M want to verify new OTA update and failed because 2 is upper than 1

yes its complicated

@SilentT-FR
Copy link
Contributor

SilentT-FR commented Jul 1, 2023

you can see my complete test here
i have the same issue but with NLP

Koenkk/zigbee2mqtt#17709 (comment)

and for the NLC product

Koenkk/zigbee2mqtt#17709 (comment)

@agsola
Copy link

agsola commented Jul 1, 2023

No no, I may have not been clear.

I have two devices:

  • One of them, before the upgrade was on version 0036. This was properly updated. But after the update it raises the error. Fine.
  • The other one, with version 0035, still have version 0035, and I haven't been able not only to update, but even to start the OTA updating process.
    Error 2023-07-01 21:46:48Update of 'XXXXX' failed (Device didn't respond to OTA request)
image

@SilentT-FR
Copy link
Contributor

its same devices ? you can precise the legrand device number of it ?

@SilentT-FR
Copy link
Contributor

and on "state" tab the

    "update": {
        "installed_version": 4867071,
        "latest_version": 5128707,
        "state": "available"
    },

@agsola
Copy link

agsola commented Jul 2, 2023

Yes. Both are the same devices.
This is the 'state' for the non-updated:

    "update": {
        "installed_version": 3490307,
        "latest_version": 4604419,
        "state": "available"
    },

I've also realized that on the HA update the device update uses a different version than the one on Z2M UI.

image

And here are the two devices:
image

One of them is now updated, but the other doesn't let it be updated.

@SilentT-FR
Copy link
Contributor

SilentT-FR commented Jul 2, 2023

For the updated one in 46 Hexa = 70 in Decimal can you report the
"update": {
"installed_version": 3490307,
is it for Legrand to prevent a non corresponding version between zstack and filename/onfile

for the second one you have this error :
Error 2023-07-01 21:46:48Update of 'XXXXX' failed (Device didn't respond to OTA request)

For me 2 option/opinion

Reboot them electricaly or if you can reapair it

Or but i cant be sure, it can be updated because it have a very old version and not on firmware minimum required to accept v70

@SilentT-FR
Copy link
Contributor

SilentT-FR commented Jul 2, 2023

even physically pressing the device to be "aware"

yes good technique but when the update is lunched stop it, for reduce spaming on the zigbee network

@Laxilef
Copy link

Laxilef commented Jul 5, 2023

Hi
On firmware 0034 the same problem (Device didn't respond to OTA request), devices are not updated

@TRuHa83
Copy link

TRuHa83 commented Jul 11, 2023

I have seen that they have given OTA support to Legrand devices, wonderful!

I have already updated two devices but I have a third, much older that does not give me the option to update. Would it be possible to force the update?
Attached image

Screenshot_20230711_190436

As you can see devices 5 and 6 are updated to 0046 but device 7 gives a very rare version and does not give me the option to update.

Any ideas?

@SilentT-FR
Copy link
Contributor

I think very old version yeah,
going to state of your product and verify this things

    "update": {
        "installed_version": 3490307,
        "latest_version": 4604419,
        "state": "available"
    },

but you can test to fork this file https://github.com/Koenkk/zigbee-OTA/blob/master/index.json and modify the line corresponding to your product
i thinks this one https://github.com/Koenkk/zigbee-OTA/blob/1032e892cb6b60423069fa8f9d3a839b4c9a017d/index.json#L2698

to make a number upper than you have installed_version and say to z2m to use your file in settings

@SilentT-FR
Copy link
Contributor

But with other survey with others user , you can have , devices not responding to ota request

@SilentT-FR
Copy link
Contributor

or a safe way, use legrand gateway if you have
@Laxilef @agsola

@SilentT-FR
Copy link
Contributor

@Laxilef @agsola version v72 is out, i prepare the pull request, 🤞 if its work with its

@SilentT-FR
Copy link
Contributor

https://static.developer.legrand.com/files/2023/05/1021-000e-00464203-NLF.zip 🤦

@TRuHa83
Copy link

TRuHa83 commented Jul 11, 2023

I think very old version yeah, going to state of your product and verify this things

    "update": {
        "installed_version": 3490307,
        "latest_version": 4604419,
        "state": "available"
    },

but you can test to fork this file https://github.com/Koenkk/zigbee-OTA/blob/master/index.json and modify the line corresponding to your product i thinks this one https://github.com/Koenkk/zigbee-OTA/blob/1032e892cb6b60423069fa8f9d3a839b4c9a017d/index.json#L2698

to make a number upper than you have installed_version and say to z2m to use your file in settings

I have been doing tests as you have told me, which now shows me the following error.

2023-07-11 23:01:14 Update of 'switch_salon' failed (File version mismatch)

I understand that yours would be to be able to force a firmware to be loaded regardless of the version.

This is the current version of the device.

"update": {
        "installed_version": 54532608,
        "latest_version": 4604419,
        "state": "idle"
    },

@SilentT-FR
Copy link
Contributor

hmmm z2m verify the file version i thinks we can bypass it

@agsola
Copy link

agsola commented Jul 12, 2023

I have seen that they have given OTA support to Legrand devices, wonderful!

I have already updated two devices but I have a third, much older that does not give me the option to update. Would it be possible to force the update? Attached image

Screenshot_20230711_190436

As you can see devices 5 and 6 are updated to 0046 but device 7 gives a very rare version and does not give me the option to update.

Any ideas?

I have a similar problem with the 067646, which also supports OTA updates. As it is a battery device, I've decided not to update until it gets out of battery.
Old versions of Legrand devices weren't fully standard compliance. I have many Legrand devices, and unpairing and repairing with the official gateway is not an option for me.

What I'd love is to the the 067773 and 067774 to be updateable from Z2M, as well as the 067776

@SilentT-FR
Copy link
Contributor

067773,067774 => I make PR for z2m support OTA, because yes we have the firmware file
certainly a mistake of me

for the 067776 => i already make possible
https://github.com/Koenkk/zigbee-herdsman-converters/pull/5936/files#diff-a810ad77a161d2ba313b432723c2463b8474fba942e347409b7dc387de893554R141

@agsola
Copy link

agsola commented Jul 12, 2023

https://github.com/Koenkk/zigbee-herdsman-converters/pull/5936/files#diff-a810ad77a161d2ba313b432723c2463b8474fba942e347409b7dc387de893554R141

Awesome, thank you!

@SilentT-FR
Copy link
Contributor

🤞 for the 067773,067774 ;)

@SilentT-FR
Copy link
Contributor

#5963 Done

@agsola
Copy link

agsola commented Jul 29, 2023

067773,067774

This is still not live yet, right?

And..., for the 067771, the one that updated properly got another update. However, I can't apply it.

image

.

image

@TRuHa83
Copy link

TRuHa83 commented Dec 26, 2023

hmmm z2m verify the file version i thinks we can bypass it

Hello, do you know how I could update my devices with firmware that is too obsolete? 🤔

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

Successfully merging this pull request may close these issues.

None yet

6 participants