Skip to content

Commit

Permalink
Merge pull request #41 from ApolloAutomation/TestModification
Browse files Browse the repository at this point in the history
Modify Automated Test
  • Loading branch information
TrevorSchirmer authored Oct 11, 2024
2 parents e0d5e1a + aba976a commit 7672ddb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Integrations/ESPHome/AIR-1.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#Define Project
substitutions:
name: apollo-air-1
version: "24.10.10.1"
version: "24.10.11.1"
device_description: ${name} made by Apollo Automation - version ${version}.

esphome:
Expand Down
32 changes: 3 additions & 29 deletions Integrations/ESPHome/Core.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
substitutions:
name: apollo-air-1
version: "24.10.10.1"
version: "24.10.11.1"
device_description: ${name} made by Apollo Automation - version ${version}.

esp32:
Expand Down Expand Up @@ -52,14 +52,6 @@ globals:
restore_value: no
type: bool
initial_value: "false"
- id: sen55VOCPassed
restore_value: no
type: bool
initial_value: "false"
- id: sen55PMPassed
restore_value: no
type: bool
initial_value: "false"


i2c:
Expand Down Expand Up @@ -362,28 +354,10 @@ script:
- lambda: "return id(dps310pressure).state > 800 && id(dps310pressure).state < 1200;"
then:
- lambda: "id(dps310Passed) = true;"
- if:
condition:
- lambda: "return id(sen55VOCPassed) == false;"
then:
- if:
condition:
- lambda: "return id(sen55_voc).state > 10;"
then:
- lambda: "id(sen55VOCPassed) = true;"
- if:
condition:
- lambda: "return id(sen55PMPassed) == false;"
then:
- if:
condition:
- lambda: "return id(pm_10_0).state > 0.2;"
then:
- lambda: "id(sen55PMPassed) = true;"

- if:
condition:
- lambda: "return id(dps310Passed) && id(sen55VOCPassed) && id(sen55PMPassed);"
- lambda: "return id(dps310Passed);"
then:
- lambda: "id(testCycleCount) = 10;"
- lambda: "id(runTest) = false;"
Expand All @@ -393,7 +367,7 @@ script:
#Check If Test Passed To Trigger Lights
- if:
condition:
- lambda: "return id(dps310Passed) && id(sen55VOCPassed) && id(sen55PMPassed);"
- lambda: "return id(dps310Passed);"
then:
- lambda: "id(runTest) = false;"
- light.turn_on:
Expand Down

0 comments on commit 7672ddb

Please sign in to comment.