mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 15:10:51 +00:00
[zigbee][core] Add support for Zigbee binary sensors on ESP32 H2 and C6 (#11553)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: J. Nick Koston <nick@home-assistant.io> Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
---
|
||||
binary_sensor:
|
||||
- platform: template
|
||||
name: "Garage Door Open 1"
|
||||
@@ -22,12 +21,6 @@ sensor:
|
||||
lambda: return 12.0;
|
||||
internal: True
|
||||
|
||||
zigbee:
|
||||
wipe_on_boot: true
|
||||
on_join:
|
||||
then:
|
||||
- logger.log: "Joined network"
|
||||
|
||||
output:
|
||||
- platform: template
|
||||
id: output_factory
|
||||
@@ -35,9 +28,6 @@ output:
|
||||
write_action:
|
||||
- zigbee.factory_reset
|
||||
|
||||
time:
|
||||
- platform: zigbee
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
name: "Template Switch"
|
||||
|
||||
14
tests/components/zigbee/common_esp32.yaml
Normal file
14
tests/components/zigbee/common_esp32.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
binary_sensor:
|
||||
- platform: template
|
||||
name: "Garage Door Open 10"
|
||||
report: "enable"
|
||||
- platform: template
|
||||
name: "Garage Door Open 11"
|
||||
report: "coordinator"
|
||||
- platform: template
|
||||
name: "Garage Door Open 12"
|
||||
report: "force"
|
||||
|
||||
zigbee:
|
||||
model: zigbee_test
|
||||
router: true
|
||||
12
tests/components/zigbee/common_nrf52.yaml
Normal file
12
tests/components/zigbee/common_nrf52.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
packages:
|
||||
- !include common.yaml
|
||||
|
||||
zigbee:
|
||||
model: zigbee_test
|
||||
wipe_on_boot: true
|
||||
on_join:
|
||||
then:
|
||||
- logger.log: "Joined network"
|
||||
|
||||
time:
|
||||
- platform: zigbee
|
||||
1
tests/components/zigbee/test.esp32-c6-idf.yaml
Normal file
1
tests/components/zigbee/test.esp32-c6-idf.yaml
Normal file
@@ -0,0 +1 @@
|
||||
<<: !include common_esp32.yaml
|
||||
@@ -1 +1 @@
|
||||
<<: !include common.yaml
|
||||
<<: !include common_nrf52.yaml
|
||||
|
||||
@@ -1 +1 @@
|
||||
<<: !include common.yaml
|
||||
<<: !include common_nrf52.yaml
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<<: !include common.yaml
|
||||
<<: !include common_nrf52.yaml
|
||||
|
||||
zigbee:
|
||||
wipe_on_boot: once
|
||||
|
||||
Reference in New Issue
Block a user