Skip to content

Commit

Permalink
Restore light state on boot
Browse files Browse the repository at this point in the history
Trying to solve #47
  • Loading branch information
edwardtfn committed Dec 23, 2024
1 parent 226d5db commit 6343e6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_leds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ light:
# method: esp32_rmt
num_leds: 32
pin: GPIO13
restore_mode: RESTORE_DEFAULT_OFF

# Those lights are available based on the model selections
- &light_partition_with_effects
Expand All @@ -52,6 +53,7 @@ light:
platform: partition
default_transition_length: ${default_transition_length}
internal: true
restore_mode: RESTORE_DEFAULT_OFF
effects:
- addressable_rainbow:
name: "Rainbow"
Expand Down Expand Up @@ -184,6 +186,8 @@ light:
platform: partition
disabled_by_default: true
default_transition_length: ${default_transition_length}
restore_mode: RESTORE_DEFAULT_OFF

segments:
- id: light_full
from: 0
Expand Down Expand Up @@ -417,6 +421,7 @@ light:
platform: partition
internal: true
default_transition_length: ${default_transition_length}
restore_mode: RESTORE_DEFAULT_OFF
segments:
- id: light_full
from: 9
Expand Down
1 change: 1 addition & 0 deletions ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_relays.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ light:
output: output_relay_1
platform: binary
internal: true
restore_mode: RESTORE_DEFAULT_OFF
on_turn_on:
then:
- if:
Expand Down

0 comments on commit 6343e6e

Please sign in to comment.