Skip to content

Zigbee_Fan_Control.ino Unhandled fan mode after few seconds #12009

@rickbhs

Description

@rickbhs

Board

Seed Xiao ESP32C6, OLIMEX ESP32-C6-EVB

Device Description

ESP32C6

Hardware Configuration

Nothing attached

Version

v3.3.3

Type

Bug

IDE Name

Arduino IDE

Operating System

Windows 11

Flash frequency

80Mhz

PSRAM enabled

yes

Upload speed

921600

Description

compiled Zigbee_Fan_Control.ino sketch and flash to a ESP32C6

connected to my Zigbee2MQTT network with a external converters for the fan component,

direct after restart its correct reacted to the commands sending from Zigbee2MQTT
but after few second the message: Unhandled fan mode

Sketch

The standard example:
libraries/Zigbee/examples/Zigbee_Fan_Control/Zigbee_Fan_Control.ino

USB CDC On Boot: Enabled
Core Debug Level: Verbose
Erase All Flash..: Enabled
Zigbee Mode: ED And ZCZR

Debug Message

06:07:24.483 -> ============ After Setup End =============
06:07:27.847 -> [  4749][V][ZigbeeHandlers.cpp:93] zb_attribute_set_handler(): Received message: endpoint(1), cluster(0x202), attribute(0x0), data size(1)
06:07:27.847 -> [  4749][V][esp32-hal-rmt.c:490] rmtInit(): GPIO 2 - TX MODE - MemSize[48] - Freq=10000000Hz
06:07:27.847 -> [  4750][V][esp32-hal-rmt.c:307] _rmtWrite(): GPIO: 2 - Request: 24 RMT Symbols - Blocking - Timeout: -1
06:07:27.847 -> [  4750][V][esp32-hal-rmt.c:315] _rmtWrite(): GPIO: 2 - Currently in Loop Mode: [NO] | Loop Request: [NO], LoopCancel: [NO]
06:07:24.483 ->     17 : UART_RX[0]
06:07:24.483 -> ============ After Setup End =============
06:07:27.847 -> [  4749][V][ZigbeeHandlers.cpp:93] zb_attribute_set_handler(): Received message: endpoint(1), cluster(0x202), attribute(0x0), data size(1)
06:07:27.847 -> [  4749][V][esp32-hal-rmt.c:490] rmtInit(): GPIO 2 - TX MODE - MemSize[48] - Freq=10000000Hz
06:07:27.847 -> [  4750][V][esp32-hal-rmt.c:307] _rmtWrite(): GPIO: 2 - Request: 24 RMT Symbols - Blocking - Timeout: -1
06:07:27.847 -> [  4750][V][esp32-hal-rmt.c:315] _rmtWrite(): GPIO: 2 - Currently in Loop Mode: [NO] | Loop Request: [NO], LoopCancel: [NO]
06:07:27.847 -> Fan mode: LOW
06:07:31.270 -> [  8177][V][ZigbeeHandlers.cpp:93] zb_attribute_set_handler(): Received message: endpoint(1), cluster(0x202), attribute(0x0), data size(1)
06:07:31.270 -> [  8178][V][esp32-hal-rmt.c:490] rmtInit(): GPIO 2 - TX MODE - MemSize[48] - Freq=10000000Hz
06:07:31.270 -> [  8179][V][esp32-hal-rmt.c:307] _rmtWrite(): GPIO: 2 - Request: 24 RMT Symbols - Blocking - Timeout: -1
06:07:31.270 -> [  8179][V][esp32-hal-rmt.c:315] _rmtWrite(): GPIO: 2 - Currently in Loop Mode: [NO] | Loop Request: [NO], LoopCancel: [NO]
06:07:31.270 -> Fan mode: MEDIUM
06:07:31.411 -> [  8338][V][ZigbeeCore.cpp:466] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK
06:07:34.059 -> [ 10976][V][ZigbeeHandlers.cpp:93] zb_attribute_set_handler(): Received message: endpoint(1), cluster(0x202), attribute(0x0), data size(1)
06:07:34.059 -> [ 10976][V][esp32-hal-rmt.c:490] rmtInit(): GPIO 2 - TX MODE - MemSize[48] - Freq=10000000Hz
06:07:34.059 -> [ 10977][V][esp32-hal-rmt.c:307] _rmtWrite(): GPIO: 2 - Request: 24 RMT Symbols - Blocking - Timeout: -1
06:07:34.059 -> [ 10977][V][esp32-hal-rmt.c:315] _rmtWrite(): GPIO: 2 - Currently in Loop Mode: [NO] | Loop Request: [NO], LoopCancel: [NO]
06:07:34.059 -> Fan mode: HIGH
06:07:36.986 -> [ 13889][V][ZigbeeHandlers.cpp:93] zb_attribute_set_handler(): Received message: endpoint(1), cluster(0x202), attribute(0x0), data size(1)
06:07:36.986 -> [ 13890][V][esp32-hal-rmt.c:490] rmtInit(): GPIO 2 - TX MODE - MemSize[48] - Freq=10000000Hz
06:07:36.986 -> [ 13890][V][esp32-hal-rmt.c:307] _rmtWrite(): GPIO: 2 - Request: 24 RMT Symbols - Blocking - Timeout: -1
06:07:36.986 -> [ 13891][V][esp32-hal-rmt.c:315] _rmtWrite(): GPIO: 2 - Currently in Loop Mode: [NO] | Loop Request: [NO], LoopCancel: [NO]
06:07:36.986 -> Fan mode: ON
06:07:38.451 -> [ 15378][V][ZigbeeCore.cpp:466] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK
06:07:39.217 -> [ 16142][V][ZigbeeHandlers.cpp:93] zb_attribute_set_handler(): Received message: endpoint(1), cluster(0x202), attribute(0x0), data size(1)
06:07:39.217 -> [ 16143][V][esp32-hal-rmt.c:490] rmtInit(): GPIO 2 - TX MODE - MemSize[48] - Freq=10000000Hz
06:07:39.217 -> [ 16144][V][esp32-hal-rmt.c:307] _rmtWrite(): GPIO: 2 - Request: 24 RMT Symbols - Blocking - Timeout: -1
06:07:39.217 -> [ 16144][V][esp32-hal-rmt.c:315] _rmtWrite(): GPIO: 2 - Currently in Loop Mode: [NO] | Loop Request: [NO], LoopCancel: [NO]
06:07:39.217 -> Fan mode: LOW
06:07:41.614 -> [ 18507][V][ZigbeeHandlers.cpp:93] zb_attribute_set_handler(): Received message: endpoint(1), cluster(0x202), attribute(0x0), data size(1)
06:07:41.614 -> [ 18507][E][Zigbee_Fan_Control.ino:73] setFan(): Unhandled fan mode: -1076358910
06:07:45.296 -> [ 22205][V][ZigbeeHandlers.cpp:93] zb_attribute_set_handler(): Received message: endpoint(1), cluster(0x202), attribute(0x0), data size(1)
06:07:45.296 -> [ 22206][E][Zigbee_Fan_Control.ino:73] setFan(): Unhandled fan mode: -1162993405

Other Steps to Reproduce

I know the GPIO 2 in the log, because clean example.

Try mutiple chips 3x(Seed Xiao) and 1x(OLIMEX),
used ED And ZCZR settings

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting 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