Bug in Matter Light_Bulb Example on nRF52840 Development Board

Dear Nordic Support Team,

I am currently using the nRF52840 development board and working on developing a dimmer switch. During the development process, I encountered a bug. I have tried updating the SDKs to resolve the issue, but even after upgrading to SDK version 2.9, the problem persists.

Here is the issue:
When running the Matter light_bulb example without making any modifications and flashing it to the development board, the dimming and on/off functionality work perfectly when controlled through the Apple HomeKit app. However, the issue occurs in the following scenario:

  1. I turn off the light using the HomeKit app.
  2. Then, I turn it back on using the physical button on the development board.

In this case, the light turns on at 1% brightness, but the HomeKit app incorrectly shows the brightness level as 100%.

This issue has been present since SDK version 2.5 and persists in version 2.9. Despite my efforts, I have not been able to resolve it.

Could you please provide guidance or a solution to address this issue?

Thank you for your support.

  • Hi Marte
    Thanks you for your fast response.

    I will also send you the logs for when I turn off the light via HomeKit toggle and then turn it back on using the physical button on the development board. You'll see that the same issue occurs again.

    That said, regardless of whether this problem persists, your point isn’t entirely accurate. No dimmer product remembers the last dimmed state (e.g., 1%) when turned off through the dimmer. Instead, it recalls the last state before dimming.

    Even assuming your argument is correct, why does the light turn on at 1% while HomeKit displays its status as 100%?

    [01:54:29.106,201] <inf> chip: [EM]>>> [E:18258r S:23797 M:242747526] (S) Msg RX from 1:000000007394C4FD [364F] --- Type 0001:08 (IM:InvokeCommandRequest)
    [01:54:29.137,420] <inf> chip: [ZCL]Toggle ep1 on/off from state 1 to 0
    [01:54:29.161,895] <inf> chip: [EM]<<< [E:18258r S:23797 M:27083915 (Ack:242747526)] (S) Msg TX to 1:000000007394C4FD [364F] --- Type 0001:09 (IM:InvokeCommandResponse)
    [01:54:29.193,847] <inf> chip: [IN](S) Sending msg 27083915 on secure session with LSID: 23797
    [01:54:29.220,947] <inf> chip: [ZCL]Event: move from 254
    [01:54:29.245,941] <inf> chip: [ZCL] to 1 
    [01:54:29.266,479] <inf> chip: [ZCL](diff -1)
    [01:54:29.287,506] <inf> chip: [ZCL]Cluster LevelControl: attribute CurrentLevel set to 1
    [01:54:29.312,225] <inf> app: Level Action has been initiated
    [01:54:29.334,442] <inf> app: Setting brightness level to 1
    [01:54:29.356,506] <inf> app: Level Action has been completed
    [01:54:29.378,784] <inf> chip: [ZCL]Setting on/off to OFF due to level change
    [01:54:29.402,526] <inf> chip: [ZCL]Toggle ep1 on/off from state 1 to 0
    [01:54:29.441,650] <inf> chip: [ZCL]Cluster OnOff: attribute OnOff set to 0
    [01:54:29.465,270] <inf> app: Turn Off Action has been initiated
    [01:54:29.487,762] <inf> app: Turn Off Action has been completed
    [01:54:29.510,467] <inf> chip: [ZCL]Off completed. reset OnTime to  0
    [01:54:29.533,660] <inf> chip: [ZCL]Cluster LevelControl: attribute CurrentLevel set to 254
    [01:54:29.565,979] <inf> chip: [EM]<<< [E:13241i S:23797 M:27083916] (S) Msg TX to 1:000000007394C4FD [364F] --- Type 0001:05 (IM:ReportData)
    [01:54:29.595,520] <inf> chip: [IN](S) Sending msg 27083916 on secure session with LSID: 23797
    [01:54:29.622,406] <inf> chip: [DMG]Refresh Subscribe Sync Timer with min 0 seconds and max 600 seconds
    [01:54:29.653,381] <inf> chip: [EM]>>> [E:18258r S:23797 M:242747527 (Ack:27083915)] (S) Msg RX from 1:000000007394C4FD [364F] --- Type 0000:10 (SecureChannel:StandaloneAck)
    [01:54:29.686,828] <inf> chip: [EM]>>> [E:13241i S:23797 M:242747528 (Ack:27083916)] (S) Msg RX from 1:000000007394C4FD [364F] --- Type 0001:01 (IM:StatusResponse)
    [01:54:29.718,475] <inf> chip: [IM]Received status response, status is 0x00
    [01:54:29.742,797] <inf> chip: [EM]<<< [E:13241i S:23797 M:27083917 (Ack:242747528)] (S) Msg TX to 1:000000007394C4FD [364F] --- Type 0000:10 (SecureChannel:StandaloneAck)
    [01:54:29.775,054] <inf> chip: [IN](S) Sending msg 27083917 on secure session with LSID: 23797
    [01:54:34.365,081] <inf> app: Turn On Action has been initiated
    [01:54:34.387,634] <inf> app: Turn On Action has been completed
    [01:54:34.410,217] <inf> app: Action is already in progress or active.
    [01:54:34.454,193] <inf> chip: [ZCL]Cluster OnOff: attribute OnOff set to 1
    [01:54:34.478,302] <inf> chip: [ZCL]Cluster LevelControl: attribute CurrentLevel set to 1
    [01:54:34.510,192] <inf> chip: [EM]<<< [E:13242i S:23797 M:27083918] (S) Msg TX to 1:000000007394C4FD [364F] --- Type 0001:05 (IM:ReportData)
    [01:54:34.539,978] <inf> chip: [IN](S) Sending msg 27083918 on secure session with LSID: 23797
    [01:54:34.567,413] <inf> chip: [DMG]Refresh Subscribe Sync Timer with min 0 seconds and max 600 seconds
    [01:54:34.612,030] <inf> chip: [EM]>>> [E:13242i S:23797 M:242747529 (Ack:27083918)] (S) Msg RX from 1:000000007394C4FD [364F] --- Type 0001:01 (IM:StatusResponse)
    [01:54:34.643,676] <inf> chip: [IM]Received status response, status is 0x00
    [01:54:34.667,999] <inf> chip: [EM]<<< [E:13242i S:23797 M:27083919 (Ack:242747529)] (S) Msg TX to 1:000000007394C4FD [364F] --- Type 0000:10 (SecureChannel:StandaloneAck)
    [01:54:34.700,225] <inf> chip: [IN](S) Sending msg 27083919 on secure session with LSID: 23797
    uart:~$

  • Hi,

    I have asked the developers about this, and I am waiting for a reply from them. I will get back to you early next week.

    Best regards,
    Marte

  • Hi,

    The developers have started looking into this. I will most likely have an update by Tuesday or Wednesday next week.

    Best regards,
    Marte

  • Thank you, Marte
    I am eagerly waiting for the developers' response so we can resolve this issue.

Related