Skip to content

Commit

Permalink
Use add_idf_component for zigbee sdk.
Browse files Browse the repository at this point in the history
Important: delete .esphome/build/<name>/ folder!
  • Loading branch information
luar123 committed Oct 24, 2024
1 parent 5d26d36 commit 43923a4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 25 deletions.
36 changes: 18 additions & 18 deletions esphome/components/zigbee/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import datetime
import os

from esphome import automation
import esphome.codegen as cg
from esphome.components.esp32 import (
CONF_PARTITIONS,
add_extra_build_file,
# add_idf_component,
# add_extra_build_file,
add_idf_component,
add_idf_sdkconfig_option,
only_on_variant,
)
Expand Down Expand Up @@ -155,22 +154,23 @@ def final_validate(config):


async def to_code(config):
add_extra_build_file(
"src/idf_component.yml",
os.path.join(os.path.dirname(__file__), "idf_component.yml"),
# use component manager:
# add_extra_build_file(
# "src/idf_component.yml",
# os.path.join(os.path.dirname(__file__), "idf_component.yml"),
# )
# use add_idf_component: v1.5.1
add_idf_component(
name="espressif__esp-zboss-lib",
repo="https://github.com/espressif/esp-zboss-lib.git",
ref="c90b7d6c335f520ff4607e233be9f64f35e909c2",
)
add_idf_component(
name="esp-zigbee-lib",
repo="https://github.com/espressif/esp-zigbee-sdk.git",
path="components/esp-zigbee-lib",
ref="c5be1da5c349103a85928ed02ca924c0f657b314",
)
# change this to idf component (not working at the moment)
# add_idf_component(
# name="esp-zboss-lib",
# repo="https://github.com/espressif/esp-zboss-lib.git",
# ref="838714a0aa580ebcbd2e59652666eceb9b7e6649",
# )
# add_idf_component(
# name="esp-zigbee-lib",
# repo="https://github.com/espressif/esp-zigbee-sdk.git",
# path="components/esp-zigbee-lib",
# ref="4d68ccf0443770b40610892a1e598963d7fb154f",
# )
add_idf_sdkconfig_option("CONFIG_ZB_ENABLED", True)
add_idf_sdkconfig_option("CONFIG_ZB_ZED", True)
add_idf_sdkconfig_option("CONFIG_ZB_RADIO_NATIVE", True)
Expand Down
7 changes: 0 additions & 7 deletions esphome/components/zigbee/idf_component.yml

This file was deleted.

0 comments on commit 43923a4

Please sign in to comment.