Browse Source

add a more jumpy random lambda effect

master
Fr3deric 5 years ago
parent
commit
cd522cf7da
  1. 10
      blaue_lichterkette.yaml

10
blaue_lichterkette.yaml

@ -42,6 +42,14 @@ light:
call.set_transition_length(3000); call.set_transition_length(3000);
call.set_brightness(0.5 + random_float() * 0.5); call.set_brightness(0.5 + random_float() * 0.5);
call.perform(); call.perform();
- lambda:
name: "My Jumpy Random Lambda Effect with Fast Randomness"
update_interval: 0.5s
lambda: |-
auto call = id(blaue_lichterkette).turn_on();
call.set_transition_length(200);
call.set_brightness(0.3 + random_float() * 0.7);
call.perform();
binary_sensor: binary_sensor:
- platform: gpio - platform: gpio
@ -56,4 +64,4 @@ binary_sensor:
on_release: on_release:
then: then:
light.toggle: light.toggle:
id: blaue_lichterkette id: blaue_lichterkette

Loading…
Cancel
Save