|
|
|
@ -33,6 +33,15 @@ light:
@@ -33,6 +33,15 @@ light:
|
|
|
|
|
output: pwm_output |
|
|
|
|
name: "Blaue Lichterkette" |
|
|
|
|
id: blaue_lichterkette |
|
|
|
|
effects: |
|
|
|
|
- lambda: |
|
|
|
|
name: "My Random Lambda Effect with Randomness" |
|
|
|
|
update_interval: 3s |
|
|
|
|
lambda: |- |
|
|
|
|
auto call = id(blaue_lichterkette).turn_on(); |
|
|
|
|
call.set_transition_length(3000); |
|
|
|
|
call.set_brightness(0.5 + random_float() * 0.5); |
|
|
|
|
call.perform(); |
|
|
|
|
|
|
|
|
|
binary_sensor: |
|
|
|
|
- platform: gpio |
|
|
|
|