zigbee_esphome icon indicating copy to clipboard operation
zigbee_esphome copied to clipboard

Efficient Deep Sleep example

Open florianL21 opened this issue 6 months ago • 5 comments

I am currently building a sensor with this component and so far it mostly works pretty great.

But when I try to utilize the deep sleep component of esphome no attribute updates seem to be sent to the coordinator for quite a while after reset even though there are no errors visible in the logs.

It seems like it needs at least 30s after boot to even send out a single attribute update. I find this extremely inefficient. I assume there must be a better way since it is explicitly mentioned in the readme right?

My working ESPHome config

external_components:
  - source: github://luar123/zigbee_esphome
    components: [zigbee]

esphome:
  name: zigbeetest
  friendly_name: ZigbeeTest

esp32:
  board: esp32-c6-devkitc-1
  partitions: partitions_zb.csv
  framework:
    type: esp-idf

logger:
  hardware_uart: UART0

i2c:
  sda: GPIO22
  scl: GPIO23
  id: bus_a

sensor:
  - platform: scd4x
    co2:
      name: "CO2"
      id: co2
    temperature:
      name: "Temperature"
      id: temp
    humidity:
      name: "Humidity"
      id: humid
    update_interval: 10s

deep_sleep:
  id: deep_sleep_1
  sleep_duration: 10min
  run_duration: 40s

zigbee:
  id: "zb"
  on_join:
    then:
      - logger.log: "Joined network"
  endpoints:
    - device_type: TEMPERATURE_SENSOR
      num: 1
      clusters:
        - id: REL_HUMIDITY_MEASUREMENT
          attributes:
            - attribute_id: 0
              id: hum_attr
              type: U16
              report: true
              device: humid
              scale: 100
        - id: TEMP_MEASUREMENT
          attributes:
            - attribute_id: 0x0
              id: temp_attr
              type: S16
              report: true
              device: temp
              scale: 100
        - id: CARBON_DIOXIDE_MEASUREMENT
          attributes:
            - attribute_id: 0x0
              id: co2_attr
              type: single
              report: true
              device: co2
              scale: 0.000001
            - attribute_id: 0x2
              type: single
              value: 10000

Another issue with this configuration is that the sensor expects to be polled every 10min as per manufacturer spec as it does a re-calibration routine after a prefixed number of polls and with this 10s polling interval (which is needed since I need to try a few times for the attribute updates to actually make it through, even though I see no errors in the logs of the device) the assumption about the number of polls before the sensor runs it's calibration is wrong.

So in the end what I am wondering are the following points:

  • Is there a way to reliably know if a zigbee attribute update was in fact sent out, which ultimately could be used to trigger the device to go into deep sleep?
  • Is there a way to make the startup faster so that I don't need to be wasting power for ~40s just to send a single status update?
  • Is there maybe some example configuration which could illustrate how to set this up? I assume that I am missing something here

florianL21 avatar Jun 05 '25 20:06 florianL21

The main issue is that deepsleep is not made for this usecase and ligh sleep is not available in esphome #4916, https://github.com/espressif/esp-zigbee-sdk/tree/main/examples/esp_zigbee_sleep/deep_sleep:

Implementing a standard Zigbee Sleepy Device is recommended using the Light Sleep example. Deep sleep triggers a reboot, and the device needs to undergo a re-attach process to rejoin the network. This means additional packet interactions are required after each wake-up from deep sleep. However, the Deep sleep mode can be advantageous in reducing power consumption, especially when the device remains in a sleep state for extended periods, such as more than 30 minutes.

With deep sleep the esp needs to boot, initialize everything, re-join the network as there is no possibility to save the network state in nvram and then it will be configured by the coordinator. Still, 30s seems a bit long, but could be possible if you have a busy network or low signal strength (need to check with my hardware).

Please provide a full boot log until values are reported (with time stamps) so we can see which step takes how much time. There is also the possibility that reporting of new values is delayed because of sub-optimial reporting settings (typically these are set by the coordinator). Typically values are only reported if there is a minimum change and time since the last report. So if values are not changing there won't be a report.

Is there a way to reliably know if a zigbee attribute update was in fact sent out, which ultimately could be used to trigger the device to go into deep sleep? That is not possible right now, but we could implement a check if a change is still pending.

luar123 avatar Jun 08 '25 06:06 luar123

Yes, I am aware that deep sleep is not so great for zigbee in general.

Slightly off-topic but: Before using this project I actually wrote the firmware from scratch with the ESP-IDF but I had to accept that I do not understand zigbee well enough to make it work properly. I was using the tickless idle stuff with light sleep from FreeRTOS to save power during runtime, as well as configuring the CPU clock to be as low as possible and then I even added deep sleep on top since the sensor is supposed to send one update every 10min. The boot process there did not take nearly as long as 30s but I don't have precise measurements so I cannot really say for sure. It worked for some time but I had unexplainable runtime crashes when I was trying to compile the code again a few weeks later, so I gave up.

Back to the topic at hand: I ran some tests with logs where I modified the deep sleep duration from the yaml above to 20s for testing purposes. Here are the UART logs from the ESP for 5 boot cycles logged via an external serial connection so nothing should be missing:

ESP log

[13:47:01.522] Build:Sep 19 2022
[13:47:01.522] rst:0x5 (SLEEP_WAKEUP),boot:0x1f (SPI_FAST_FLASH_BOOT)
[13:47:01.523] SPIWP:0xee
[13:47:01.523] mode:DIO, clock div:2
[13:47:01.523] load:0x4086c410,len:0xd8c
[13:47:01.523] load:0x4086e610,len:0x2e1c
[13:47:01.523] load:0x40875728,len:0x17d0
[13:47:01.523] entry 0x4086c410
[13:47:01.523] [0;32mI (24) boot: ESP-IDF 5.1.6 2nd stage bootloader[0m
[13:47:01.531] [0;32mI (24) boot: compile time Jun  8 2025 04:38:31[0m
[13:47:01.531] [0;32mI (25) boot: chip revision: v0.1[0m
[13:47:01.531] [0;32mI (27) boot.esp32c6: SPI Speed      : 80MHz[0m
[13:47:01.531] [0;32mI (32) boot.esp32c6: SPI Mode       : DIO[0m
[13:47:01.565] [0;32mI (36) boot.esp32c6: SPI Flash Size : 4MB[0m
[13:47:01.565] [0;32mI (41) boot: Enabling RNG early entropy source...[0m
[13:47:01.565] [0;32mI (47) boot: Partition Table:[0m
[13:47:01.565] [0;32mI (50) boot: ## Label            Usage          Type ST Offset   Length[0m
[13:47:01.565] [0;32mI (57) boot:  0 otadata          OTA data         01 00 00009000 00002000[0m
[13:47:01.565] [0;32mI (65) boot:  1 phy_init         RF data          01 01 0000b000 00001000[0m
[13:47:01.565] [0;32mI (72) boot:  2 app0             OTA app          00 10 00010000 001b0000[0m
[13:47:01.608] [0;32mI (80) boot:  3 app1             OTA app          00 11 001c0000 001b0000[0m
[13:47:01.608] [0;32mI (87) boot:  4 nvs              WiFi data        01 02 00370000 0006d000[0m
[13:47:01.609] [0;32mI (95) boot:  5 zb_storage       Unknown data     01 81 003dd000 00004000[0m
[13:47:01.609] [0;32mI (102) boot:  6 zb_fct           Unknown data     01 81 003e1000 00000400[0m
[13:47:01.609] [0;32mI (110) boot: End of partition table[0m
[13:47:01.609] [0;32mI (115) esp_image: segment 0: paddr=00010020 vaddr=42080020 size=126f0h ( 75504) map[0m
[13:47:01.648] [0;32mI (137) esp_image: segment 1: paddr=00022718 vaddr=40800000 size=0d900h ( 55552) load[0m
[13:47:01.648] [0;32mI (151) esp_image: segment 2: paddr=00030020 vaddr=42000020 size=75f3ch (483132) map[0m
[13:47:01.765] [0;32mI (246) esp_image: segment 3: paddr=000a5f64 vaddr=4080d900 size=01a64h (  6756) load[0m
[13:47:01.766] [0;32mI (249) esp_image: segment 4: paddr=000a79d0 vaddr=4080f370 size=020d8h (  8408) load[0m
[13:47:01.766] [0;32mI (254) esp_image: segment 5: paddr=000a9ab0 vaddr=50000000 size=00040h (    64) [0m
[13:47:01.766] [0;32mI (261) esp_image: segment 6: paddr=000a9af8 vaddr=50000040 size=00008h (     8) [0m
[13:47:01.766] [0;32mI (272) boot: Loaded app from partition at offset 0x10000[0m
[13:47:01.766] [0;32mI (275) boot: Disabling RNG early entropy source...[0m
[13:47:01.810] [0;32mI (291) cpu_start: Unicore app[0m
[13:47:01.810] [0;32mI (292) cpu_start: Pro cpu up.[0m
[13:47:01.810] [0;33mW (300) clk: esp_perip_clk_init() has not been implemented yet[0m
[13:47:01.810] [0;32mI (307) cpu_start: Pro cpu start user code[0m
[13:47:01.810] [0;32mI (307) cpu_start: cpu freq: 160000000 Hz[0m
[13:47:01.810] [0;32mI (307) cpu_start: Application information:[0m
[13:47:01.810] [0;32mI (310) cpu_start: Project name:     zigbeetest[0m
[13:47:01.810] [0;32mI (315) cpu_start: App version:      2025.5.2[0m
[13:47:01.810] [0;32mI (320) cpu_start: Compile time:     Jun  8 2025 04:36:57[0m
[13:47:01.853] [0;32mI (326) cpu_start: ELF file SHA256:  21f609d6002f8d5b...[0m
[13:47:01.853] [0;32mI (332) cpu_start: ESP-IDF:          5.1.6[0m
[13:47:01.853] [0;32mI (337) cpu_start: Min chip rev:     v0.0[0m
[13:47:01.853] [0;32mI (342) cpu_start: Max chip rev:     v0.99 [0m
[13:47:01.853] [0;32mI (347) cpu_start: Chip rev:         v0.1[0m
[13:47:01.853] [0;32mI (351) heap_init: Initializing. RAM available for dynamic allocation:[0m
[13:47:01.853] [0;32mI (359) heap_init: At 40815D80 len 00066890 (410 KiB): D/IRAM[0m
[13:47:01.853] [0;32mI (365) heap_init: At 4087C610 len 00002F54 (11 KiB): STACK/DIRAM[0m
[13:47:01.896] [0;32mI (372) heap_init: At 50000048 len 00003FA0 (15 KiB): RTCRAM[0m
[13:47:01.896] [0;32mI (379) spi_flash: detected chip: generic[0m
[13:47:01.896] [0;32mI (383) spi_flash: flash io: dio[0m
[13:47:01.896] [0;32mI (387) sleep: Configure to isolate all GPIO pins in sleep state[0m
[13:47:01.896] [0;32mI (394) sleep: Enable automatic switching of GPIO sleep configuration[0m
[13:47:01.896] [0;32mI (401) coexist: coex firmware version: 994b23e[0m
[13:47:01.896] [0;32mI (406) coexist: coexist rom version 5b8dcfa[0m
[13:47:01.922] [0;32mI (411) app_start: Starting scheduler on CPU0[0m
[13:47:01.922] [0;32mI (416) main_task: Started on CPU0[0m
[13:47:01.922] [0;32mI (420) main_task: Calling app_main()[0m
[13:47:02.002] [0;32m[I][logger:171]: Log initialized[0m
[13:47:02.045] [0;36m[D][zigbee:362]: Model: zigbeetest[0m
[13:47:02.045] [0;36m[D][zigbee:363]: Manufacturer: esphome[0m
[13:47:02.045] [0;36m[D][zigbee:364]: Date: 20250608[0m
[13:47:02.045] [0;36m[D][zigbee:365]: Area: [0m
[13:47:02.045] [0;32m[I][app:029]: Running through setup()...[0m
[13:47:02.045] [0;35m[C][i2c.idf:021]: Setting up I2C bus...[0m
[13:47:02.045] [0;32m[I][i2c.idf:260]: Performing I2C bus recovery[0m
[13:47:02.045] [0;36m[D][esp-idf:000]: [0;32mI (538) gpio: GPIO[23]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 1| Pulldown: 0| Intr:0 [0m[0m
[13:47:02.090] [0;36m[D][esp-idf:000]: [0;32mI (538) gpio: GPIO[22]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 1| Pulldown: 0| Intr:0 [0m[0m
[13:47:02.090] [0;35m[C][scd4x:030]: Setting up scd4x...[0m
[13:47:02.090] [0;36m[D][esp-idf:000]: [0;32mI (578) phy_init: phy_version 320,348a293,Sep  3 2024,16:33:12[0m[0m
[13:47:02.090] [0;36m[D][esp-idf:000]: [0;32mI (595) phy: libbtbb version: 04952fd, Sep  3 2024, 16:33:30[0m[0m
[13:47:02.090] [0;36m[D][esp-idf:000]: [0;31mE (596) ESP_ZIGBEE_CLUSTER: The requested update cluster ID (0x 405) is not found[0m[0m
[13:47:02.133] [0;36m[D][esp-idf:000]: [0;31mE (597) zigbee_helper: Ignore previous cluster not found error[0m[0m
[13:47:02.133] [0;36m[D][esp-idf:000]: [0;31mE (597) ESP_ZIGBEE_CLUSTER: The requested update cluster ID (0x 40d) is not found[0m[0m
[13:47:02.133] [0;36m[D][esp-idf:000]: [0;31mE (613) zigbee_helper: Ignore previous cluster not found error[0m[0m
[13:47:02.133] [0;36m[D][zigbee:496]: set reporting for cluster: 1029[0m
[13:47:02.133] [0;36m[D][zigbee:496]: set reporting for cluster: 1026[0m
[13:47:02.133] [0;36m[D][zigbee:496]: set reporting for cluster: 1037[0m
[13:47:02.176] [0;35m[C][deep_sleep:013]: Setting up Deep Sleep...[0m
[13:47:02.176] [0;32m[I][deep_sleep:018]: Scheduling Deep Sleep to start in 40000 ms[0m
[13:47:02.176] [0;32m[I][app:066]: setup() finished successfully![0m
[13:47:02.176] [0;36m[D][esp-idf:000][1;31m[main][0;36m: [0;32mI (525) main_task: Returned from app_main()[0m[0m
[13:47:02.176] [0;36m[D][zigbee:180][1;31m[Zigbee_main][0;36m: ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL[0m
[13:47:02.176] [0;36m[D][zigbee:118][1;31m[Zigbee_main][0;36m: Zigbee stack initialized[0m
[13:47:02.219] [0;32m[I][app:115]: ESPHome version 2025.5.2 compiled on Jun  8 2025, 04:41:41[0m
[13:47:02.219] [0;35m[C][logger:224]: Logger:[0m
[13:47:02.219] [0;35m[C][logger:225]:   Max Level: DEBUG[0m
[13:47:02.219] [0;35m[C][logger:226]:   Initial Level: DEBUG[0m
[13:47:02.219] [0;35m[C][logger:228]:   Log Baud Rate: 115200[0m
[13:47:02.219] [0;35m[C][logger:229]:   Hardware UART: UART0[0m
[13:47:02.219] [0;35m[C][logger:233]:   Task Log Buffer Size: 768[0m
[13:47:02.219] [0;35m[C][i2c.idf:083]: I2C Bus:[0m
[13:47:02.219] [0;35m[C][i2c.idf:084]:   SDA Pin: GPIO22[0m
[13:47:02.219] [0;35m[C][i2c.idf:085]:   SCL Pin: GPIO23[0m
[13:47:02.262] [0;35m[C][i2c.idf:086]:   Frequency: 50000 Hz[0m
[13:47:02.262] [0;35m[C][i2c.idf:092]:   Recovery: bus successfully recovered[0m
[13:47:02.262] [0;32m[I][i2c.idf:102]: Results from i2c bus scan:[0m
[13:47:02.262] [0;32m[I][i2c.idf:108]: Found i2c device at address 0x62[0m
[13:47:02.262] [0;35m[C][scd4x:094]: scd4x:[0m
[13:47:02.262] [0;35m[C][scd4x:095]:   Address: 0x62[0m
[13:47:02.262] [0;35m[C][scd4x:112]:   Automatic self calibration: ON[0m
[13:47:02.262] [0;35m[C][scd4x:121]:   Ambient pressure compensation disabled[0m
[13:47:02.263] [0;35m[C][scd4x:122]:   Altitude compensation: 0m[0m
[13:47:02.305] [0;35m[C][scd4x:127]:   Measurement mode: periodic (5s)[0m
[13:47:02.305] [0;35m[C][scd4x:139]:   Temperature offset: 4.00 °C[0m
[13:47:02.305] [0;35m[C][scd4x:140]:   Update Interval: 10.0s[0m
[13:47:02.305] [0;35m[C][scd4x:141]:   CO2 'CO2'[0m
[13:47:02.306] [0;35m[C][scd4x:141]:     Device Class: 'carbon_dioxide'[0m
[13:47:02.306] [0;35m[C][scd4x:141]:     State Class: 'measurement'[0m
[13:47:02.306] [0;35m[C][scd4x:141]:     Unit of Measurement: 'ppm'[0m
[13:47:02.306] [0;35m[C][scd4x:141]:     Accuracy Decimals: 0[0m
[13:47:02.306] [0;35m[C][scd4x:141]:     Icon: 'mdi:molecule-co2'[0m
[13:47:02.348] [0;35m[C][scd4x:142]:   Temperature 'Temperature'[0m
[13:47:02.348] [0;35m[C][scd4x:142]:     Device Class: 'temperature'[0m
[13:47:02.348] [0;35m[C][scd4x:142]:     State Class: 'measurement'[0m
[13:47:02.348] [0;35m[C][scd4x:142]:     Unit of Measurement: '°C'[0m
[13:47:02.348] [0;35m[C][scd4x:142]:     Accuracy Decimals: 2[0m
[13:47:02.348] [0;35m[C][scd4x:142]:     Icon: 'mdi:thermometer'[0m
[13:47:02.348] [0;35m[C][scd4x:143]:   Humidity 'Humidity'[0m
[13:47:02.348] [0;35m[C][scd4x:143]:     Device Class: 'humidity'[0m
[13:47:02.349] [0;35m[C][scd4x:143]:     State Class: 'measurement'[0m
[13:47:02.386] [0;35m[C][scd4x:143]:     Unit of Measurement: '%'[0m
[13:47:02.386] [0;35m[C][scd4x:143]:     Accuracy Decimals: 2[0m
[13:47:02.386] [0;35m[C][scd4x:143]:     Icon: 'mdi:water-percent'[0m
[13:47:02.386] [0;35m[C][zigbee:526]: ZigBee:[0m
[13:47:02.386] [0;35m[C][zigbee:528]: Endpoint: 1, 770[0m
[13:47:02.386] [0;35m[C][deep_sleep:026]: Setting up Deep Sleep...[0m
[13:47:02.411] [0;35m[C][deep_sleep:029]:   Sleep Duration: 20000 ms[0m
[13:47:02.411] [0;35m[C][deep_sleep:032]:   Run Duration: 40000 ms[0m
[13:47:03.580] [0;36m[D][scd4x:049]: Serial number 131.34.139[0m
[13:47:03.580] [0;36m[D][scd4x:088]: Sensor initialized[0m
[13:47:04.472] [0;36m[D][zigbee:205][1;31m[Zigbee_main][0;36m: Binding table record: src_endp 1, dst_endp 1, cluster_id 0x0405, dst_addr_mode 3[0m
[13:47:04.515] [0;36m[D][zigbee:216][1;31m[Zigbee_main][0;36m: Device bound to EP 1 -> device endpoint: 1, short addr: 0x0000, ieee addr: E0:79:8D:FF:FE:9E
[13:47:04.515] [0;36m[D][zigbee:205][1;31m[Zigbee_main][0;36m: Binding table record: src_endp 1, dst_endp 1, cluster_id 0x0402, dst_addr_mode 3[0m
[13:47:04.515] [0;36m[D][zigbee:216][1;31m[Zigbee_main][0;36m: Device bound to EP 1 -> device endpoint: 1, short addr: 0x0000, ieee addr: E0:79:8D:FF:FE:9E
[13:47:04.558] [0;36m[D][zigbee:126][1;31m[Zigbee_main][0;36m: Device started up in non factory-reset mode[0m
[13:47:04.558] [0;36m[D][zigbee:132][1;31m[Zigbee_main][0;36m: Device rebooted[0m
[13:47:04.558] [0;36m[D][zigbee:245][1;31m[Zigbee_main][0;36m: Requesting binding table for address 0x614f[0m
[13:47:04.558] [0;36m[D][zigbee:191][1;31m[Zigbee_main][0;36m: Binding table callback for address 0x614f with status 0[0m
[13:47:04.558] [0;36m[D][zigbee:194][1;31m[Zigbee_main][0;36m: Binding table info: total 3, index 0, count 3[0m
[13:47:04.601] [0;36m[D][zigbee:205][1;31m[Zigbee_main][0;36m: Binding table record: src_endp 1, dst_endp 1, cluster_id 0x040d, dst_addr_mode 3[0m
[13:47:04.601] [0;36m[D][zigbee:216][1;31m[Zigbee_main][0;36m: Device bound to EP 1 -> device endpoint: 1, short addr: 0x0000, ieee addr: E0:79:8D:FF:FE:9E:8B:29[0m
[13:47:04.601] [0;36m[D][zigbee:236][1;31m[Zigbee_main][0;36m: Filling bounded devices finished[0m
[13:47:04.601] [0;33m[W][component:257]: Component logger took a long time for an operation (82 ms).[0m
[13:47:04.622] [0;33m[W][component:258]: Components should block for at most 30 ms.[0m
[13:47:06.700] [0;33m[W][component:167]: Component scd4x.sensor set Warning flag: unspecified[0m
[13:47:16.691] [0;36m[D][sensor:093]: 'CO2': Sending state 589.00000 ppm with 0 decimals of accuracy[0m
[13:47:16.739] [0;36m[D][sensor:093]: 'Temperature': Sending state 28.87886 °C with 2 decimals of accuracy[0m
[13:47:16.739] [0;36m[D][sensor:093]: 'Humidity': Sending state 47.81036 % with 2 decimals of accuracy[0m
[13:47:16.739] [0;33m[W][component:182]: Component scd4x.sensor cleared Warning flag[0m
[13:47:16.739] [0;36m[D][zigbee:018]: Attribute set![0m
[13:47:16.739] [0;36m[D][zigbee:018]: Attribute set![0m
[13:47:16.739] [0;36m[D][zigbee:018]: Attribute set![0m
[13:47:26.737] [0;36m[D][sensor:093]: 'CO2': Sending state 596.00000 ppm with 0 decimals of accuracy[0m
[13:47:26.737] [0;36m[D][sensor:093]: 'Temperature': Sending state 28.36082 °C with 2 decimals of accuracy[0m
[13:47:26.737] [0;36m[D][sensor:093]: 'Humidity': Sending state 49.05548 % with 2 decimals of accuracy[0m
[13:47:26.737] [0;36m[D][zigbee:018]: Attribute set![0m
[13:47:26.737] [0;36m[D][zigbee:018]: Attribute set![0m
[13:47:26.737] [0;36m[D][zigbee:018]: Attribute set![0m
[13:47:36.735] [0;36m[D][sensor:093]: 'CO2': Sending state 569.00000 ppm with 0 decimals of accuracy[0m
[13:47:36.735] [0;36m[D][sensor:093]: 'Temperature': Sending state 27.71194 °C with 2 decimals of accuracy[0m
[13:47:36.735] [0;36m[D][sensor:093]: 'Humidity': Sending state 50.69580 % with 2 decimals of accuracy[0m
[13:47:36.735] [0;36m[D][zigbee:018]: Attribute set![0m
[13:47:36.735] [0;36m[D][zigbee:018]: Attribute set![0m
[13:47:36.735] [0;36m[D][zigbee:018]: Attribute set![0m
[13:47:42.137] [0;32m[I][deep_sleep:060]: Beginning Deep Sleep[0mESP-ROM:esp32c6-20220919
[13:48:01.882] Build:Sep 19 2022
[13:48:01.882] rst:0x5 (SLEEP_WAKEUP),boot:0x1f (SPI_FAST_FLASH_BOOT)
[13:48:01.882] SPIWP:0xee
[13:48:01.882] mode:DIO, clock div:2
[13:48:01.882] load:0x4086c410,len:0xd8c
[13:48:01.882] load:0x4086e610,len:0x2e1c
[13:48:01.882] load:0x40875728,len:0x17d0
[13:48:01.882] entry 0x4086c410
[13:48:01.882] [0;32mI (24) boot: ESP-IDF 5.1.6 2nd stage bootloader[0m
[13:48:01.882] [0;32mI (24) boot: compile time Jun  8 2025 04:38:31[0m
[13:48:01.882] [0;32mI (25) boot: chip revision: v0.1[0m
[13:48:01.882] [0;32mI (27) boot.esp32c6: SPI Speed      : 80MHz[0m
[13:48:01.882] [0;32mI (32) boot.esp32c6: SPI Mode       : DIO[0m
[13:48:01.925] [0;32mI (36) boot.esp32c6: SPI Flash Size : 4MB[0m
[13:48:01.925] [0;32mI (41) boot: Enabling RNG early entropy source...[0m
[13:48:01.925] [0;32mI (47) boot: Partition Table:[0m
[13:48:01.925] [0;32mI (50) boot: ## Label            Usage          Type ST Offset   Length[0m
[13:48:01.925] [0;32mI (57) boot:  0 otadata          OTA data         01 00 00009000 00002000[0m
[13:48:01.925] [0;32mI (65) boot:  1 phy_init         RF data          01 01 0000b000 00001000[0m
[13:48:01.925] [0;32mI (72) boot:  2 app0             OTA app          00 10 00010000 001b0000[0m
[13:48:01.968] [0;32mI (80) boot:  3 app1             OTA app          00 11 001c0000 001b0000[0m
[13:48:01.968] [0;32mI (87) boot:  4 nvs              WiFi data        01 02 00370000 0006d000[0m
[13:48:01.968] [0;32mI (95) boot:  5 zb_storage       Unknown data     01 81 003dd000 00004000[0m
[13:48:01.968] [0;32mI (102) boot:  6 zb_fct           Unknown data     01 81 003e1000 00000400[0m
[13:48:01.969] [0;32mI (110) boot: End of partition table[0m
[13:48:01.969] [0;32mI (115) esp_image: segment 0: paddr=00010020 vaddr=42080020 size=126f0h ( 75504) map[0m
[13:48:02.008] [0;32mI (137) esp_image: segment 1: paddr=00022718 vaddr=40800000 size=0d900h ( 55552) load[0m
[13:48:02.008] [0;32mI (151) esp_image: segment 2: paddr=00030020 vaddr=42000020 size=75f3ch (483132) map[0m
[13:48:02.125] [0;32mI (246) esp_image: segment 3: paddr=000a5f64 vaddr=4080d900 size=01a64h (  6756) load[0m
[13:48:02.125] [0;32mI (249) esp_image: segment 4: paddr=000a79d0 vaddr=4080f370 size=020d8h (  8408) load[0m
[13:48:02.126] [0;32mI (254) esp_image: segment 5: paddr=000a9ab0 vaddr=50000000 size=00040h (    64) [0m
[13:48:02.126] [0;32mI (261) esp_image: segment 6: paddr=000a9af8 vaddr=50000040 size=00008h (     8) [0m
[13:48:02.126] [0;32mI (272) boot: Loaded app from partition at offset 0x10000[0m
[13:48:02.126] [0;32mI (275) boot: Disabling RNG early entropy source...[0m
[13:48:02.170] [0;32mI (291) cpu_start: Unicore app[0m
[13:48:02.170] [0;32mI (292) cpu_start: Pro cpu up.[0m
[13:48:02.170] [0;33mW (300) clk: esp_perip_clk_init() has not been implemented yet[0m
[13:48:02.170] [0;32mI (307) cpu_start: Pro cpu start user code[0m
[13:48:02.170] [0;32mI (307) cpu_start: cpu freq: 160000000 Hz[0m
[13:48:02.170] [0;32mI (307) cpu_start: Application information:[0m
[13:48:02.170] [0;32mI (310) cpu_start: Project name:     zigbeetest[0m
[13:48:02.170] [0;32mI (315) cpu_start: App version:      2025.5.2[0m
[13:48:02.170] [0;32mI (320) cpu_start: Compile time:     Jun  8 2025 04:36:57[0m
[13:48:02.213] [0;32mI (326) cpu_start: ELF file SHA256:  21f609d6002f8d5b...[0m
[13:48:02.213] [0;32mI (332) cpu_start: ESP-IDF:          5.1.6[0m
[13:48:02.213] [0;32mI (337) cpu_start: Min chip rev:     v0.0[0m
[13:48:02.213] [0;32mI (342) cpu_start: Max chip rev:     v0.99 [0m
[13:48:02.213] [0;32mI (347) cpu_start: Chip rev:         v0.1[0m
[13:48:02.213] [0;32mI (351) heap_init: Initializing. RAM available for dynamic allocation:[0m
[13:48:02.213] [0;32mI (359) heap_init: At 40815D80 len 00066890 (410 KiB): D/IRAM[0m
[13:48:02.213] [0;32mI (365) heap_init: At 4087C610 len 00002F54 (11 KiB): STACK/DIRAM[0m
[13:48:02.256] [0;32mI (372) heap_init: At 50000048 len 00003FA0 (15 KiB): RTCRAM[0m
[13:48:02.256] [0;32mI (379) spi_flash: detected chip: generic[0m
[13:48:02.256] [0;32mI (383) spi_flash: flash io: dio[0m
[13:48:02.256] [0;32mI (387) sleep: Configure to isolate all GPIO pins in sleep state[0m
[13:48:02.256] [0;32mI (394) sleep: Enable automatic switching of GPIO sleep configuration[0m
[13:48:02.256] [0;32mI (401) coexist: coex firmware version: 994b23e[0m
[13:48:02.256] [0;32mI (406) coexist: coexist rom version 5b8dcfa[0m
[13:48:02.282] [0;32mI (411) app_start: Starting scheduler on CPU0[0m
[13:48:02.282] [0;32mI (416) main_task: Started on CPU0[0m
[13:48:02.282] [0;32mI (420) main_task: Calling app_main()[0m
[13:48:02.362] [0;32m[I][logger:171]: Log initialized[0m
[13:48:02.405] [0;36m[D][zigbee:362]: Model: zigbeetest[0m
[13:48:02.405] [0;36m[D][zigbee:363]: Manufacturer: esphome[0m
[13:48:02.405] [0;36m[D][zigbee:364]: Date: 20250608[0m
[13:48:02.405] [0;36m[D][zigbee:365]: Area: [0m
[13:48:02.405] [0;32m[I][app:029]: Running through setup()...[0m
[13:48:02.405] [0;35m[C][i2c.idf:021]: Setting up I2C bus...[0m
[13:48:02.405] [0;32m[I][i2c.idf:260]: Performing I2C bus recovery[0m
[13:48:02.405] [0;36m[D][esp-idf:000]: [0;32mI (538) gpio: GPIO[23]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 1| Pulldown: 0| Intr:0 [0m[0m
[13:48:02.450] [0;36m[D][esp-idf:000]: [0;32mI (538) gpio: GPIO[22]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 1| Pulldown: 0| Intr:0 [0m[0m
[13:48:02.450] [0;35m[C][scd4x:030]: Setting up scd4x...[0m
[13:48:02.450] [0;36m[D][esp-idf:000]: [0;32mI (578) phy_init: phy_version 320,348a293,Sep  3 2024,16:33:12[0m[0m
[13:48:02.450] [0;36m[D][esp-idf:000]: [0;32mI (595) phy: libbtbb version: 04952fd, Sep  3 2024, 16:33:30[0m[0m
[13:48:02.450] [0;36m[D][esp-idf:000]: [0;31mE (597) ESP_ZIGBEE_CLUSTER: The requested update cluster ID (0x 405) is not found[0m[0m
[13:48:02.493] [0;36m[D][esp-idf:000]: [0;31mE (597) zigbee_helper: Ignore previous cluster not found error[0m[0m
[13:48:02.493] [0;36m[D][esp-idf:000]: [0;31mE (597) ESP_ZIGBEE_CLUSTER: The requested update cluster ID (0x 40d) is not found[0m[0m
[13:48:02.493] [0;36m[D][esp-idf:000]: [0;31mE (614) zigbee_helper: Ignore previous cluster not found error[0m[0m
[13:48:02.493] [0;36m[D][zigbee:496]: set reporting for cluster: 1029[0m
[13:48:02.493] [0;36m[D][zigbee:496]: set reporting for cluster: 1026[0m
[13:48:02.493] [0;36m[D][zigbee:496]: set reporting for cluster: 1037[0m
[13:48:02.536] [0;35m[C][deep_sleep:013]: Setting up Deep Sleep...[0m
[13:48:02.536] [0;32m[I][deep_sleep:018]: Scheduling Deep Sleep to start in 40000 ms[0m
[13:48:02.536] [0;32m[I][app:066]: setup() finished successfully![0m
[13:48:02.536] [0;36m[D][esp-idf:000][1;31m[main][0;36m: [0;32mI (525) main_task: Returned from app_main()[0m[0m
[13:48:02.536] [0;36m[D][zigbee:180][1;31m[Zigbee_main][0;36m: ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL[0m
[13:48:02.536] [0;36m[D][zigbee:118][1;31m[Zigbee_main][0;36m: Zigbee stack initialized[0m
[13:48:02.579] [0;32m[I][app:115]: ESPHome version 2025.5.2 compiled on Jun  8 2025, 04:41:41[0m
[13:48:02.579] [0;35m[C][logger:224]: Logger:[0m
[13:48:02.579] [0;35m[C][logger:225]:   Max Level: DEBUG[0m
[13:48:02.579] [0;35m[C][logger:226]:   Initial Level: DEBUG[0m
[13:48:02.579] [0;35m[C][logger:228]:   Log Baud Rate: 115200[0m
[13:48:02.579] [0;35m[C][logger:229]:   Hardware UART: UART0[0m
[13:48:02.579] [0;35m[C][logger:233]:   Task Log Buffer Size: 768[0m
[13:48:02.579] [0;35m[C][i2c.idf:083]: I2C Bus:[0m
[13:48:02.579] [0;35m[C][i2c.idf:084]:   SDA Pin: GPIO22[0m
[13:48:02.579] [0;35m[C][i2c.idf:085]:   SCL Pin: GPIO23[0m
[13:48:02.622] [0;35m[C][i2c.idf:086]:   Frequency: 50000 Hz[0m
[13:48:02.622] [0;35m[C][i2c.idf:092]:   Recovery: bus successfully recovered[0m
[13:48:02.622] [0;32m[I][i2c.idf:102]: Results from i2c bus scan:[0m
[13:48:02.622] [0;32m[I][i2c.idf:108]: Found i2c device at address 0x62[0m
[13:48:02.622] [0;35m[C][scd4x:094]: scd4x:[0m
[13:48:02.622] [0;35m[C][scd4x:095]:   Address: 0x62[0m
[13:48:02.622] [0;35m[C][scd4x:112]:   Automatic self calibration: ON[0m
[13:48:02.622] [0;35m[C][scd4x:121]:   Ambient pressure compensation disabled[0m
[13:48:02.622] [0;35m[C][scd4x:122]:   Altitude compensation: 0m[0m
[13:48:02.665] [0;35m[C][scd4x:127]:   Measurement mode: periodic (5s)[0m
[13:48:02.665] [0;35m[C][scd4x:139]:   Temperature offset: 4.00 °C[0m
[13:48:02.665] [0;35m[C][scd4x:140]:   Update Interval: 10.0s[0m
[13:48:02.665] [0;35m[C][scd4x:141]:   CO2 'CO2'[0m
[13:48:02.665] [0;35m[C][scd4x:141]:     Device Class: 'carbon_dioxide'[0m
[13:48:02.665] [0;35m[C][scd4x:141]:     State Class: 'measurement'[0m
[13:48:02.665] [0;35m[C][scd4x:141]:     Unit of Measurement: 'ppm'[0m
[13:48:02.665] [0;35m[C][scd4x:141]:     Accuracy Decimals: 0[0m
[13:48:02.665] [0;35m[C][scd4x:141]:     Icon: 'mdi:molecule-co2'[0m
[13:48:02.708] [0;35m[C][scd4x:142]:   Temperature 'Temperature'[0m
[13:48:02.708] [0;35m[C][scd4x:142]:     Device Class: 'temperature'[0m
[13:48:02.708] [0;35m[C][scd4x:142]:     State Class: 'measurement'[0m
[13:48:02.708] [0;35m[C][scd4x:142]:     Unit of Measurement: '°C'[0m
[13:48:02.708] [0;35m[C][scd4x:142]:     Accuracy Decimals: 2[0m
[13:48:02.708] [0;35m[C][scd4x:142]:     Icon: 'mdi:thermometer'[0m
[13:48:02.708] [0;35m[C][scd4x:143]:   Humidity 'Humidity'[0m
[13:48:02.708] [0;35m[C][scd4x:143]:     Device Class: 'humidity'[0m
[13:48:02.708] [0;35m[C][scd4x:143]:     State Class: 'measurement'[0m
[13:48:02.745] [0;35m[C][scd4x:143]:     Unit of Measurement: '%'[0m
[13:48:02.745] [0;35m[C][scd4x:143]:     Accuracy Decimals: 2[0m
[13:48:02.745] [0;35m[C][scd4x:143]:     Icon: 'mdi:water-percent'[0m
[13:48:02.745] [0;35m[C][zigbee:526]: ZigBee:[0m
[13:48:02.745] [0;35m[C][zigbee:528]: Endpoint: 1, 770[0m
[13:48:02.745] [0;35m[C][deep_sleep:026]: Setting up Deep Sleep...[0m
[13:48:02.771] [0;35m[C][deep_sleep:029]:   Sleep Duration: 20000 ms[0m
[13:48:02.771] [0;35m[C][deep_sleep:032]:   Run Duration: 40000 ms[0m
[13:48:03.940] [0;36m[D][scd4x:049]: Serial number 131.34.139[0m
[13:48:03.940] [0;36m[D][scd4x:088]: Sensor initialized[0m
[13:48:04.505] [0;33m[W][component:167]: Component scd4x.sensor set Warning flag: unspecified[0m
[13:48:04.840] [0;36m[D][zigbee:205][1;31m[Zigbee_main][0;36m: Binding table record: src_endp 1, dst_endp 1, cluster_id 0x0405, dst_addr_mode 3[0m
[13:48:04.883] [0;36m[D][zigbee:216][1;31m[Zigbee_main][0;36m: Device bound to EP 1 -> device endpoint: 1, short addr: 0x0000, ieee addr: E0:79:8D:FF:FE:9E
[13:48:04.883] [0;36m[D][zigbee:205][1;31m[Zigbee_main][0;36m: Binding table record: src_endp 1, dst_endp 1, cluster_id 0x0402, dst_addr_mode 3[0m
[13:48:04.883] [0;36m[D][zigbee:236][1;31m[Zigbee_main][0;36m: Filling bounded devices finished[0m
[13:48:04.883] [0;36m[D][zigbee:126][1;31m[Zigbee_main][0;36m: Device started up in non factory-reset mode[0m
[13:48:04.926] [0;36m[D][zigbee:132][1;31m[Zigbee_main][0;36m: Device rebooted[0m
[13:48:04.926] [0;36m[D][zigbee:245][1;31m[Zigbee_main][0;36m: Requesting binding table for address 0x614f[0m
[13:48:04.926] [0;36m[D][zigbee:191][1;31m[Zigbee_main][0;36m: Binding table callback for address 0x614f with status 0[0m
[13:48:04.926] [0;36m[D][zigbee:194][1;31m[Zigbee_main][0;36m: Binding table info: total 3, index 0, count 3[0m
[13:48:04.926] [0;36m[D][zigbee:205][1;31m[Zigbee_main][0;36m: Binding table record: src_endp 1, dst_endp 1, cluster_id 0x040d, dst_addr_mode 3[0m
[13:48:04.969] [0;36m[D][zigbee:216][1;31m[Zigbee_main][0;36m: Device bound to EP 1 -> device endpoint: 1, short addr: 0x0000, ieee addr: E0:79:8D:FF:FE:9E:8B:29[0m
[13:48:04.969] [0;36m[D][zigbee:216][1;31m[Zigbee_main][0;36m: Device bound to EP 1 -> device endpoint: 1, short addr: 0x0000, ieee addr: E0:79:8D:FF:FE:9E:8B:29[0m
[13:48:04.969] [0;33m[W][component:257]: Component logger took a long time for an operation (92 ms).[0m
[13:48:04.990] [0;33m[W][component:258]: Components should block for at most 30 ms.[0m
[13:48:14.543] [0;36m[D][sensor:093]: 'CO2': Sending state 578.00000 ppm with 0 decimals of accuracy[0m
[13:48:14.543] [0;36m[D][sensor:093]: 'Temperature': Sending state 28.79341 °C with 2 decimals of accuracy[0m
[13:48:14.543] [0;36m[D][sensor:093]: 'Humidity': Sending state 47.38464 % with 2 decimals of accuracy[0m
[13:48:14.543] [0;33m[W][component:182]: Component scd4x.sensor cleared Warning flag[0m
[13:48:14.543] [0;36m[D][zigbee:018]: Attribute set![0m
[13:48:14.543] [0;36m[D][zigbee:018]: Attribute set![0m
[13:48:14.543] [0;36m[D][zigbee:018]: Attribute set![0m
[13:48:24.537] [0;36m[D][sensor:093]: 'CO2': Sending state 578.00000 ppm with 0 decimals of accuracy[0m
[13:48:24.537] [0;36m[D][sensor:093]: 'Temperature': Sending state 28.28339 °C with 2 decimals of accuracy[0m
[13:48:24.537] [0;36m[D][sensor:093]: 'Humidity': Sending state 48.71674 % with 2 decimals of accuracy[0m
[13:48:24.537] [0;36m[D][zigbee:018]: Attribute set![0m
[13:48:24.537] [0;36m[D][zigbee:018]: Attribute set![0m
[13:48:24.538] [0;36m[D][zigbee:018]: Attribute set![0m
[13:48:34.535] [0;36m[D][sensor:093]: 'CO2': Sending state 587.00000 ppm with 0 decimals of accuracy[0m
[13:48:34.536] [0;36m[D][sensor:093]: 'Temperature': Sending state 27.81075 °C with 2 decimals of accuracy[0m
[13:48:34.536] [0;36m[D][sensor:093]: 'Humidity': Sending state 49.97864 % with 2 decimals of accuracy[0m
[13:48:34.536] [0;36m[D][zigbee:018]: Attribute set![0m
[13:48:34.536] [0;36m[D][zigbee:018]: Attribute set![0m
[13:48:34.536] [0;36m[D][zigbee:018]: Attribute set![0m
[13:48:42.487] [0;32m[I][deep_sleep:060]: Beginning Deep Sleep[0mESP-ROM:esp32c6-20220919
[13:49:02.199] Build:Sep 19 2022
[13:49:02.244] rst:0x5 (SLEEP_WAKEUP),boot:0x1f (SPI_FAST_FLASH_BOOT)
[13:49:02.244] SPIWP:0xee
[13:49:02.244] mode:DIO, clock div:2
[13:49:02.244] load:0x4086c410,len:0xd8c
[13:49:02.244] load:0x4086e610,len:0x2e1c
[13:49:02.244] load:0x40875728,len:0x17d0
[13:49:02.244] entry 0x4086c410
[13:49:02.244] [0;32mI (24) boot: ESP-IDF 5.1.6 2nd stage bootloader[0m
[13:49:02.244] [0;32mI (24) boot: compile time Jun  8 2025 04:38:31[0m
[13:49:02.244] [0;32mI (25) boot: chip revision: v0.1[0m
[13:49:02.244] [0;32mI (27) boot.esp32c6: SPI Speed      : 80MHz[0m
[13:49:02.244] [0;32mI (32) boot.esp32c6: SPI Mode       : DIO[0m
[13:49:02.244] [0;32mI (36) boot.esp32c6: SPI Flash Size : 4MB[0m
[13:49:02.287] [0;32mI (41) boot: Enabling RNG early entropy source...[0m
[13:49:02.287] [0;32mI (47) boot: Partition Table:[0m
[13:49:02.287] [0;32mI (50) boot: ## Label            Usage          Type ST Offset   Length[0m
[13:49:02.287] [0;32mI (57) boot:  0 otadata          OTA data         01 00 00009000 00002000[0m
[13:49:02.287] [0;32mI (65) boot:  1 phy_init         RF data          01 01 0000b000 00001000[0m
[13:49:02.287] [0;32mI (72) boot:  2 app0             OTA app          00 10 00010000 001b0000[0m
[13:49:02.287] [0;32mI (80) boot:  3 app1             OTA app          00 11 001c0000 001b0000[0m
[13:49:02.335] [0;32mI (87) boot:  4 nvs              WiFi data        01 02 00370000 0006d000[0m
[13:49:02.335] [0;32mI (95) boot:  5 zb_storage       Unknown data     01 81 003dd000 00004000[0m
[13:49:02.335] [0;32mI (102) boot:  6 zb_fct           Unknown data     01 81 003e1000 00000400[0m
[13:49:02.335] [0;32mI (110) boot: End of partition table[0m
[13:49:02.335] [0;32mI (115) esp_image: segment 0: paddr=00010020 vaddr=42080020 size=126f0h ( 75504) map[0m
[13:49:02.335] [0;32mI (137) esp_image: segment 1: paddr=00022718 vaddr=40800000 size=0d900h ( 55552) load[0m
[13:49:02.365] [0;32mI (151) esp_image: segment 2: paddr=00030020 vaddr=42000020 size=75f3ch (483132) map[0m
[13:49:02.445] [0;32mI (246) esp_image: segment 3: paddr=000a5f64 vaddr=4080d900 size=01a64h (  6756) load[0m
[13:49:02.488] [0;32mI (249) esp_image: segment 4: paddr=000a79d0 vaddr=4080f370 size=020d8h (  8408) load[0m
[13:49:02.488] [0;32mI (254) esp_image: segment 5: paddr=000a9ab0 vaddr=50000000 size=00040h (    64) [0m
[13:49:02.488] [0;32mI (261) esp_image: segment 6: paddr=000a9af8 vaddr=50000040 size=00008h (     8) [0m
[13:49:02.488] [0;32mI (272) boot: Loaded app from partition at offset 0x10000[0m
[13:49:02.488] [0;32mI (275) boot: Disabling RNG early entropy source...[0m
[13:49:02.488] [0;32mI (291) cpu_start: Unicore app[0m
[13:49:02.532] [0;32mI (292) cpu_start: Pro cpu up.[0m
[13:49:02.532] [0;33mW (300) clk: esp_perip_clk_init() has not been implemented yet[0m
[13:49:02.533] [0;32mI (307) cpu_start: Pro cpu start user code[0m
[13:49:02.533] [0;32mI (307) cpu_start: cpu freq: 160000000 Hz[0m
[13:49:02.533] [0;32mI (307) cpu_start: Application information:[0m
[13:49:02.533] [0;32mI (310) cpu_start: Project name:     zigbeetest[0m
[13:49:02.533] [0;32mI (315) cpu_start: App version:      2025.5.2[0m
[13:49:02.533] [0;32mI (320) cpu_start: Compile time:     Jun  8 2025 04:36:57[0m
[13:49:02.576] [0;32mI (326) cpu_start: ELF file SHA256:  21f609d6002f8d5b...[0m
[13:49:02.576] [0;32mI (332) cpu_start: ESP-IDF:          5.1.6[0m
[13:49:02.576] [0;32mI (337) cpu_start: Min chip rev:     v0.0[0m
[13:49:02.576] [0;32mI (342) cpu_start: Max chip rev:     v0.99 [0m
[13:49:02.576] [0;32mI (347) cpu_start: Chip rev:         v0.1[0m
[13:49:02.576] [0;32mI (351) heap_init: Initializing. RAM available for dynamic allocation:[0m
[13:49:02.576] [0;32mI (359) heap_init: At 40815D80 len 00066890 (410 KiB): D/IRAM[0m
[13:49:02.576] [0;32mI (365) heap_init: At 4087C610 len 00002F54 (11 KiB): STACK/DIRAM[0m
[13:49:02.619] [0;32mI (372) heap_init: At 50000048 len 00003FA0 (15 KiB): RTCRAM[0m
[13:49:02.619] [0;32mI (379) spi_flash: detected chip: generic[0m
[13:49:02.619] [0;32mI (383) spi_flash: flash io: dio[0m
[13:49:02.619] [0;32mI (387) sleep: Configure to isolate all GPIO pins in sleep state[0m
[13:49:02.619] [0;32mI (394) sleep: Enable automatic switching of GPIO sleep configuration[0m
[13:49:02.619] [0;32mI (401) coexist: coex firmware version: 994b23e[0m
[13:49:02.619] [0;32mI (406) coexist: coexist rom version 5b8dcfa[0m
[13:49:02.619] [0;32mI (411) app_start: Starting scheduler on CPU0[0m
[13:49:02.645] [0;32mI (416) main_task: Started on CPU0[0m
[13:49:02.645] [0;32mI (420) main_task: Calling app_main()[0m
[13:49:02.725] [0;32m[I][logger:171]: Log initialized[0m
[13:49:02.725] [0;36m[D][zigbee:362]: Model: zigbeetest[0m
[13:49:02.768] [0;36m[D][zigbee:363]: Manufacturer: esphome[0m
[13:49:02.768] [0;36m[D][zigbee:364]: Date: 20250608[0m
[13:49:02.768] [0;36m[D][zigbee:365]: Area: [0m
[13:49:02.768] [0;32m[I][app:029]: Running through setup()...[0m
[13:49:02.768] [0;35m[C][i2c.idf:021]: Setting up I2C bus...[0m
[13:49:02.768] [0;32m[I][i2c.idf:260]: Performing I2C bus recovery[0m
[13:49:02.768] [0;36m[D][esp-idf:000]: [0;32mI (538) gpio: GPIO[23]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 1| Pulldown: 0| Intr:0 [0m[0m
[13:49:02.768] [0;36m[D][esp-idf:000]: [0;32mI (538) gpio: GPIO[22]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 1| Pulldown: 0| Intr:0 [0m[0m
[13:49:02.813] [0;35m[C][scd4x:030]: Setting up scd4x...[0m
[13:49:02.813] [0;36m[D][esp-idf:000]: [0;32mI (578) phy_init: phy_version 320,348a293,Sep  3 2024,16:33:12[0m[0m
[13:49:02.813] [0;36m[D][esp-idf:000]: [0;32mI (596) phy: libbtbb version: 04952fd, Sep  3 2024, 16:33:30[0m[0m
[13:49:02.813] [0;36m[D][esp-idf:000]: [0;31mE (597) ESP_ZIGBEE_CLUSTER: The requested update cluster ID (0x 405) is not found[0m[0m
[13:49:02.813] [0;36m[D][esp-idf:000]: [0;31mE (597) zigbee_helper: Ignore previous cluster not found error[0m[0m
[13:49:02.856] [0;36m[D][esp-idf:000]: [0;31mE (597) ESP_ZIGBEE_CLUSTER: The requested update cluster ID (0x 40d) is not found[0m[0m
[13:49:02.856] [0;36m[D][esp-idf:000]: [0;31mE (614) zigbee_helper: Ignore previous cluster not found error[0m[0m
[13:49:02.856] [0;36m[D][zigbee:496]: set reporting for cluster: 1029[0m
[13:49:02.856] [0;36m[D][zigbee:496]: set reporting for cluster: 1026[0m
[13:49:02.856] [0;36m[D][zigbee:496]: set reporting for cluster: 1037[0m
[13:49:02.856] [0;35m[C][deep_sleep:013]: Setting up Deep Sleep...[0m
[13:49:02.899] [0;32m[I][deep_sleep:018]: Scheduling Deep Sleep to start in 40000 ms[0m
[13:49:02.899] [0;32m[I][app:066]: setup() finished successfully![0m
[13:49:02.899] [0;36m[D][esp-idf:000][1;31m[main][0;36m: [0;32mI (525) main_task: Returned from app_main()[0m[0m
[13:49:02.899] [0;36m[D][zigbee:180][1;31m[Zigbee_main][0;36m: ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL[0m
[13:49:02.899] [0;36m[D][zigbee:118][1;31m[Zigbee_main][0;36m: Zigbee stack initialized[0m
[13:49:02.899] [0;32m[I][app:115]: ESPHome version 2025.5.2 compiled on Jun  8 2025, 04:41:41[0m
[13:49:02.942] [0;35m[C][logger:224]: Logger:[0m
[13:49:02.942] [0;35m[C][logger:225]:   Max Level: DEBUG[0m
[13:49:02.942] [0;35m[C][logger:226]:   Initial Level: DEBUG[0m
[13:49:02.942] [0;35m[C][logger:228]:   Log Baud Rate: 115200[0m
[13:49:02.942] [0;35m[C][logger:229]:   Hardware UART: UART0[0m
[13:49:02.942] [0;35m[C][logger:233]:   Task Log Buffer Size: 768[0m
[13:49:02.942] [0;35m[C][i2c.idf:083]: I2C Bus:[0m
[13:49:02.942] [0;35m[C][i2c.idf:084]:   SDA Pin: GPIO22[0m
[13:49:02.942] [0;35m[C][i2c.idf:085]:   SCL Pin: GPIO23[0m
[13:49:02.942] [0;35m[C][i2c.idf:086]:   Frequency: 50000 Hz[0m
[13:49:02.985] [0;35m[C][i2c.idf:092]:   Recovery: bus successfully recovered[0m
[13:49:02.985] [0;32m[I][i2c.idf:102]: Results from i2c bus scan:[0m
[13:49:02.985] [0;32m[I][i2c.idf:108]: Found i2c device at address 0x62[0m
[13:49:02.985] [0;35m[C][scd4x:094]: scd4x:[0m
[13:49:02.985] [0;35m[C][scd4x:095]:   Address: 0x62[0m
[13:49:02.985] [0;35m[C][scd4x:112]:   Automatic self calibration: ON[0m
[13:49:02.985] [0;35m[C][scd4x:121]:   Ambient pressure compensation disabled[0m
[13:49:02.985] [0;35m[C][scd4x:122]:   Altitude compensation: 0m[0m
[13:49:02.985] [0;35m[C][scd4x:127]:   Measurement mode: periodic (5s)[0m
[13:49:03.028] [0;35m[C][scd4x:139]:   Temperature offset: 4.00 °C[0m
[13:49:03.028] [0;35m[C][scd4x:140]:   Update Interval: 10.0s[0m
[13:49:03.028] [0;35m[C][scd4x:141]:   CO2 'CO2'[0m
[13:49:03.028] [0;35m[C][scd4x:141]:     Device Class: 'carbon_dioxide'[0m
[13:49:03.028] [0;35m[C][scd4x:141]:     State Class: 'measurement'[0m
[13:49:03.028] [0;35m[C][scd4x:141]:     Unit of Measurement: 'ppm'[0m
[13:49:03.028] [0;35m[C][scd4x:141]:     Accuracy Decimals: 0[0m
[13:49:03.028] [0;35m[C][scd4x:141]:     Icon: 'mdi:molecule-co2'[0m
[13:49:03.028] [0;35m[C][scd4x:142]:   Temperature 'Temperature'[0m
[13:49:03.071] [0;35m[C][scd4x:142]:     Device Class: 'temperature'[0m
[13:49:03.071] [0;35m[C][scd4x:142]:     State Class: 'measurement'[0m
[13:49:03.071] [0;35m[C][scd4x:142]:     Unit of Measurement: '°C'[0m
[13:49:03.071] [0;35m[C][scd4x:142]:     Accuracy Decimals: 2[0m
[13:49:03.071] [0;35m[C][scd4x:142]:     Icon: 'mdi:thermometer'[0m
[13:49:03.071] [0;35m[C][scd4x:143]:   Humidity 'Humidity'[0m
[13:49:03.071] [0;35m[C][scd4x:143]:     Device Class: 'humidity'[0m
[13:49:03.071] [0;35m[C][scd4x:143]:     State Class: 'measurement'[0m
[13:49:03.071] [0;35m[C][scd4x:143]:     Unit of Measurement: '%'[0m
[13:49:03.103] [0;35m[C][scd4x:143]:     Accuracy Decimals: 2[0m
[13:49:03.103] [0;35m[C][scd4x:143]:     Icon: 'mdi:water-percent'[0m
[13:49:03.103] [0;35m[C][zigbee:526]: ZigBee:[0m
[13:49:03.103] [0;35m[C][zigbee:528]: Endpoint: 1, 770[0m
[13:49:03.103] [0;35m[C][deep_sleep:026]: Setting up Deep Sleep...[0m
[13:49:03.129] [0;35m[C][deep_sleep:029]:   Sleep Duration: 20000 ms[0m
[13:49:03.129] [0;35m[C][deep_sleep:032]:   Run Duration: 40000 ms[0m
[13:49:04.300] [0;36m[D][scd4x:049]: Serial number 131.34.139[0m
[13:49:04.300] [0;36m[D][scd4x:088]: Sensor initialized[0m
[13:49:05.238] [0;36m[D][zigbee:205][1;31m[Zigbee_main][0;36m: Binding table record: src_endp 1, dst_endp 1, cluster_id 0x0405, dst_addr_mode 3[0m
[13:49:05.238] [0;36m[D][zigbee:216][1;31m[Zigbee_main][0;36m: Device bound to EP 1 -> device endpoint: 1, short addr: 0x0000, ieee addr: E0:79:8D:FF:FE:9E
[13:49:05.238] [0;36m[D][zigbee:205][1;31m[Zigbee_main][0;36m: Binding table record: src_endp 1, dst_endp 1, cluster_id 0x0402, dst_addr_mode 3[0m
[13:49:05.238] [0;36m[D][zigbee:216][1;31m[Zigbee_main][0;36m: Device bound to EP 1 -> device endpoint: 1, short addr: 0x0000, ieee addr: E0:79:8D:FF:FE:9E
[13:49:05.281] [0;36m[D][zigbee:126][1;31m[Zigbee_main][0;36m: Device started up in non factory-reset mode[0m
[13:49:05.281] [0;36m[D][zigbee:132][1;31m[Zigbee_main][0;36m: Device rebooted[0m
[13:49:05.281] [0;36m[D][zigbee:245][1;31m[Zigbee_main][0;36m: Requesting binding table for address 0x614f[0m
[13:49:05.281] [0;36m[D][zigbee:191][1;31m[Zigbee_main][0;36m: Binding table callback for address 0x614f with status 0[0m
[13:49:05.281] [0;36m[D][zigbee:194][1;31m[Zigbee_main][0;36m: Binding table info: total 3, index 0, count 3[0m
[13:49:05.324] [0;36m[D][zigbee:205][1;31m[Zigbee_main][0;36m: Binding table record: src_endp 1, dst_endp 1, cluster_id 0x040d, dst_addr_mode 3[0m
[13:49:05.324] [0;36m[D][zigbee:216][1;31m[Zigbee_main][0;36m: Device bound to EP 1 -> device endpoint: 1, short addr: 0x0000, ieee addr: E0:79:8D:FF:FE:9E:8B:29[0m
[13:49:05.324] [0;36m[D][zigbee:236][1;31m[Zigbee_main][0;36m: Filling bounded devices finished[0m
[13:49:05.324] [0;33m[W][component:257]: Component logger took a long time for an operation (91 ms).[0m
[13:49:05.345] [0;33m[W][component:258]: Components should block for at most 30 ms.[0m
[13:49:05.647] [0;33m[W][component:167]: Component scd4x.sensor set Warning flag: unspecified[0m
[13:49:15.702] [0;36m[D][sensor:093]: 'CO2': Sending state 1202.00000 ppm with 0 decimals of accuracy[0m
[13:49:15.702] [0;36m[D][sensor:093]: 'Temperature': Sending state 28.69728 °C with 2 decimals of accuracy[0m
[13:49:15.703] [0;36m[D][sensor:093]: 'Humidity': Sending state 48.34290 % with 2 decimals of accuracy[0m
[13:49:15.703] [0;33m[W][component:182]: Component scd4x.sensor cleared Warning flag[0m
[13:49:15.703] [0;36m[D][zigbee:018]: Attribute set![0m
[13:49:15.703] [0;36m[D][zigbee:018]: Attribute set![0m
[13:49:15.703] [0;36m[D][zigbee:018]: Attribute set![0m
[13:49:25.702] [0;36m[D][sensor:093]: 'CO2': Sending state 1099.00000 ppm with 0 decimals of accuracy[0m
[13:49:25.702] [0;36m[D][sensor:093]: 'Temperature': Sending state 28.21396 °C with 2 decimals of accuracy[0m
[13:49:25.702] [0;36m[D][sensor:093]: 'Humidity': Sending state 49.63531 % with 2 decimals of accuracy[0m
[13:49:25.702] [0;36m[D][zigbee:018]: Attribute set![0m
[13:49:25.702] [0;36m[D][zigbee:018]: Attribute set![0m
[13:49:25.702] [0;36m[D][zigbee:018]: Attribute set![0m
[13:49:35.698] [0;36m[D][sensor:093]: 'CO2': Sending state 1014.00000 ppm with 0 decimals of accuracy[0m
[13:49:35.698] [0;36m[D][sensor:093]: 'Temperature': Sending state 27.78137 °C with 2 decimals of accuracy[0m
[13:49:35.698] [0;36m[D][sensor:093]: 'Humidity': Sending state 50.76904 % with 2 decimals of accuracy[0m
[13:49:35.698] [0;36m[D][zigbee:018]: Attribute set![0m
[13:49:35.698] [0;36m[D][zigbee:018]: Attribute set![0m
[13:49:35.698] [0;36m[D][zigbee:018]: Attribute set![0m
[13:49:42.853] [0;32m[I][deep_sleep:060]: Beginning Deep Sleep[0mESP-ROM:esp32c6-20220919
[13:50:02.618] Build:Sep 19 2022
[13:50:02.618] rst:0x5 (SLEEP_WAKEUP),boot:0x1f (SPI_FAST_FLASH_BOOT)
[13:50:02.618] SPIWP:0xee
[13:50:02.618] mode:DIO, clock div:2
[13:50:02.618] load:0x4086c410,len:0xd8c
[13:50:02.618] load:0x4086e610,len:0x2e1c
[13:50:02.618] load:0x40875728,len:0x17d0
[13:50:02.618] entry 0x4086c410
[13:50:02.618] [0;32mI (24) boot: ESP-IDF 5.1.6 2nd stage bootloader[0m
[13:50:02.618] [0;32mI (24) boot: compile time Jun  8 2025 04:38:31[0m
[13:50:02.618] [0;32mI (25) boot: chip revision: v0.1[0m
[13:50:02.618] [0;32mI (27) boot.esp32c6: SPI Speed      : 80MHz[0m
[13:50:02.618] [0;32mI (32) boot.esp32c6: SPI Mode       : DIO[0m
[13:50:02.661] [0;32mI (36) boot.esp32c6: SPI Flash Size : 4MB[0m
[13:50:02.661] [0;32mI (41) boot: Enabling RNG early entropy source...[0m
[13:50:02.661] [0;32mI (47) boot: Partition Table:[0m
[13:50:02.661] [0;32mI (50) boot: ## Label            Usage          Type ST Offset   Length[0m
[13:50:02.661] [0;32mI (57) boot:  0 otadata          OTA data         01 00 00009000 00002000[0m
[13:50:02.661] [0;32mI (65) boot:  1 phy_init         RF data          01 01 0000b000 00001000[0m
[13:50:02.661] [0;32mI (72) boot:  2 app0             OTA app          00 10 00010000 001b0000[0m
[13:50:02.704] [0;32mI (80) boot:  3 app1             OTA app          00 11 001c0000 001b0000[0m
[13:50:02.704] [0;32mI (87) boot:  4 nvs              WiFi data        01 02 00370000 0006d000[0m
[13:50:02.704] [0;32mI (95) boot:  5 zb_storage       Unknown data     01 81 003dd000 00004000[0m
[13:50:02.704] [0;32mI (102) boot:  6 zb_fct           Unknown data     01 81 003e1000 00000400[0m
[13:50:02.704] [0;32mI (114) boot: End of partition table[0m
[13:50:02.704] [0;32mI (115) esp_image: segment 0: paddr=00010020 vaddr=42080020 size=126f0h ( 75504) map[0m
[13:50:02.744] [0;32mI (137) esp_image: segment 1: paddr=00022718 vaddr=40800000 size=0d900h ( 55552) load[0m
[13:50:02.744] [0;32mI (151) esp_image: segment 2: paddr=00030020 vaddr=42000020 size=75f3ch (483132) map[0m
[13:50:02.861] [0;32mI (246) esp_image: segment 3: paddr=000a5f64 vaddr=4080d900 size=01a64h (  6756) load[0m
[13:50:02.861] [0;32mI (249) esp_image: segment 4: paddr=000a79d0 vaddr=4080f370 size=020d8h (  8408) load[0m
[13:50:02.861] [0;32mI (254) esp_image: segment 5: paddr=000a9ab0 vaddr=50000000 size=00040h (    64) [0m
[13:50:02.862] [0;32mI (261) esp_image: segment 6: paddr=000a9af8 vaddr=50000040 size=00008h (     8) [0m
[13:50:02.862] [0;32mI (272) boot: Loaded app from partition at offset 0x10000[0m
[13:50:02.862] [0;32mI (275) boot: Disabling RNG early entropy source...[0m
[13:50:02.906] [0;32mI (291) cpu_start: Unicore app[0m
[13:50:02.906] [0;32mI (292) cpu_start: Pro cpu up.[0m
[13:50:02.906] [0;33mW (300) clk: esp_perip_clk_init() has not been implemented yet[0m
[13:50:02.906] [0;32mI (307) cpu_start: Pro cpu start user code[0m
[13:50:02.906] [0;32mI (307) cpu_start: cpu freq: 160000000 Hz[0m
[13:50:02.906] [0;32mI (307) cpu_start: Application information:[0m
[13:50:02.906] [0;32mI (310) cpu_start: Project name:     zigbeetest[0m
[13:50:02.906] [0;32mI (315) cpu_start: App version:      2025.5.2[0m
[13:50:02.906] [0;32mI (320) cpu_start: Compile time:     Jun  8 2025 04:36:57[0m
[13:50:02.949] [0;32mI (326) cpu_start: ELF file SHA256:  21f609d6002f8d5b...[0m
[13:50:02.949] [0;32mI (332) cpu_start: ESP-IDF:          5.1.6[0m
[13:50:02.949] [0;32mI (337) cpu_start: Min chip rev:     v0.0[0m
[13:50:02.949] [0;32mI (342) cpu_start: Max chip rev:     v0.99 [0m
[13:50:02.949] [0;32mI (347) cpu_start: Chip rev:         v0.1[0m
[13:50:02.949] [0;32mI (351) heap_init: Initializing. RAM available for dynamic allocation:[0m
[13:50:02.949] [0;32mI (359) heap_init: At 40815D80 len 00066890 (410 KiB): D/IRAM[0m
[13:50:02.949] [0;32mI (365) heap_init: At 4087C610 len 00002F54 (11 KiB): STACK/DIRAM[0m
[13:50:02.992] [0;32mI (372) heap_init: At 50000048 len 00003FA0 (15 KiB): RTCRAM[0m
[13:50:02.992] [0;32mI (379) spi_flash: detected chip: generic[0m
[13:50:02.992] [0;32mI (383) spi_flash: flash io: dio[0m
[13:50:02.992] [0;32mI (387) sleep: Configure to isolate all GPIO pins in sleep state[0m
[13:50:02.992] [0;32mI (394) sleep: Enable automatic switching of GPIO sleep configuration[0m
[13:50:02.992] [0;32mI (401) coexist: coex firmware version: 994b23e[0m
[13:50:02.992] [0;32mI (406) coexist: coexist rom version 5b8dcfa[0m
[13:50:03.018] [0;32mI (411) app_start: Starting scheduler on CPU0[0m
[13:50:03.018] [0;32mI (416) main_task: Started on CPU0[0m
[13:50:03.018] [0;32mI (420) main_task: Calling app_main()[0m
[13:50:03.098] [0;32m[I][logger:171]: Log initialized[0m
[13:50:03.141] [0;36m[D][zigbee:362]: Model: zigbeetest[0m
[13:50:03.141] [0;36m[D][zigbee:363]: Manufacturer: esphome[0m
[13:50:03.141] [0;36m[D][zigbee:364]: Date: 20250608[0m
[13:50:03.141] [0;36m[D][zigbee:365]: Area: [0m
[13:50:03.141] [0;32m[I][app:029]: Running through setup()...[0m
[13:50:03.141] [0;35m[C][i2c.idf:021]: Setting up I2C bus...[0m
[13:50:03.141] [0;32m[I][i2c.idf:260]: Performing I2C bus recovery[0m
[13:50:03.141] [0;36m[D][esp-idf:000]: [0;32mI (538) gpio: GPIO[23]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 1| Pulldown: 0| Intr:0 [0m[0m
[13:50:03.186] [0;36m[D][esp-idf:000]: [0;32mI (538) gpio: GPIO[22]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 1| Pulldown: 0| Intr:0 [0m[0m
[13:50:03.186] [0;35m[C][scd4x:030]: Setting up scd4x...[0m
[13:50:03.186] [0;36m[D][esp-idf:000]: [0;32mI (578) phy_init: phy_version 320,348a293,Sep  3 2024,16:33:12[0m[0m
[13:50:03.186] [0;36m[D][esp-idf:000]: [0;32mI (595) phy: libbtbb version: 04952fd, Sep  3 2024, 16:33:30[0m[0m
[13:50:03.186] [0;36m[D][esp-idf:000]: [0;31mE (597) ESP_ZIGBEE_CLUSTER: The requested update cluster ID (0x 405) is not found[0m[0m
[13:50:03.229] [0;36m[D][esp-idf:000]: [0;31mE (597) zigbee_helper: Ignore previous cluster not found error[0m[0m
[13:50:03.229] [0;36m[D][esp-idf:000]: [0;31mE (597) ESP_ZIGBEE_CLUSTER: The requested update cluster ID (0x 40d) is not found[0m[0m
[13:50:03.229] [0;36m[D][esp-idf:000]: [0;31mE (614) zigbee_helper: Ignore previous cluster not found error[0m[0m
[13:50:03.229] [0;36m[D][zigbee:496]: set reporting for cluster: 1029[0m
[13:50:03.229] [0;36m[D][zigbee:496]: set reporting for cluster: 1026[0m
[13:50:03.229] [0;36m[D][zigbee:496]: set reporting for cluster: 1037[0m
[13:50:03.272] [0;35m[C][deep_sleep:013]: Setting up Deep Sleep...[0m
[13:50:03.272] [0;32m[I][deep_sleep:018]: Scheduling Deep Sleep to start in 40000 ms[0m
[13:50:03.272] [0;32m[I][app:066]: setup() finished successfully![0m
[13:50:03.272] [0;36m[D][esp-idf:000][1;31m[main][0;36m: [0;32mI (525) main_task: Returned from app_main()[0m[0m
[13:50:03.272] [0;36m[D][zigbee:180][1;31m[Zigbee_main][0;36m: ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL[0m
[13:50:03.272] [0;36m[D][zigbee:118][1;31m[Zigbee_main][0;36m: Zigbee stack initialized[0m
[13:50:03.315] [0;32m[I][app:115]: ESPHome version 2025.5.2 compiled on Jun  8 2025, 04:41:41[0m
[13:50:03.315] [0;35m[C][logger:224]: Logger:[0m
[13:50:03.315] [0;35m[C][logger:225]:   Max Level: DEBUG[0m
[13:50:03.315] [0;35m[C][logger:226]:   Initial Level: DEBUG[0m
[13:50:03.315] [0;35m[C][logger:228]:   Log Baud Rate: 115200[0m
[13:50:03.315] [0;35m[C][logger:229]:   Hardware UART: UART0[0m
[13:50:03.315] [0;35m[C][logger:233]:   Task Log Buffer Size: 768[0m
[13:50:03.315] [0;35m[C][i2c.idf:083]: I2C Bus:[0m
[13:50:03.315] [0;35m[C][i2c.idf:084]:   SDA Pin: GPIO22[0m
[13:50:03.315] [0;35m[C][i2c.idf:085]:   SCL Pin: GPIO23[0m
[13:50:03.358] [0;35m[C][i2c.idf:086]:   Frequency: 50000 Hz[0m
[13:50:03.358] [0;35m[C][i2c.idf:092]:   Recovery: bus successfully recovered[0m
[13:50:03.358] [0;32m[I][i2c.idf:102]: Results from i2c bus scan:[0m
[13:50:03.358] [0;32m[I][i2c.idf:108]: Found i2c device at address 0x62[0m
[13:50:03.358] [0;35m[C][scd4x:094]: scd4x:[0m
[13:50:03.358] [0;35m[C][scd4x:095]:   Address: 0x62[0m
[13:50:03.358] [0;35m[C][scd4x:112]:   Automatic self calibration: ON[0m
[13:50:03.358] [0;35m[C][scd4x:121]:   Ambient pressure compensation disabled[0m
[13:50:03.358] [0;35m[C][scd4x:122]:   Altitude compensation: 0m[0m
[13:50:03.401] [0;35m[C][scd4x:127]:   Measurement mode: periodic (5s)[0m
[13:50:03.401] [0;35m[C][scd4x:139]:   Temperature offset: 4.00 °C[0m
[13:50:03.401] [0;35m[C][scd4x:140]:   Update Interval: 10.0s[0m
[13:50:03.401] [0;35m[C][scd4x:141]:   CO2 'CO2'[0m
[13:50:03.401] [0;35m[C][scd4x:141]:     Device Class: 'carbon_dioxide'[0m
[13:50:03.401] [0;35m[C][scd4x:141]:     State Class: 'measurement'[0m
[13:50:03.401] [0;35m[C][scd4x:141]:     Unit of Measurement: 'ppm'[0m
[13:50:03.401] [0;35m[C][scd4x:141]:     Accuracy Decimals: 0[0m
[13:50:03.401] [0;35m[C][scd4x:141]:     Icon: 'mdi:molecule-co2'[0m
[13:50:03.444] [0;35m[C][scd4x:142]:   Temperature 'Temperature'[0m
[13:50:03.444] [0;35m[C][scd4x:142]:     Device Class: 'temperature'[0m
[13:50:03.444] [0;35m[C][scd4x:142]:     State Class: 'measurement'[0m
[13:50:03.444] [0;35m[C][scd4x:142]:     Unit of Measurement: '°C'[0m
[13:50:03.444] [0;35m[C][scd4x:142]:     Accuracy Decimals: 2[0m
[13:50:03.444] [0;35m[C][scd4x:142]:     Icon: 'mdi:thermometer'[0m
[13:50:03.444] [0;35m[C][scd4x:143]:   Humidity 'Humidity'[0m
[13:50:03.444] [0;35m[C][scd4x:143]:     Device Class: 'humidity'[0m
[13:50:03.444] [0;35m[C][scd4x:143]:     State Class: 'measurement'[0m
[13:50:03.481] [0;35m[C][scd4x:143]:     Unit of Measurement: '%'[0m
[13:50:03.481] [0;35m[C][scd4x:143]:     Accuracy Decimals: 2[0m
[13:50:03.481] [0;35m[C][scd4x:143]:     Icon: 'mdi:water-percent'[0m
[13:50:03.481] [0;35m[C][zigbee:526]: ZigBee:[0m
[13:50:03.481] [0;35m[C][zigbee:528]: Endpoint: 1, 770[0m
[13:50:03.481] [0;35m[C][deep_sleep:026]: Setting up Deep Sleep...[0m
[13:50:03.507] [0;35m[C][deep_sleep:029]:   Sleep Duration: 20000 ms[0m
[13:50:03.507] [0;35m[C][deep_sleep:032]:   Run Duration: 40000 ms[0m
[13:50:04.676] [0;36m[D][scd4x:049]: Serial number 131.34.139[0m
[13:50:04.676] [0;36m[D][scd4x:088]: Sensor initialized[0m
[13:50:05.615] [0;36m[D][zigbee:205][1;31m[Zigbee_main][0;36m: Binding table record: src_endp 1, dst_endp 1, cluster_id 0x0405, dst_addr_mode 3[0m
[13:50:05.615] [0;36m[D][zigbee:216][1;31m[Zigbee_main][0;36m: Device bound to EP 1 -> device endpoint: 1, short addr: 0x0000, ieee addr: E0:79:8D:FF:FE:9E
[13:50:05.615] [0;36m[D][zigbee:205][1;31m[Zigbee_main][0;36m: Binding table record: src_endp 1, dst_endp 1, cluster_id 0x0402, dst_addr_mode 3[0m
[13:50:05.615] [0;36m[D][zigbee:216][1;31m[Zigbee_main][0;36m: Device bound to EP 1 -> device endpoint: 1, short addr: 0x0000, ieee addr: E0:79:8D:FF:FE:9E
[13:50:05.658] [0;36m[D][zigbee:126][1;31m[Zigbee_main][0;36m: Device started up in non factory-reset mode[0m
[13:50:05.658] [0;36m[D][zigbee:132][1;31m[Zigbee_main][0;36m: Device rebooted[0m
[13:50:05.658] [0;36m[D][zigbee:245][1;31m[Zigbee_main][0;36m: Requesting binding table for address 0x614f[0m
[13:50:05.658] [0;36m[D][zigbee:191][1;31m[Zigbee_main][0;36m: Binding table callback for address 0x614f with status 0[0m
[13:50:05.658] [0;36m[D][zigbee:194][1;31m[Zigbee_main][0;36m: Binding table info: total 3, index 0, count 3[0m
[13:50:05.701] [0;36m[D][zigbee:205][1;31m[Zigbee_main][0;36m: Binding table record: src_endp 1, dst_endp 1, cluster_id 0x040d, dst_addr_mode 3[0m
[13:50:05.701] [0;36m[D][zigbee:216][1;31m[Zigbee_main][0;36m: Device bound to EP 1 -> device endpoint: 1, short addr: 0x0000, ieee addr: E0:79:8D:FF:FE:9E:8B:29[0m
[13:50:05.701] [0;36m[D][zigbee:236][1;31m[Zigbee_main][0;36m: Filling bounded devices finished[0m
[13:50:05.701] [0;33m[W][component:257]: Component logger took a long time for an operation (92 ms).[0m
[13:50:05.722] [0;33m[W][component:258]: Components should block for at most 30 ms.[0m
[13:50:06.986] [0;33m[W][component:167]: Component scd4x.sensor set Warning flag: unspecified[0m
[13:50:17.019] [0;36m[D][sensor:093]: 'CO2': Sending state 719.00000 ppm with 0 decimals of accuracy[0m
[13:50:17.019] [0;36m[D][sensor:093]: 'Temperature': Sending state 28.74802 °C with 2 decimals of accuracy[0m
[13:50:17.019] [0;36m[D][sensor:093]: 'Humidity': Sending state 47.77374 % with 2 decimals of accuracy[0m
[13:50:17.020] [0;33m[W][component:182]: Component scd4x.sensor cleared Warning flag[0m
[13:50:17.020] [0;36m[D][zigbee:018]: Attribute set![0m
[13:50:17.020] [0;36m[D][zigbee:018]: Attribute set![0m
[13:50:17.020] [0;36m[D][zigbee:018]: Attribute set![0m
[13:50:27.015] [0;36m[D][sensor:093]: 'CO2': Sending state 723.00000 ppm with 0 decimals of accuracy[0m
[13:50:27.016] [0;36m[D][sensor:093]: 'Temperature': Sending state 28.24066 °C with 2 decimals of accuracy[0m
[13:50:27.016] [0;36m[D][sensor:093]: 'Humidity': Sending state 49.24164 % with 2 decimals of accuracy[0m
[13:50:27.016] [0;36m[D][zigbee:018]: Attribute set![0m
[13:50:27.016] [0;36m[D][zigbee:018]: Attribute set![0m
[13:50:27.016] [0;36m[D][zigbee:018]: Attribute set![0m
[13:50:37.016] [0;36m[D][sensor:093]: 'CO2': Sending state 675.00000 ppm with 0 decimals of accuracy[0m
[13:50:37.016] [0;36m[D][sensor:093]: 'Temperature': Sending state 27.80006 °C with 2 decimals of accuracy[0m
[13:50:37.016] [0;36m[D][sensor:093]: 'Humidity': Sending state 50.39520 % with 2 decimals of accuracy[0m
[13:50:37.016] [0;36m[D][zigbee:018]: Attribute set![0m
[13:50:37.016] [0;36m[D][zigbee:018]: Attribute set![0m
[13:50:37.016] [0;36m[D][zigbee:018]: Attribute set![0m
[13:50:43.231] [0;32m[I][deep_sleep:060]: Beginning Deep Sleep[0mESP-ROM:esp32c6-20220919
[13:51:02.943] Build:Sep 19 2022
[13:51:02.943] rst:0x5 (SLEEP_WAKEUP),boot:0x1f (SPI_FAST_FLASH_BOOT)
[13:51:02.986] SPIWP:0xee
[13:51:02.986] mode:DIO, clock div:2
[13:51:02.986] load:0x4086c410,len:0xd8c
[13:51:02.986] load:0x4086e610,len:0x2e1c
[13:51:02.986] load:0x40875728,len:0x17d0
[13:51:02.986] entry 0x4086c410
[13:51:02.986] [0;32mI (24) boot: ESP-IDF 5.1.6 2nd stage bootloader[0m
[13:51:02.986] [0;32mI (24) boot: compile time Jun  8 2025 04:38:31[0m
[13:51:02.986] [0;32mI (25) boot: chip revision: v0.1[0m
[13:51:02.986] [0;32mI (27) boot.esp32c6: SPI Speed      : 80MHz[0m
[13:51:02.986] [0;32mI (32) boot.esp32c6: SPI Mode       : DIO[0m
[13:51:02.986] [0;32mI (36) boot.esp32c6: SPI Flash Size : 4MB[0m
[13:51:03.029] [0;32mI (41) boot: Enabling RNG early entropy source...[0m
[13:51:03.029] [0;32mI (47) boot: Partition Table:[0m
[13:51:03.029] [0;32mI (50) boot: ## Label            Usage          Type ST Offset   Length[0m
[13:51:03.029] [0;32mI (57) boot:  0 otadata          OTA data         01 00 00009000 00002000[0m
[13:51:03.029] [0;32mI (65) boot:  1 phy_init         RF data          01 01 0000b000 00001000[0m
[13:51:03.029] [0;32mI (72) boot:  2 app0             OTA app          00 10 00010000 001b0000[0m
[13:51:03.029] [0;32mI (80) boot:  3 app1             OTA app          00 11 001c0000 001b0000[0m
[13:51:03.076] [0;32mI (87) boot:  4 nvs              WiFi data        01 02 00370000 0006d000[0m
[13:51:03.076] [0;32mI (95) boot:  5 zb_storage       Unknown data     01 81 003dd000 00004000[0m
[13:51:03.076] [0;32mI (102) boot:  6 zb_fct           Unknown data     01 81 003e1000 00000400[0m
[13:51:03.076] [0;32mI (110) boot: End of partition table[0m
[13:51:03.076] [0;32mI (115) esp_image: segment 0: paddr=00010020 vaddr=42080020 size=126f0h ( 75504) map[0m
[13:51:03.076] [0;32mI (137) esp_image: segment 1: paddr=00022718 vaddr=40800000 size=0d900h ( 55552) load[0m
[13:51:03.107] [0;32mI (151) esp_image: segment 2: paddr=00030020 vaddr=42000020 size=75f3ch (483132) map[0m
[13:51:03.224] [0;32mI (246) esp_image: segment 3: paddr=000a5f64 vaddr=4080d900 size=01a64h (  6756) load[0m
[13:51:03.224] [0;32mI (249) esp_image: segment 4: paddr=000a79d0 vaddr=4080f370 size=020d8h (  8408) load[0m
[13:51:03.224] [0;32mI (254) esp_image: segment 5: paddr=000a9ab0 vaddr=50000000 size=00040h (    64) [0m
[13:51:03.225] [0;32mI (261) esp_image: segment 6: paddr=000a9af8 vaddr=50000040 size=00008h (     8) [0m
[13:51:03.225] [0;32mI (272) boot: Loaded app from partition at offset 0x10000[0m
[13:51:03.225] [0;32mI (275) boot: Disabling RNG early entropy source...[0m
[13:51:03.269] [0;32mI (291) cpu_start: Unicore app[0m
[13:51:03.269] [0;32mI (292) cpu_start: Pro cpu up.[0m
[13:51:03.269] [0;33mW (300) clk: esp_perip_clk_init() has not been implemented yet[0m
[13:51:03.269] [0;32mI (307) cpu_start: Pro cpu start user code[0m
[13:51:03.269] [0;32mI (307) cpu_start: cpu freq: 160000000 Hz[0m
[13:51:03.269] [0;32mI (307) cpu_start: Application information:[0m
[13:51:03.269] [0;32mI (310) cpu_start: Project name:     zigbeetest[0m
[13:51:03.269] [0;32mI (315) cpu_start: App version:      2025.5.2[0m
[13:51:03.269] [0;32mI (320) cpu_start: Compile time:     Jun  8 2025 04:36:57[0m
[13:51:03.312] [0;32mI (326) cpu_start: ELF file SHA256:  21f609d6002f8d5b...[0m
[13:51:03.312] [0;32mI (332) cpu_start: ESP-IDF:          5.1.6[0m
[13:51:03.312] [0;32mI (337) cpu_start: Min chip rev:     v0.0[0m
[13:51:03.312] [0;32mI (342) cpu_start: Max chip rev:     v0.99 [0m
[13:51:03.312] [0;32mI (347) cpu_start: Chip rev:         v0.1[0m
[13:51:03.312] [0;32mI (351) heap_init: Initializing. RAM available for dynamic allocation:[0m
[13:51:03.312] [0;32mI (359) heap_init: At 40815D80 len 00066890 (410 KiB): D/IRAM[0m
[13:51:03.312] [0;32mI (365) heap_init: At 4087C610 len 00002F54 (11 KiB): STACK/DIRAM[0m
[13:51:03.355] [0;32mI (372) heap_init: At 50000048 len 00003FA0 (15 KiB): RTCRAM[0m
[13:51:03.355] [0;32mI (379) spi_flash: detected chip: generic[0m
[13:51:03.355] [0;32mI (383) spi_flash: flash io: dio[0m
[13:51:03.355] [0;32mI (387) sleep: Configure to isolate all GPIO pins in sleep state[0m
[13:51:03.355] [0;32mI (394) sleep: Enable automatic switching of GPIO sleep configuration[0m
[13:51:03.355] [0;32mI (401) coexist: coex firmware version: 994b23e[0m
[13:51:03.355] [0;32mI (406) coexist: coexist rom version 5b8dcfa[0m
[13:51:03.381] [0;32mI (411) app_start: Starting scheduler on CPU0[0m
[13:51:03.381] [0;32mI (416) main_task: Started on CPU0[0m
[13:51:03.381] [0;32mI (420) main_task: Calling app_main()[0m
[13:51:03.461] [0;32m[I][logger:171]: Log initialized[0m
[13:51:03.504] [0;36m[D][zigbee:362]: Model: zigbeetest[0m
[13:51:03.504] [0;36m[D][zigbee:363]: Manufacturer: esphome[0m
[13:51:03.504] [0;36m[D][zigbee:364]: Date: 20250608[0m
[13:51:03.504] [0;36m[D][zigbee:365]: Area: [0m
[13:51:03.504] [0;32m[I][app:029]: Running through setup()...[0m
[13:51:03.504] [0;35m[C][i2c.idf:021]: Setting up I2C bus...[0m
[13:51:03.504] [0;32m[I][i2c.idf:260]: Performing I2C bus recovery[0m
[13:51:03.504] [0;36m[D][esp-idf:000]: [0;32mI (538) gpio: GPIO[23]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 1| Pulldown: 0| Intr:0 [0m[0m
[13:51:03.549] [0;36m[D][esp-idf:000]: [0;32mI (538) gpio: GPIO[22]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 1| Pulldown: 0| Intr:0 [0m[0m
[13:51:03.549] [0;35m[C][scd4x:030]: Setting up scd4x...[0m
[13:51:03.549] [0;36m[D][esp-idf:000]: [0;32mI (578) phy_init: phy_version 320,348a293,Sep  3 2024,16:33:12[0m[0m
[13:51:03.549] [0;36m[D][esp-idf:000]: [0;32mI (595) phy: libbtbb version: 04952fd, Sep  3 2024, 16:33:30[0m[0m
[13:51:03.549] [0;36m[D][esp-idf:000]: [0;31mE (597) ESP_ZIGBEE_CLUSTER: The requested update cluster ID (0x 405) is not found[0m[0m
[13:51:03.592] [0;36m[D][esp-idf:000]: [0;31mE (597) zigbee_helper: Ignore previous cluster not found error[0m[0m
[13:51:03.592] [0;36m[D][esp-idf:000]: [0;31mE (597) ESP_ZIGBEE_CLUSTER: The requested update cluster ID (0x 40d) is not found[0m[0m
[13:51:03.592] [0;36m[D][esp-idf:000]: [0;31mE (613) zigbee_helper: Ignore previous cluster not found error[0m[0m
[13:51:03.592] [0;36m[D][zigbee:496]: set reporting for cluster: 1029[0m
[13:51:03.592] [0;36m[D][zigbee:496]: set reporting for cluster: 1026[0m
[13:51:03.592] [0;36m[D][zigbee:496]: set reporting for cluster: 1037[0m
[13:51:03.635] [0;35m[C][deep_sleep:013]: Setting up Deep Sleep...[0m
[13:51:03.635] [0;32m[I][deep_sleep:018]: Scheduling Deep Sleep to start in 40000 ms[0m
[13:51:03.635] [0;32m[I][app:066]: setup() finished successfully![0m
[13:51:03.635] [0;36m[D][esp-idf:000][1;31m[main][0;36m: [0;32mI (525) main_task: Returned from app_main()[0m[0m
[13:51:03.635] [0;36m[D][zigbee:180][1;31m[Zigbee_main][0;36m: ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL[0m
[13:51:03.635] [0;36m[D][zigbee:118][1;31m[Zigbee_main][0;36m: Zigbee stack initialized[0m
[13:51:03.678] [0;32m[I][app:115]: ESPHome version 2025.5.2 compiled on Jun  8 2025, 04:41:41[0m
[13:51:03.678] [0;35m[C][logger:224]: Logger:[0m
[13:51:03.678] [0;35m[C][logger:225]:   Max Level: DEBUG[0m
[13:51:03.678] [0;35m[C][logger:226]:   Initial Level: DEBUG[0m
[13:51:03.678] [0;35m[C][logger:228]:   Log Baud Rate: 115200[0m
[13:51:03.678] [0;35m[C][logger:229]:   Hardware UART: UART0[0m
[13:51:03.678] [0;35m[C][logger:233]:   Task Log Buffer Size: 768[0m
[13:51:03.678] [0;35m[C][i2c.idf:083]: I2C Bus:[0m
[13:51:03.678] [0;35m[C][i2c.idf:084]:   SDA Pin: GPIO22[0m
[13:51:03.678] [0;35m[C][i2c.idf:085]:   SCL Pin: GPIO23[0m
[13:51:03.721] [0;35m[C][i2c.idf:086]:   Frequency: 50000 Hz[0m
[13:51:03.721] [0;35m[C][i2c.idf:092]:   Recovery: bus successfully recovered[0m
[13:51:03.721] [0;32m[I][i2c.idf:102]: Results from i2c bus scan:[0m
[13:51:03.721] [0;32m[I][i2c.idf:108]: Found i2c device at address 0x62[0m
[13:51:03.721] [0;35m[C][scd4x:094]: scd4x:[0m
[13:51:03.721] [0;35m[C][scd4x:095]:   Address: 0x62[0m
[13:51:03.721] [0;35m[C][scd4x:112]:   Automatic self calibration: ON[0m
[13:51:03.721] [0;35m[C][scd4x:121]:   Ambient pressure compensation disabled[0m
[13:51:03.721] [0;35m[C][scd4x:122]:   Altitude compensation: 0m[0m
[13:51:03.764] [0;35m[C][scd4x:127]:   Measurement mode: periodic (5s)[0m
[13:51:03.764] [0;35m[C][scd4x:139]:   Temperature offset: 4.00 °C[0m
[13:51:03.764] [0;35m[C][scd4x:140]:   Update Interval: 10.0s[0m
[13:51:03.764] [0;35m[C][scd4x:141]:   CO2 'CO2'[0m
[13:51:03.764] [0;35m[C][scd4x:141]:     Device Class: 'carbon_dioxide'[0m
[13:51:03.764] [0;35m[C][scd4x:141]:     State Class: 'measurement'[0m
[13:51:03.764] [0;35m[C][scd4x:141]:     Unit of Measurement: 'ppm'[0m
[13:51:03.764] [0;35m[C][scd4x:141]:     Accuracy Decimals: 0[0m
[13:51:03.764] [0;35m[C][scd4x:141]:     Icon: 'mdi:molecule-co2'[0m
[13:51:03.807] [0;35m[C][scd4x:142]:   Temperature 'Temperature'[0m
[13:51:03.807] [0;35m[C][scd4x:142]:     Device Class: 'temperature'[0m
[13:51:03.807] [0;35m[C][scd4x:142]:     State Class: 'measurement'[0m
[13:51:03.807] [0;35m[C][scd4x:142]:     Unit of Measurement: '°C'[0m
[13:51:03.807] [0;35m[C][scd4x:142]:     Accuracy Decimals: 2[0m
[13:51:03.807] [0;35m[C][scd4x:142]:     Icon: 'mdi:thermometer'[0m
[13:51:03.807] [0;35m[C][scd4x:143]:   Humidity 'Humidity'[0m
[13:51:03.807] [0;35m[C][scd4x:143]:     Device Class: 'humidity'[0m
[13:51:03.807] [0;35m[C][scd4x:143]:     State Class: 'measurement'[0m
[13:51:03.844] [0;35m[C][scd4x:143]:     Unit of Measurement: '%'[0m
[13:51:03.844] [0;35m[C][scd4x:143]:     Accuracy Decimals: 2[0m
[13:51:03.844] [0;35m[C][scd4x:143]:     Icon: 'mdi:water-percent'[0m
[13:51:03.844] [0;35m[C][zigbee:526]: ZigBee:[0m
[13:51:03.844] [0;35m[C][zigbee:528]: Endpoint: 1, 770[0m
[13:51:03.844] [0;35m[C][deep_sleep:026]: Setting up Deep Sleep...[0m
[13:51:03.870] [0;35m[C][deep_sleep:029]:   Sleep Duration: 20000 ms[0m
[13:51:03.870] [0;35m[C][deep_sleep:032]:   Run Duration: 40000 ms[0m
[13:51:05.039] [0;36m[D][scd4x:049]: Serial number 131.34.139[0m
[13:51:05.039] [0;36m[D][scd4x:088]: Sensor initialized[0m
[13:51:05.948] [0;36m[D][zigbee:205][1;31m[Zigbee_main][0;36m: Binding table record: src_endp 1, dst_endp 1, cluster_id 0x0405, dst_addr_mode 3[0m
[13:51:05.991] [0;36m[D][zigbee:216][1;31m[Zigbee_main][0;36m: Device bound to EP 1 -> device endpoint: 1, short addr: 0x0000, ieee addr: E0:79:8D:FF:FE:9E
[13:51:05.991] [0;36m[D][zigbee:205][1;31m[Zigbee_main][0;36m: Binding table record: src_endp 1, dst_endp 1, cluster_id 0x0402, dst_addr_mode 3[0m
[13:51:05.991] [0;36m[D][zigbee:216][1;31m[Zigbee_main][0;36m: Device bound to EP 1 -> device endpoint: 1, short addr: 0x0000, ieee addr: E0:79:8D:FF:FE:9E
[13:51:06.034] [0;36m[D][zigbee:126][1;31m[Zigbee_main][0;36m: Device started up in non factory-reset mode[0m
[13:51:06.034] [0;36m[D][zigbee:132][1;31m[Zigbee_main][0;36m: Device rebooted[0m
[13:51:06.034] [0;36m[D][zigbee:245][1;31m[Zigbee_main][0;36m: Requesting binding table for address 0x614f[0m
[13:51:06.034] [0;36m[D][zigbee:191][1;31m[Zigbee_main][0;36m: Binding table callback for address 0x614f with status 0[0m
[13:51:06.034] [0;36m[D][zigbee:194][1;31m[Zigbee_main][0;36m: Binding table info: total 3, index 0, count 3[0m
[13:51:06.077] [0;36m[D][zigbee:205][1;31m[Zigbee_main][0;36m: Binding table record: src_endp 1, dst_endp 1, cluster_id 0x040d, dst_addr_mode 3[0m
[13:51:06.077] [0;36m[D][zigbee:216][1;31m[Zigbee_main][0;36m: Device bound to EP 1 -> device endpoint: 1, short addr: 0x0000, ieee addr: E0:79:8D:FF:FE:9E:8B:29[0m
[13:51:06.077] [0;36m[D][zigbee:236][1;31m[Zigbee_main][0;36m: Filling bounded devices finished[0m
[13:51:06.077] [0;33m[W][component:257]: Component logger took a long time for an operation (80 ms).[0m
[13:51:06.077] [0;33m[W][component:258]: Components should block for at most 30 ms.[0m
[13:51:08.269] [0;33m[W][component:167]: Component scd4x.sensor set Warning flag: unspecified[0m
[13:51:18.304] [0;36m[D][sensor:093]: 'CO2': Sending state 559.00000 ppm with 0 decimals of accuracy[0m
[13:51:18.304] [0;36m[D][sensor:093]: 'Temperature': Sending state 28.78807 °C with 2 decimals of accuracy[0m
[13:51:18.304] [0;36m[D][sensor:093]: 'Humidity': Sending state 47.48383 % with 2 decimals of accuracy[0m
[13:51:18.304] [0;33m[W][component:182]: Component scd4x.sensor cleared Warning flag[0m
[13:51:18.305] [0;36m[D][zigbee:018]: Attribute set![0m
[13:51:18.305] [0;36m[D][zigbee:018]: Attribute set![0m
[13:51:18.305] [0;36m[D][zigbee:018]: Attribute set![0m
[13:51:28.300] [0;36m[D][sensor:093]: 'CO2': Sending state 537.00000 ppm with 0 decimals of accuracy[0m
[13:51:28.300] [0;36m[D][sensor:093]: 'Temperature': Sending state 28.05908 °C with 2 decimals of accuracy[0m
[13:51:28.300] [0;36m[D][sensor:093]: 'Humidity': Sending state 49.45068 % with 2 decimals of accuracy[0m
[13:51:28.300] [0;36m[D][zigbee:018]: Attribute set![0m
[13:51:28.300] [0;36m[D][zigbee:018]: Attribute set![0m
[13:51:28.301] [0;36m[D][zigbee:018]: Attribute set![0m
[13:51:38.297] [0;36m[D][sensor:093]: 'CO2': Sending state 528.00000 ppm with 0 decimals of accuracy[0m
[13:51:38.297] [0;36m[D][sensor:093]: 'Temperature': Sending state 27.66121 °C with 2 decimals of accuracy[0m
[13:51:38.298] [0;36m[D][sensor:093]: 'Humidity': Sending state 50.63782 % with 2 decimals of accuracy[0m
[13:51:38.298] [0;36m[D][zigbee:018]: Attribute set![0m
[13:51:38.298] [0;36m[D][zigbee:018]: Attribute set![0m
[13:51:38.298] [0;36m[D][zigbee:018]: Attribute set![0m
[13:51:43.604] [0;32m[I][deep_sleep:060]: Beginning Deep Sleep[0mESP-ROM:esp32c6-20220919

The esp is connected via a Home Assistant Connect ZBT-1 stick to ZHA. The following is a history output of the CO2 sensor values with timestamps of the same period as the logs above

Home assistant state history

entity_id,state,last_changed
sensor.co2_kohlendioxid,595.999998040497,2025-06-08T13:47:32.313
sensor.co2_kohlendioxid,577.999977394938,2025-06-08T13:48:32.569
sensor.co2_kohlendioxid,1098.99998642504,2025-06-08T13:49:32.931
sensor.co2_kohlendioxid,722.99997555092,2025-06-08T13:50:33.306
sensor.co2_kohlendioxid,537.000014446676,2025-06-08T13:51:33.699

As you can see the ESP claims to send about 3 state updates per boot cycle but only one of them seems to make it to the coordinator

florianL21 avatar Jun 08 '25 12:06 florianL21

Thanks for the logs. So,

  • zigbee takes ~3s for the setup
  • the first update from the sensor (after 3-6s) leads to an unspecified warning
  • the second update after 13-16s is not reported
  • the third update after 23-26s is reported
  • the forth update is not reported

So you could save 10s if reporting was working properly and another 10s if the sensors first update was ok. Maybe the first issue could be fixed with a proper report configuration in ZHA. I don't use ZHA so not sure what is available:

  • ZHA debug logs?
  • ZHA reporting config for this cluster
  • temp sensor home assistant state history

I am a little bit confused, because I think in my setups (with z2m) I always get a Default response received log after a successful reporting.

For now, a workaround could be to force reporting with a sensor on_value action: sleep 0.5s, zigbee.report, sleep 0.5s, deepsleep (You might need to tweak the sleep interval).

Edit: you could also disable i2c scan

luar123 avatar Jun 08 '25 19:06 luar123

Sorry for the really late reply. Some things got in the way, but today I found some time again to play around with this some more. I have updated the configuration according to your suggestions. The main changes to the first configuration are:

  • i2c scan is disabled
  • The CO2 value now has the on_value callback configured as you suggested but slightly more conservative. I figured that I would put it on that value and hope that all other values have been updated already by the time zigbee.report is called which I figure should always be the case as 0.5s is plenty of time.
  • I set the sensor update intervall to 2s in the hopes of getting a first reading faster after startup but I don't know from which point on these 2s are counted. Also this seems to have increased the number of errors from the sensor but I assume it is doe to the manufacturer of the sensor stating that it has a 5s cold boot time if run in the low power mode that I have now configured it to run in. So these errors may be attributed to this.
The ESPHome config with all changes

external_components:
  - source: github://luar123/zigbee_esphome
    components: [zigbee]

esphome:
  name: zigbeetest
  friendly_name: ZigbeeTest

esp32:
  board: esp32-c6-devkitc-1
  partitions: partitions_zb.csv
  framework:
    type: esp-idf

logger:
  hardware_uart: UART0

i2c:
  sda: GPIO22
  scl: GPIO23
  id: bus_a
  scan: false

sensor:
  - platform: scd4x
    co2:
      name: "CO2"
      id: co2
      on_value:
        - delay: 0.5s
        - zigbee.report
        - delay: 1s
        - deep_sleep.enter:
            id: deep_sleep_1
    temperature:
      name: "Temperature"
      id: temp
    humidity:
      name: "Humidity"
      id: humid
    update_interval: 2s
    measurement_mode: single_shot
    

deep_sleep:
  id: deep_sleep_1
  sleep_duration: 10min

zigbee:
  id: "zb"
  on_join:
    then:
      - logger.log: "Joined network"
  endpoints:
    - device_type: TEMPERATURE_SENSOR
      num: 1
      clusters:
        - id: REL_HUMIDITY_MEASUREMENT
          attributes:
            - attribute_id: 0
              id: hum_attr
              type: U16
              report: true
              device: humid
              scale: 100
        - id: TEMP_MEASUREMENT
          attributes:
            - attribute_id: 0x0
              id: temp_attr
              type: S16
              report: true
              device: temp
              scale: 100
        - id: CARBON_DIOXIDE_MEASUREMENT
          attributes:
            - attribute_id: 0x0
              id: co2_attr
              type: single
              report: true
              device: co2
              scale: 0.000001
            - attribute_id: 0x2
              type: single
              value: 10000

I now had this running for the day and most of the time I can see that values are reported correctly. But every now and then it misses an update. I guess it is probably my network being weird or flakey. Although I have lots of zigbee routers around and only a single WIFI network in range with which it has to fight with for air time.

I cannot really find too much information within HA itself but I could find what seems to be debug informations about the device. (This is not a full dump as it contained a lot of info about my HA installation which I have removed from it. But it was mostly unrelated info like installed components, usb devices etc.) zha-esphome zigbeetest.json

Some logs I recorded

I have also reduced the deep sleep time to 10s again on the device and then recorded the logs from the device itself as well as the logs from the ZHA integration this time:

Logs from the sensor Some comments on this. The first sensor reading seems to be failing 3 times before it succeeds for the first time. My guess is the sensor cold boot time of 5s is causing this. So maybe it could be further optimized but since we are talking about the zigbee component here and not my specific sensor I see this as somewhat irrelevant to the discussion.

Logs from ZHA The ZHA logs probably contain a huge amount of other device traffic as I have a lot of zigbee devices. Sorry for that but I don't know how to filter out relevant stuff so I did not want to take anything out which you may need.

florianL21 avatar Jun 30 '25 21:06 florianL21

I now had this running for the day and most of the time I can see that values are reported correctly. But every now and then it misses an update. I guess it is probably my network being weird or flakey. Although I have lots of zigbee routers around and only a single WIFI network in range with which it has to fight with for air time.

Yes, that could be the reason. Also a busy zigbee network or ZHA, I thing z2m is more robust (and you can configure reporting).

About the reporting: If you update to the latest version you could remove zigbee.report and instead use report: force. With this mode a report will be send directly after setting the attribute. I also quickly tested ZHA and it seems minimum reporting interval is set to 30s for sensor clusters (didn't test co2):

Image So for automatic reporting there will be at least 30s between reports. No idea how to change that in ZHA. (You will find that information if you click on re-configure on the device page and then details.)

luar123 avatar Jul 06 '25 13:07 luar123