mirror of
https://github.com/esphome/esphome.git
synced 2026-10-01 08:50:22 +00:00
[ld2410] Use register_apply_action for bluetooth_password.set (#19667)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
button:
|
||||
- platform: template
|
||||
name: LD2410 Actions
|
||||
on_press:
|
||||
- bluetooth_password.set:
|
||||
id: my_ld2410
|
||||
password: HiLink
|
||||
- bluetooth_password.set:
|
||||
id: my_ld2410
|
||||
password: !lambda return "HiLink";
|
||||
@@ -0,0 +1,8 @@
|
||||
substitutions:
|
||||
tx_pin: GPIO0
|
||||
rx_pin: GPIO2
|
||||
|
||||
packages:
|
||||
uart: !include ../../test_build_components/common/uart/esp8266-ard.yaml
|
||||
ld2410: !include common.yaml
|
||||
actions: !include common-actions.yaml
|
||||
Reference in New Issue
Block a user