Skip to content

Allow automatic light sleep with Zigbee Library (Arduino as IDF component) #12066

@mvoss96

Description

@mvoss96

Related area

Zigbee

Hardware specification

ESp32 C6

Is your feature request related to a problem?

I want to create a zigbee end device utilizing automatic light sleep with the Arduino Zigbee library

Describe the solution you'd like

Automatic light sleep does not work even when power management, automatic lightsleep and tickless idle are enabled. without zigbee everything works but after calling zigbe.begin() the device does no longer enter light sleep

I think this is because the ESP_ZB_COMMON_SIGNAL_CAN_SLEEP is missing in esp_zb_app_signal_handler in ZigbeeCore.cpp

example that should work:

Zigbee.setRxOnWhenIdle(false);
esp_zb_set_rx_on_when_idle(false);
esp_zb_sleep_enable(true);
 esp_zb_cfg_t zigbeeConfig = ZIGBEE_DEFAULT_ED_CONFIG();
 zigbeeConfig.nwk_cfg.zed_cfg.keep_alive = 10000;
 Zigbee.begin(&zigbeeConfig, false))

Describe alternatives you've considered

No response

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions