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

LEDVANCE OTA provider seems to prefer older image #963

Closed
TheJulianJES opened this issue Apr 13, 2022 · 0 comments · Fixed by #964
Closed

LEDVANCE OTA provider seems to prefer older image #963

TheJulianJES opened this issue Apr 13, 2022 · 0 comments · Fixed by #964

Comments

@TheJulianJES
Copy link
Contributor

Device signature
{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4489, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x010d",
      "in_clusters": [
        "0x0000",
        "0x0003",
        "0x0004",
        "0x0005",
        "0x0006",
        "0x0008",
        "0x0300",
        "0x0b05",
        "0x1000",
        "0xfc0f"
      ],
      "out_clusters": [
        "0x0019"
      ]
    },
    "242": {
      "profile_id": 41440,
      "device_type": "0x0061",
      "in_clusters": [],
      "out_clusters": [
        "0x0021"
      ]
    }
  },
  "manufacturer": "LEDVANCE",
  "model": "FLEX RGBW Z3",
  "class": "zigpy.device.Device"
}

OTA query:

2022-04-13 20:43:50 DEBUG (MainThread) [zigpy.zcl] [0x4944:1:0x0019] OTA query_next_image handler for 'LEDVANCE FLEX RGBW Z3': field_control=FieldControl.HardwareVersion, manufacture_id=4489, image_type=42, current_file_version=1061121, hardware_version=3555, model=FLEX RGBW Z3
2022-04-13 20:43:50 DEBUG (MainThread) [zigpy.zcl] [0x4944:1:0x0019] OTA image version: 1061121, size: 191068. Update needed: False

extract from https://api.update.ledvance.com/v1/zigbee/firmwares:

Available Images from the LEDVANCE API
...
        {
            "blob": null,
            "identity": {
                "company": 4489,
                "product": 42,
                "version": {
                    "major": 1,
                    "minor": 6,
                    "build": 100,
                    "revision": 0
                }
            },
            "releaseNotes": "1. Rollback Protection enabled \r\n2. Fade off feature removed\r\n3. ZLO commands support\r\n4. Color Improvement ",
            "shA256": "ba6c104741c556ef9c6bd90d7b3f01385e7395dff7690d23917ee7017e5e20b7",
            "name": "Flex_RGBW_Z3_IM002A_01066400-encrypted_202216020348_withoutMF.ota",
            "productName": "Flex RGBW Z3",
            "fullName": "Flex RGBW Z3/01066400/Flex_RGBW_Z3_IM002A_01066400-encrypted_202216020348_withoutMF.ota",
            "extension": ".ota",
            "released": "2022-03-17T12:40:45",
            "salesRegion": "eu",
            "length": 193948
        },
        {
            "blob": null,
            "identity": {
                "company": 4489,
                "product": 42,
                "version": {
                    "major": 0,
                    "minor": 16,
                    "build": 49,
                    "revision": 1
                }
            },
            "releaseNotes": "1. Faster Joining\r\n2. Network performance improvement\r\n",
            "shA256": "de351df72f48498a3599bce37da773a46a33724bfb85f6236234404d7b8faab6",
            "name": "Flex_RGBW_Z3_IM002A_00103101-encrypted_11_27_2018_Tue_134318_76_withoutMF.ota",
            "productName": "Flex RGBW Z3",
            "fullName": "Flex RGBW Z3/00103101/Flex_RGBW_Z3_IM002A_00103101-encrypted_11_27_2018_Tue_134318_76_withoutMF.ota",
            "extension": ".ota",
            "released": "2019-03-22T08:14:28",
            "salesRegion": "eu",
            "length": 191068
        },
...

Here, zigpy seems to pick the image on the bottom (which is the older image).

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 a pull request may close this issue.

1 participant