Hello,
I am developing one Zigbee based product for that I am using nRF52840 and light_bulb examples and modified as per my requirement.
Till now everything successfully working. Able to control my functions.
One thing we are adding is using a GPIO switch On/Off the LED. So in this case what I want is if the On command from GPIO input then ignore the Alexa On/Off commands and keep the Alexa Dimming operation working.
I am using on_off_set_value() functions to Off and level_control_set_value(m_dev_ctx.level_control_attr.current_level) to On.
Let me know how to achieve this.
And also while dimming (Increment/Decrement) using GPIO pin long press I am using this,
- m_dev_ctx.level_control_attr.current_level = m_dev_ctx.level_control_attr.current_level + 13;
- level_control_set_value(m_dev_ctx.level_control_attr.current_level);
It is working perfectly and reflecting on the Alexa app now but what is happing is I can see step increment instead of gradual increase/decrease and reflection is a bit slow.
So can you please help me with how to handle both cases and reflection makes fast like a command from Alexa device.
Thanks and Regards
Rohit R