mirror of
https://github.com/Anonym-tsk/smart-domofon.git
synced 2026-01-03 23:29:02 +03:00
Small changes
This commit is contained in:
@@ -67,4 +67,5 @@ binary_sensor:
|
||||
id(mode_auto_open_once) = false;
|
||||
id(mode_auto_reject) = false;
|
||||
- delay: 10ms
|
||||
- script.execute: led_blink_blue_1_once
|
||||
- script.execute: led_blink_blue_1_once
|
||||
# - <<: !include includes/binary_sensor.captive.yaml
|
||||
23
ge1mer/domofon_packages/includes/binary_sensor.captive.yaml
Normal file
23
ge1mer/domofon_packages/includes/binary_sensor.captive.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
# 8 times click - run captive portal
|
||||
timing:
|
||||
- ON for 5ms to 1s
|
||||
- OFF for 5ms to 1s
|
||||
- ON for 5ms to 1s
|
||||
- OFF for 5ms to 1s
|
||||
- ON for 5ms to 1s
|
||||
- OFF for 5ms to 1s
|
||||
- ON for 5ms to 1s
|
||||
- OFF for 5ms to 1s
|
||||
- ON for 5ms to 1s
|
||||
- OFF for 5ms to 1s
|
||||
- ON for 5ms to 1s
|
||||
- OFF for 5ms to 1s
|
||||
- ON for 5ms to 1s
|
||||
- OFF for 5ms to 1s
|
||||
- ON for 5ms to 1s
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGW("DMF", "Erase settings and restart...");
|
||||
captive_portal::global_captive_portal->override_sta_mqtt("-----", "", "10.0.0.1", "1883", "", "");
|
||||
delay(500);
|
||||
ESP.restart();
|
||||
Reference in New Issue
Block a user