mirror of
https://github.com/esphome/esphome.git
synced 2026-10-18 04:02:54 +00:00
[esp32_ble] Test ble.enabled, ble.enable and ble.disable (#20838)
This commit is contained in:
@@ -1,2 +1,13 @@
|
||||
esp32_ble:
|
||||
io_capability: keyboard_only
|
||||
|
||||
button:
|
||||
- platform: template
|
||||
name: Toggle BLE
|
||||
on_press:
|
||||
- if:
|
||||
condition: ble.enabled
|
||||
then:
|
||||
- ble.disable:
|
||||
else:
|
||||
- ble.enable:
|
||||
|
||||
Reference in New Issue
Block a user