Reinstate auto-restart on btproxy 15min silence
Too early -- Laundry BT still needs this.
This reverts commit d40da1a871.
This commit is contained in:
@@ -26,6 +26,7 @@ esp32_ble_tracker:
|
|||||||
- sensor.template.publish:
|
- sensor.template.publish:
|
||||||
id: ble_scans_finished
|
id: ble_scans_finished
|
||||||
state: !lambda 'return ++id(ble_scans);'
|
state: !lambda 'return ++id(ble_scans);'
|
||||||
|
- script.execute: restart_after_delay
|
||||||
|
|
||||||
bluetooth_proxy:
|
bluetooth_proxy:
|
||||||
id: btproxy
|
id: btproxy
|
||||||
@@ -35,6 +36,16 @@ bluetooth_proxy:
|
|||||||
esp32_ble:
|
esp32_ble:
|
||||||
max_connections: 4
|
max_connections: 4
|
||||||
|
|
||||||
|
script:
|
||||||
|
- id: restart_after_delay
|
||||||
|
mode: restart
|
||||||
|
then:
|
||||||
|
- delay: 15min
|
||||||
|
- logger.log:
|
||||||
|
level: ERROR
|
||||||
|
format: "No recent successful Bluetooth scan, restarting ESP chip"
|
||||||
|
- button.press: restart_button
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: template
|
- platform: template
|
||||||
name: "BLE scans finished"
|
name: "BLE scans finished"
|
||||||
|
|||||||
Reference in New Issue
Block a user