mirror of
https://github.com/dlitz/esphome-configs-dlitz.git
synced 2026-04-15 22:03:26 -06:00
lanbon-l9-hf: Enable Improv-over-BLE, esp32_ble_tracker, and bluetooth_proxy by default
This commit is contained in:
@@ -83,13 +83,15 @@ network:
|
|||||||
enable_ipv6: true
|
enable_ipv6: true
|
||||||
# min_ipv6_addr_count: 2
|
# min_ipv6_addr_count: 2
|
||||||
|
|
||||||
# TODO: test to make sure bluetooth proxy doesn't cause boot looping!
|
esp32_improv:
|
||||||
# esp32_ble_tracker:
|
authorizer: authorize_improv_over_ble_binary_sensor
|
||||||
# scan_parameters:
|
|
||||||
# active: false
|
esp32_ble_tracker:
|
||||||
#
|
scan_parameters:
|
||||||
# bluetooth_proxy:
|
active: false
|
||||||
# active: false
|
|
||||||
|
bluetooth_proxy:
|
||||||
|
active: false
|
||||||
|
|
||||||
time:
|
time:
|
||||||
- id: !extend ${time_source}
|
- id: !extend ${time_source}
|
||||||
@@ -222,6 +224,12 @@ binary_sensor:
|
|||||||
condition:
|
condition:
|
||||||
lvgl.is_paused:
|
lvgl.is_paused:
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
id: authorize_improv_over_ble_binary_sensor
|
||||||
|
name: Authorizing Improv-over-BLE
|
||||||
|
entity_category: diagnostic
|
||||||
|
internal: true
|
||||||
|
|
||||||
light:
|
light:
|
||||||
- platform: monochromatic
|
- platform: monochromatic
|
||||||
id: display_backlight
|
id: display_backlight
|
||||||
@@ -594,6 +602,47 @@ lvgl:
|
|||||||
text_align: CENTER
|
text_align: CENTER
|
||||||
text_font: roboto_20
|
text_font: roboto_20
|
||||||
|
|
||||||
|
- id: page_setup
|
||||||
|
widgets:
|
||||||
|
- button:
|
||||||
|
width: 164
|
||||||
|
height: 100
|
||||||
|
x: 2
|
||||||
|
y: 58
|
||||||
|
id: authorize_improv_over_ble_lvgl_button
|
||||||
|
on_press:
|
||||||
|
- logger.log: "Authorizing Improv-over-BLE"
|
||||||
|
- binary_sensor.template.publish:
|
||||||
|
id: authorize_improv_over_ble_binary_sensor
|
||||||
|
state: ON
|
||||||
|
on_release:
|
||||||
|
- binary_sensor.template.publish:
|
||||||
|
id: authorize_improv_over_ble_binary_sensor
|
||||||
|
state: OFF
|
||||||
|
widgets:
|
||||||
|
- label:
|
||||||
|
id: authorize_improv_over_ble_lvgl_button_label
|
||||||
|
align: CENTER
|
||||||
|
text: "Improv-over-BLE\nAuthorize"
|
||||||
|
text_align: CENTER
|
||||||
|
text_font: roboto_20
|
||||||
|
|
||||||
|
- button:
|
||||||
|
width: 164
|
||||||
|
height: 100
|
||||||
|
x: 2
|
||||||
|
y: 162
|
||||||
|
id: page_setup_lvgl_cancel_button
|
||||||
|
on_release:
|
||||||
|
- lvgl.page.show: page_main
|
||||||
|
widgets:
|
||||||
|
- label:
|
||||||
|
id: page_setup_lvgl_cancel_button_label
|
||||||
|
align: CENTER
|
||||||
|
text: "Cancel"
|
||||||
|
text_align: CENTER
|
||||||
|
text_font: roboto_20
|
||||||
|
|
||||||
globals:
|
globals:
|
||||||
- id: factory_reset_lvgl_button_longpress_ms
|
- id: factory_reset_lvgl_button_longpress_ms
|
||||||
type: int
|
type: int
|
||||||
|
|||||||
Reference in New Issue
Block a user