Files
smart-domofon/ge1mer/domofon_packages/includes/binary_sensor.captive.yaml
Nikolay Vasilchuk c25071df35 Small changes
2021-03-25 13:41:20 +03:00

23 lines
577 B
YAML

# 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();