nodes/d1-mini-on-air-3f5817: Disable Wifi after 60s of not unsuccessful connects so we can set a new password via Improv Serial
This commit is contained in:
@@ -36,9 +36,29 @@ script:
|
||||
blue: 0
|
||||
effect: "None"
|
||||
brightness: 0%
|
||||
- id: set_light_no_wifi
|
||||
then:
|
||||
- light.turn_on:
|
||||
id: indicator
|
||||
red: 0
|
||||
green: 0
|
||||
blue: 1
|
||||
effect: "None"
|
||||
brightness: 30%
|
||||
|
||||
esphome:
|
||||
name: "d1-mini-on-air-${macsuffix}"
|
||||
on_boot:
|
||||
then:
|
||||
- delay: 60s
|
||||
- if:
|
||||
condition:
|
||||
not:
|
||||
wifi.connected
|
||||
then:
|
||||
- wifi.disable
|
||||
- script.execute:
|
||||
id: set_light_no_wifi
|
||||
|
||||
esp8266:
|
||||
board: d1_mini
|
||||
|
Reference in New Issue
Block a user