mirror of
https://github.com/esphome/esphome.git
synced 2026-10-01 08:50:22 +00:00
[zigbee] Implement switch support for esp32 (#17579)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot Autofix powered by AI
Jonathan Swoboda
pre-commit-ci-lite[bot]
parent
cb47dfcf0e
commit
568c1ae494
@@ -45,6 +45,17 @@ sensor:
|
||||
device_class: volume_flow_rate
|
||||
cluster: device_class
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
name: "Template Switch 1"
|
||||
optimistic: true
|
||||
cluster: on_off
|
||||
- platform: template
|
||||
name: "Template Switch 2"
|
||||
optimistic: true
|
||||
cluster: on_off
|
||||
device_class: outlet
|
||||
|
||||
zigbee:
|
||||
model: zigbee_test
|
||||
router: false
|
||||
|
||||
Reference in New Issue
Block a user