From 291aa2ca41a6f876edbaef326c8df8a831546b95 Mon Sep 17 00:00:00 2001 From: antsu Date: Sun, 9 Feb 2025 15:06:54 +0000 Subject: [PATCH 1/2] Update code --- ESP32C6_Zigbee_Example.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ESP32C6_Zigbee_Example.ino b/ESP32C6_Zigbee_Example.ino index c2a7bfe..9f14db3 100644 --- a/ESP32C6_Zigbee_Example.ino +++ b/ESP32C6_Zigbee_Example.ino @@ -61,12 +61,12 @@ uint8_t light_level = 254; #define ESP_ZB_DEFAULT_RADIO_CONFIG() \ { \ - .radio_mode = RADIO_MODE_NATIVE, \ + .radio_mode = ZB_RADIO_MODE_NATIVE, \ } #define ESP_ZB_DEFAULT_HOST_CONFIG() \ { \ - .host_connection_mode = HOST_CONNECTION_MODE_NONE, \ + .host_connection_mode = ZB_HOST_CONNECTION_MODE_NONE, \ } /* Zigbee configuration */ @@ -212,7 +212,7 @@ static void esp_zb_task(void *pvParameters) esp_zb_cluster_list_add_level_cluster(cluster_list, esp_zb_level_cluster, ESP_ZB_ZCL_CLUSTER_SERVER_ROLE); // add clusters to endpoint - esp_zb_ep_list_add_ep(ep_list, cluster_list, LIGHT_ENDPOINT, APP_PROFILE_ID, ESP_ZB_HA_LEVEL_CONTROLLABLE_OUTPUT_DEVICE_ID); + esp_zb_ep_list_add_ep(ep_list, cluster_list, {LIGHT_ENDPOINT, APP_PROFILE_ID, ESP_ZB_HA_LEVEL_CONTROLLABLE_OUTPUT_DEVICE_ID}); esp_zb_device_register(ep_list); esp_zb_core_action_handler_register(zb_action_handler); From 8155010ad00a6304e80a832441bda3614076d5e6 Mon Sep 17 00:00:00 2001 From: antsu Date: Sun, 9 Feb 2025 15:19:21 +0000 Subject: [PATCH 2/2] Update README --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2041616..f07114c 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,9 @@ Turns a ESP32C6 dev board into a dimmable zigbee light. ## Arduino setup - Add ESP32 board support in Arduino File :: Preferences :: Add. boards manager URLs - Add _https://espressif.github.io/arduino-esp32/package_esp32_dev_index.json_ - (notice the _dev_ for development/alpha) + Add _https://espressif.github.io/arduino-esp32/package_esp32_index.json_ - In Tools :: Board :: Boards Manager - search for 'esp32 by Expressif Systems', install _3.0.0-alphaX_ release + search for 'esp32 by Expressif Systems' and install the current release - Select your board from the Tools :: Board menu. E.g. _ESP32C6 Dev Module_ - Select Tools :: Partition Scheme _Zigbee 4MB with spiffs_ - Select Tools :: Zigbee Mode _Zigbee ED (end device)_ @@ -19,6 +18,9 @@ For reset/rejoin uncomment the line that reads ```esp_zb_nvram_erase_at_start(true);``` ## zigbee2mqtt external definition + +> ℹ️ This is not required in current versions of Zigbee2MQTT. + ```yaml const {identify, light} = require('zigbee-herdsman-converters/lib/modernExtend');