mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
feat: Add ESP32 BLE enable/disable automations (#5616)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
@@ -104,6 +104,12 @@ binary_sensor:
|
||||
on_release:
|
||||
then:
|
||||
- switch.turn_off: Led0
|
||||
- if:
|
||||
condition: ble.enabled
|
||||
then:
|
||||
- ble.disable:
|
||||
else:
|
||||
- ble.enable:
|
||||
|
||||
- platform: tm1638
|
||||
id: Button1
|
||||
@@ -273,6 +279,7 @@ output:
|
||||
demo:
|
||||
|
||||
esp32_ble:
|
||||
enable_on_boot: false
|
||||
|
||||
esp32_ble_server:
|
||||
manufacturer: ESPHome
|
||||
|
Reference in New Issue
Block a user