Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ESP32C6_Zigbee_Example.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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);
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)_
Expand All @@ -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');

Expand Down