Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zigbee #2

Closed
wants to merge 2 commits into from
Closed

Zigbee #2

wants to merge 2 commits into from

Conversation

tomaszduda23
Copy link
Owner

@tomaszduda23 tomaszduda23 commented Jun 5, 2024

What does this implement/fix?

zigbee support

Screenshot from 2024-06-05 21-12-08

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other

Related issue or feature (if applicable): fixes
esphome/feature-requests#1397

Pull request in esphome-docs with documentation (if applicable): esphome/esphome-docs#

Test Environment

  • ESP32
  • ESP32 IDF
  • ESP8266
  • RP2040
  • BK72xx
  • RTL87xx

Example entry for config.yaml:

switch:
  - platform: zigbee
    output: gpio_15
    id: zigbee1
  - platform: zigbee
    output: gpio_15
    id: zigbee2

Checklist:

  • The code change is tested and works locally.
  • Tests have been added to verify that the new code works (under tests/ folder).

If user exposed functionality or configuration variables are added/changed:

@lboue
Copy link

lboue commented Aug 12, 2024

I was unable to compile with the configuration provided. Did I miss something?

ESPHome config

external_components:
  - source:
      type: git
      url: https://github.com/tomaszduda23/esphome/
      ref: zigbee
    refresh: 0s
    components: 
      - zephyr_mcumgr/ota
      - zephyr_shell
      - zigbee/switch

switch:
  - platform: zigbee
    output: gpio_15
    id: zigbee1

zephyr_shell:

ESPHome build log

INFO ESPHome 2024.8.0-dev
INFO Reading configuration /config/esphome/zigbee-test.yaml...
INFO Updating https://github.com/tomaszduda23/esphome/@zigbee
INFO Unable to import component zigbee.switch: No module named 'esphome.components.zigbee'
Failed config

switch.zigbee: [source /config/esphome/zigbee-test.yaml:48]
  
  Platform not found: 'switch.zigbee'.
  platform: zigbee
  output: gpio_15
  id: zigbee1

@tomaszduda23
Copy link
Owner Author

This requires nrf52840 which cannot be used as external component. Waiting for esphome#7049

@Hedda
Copy link

Hedda commented Aug 27, 2024

Espressif developer P-R-O-C-H-Y is now working on a new Zigbee Wrapper library with a simpler API in Arduino (for arduino-esp32) and he wrote that other developers can post additional feature request related to that in the same issue there for tracking. Maybe you could port that for nrf52 so could make use of the same Zigbee API that will probably be used for ESP32's Zigbee?

@tomaszduda23
Copy link
Owner Author

PR for this was already opened in main repo esphome#7340

@github-actions github-actions bot locked and limited conversation to collaborators Sep 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants