Skip to content

Commit e2d1959

Browse files
committed
update for esphome 2023.04
1 parent b9a607f commit e2d1959

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

kauf-rgbs-lite.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,15 @@ switch:
299299
- platform: gpio
300300
id: relay
301301
pin: GPIO15
302+
restore_mode: RESTORE_DEFAULT_OFF
302303

303304
# https://esphome.io/components/switch/template.html
304305
- platform: template
305306
name: $friendly_name
306307
id: ui_switch
307308
restore_state: true
308309
optimistic: true
310+
restore_mode: RESTORE_DEFAULT_OFF
309311

310312
on_turn_on:
311313
then:
@@ -335,6 +337,7 @@ switch:
335337
entity_category: config
336338
disabled_by_default: $disable_entities
337339
icon: mdi:toggle-switch-off-outline
340+
restore_mode: RESTORE_DEFAULT_ON
338341

339342
on_turn_on:
340343
- lambda: |-
@@ -404,6 +407,7 @@ light:
404407
green: pwm1_green
405408
blue: pwm1_blue
406409
default_transition_length: $sub_transition_length
410+
restore_mode: RESTORE_DEFAULT_ON
407411

408412
- platform: rgb
409413
name: $friendly_name Small Off Value
@@ -413,6 +417,7 @@ light:
413417
blue: bit_bucket
414418
entity_category: config
415419
default_transition_length: 0s
420+
restore_mode: RESTORE_DEFAULT_ON
416421
effects:
417422
- lambda:
418423
name: Disabled
@@ -430,6 +435,7 @@ light:
430435
blue: bit_bucket
431436
entity_category: config
432437
default_transition_length: 0s
438+
restore_mode: RESTORE_DEFAULT_ON
433439
effects:
434440
- lambda:
435441
name: Disabled
@@ -446,6 +452,7 @@ light:
446452
green: pwm2_green
447453
blue: pwm2_blue
448454
default_transition_length: $sub_transition_length
455+
restore_mode: RESTORE_DEFAULT_ON
449456

450457
- platform: rgb
451458
name: $friendly_name Big Off Value
@@ -455,6 +462,7 @@ light:
455462
blue: bit_bucket
456463
entity_category: config
457464
default_transition_length: 0s
465+
restore_mode: RESTORE_DEFAULT_ON
458466
effects:
459467
- lambda:
460468
name: Disabled
@@ -472,6 +480,7 @@ light:
472480
blue: bit_bucket
473481
entity_category: config
474482
default_transition_length: 0s
483+
restore_mode: RESTORE_DEFAULT_ON
475484
effects:
476485
- lambda:
477486
name: Disabled

kauf-rgbs-minimal.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ switch:
7272
id: relay
7373
pin: GPIO15
7474
name: $friendly_name
75+
restore_mode: RESTORE_DEFAULT_OFF
7576

7677

7778
# PWM outputs for each LED channel
@@ -123,6 +124,7 @@ light:
123124
green: pwm1_green
124125
blue: pwm1_blue
125126
default_transition_length: 333ms
127+
restore_mode: RESTORE_DEFAULT_ON
126128

127129
- platform: rgb
128130
name: $friendly_name Big Light
@@ -131,3 +133,4 @@ light:
131133
green: pwm2_green
132134
blue: pwm2_blue
133135
default_transition_length: 333ms
136+
restore_mode: RESTORE_DEFAULT_ON

kauf-rgbs.yaml

+12-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ substitutions:
1515

1616
# https://esphome.io/components/esphome.html#esphome-creators-project
1717
project_name: Kauf.RGBSw
18-
project_ver_num: "1.336"
18+
project_ver_num: "1.337"
1919
project_ver_let: y
2020

2121
disable_entities: "true" # set to "false" to have all entities show up in Home Assistant automatically
@@ -121,7 +121,7 @@ external_components:
121121
- source:
122122
type: git
123123
url: https://github.com/KaufHA/common
124-
ref: v2023.03.14
124+
ref: v2023.04.18
125125
refresh: never
126126

127127

@@ -314,6 +314,7 @@ switch:
314314
forced_hash: 3551080420
315315
forced_addr: 0
316316
global_addr: global_forced_addr
317+
restore_mode: RESTORE_DEFAULT_OFF
317318

318319
# https://esphome.io/components/switch/template.html
319320
- platform: template
@@ -324,6 +325,7 @@ switch:
324325
forced_hash: 4098969537
325326
forced_addr: 2
326327
global_addr: global_forced_addr
328+
restore_mode: RESTORE_DEFAULT_OFF
327329

328330
on_turn_on:
329331
then:
@@ -356,6 +358,7 @@ switch:
356358
forced_hash: 1672474889
357359
forced_addr: 4
358360
global_addr: global_forced_addr
361+
restore_mode: RESTORE_DEFAULT_ON
359362

360363
on_turn_on:
361364
- lambda: |-
@@ -428,6 +431,8 @@ light:
428431
forced_hash: 3940173824
429432
forced_addr: 10
430433
global_addr: global_forced_addr
434+
restore_mode: RESTORE_DEFAULT_ON
435+
431436

432437
- platform: rgb
433438
name: $friendly_name Small Off Value
@@ -440,6 +445,7 @@ light:
440445
forced_hash: 1452166609
441446
forced_addr: 22
442447
global_addr: global_forced_addr
448+
restore_mode: RESTORE_DEFAULT_ON
443449
effects:
444450
- lambda:
445451
name: Disabled
@@ -460,6 +466,7 @@ light:
460466
forced_hash: 1530533365
461467
forced_addr: 34
462468
global_addr: global_forced_addr
469+
restore_mode: RESTORE_DEFAULT_ON
463470
effects:
464471
- lambda:
465472
name: Disabled
@@ -479,6 +486,7 @@ light:
479486
forced_hash: 3403140939
480487
forced_addr: 46
481488
global_addr: global_forced_addr
489+
restore_mode: RESTORE_DEFAULT_ON
482490

483491
- platform: rgb
484492
name: $friendly_name Big Off Value
@@ -491,6 +499,7 @@ light:
491499
forced_hash: 730390778
492500
forced_addr: 58
493501
global_addr: global_forced_addr
502+
restore_mode: RESTORE_DEFAULT_ON
494503
effects:
495504
- lambda:
496505
name: Disabled
@@ -511,6 +520,7 @@ light:
511520
forced_hash: 1638474020
512521
forced_addr: 70
513522
global_addr: global_forced_addr
523+
restore_mode: RESTORE_DEFAULT_ON
514524
effects:
515525
- lambda:
516526
name: Disabled

0 commit comments

Comments
 (0)