We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 202fd92 commit d060aa8Copy full SHA for d060aa8
templates/btproxy.yaml
@@ -22,11 +22,19 @@ esp32_ble_tracker:
22
- sensor.template.publish:
23
id: ble_scans_finished
24
state: !lambda 'return ++id(ble_scans);'
25
+ - script.execute: restart_after_delay
26
27
bluetooth_proxy:
28
id: btproxy
29
active: true
30
31
+script:
32
+ - id: restart_after_delay
33
+ mode: restart
34
+ then:
35
+ - delay: 10min
36
+ - button.press: restart_button
37
+
38
sensor:
39
- platform: template
40
name: "btproxy connections free"
templates/restart.yaml
@@ -2,3 +2,4 @@ button:
2
- platform: restart
3
name: "ESP chip restart"
4
entity_category: diagnostic
5
+ id: restart_button
0 commit comments