This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Zigbee light_bulb turns full On(100%) instead of setting to 10% level

Hello All,

I am developing a light control device using Zigbee and Alexa. I am using an nRF52840 device and SDK nRF5_SDK_for_Thread_and_Zigbee_v3.0.0_d310e71.

For my development, I have referred to light_bulb code as per nordic engineer suggestion and made the respected changes to communicate with Alexa.

Till now everything is working perfectly fine without any issue even On dev-kit and my custom hardware so while testing corner cases on my hardware.

I came to know that if I send the "Alexa set 0 percent" command from the Alexa device it turns OFF correctly. But if I give "Alexa Turn ON" then it takes 100 percent (100%) not 10% or 20% which was my previous set level before setting to 0%.

But If I use the "Alexa Turn ON" and "Alexa Turn OFF" command then I get the expected result means example. If I set the level to 20% and then gave the OFF command it turns OFF and If I say "Alexa turn ON" then it turns ON to the set level which is 20%.

Only, If give "Alexa set 0 percentage" and "Alexa Turn ON" I facing this 100% ON instead of the previous level.

This same case happing in SDK's light_bulb code.

So please let me know the reason behind this? And also can we change as per our requirement? If yes, then share the steps so that we can keep command execution identical in all cases.

Thanks and Regards

Rohit R

  • Based on your log, it seems that it receives an event ZB_ZCL_LEVEL_CONTROL_SET_VALUE_CB_ID, with the level 254. 

     

    Rohit Rajapure said:
    Set TRUE, it will perform the erase but I tried the same it is not working. Still device connected to Alexa.

     Is it? My experience was that it wasn't, but perhaps it depends on the device. What I tested was a doorlock (I no longer have access to that Alexa, so I can't test). 

    Does the Alexa still remember the device even if you erase the flash on the nRF and re-program it?

  • Hi Edvin,

    Based on your log, it seems that it receives an event ZB_ZCL_LEVEL_CONTROL_SET_VALUE_CB_ID, with the level 254. 

    - yes, it is a 0xfe (254) value.

    - Is there any possibility to change as per requirement?

    Is it? My experience was that it wasn't, but perhaps it depends on the device. What I tested was a doorlock (I no longer have access to that Alexa, so I can't test). 

    Does the Alexa still remember the device even if you erase the flash on the nRF and re-program it?

    - I have solved this, now can do interrupt soft reset and as well as erase bonding info.

    - Thank you for this urgent help and details. We can make hardware as required. In case of anything, I will get back to you on this.

    Thank you so much for the quick response on this Slight smile.

    Regards,

    Rohit R

  • Rohit Rajapure said:
    - Is there any possibility to change as per requirement?

    What do you mean? Any way to change what the Alexa decides to do? I wouldn't know how to do that, at least.

    Rohit Rajapure said:

    - I have solved this, now can do interrupt soft reset and as well as erase bonding info.

    - Thank you for this urgent help and details. We can make hardware as required. In case of anything, I will get back to you on this.

     Glad to hear that it worked out. As for the alexa part, I am not sure how you would modify it. I guess you can physically not perform the PWM change, but then you would still have to report to the alexa over Zigbee that you did. If not the alexa would start to act up.

    I believe the light bulb just needs to obey the orders that it receives. If not, it would behave differently from all other light bulbs in the network. Don't you agree?

    BR,

    Edvin

  • Hi Edvin,

    What do you mean? Any way to change what the Alexa decides to do? I wouldn't know how to do that, at least.

    - Okay,

    Glad to hear that it worked out.

    - Thank you for the help Slight smile

    As for the alexa part, I am not sure how you would modify it. I guess you can physically not perform the PWM change, but then you would still have to report to the alexa over Zigbee that you did. If not the alexa would start to act up.

    - Yes, I reported to the forum but still no replay

    I believe the light bulb just needs to obey the orders that it receives. If not, it would behave differently from all other light bulbs in the network. Don't you agree?

    - Yes, I also believe the same. The device should perform orders that it receives.

    - If I get any update from the Alexa amazon team then I will get back to you with their feedback.

    Thank you

    Regards,

    Rohit R

Related