Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions Integrations/ESPHome/Core.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
substitutions:
name: apollo-msr-2
version: "25.2.21.2"
version: "25.6.24.1"
device_description: ${name} made by Apollo Automation - version ${version}.

esp32:
Expand Down Expand Up @@ -294,7 +294,7 @@ binary_sensor:
return false;
}
- platform: gpio
pin:
pin:
number: GPIO9
inverted: true
ignore_strapping_warning: true
Expand All @@ -306,19 +306,18 @@ binary_sensor:
then:
- lambda: |-
id(button_press_timestamp) = millis();

on_release:
then:
- lambda: |-
if (millis() - id(button_press_timestamp) >= 1000) {
if (millis() - id(button_press_timestamp) >= 8000) {
id(factory_reset_switch).turn_on();
}
else if (millis() - id(button_press_timestamp) >= 1000) {
id(testCycleCount) = 0;
id(runTest) = true;
id(testScript).execute();
}
else if (millis() - id(button_press_timestamp) >= 8000) {
id(factory_reset_switch).turn_on();

}

ld2410:
id: ld2410_radar
Expand Down Expand Up @@ -797,4 +796,4 @@ script:
green: 0%
blue: 0%
- light.turn_off:
id: rgb_light
id: rgb_light