Skip to content

Commit

Permalink
Add Wifi Reset System
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorSchirmer committed Feb 27, 2024
1 parent 0b53fe9 commit 3ca8c9f
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion Integrations/ESPHome/MSR-1.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#Define Project
substitutions:
name: apollo-msr-1
version: "24.2.20.1"
version: "24.2.21.1"
device_description: ${name} made by Apollo Automation - version ${version}.

esphome:
Expand Down Expand Up @@ -323,6 +323,21 @@ binary_sensor:
} else {
return false;
}
- platform: gpio
pin: GPIO9
id: reset_button
on_press:
then:
- lambda: |-
id(press_timer).start();
on_release:
then:
- lambda: |-
if (id(press_timer).stop() >= 5000) {
//Erase Wifi
ESP.eraseConfig();
ESP.restart();
}
ld2410:
id: ld2410_radar
Expand Down Expand Up @@ -576,3 +591,8 @@ interval:
- light.turn_off:
id: rgb_light
- lambda: 'id(cycleCounter) += 1;'
- interval: 1s
id: press_timer
then:
- lambda: |-
// This is a placeholder to keep track of the button press duration.

0 comments on commit 3ca8c9f

Please sign in to comment.