Skip to content

Commit

Permalink
update factory routine
Browse files Browse the repository at this point in the history
  • Loading branch information
KaufHA committed Jul 12, 2022
1 parent 9790b89 commit 20e5981
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions kauf-plug-factory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ esphome:
# disable button toggling relay
- select.set:
id: select_button
option: "Disabled"
option: "Don't Toggle"

# turn on relay to draw current
- switch.turn_on: relay
Expand Down Expand Up @@ -54,7 +54,7 @@ esphome:
# re-enable button toggling relay
- select.set:
id: select_button
option: "Enabled"
option: "Toggle on Release"

# delay time to save above changes
- delay: 3s
Expand All @@ -66,16 +66,10 @@ esphome:
then:
- light.toggle: blue_led
- delay: 100ms
- while:
condition:
binary_sensor.is_on: button_in
then:
- light.turn_on: blue_led
- delay: 50ms


globals:
- id: first_boot # used to run routine at factory to confirm
type: bool # correct firwmare is running.
type: bool # correct firmware is running.
restore_value: yes
initial_value: 'true'

0 comments on commit 20e5981

Please sign in to comment.