mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 14:43:51 +00:00
binary_sensor for switch state (#7819)
This commit is contained in:
11
tests/components/switch/common.yaml
Normal file
11
tests/components/switch/common.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
binary_sensor:
|
||||
- platform: switch
|
||||
id: some_binary_sensor
|
||||
name: "Template Switch State"
|
||||
source_id: the_switch
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
name: "Template Switch"
|
||||
id: the_switch
|
||||
optimistic: true
|
||||
Reference in New Issue
Block a user