Start backlight idle cycle after boot
This commit is contained in:
@@ -27,10 +27,16 @@ esphome:
|
|||||||
includes:
|
includes:
|
||||||
- lab-ble-proxy.h
|
- lab-ble-proxy.h
|
||||||
on_boot:
|
on_boot:
|
||||||
priority: 850
|
- priority: 850
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
owon_b35t::core2_axp192_init(id(core2_i2c));
|
owon_b35t::core2_axp192_init(id(core2_i2c));
|
||||||
|
# Start the normal dimming/off cycle after a cold boot as well. The
|
||||||
|
# light component is initialized by this priority, while BLE callbacks
|
||||||
|
# and touch events can still restart the script through wake_backlight.
|
||||||
|
- priority: 600
|
||||||
|
then:
|
||||||
|
- script.execute: backlight_idle
|
||||||
project:
|
project:
|
||||||
name: "custom.lab-ble-proxy-m5stack-core2"
|
name: "custom.lab-ble-proxy-m5stack-core2"
|
||||||
version: "1.0"
|
version: "1.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user