Skip to content

Commit

Permalink
Merge pull request ApolloAutomation#25 from ApolloAutomation/ControlL…
Browse files Browse the repository at this point in the history
…EDStartup

Allow Controlling Startup LED
  • Loading branch information
TrevorSchirmer authored Dec 18, 2023
2 parents 3bf21a0 + f8efba0 commit 8dfbb10
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
12 changes: 11 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: "23.12111"
version: "23.12181"
device_description: ${name} made by Apollo Automation - version ${version}.

esphome:
Expand Down Expand Up @@ -516,6 +516,13 @@ switch:
id: radar_bluetooth
engineering_mode:
name: "Radar Engineering Mode"
- platform: template
name: "Startup Light Blink"
id: startup_light_blink
icon: mdi:lightbulb
restore_mode: RESTORE_DEFAULT_ON
optimistic: true
entity_category: "config"

text_sensor:
- platform: ld2410
Expand All @@ -528,6 +535,7 @@ select:
name: "Radar Distance Resolution"



#Used To Control RGB Light On Startup. Tells User Status Of Device
interval:
- interval: 1s
Expand All @@ -536,6 +544,7 @@ interval:
condition:
- binary_sensor.is_off: ink_ha_connected
- lambda: 'return id(cycleCounter) < 30;'
- switch.is_on: startup_light_blink

then:
- light.toggle:
Expand All @@ -549,6 +558,7 @@ interval:
- binary_sensor.is_off: ink_ha_connected
- lambda: 'return id(cycleCounter) > 30;'
- lambda: 'return id(cycleCounter) < 31;'
- switch.is_on: startup_light_blink

then:
- light.turn_off:
Expand Down
Binary file modified Integrations/ESPHome/firmware-factory.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion Integrations/ESPHome/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apollo-msr-1",
"version": "23.12111",
"version": "23.12181",
"new_install_prompt_erase": false,
"builds": [
{
Expand Down

0 comments on commit 8dfbb10

Please sign in to comment.