summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2022-11-22 13:16:03 +0100
committermanuel <manuel@mausz.at>2022-11-22 13:16:03 +0100
commit714da4710132ef1af05640d3e10aab507101f70d (patch)
treead816ff7d14f4807682fd32b8e13e0ff27d0cbf6
parentf94bacd3008027789008f84704db77caa58899a1 (diff)
downloadarduino-714da4710132ef1af05640d3e10aab507101f70d.tar.gz
arduino-714da4710132ef1af05640d3e10aab507101f70d.tar.bz2
arduino-714da4710132ef1af05640d3e10aab507101f70d.zip
esphome: Add restore_mode
-rw-r--r--esphome/config/hoblight.yaml3
-rw-r--r--esphome/config/tvlight.yaml3
2 files changed, 5 insertions, 1 deletions
diff --git a/esphome/config/hoblight.yaml b/esphome/config/hoblight.yaml
index 7135ae2..0421ea4 100644
--- a/esphome/config/hoblight.yaml
+++ b/esphome/config/hoblight.yaml
@@ -37,6 +37,8 @@ light:
37 warm_white: pwm_b 37 warm_white: pwm_b
38 cold_white_color_temperature: 6536 K 38 cold_white_color_temperature: 6536 K
39 warm_white_color_temperature: 2000 K 39 warm_white_color_temperature: 2000 K
40 restore_mode: RESTORE_AND_OFF
41
40 - id: hob_dimmer 42 - id: hob_dimmer
41 platform: color_temperature 43 platform: color_temperature
42 name: "Hob Dimmer" 44 name: "Hob Dimmer"
@@ -44,6 +46,7 @@ light:
44 brightness: pwm_gpio0 46 brightness: pwm_gpio0
45 cold_white_color_temperature: 6536 K 47 cold_white_color_temperature: 6536 K
46 warm_white_color_temperature: 2000 K 48 warm_white_color_temperature: 2000 K
49 restore_mode: RESTORE_AND_OFF
47 50
48output: 51output:
49 #- id: pwm_r 52 #- id: pwm_r
diff --git a/esphome/config/tvlight.yaml b/esphome/config/tvlight.yaml
index 53b4398..4447744 100644
--- a/esphome/config/tvlight.yaml
+++ b/esphome/config/tvlight.yaml
@@ -34,11 +34,13 @@ light:
34 output: dimmer_tvlight 34 output: dimmer_tvlight
35 default_transition_length: 1.5s 35 default_transition_length: 1.5s
36 gamma_correct: 0 36 gamma_correct: 0
37 restore_mode: RESTORE_AND_OFF
37 38
38 - id: wled 39 - id: wled
39 platform: binary 40 platform: binary
40 name: "WLED" 41 name: "WLED"
41 output: relay_wled 42 output: relay_wled
43 restore_mode: ALWAYS_OFF
42 44
43output: 45output:
44 - id: dimmer_tvlight 46 - id: dimmer_tvlight
@@ -59,4 +61,3 @@ power_supply:
59 pin: D2 61 pin: D2
60 #enable_time: 3s 62 #enable_time: 3s
61 keep_on_time: 20ms 63 keep_on_time: 20ms
62