Problems with deep sleep on a Xiao ESP32C6

Hi, I try to create a Zigbee door sensor with an additional lock sensor with a XIAO ESP32C6 board. I have following Yaml code;


# Board: Seeed Studio XIAO ESP32C6 (Seeed Studio)
# Definition: definitions/boards/seeed_xiao_esp32c6/manifest.yaml

esphome:
  name: washok-door-and-lock-sensor
  friendly_name: washok door and lock sensor
  area: Kitchen
  
esp32:
  variant: esp32c6
  flash_size: 4MB
  framework:
    type: esp-idf
    
output: #to select the external antenna
  - platform: gpio
    pin: GPIO14
    id: antenna_switch_enable
  - platform: gpio
    pin: GPIO15
    id: antenna_select_external    

deep_sleep:
  id: deep_sleep_id
  sleep_duration: 10min
  run_duration:
    default: 40s # Royaal venster van 20 seconden bij boot voor stabiele Zigbee-afhandeling
    
  esp32_ext1_wakeup:
    mode: ANY_LOW
    pins:
      - pin:
          number: GPIO1
          allow_other_uses: true
          mode:
            pullup: true
            input: true
          inverted: true
      - pin:
          number: GPIO2
          allow_other_uses: true
          mode:
            input: true
            pullup: true
          inverted: true
zigbee:
  power_source: BATTERY

binary_sensor:
  - platform: gpio
    pin:
      number: GPIO1 #D1
      mode:
        input: true
        pullup: true
      inverted: true
      allow_other_uses: true 
    name: "Lock"
    filters: #debouncing value 10ms
      - delayed_on: 10ms

  - platform: gpio
    pin:
      number: GPIO2  #D2      
      mode:
        input: true
        pullup: true
      inverted: true
      allow_other_uses: true 
    name: "door"
    filters: #debouncing value 10ms
      - delayed_on: 10ms

The problem is that without the Deep sleep block everything works fine. only my battery is depleted very fast. If i add this deep sleep block the board becomes unresponsive. is there somebody who knows how to configure this?

There is an issue with esphome deepsleep and the zigbee stack, use standard arduino code to have both. I can provide a code example if you can’t find any.