fquinto / bticinoClasse300x

BTicino Classe 300X13E and C100X
GNU General Public License v2.0
84 stars 15 forks source link

firmware_versions.md - Community call #18

Open lpercetti opened 1 year ago

lpercetti commented 1 year ago

Hello,

As the documentation firmware_versions.md says about C100X, the version 1.5.4+ sounds not available on the web anymore. However, people having their firmware cracked already can get the updates locally and can potentially:

From API man-in-the-middle, I've been able to get following info on my non-hacked device:

https://api.developer.legrand.com/devicemanagement/api/v2.0/modules/{{deviceId}}/firmware
{
    "deviceId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "nbOfTry": 0,
    "status": "Pending user consent for installation",
    "currentFirmwareVersion": "1.5.4",
    "id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "firmwareVersion": "1.5.5",
    "downloadDateTime": 0,
    "installationDateTime": 0,
    "fileSize": 106495633,
    "checksum": "a8fd81f80e07c1d5fbd3e491852123c6",
    "hashAlgorithm": "md5",
    "releaseNote": "# Description : \n- Firmware 1.5.5 for Classe100X16E\n- Minor bug fixes"
}

So if the hash match, I would be happy to use the fw file of someone else :)

So maybe we can add this somewhere on the doc, so people have a way to provide you the firmware or the URLs? It would help the community! :)

Regards,

fquinto commented 1 year ago

Do you know how to get deviceId in a easy step? Where is this deviceId?

lpercetti commented 1 year ago

Sorry for the late reply.

Yes, you can easily get it using this call: GET https://api.developer.legrand.com/servicecatalog/api/v3.0/modules?= And a bearer token in the header as authentication.

And then get a list of object in which the "id" key is the deviceId.

I also have access to some SIP accounts using: GET https://api.developer.legrand.com/vde/sip/v1.0/devices/{{deviceId}}/sipaccounts Which gives:

[
    {
        "plantId": "<a-guid>",
        "deviceId": "<the-device-id-as-in-the-query>",
        "sipId": "<a-guid-most-likely-sip-username>",
        "sipUri": "<userOid>_<clientId>@<deviceId>.bs.iotleg.com",
        "clientId": "<a-20digits-hexa-number>",
        "clientName": "iPhone",
        "username": "<myemailaddress@removed.tld>",
        "sipPassword": "<a-small-8digits-password>",
        "userOid": "<a-guid>",
        "appId": null
    }
]

An alternative to all the setup might be to connect using a SIP client.

lhari84 commented 9 months ago

Hello,

As the documentation firmware_versions.md says about C100X, the version 1.5.4+ sounds not available on the web anymore. However, people having their firmware cracked already can get the updates locally and can potentially:

  • Share the file they have been able to download

I have found a page offers latest version 1.5.5. But not sure it works for all WiFi-capable Classe 100 models:

https://www.homesystems-legrandgroup.com/home/-/productsheets/4221129

I may try when I have some time left.

fquinto commented 9 months ago

Firmware links: updated. Thanks.