Skip to content

Commit 54b99bf

Browse files
committed
add default light configs with initial_state
1 parent ba989c9 commit 54b99bf

File tree

4 files changed

+33
-5
lines changed

4 files changed

+33
-5
lines changed

config/kauf-rgbs-4m-minimal.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
packages:
2-
Kauf.RGBSw-m: github://KaufHA/kauf-rgb-switch/kauf-rgbs-minimal.yaml
3-
Kauf.4m: github://KaufHA/kauf-rgb-switch/kauf-rgbs-4m-base.yaml
2+
Kauf.RGBSw-m: github://KaufHA/kauf-rgb-switch/config/kauf-rgbs-minimal.yaml
3+
Kauf.4m: github://KaufHA/kauf-rgb-switch/config/kauf-rgbs-4m-base.yaml

config/kauf-rgbs-4m-update.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
packages:
22
Kauf.RGBSw-u: !include kauf-rgbs-update.yaml
3-
Kauf.4m: github://KaufHA/kauf-rgb-switch/kauf-rgbs-4m-base.yaml
3+
Kauf.4m: !include kauf-rgbs-4m-base.yaml

config/kauf-rgbs-factory.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ esphome:
3030
3131
- lambda: |-
3232
auto call = id(big_light_on).turn_on();
33-
call.set_brightness(1.0f);
33+
call.set_brightness(0.9f);
3434
call.set_rgb(0.0f, 1.0f, 1.0f); // big light cyan when switch is on
3535
call.perform();
3636
- lambda: |-

kauf-rgbs.yaml

Lines changed: 29 additions & 1 deletion
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.362"
18+
project_ver_num: "1.37"
1919
project_ver_let: y
2020

2121
sub_4m: "false"
@@ -472,6 +472,13 @@ light:
472472
on_state:
473473
then:
474474
- script.execute: copy_vals
475+
initial_state:
476+
state: on
477+
color_mode: rgb
478+
red: 100%
479+
green: 0%
480+
blue: 0%
481+
brightness: 75%
475482

476483
- platform: rgb
477484
name: $friendly_name Small On Value
@@ -493,6 +500,13 @@ light:
493500
on_state:
494501
then:
495502
- script.execute: copy_vals
503+
initial_state:
504+
state: on
505+
color_mode: rgb
506+
red: 0%
507+
green: 100%
508+
blue: 0%
509+
brightness: 100%
496510

497511
- platform: rgb
498512
name: $friendly_name Big Light
@@ -526,6 +540,13 @@ light:
526540
on_state:
527541
then:
528542
- script.execute: copy_vals
543+
initial_state:
544+
state: on
545+
color_mode: rgb
546+
red: 0%
547+
green: 100%
548+
blue: 100%
549+
brightness: 25%
529550

530551
- platform: rgb
531552
name: $friendly_name Big On Value
@@ -547,6 +568,13 @@ light:
547568
on_state:
548569
then:
549570
- script.execute: copy_vals
571+
initial_state:
572+
state: on
573+
color_mode: rgb
574+
red: 0%
575+
green: 100%
576+
blue: 100%
577+
brightness: 90%
550578

551579

552580
# https://esphome.io/components/select/index.html

0 commit comments

Comments
 (0)