Compare commits

..

No commits in common. 'cd33006e8cd944ad0cf51edf2afc0003388b1835' and 'd6228f3605bc814a4e90a7d9597a7ab78e9dd915' have entirely different histories.

  1. 30
      ledstring.yml

30
ledstring.yml

@ -33,16 +33,22 @@ binary_sensor:
name: "Button" name: "Button"
on_click: on_click:
then: then:
- lambda: | - switch.toggle:
std::string current = id(ledstring).get_effect_name(); id: ledstring_switch
std::vector<LightEffect *> effects = id(ledstring).get_effects();
for(int i=0; i<effects.size(); i++) { switch:
if(effects[i]->get_name().compare(current) == 0) { - platform: template
auto call = id(ledstring).turn_on(); optimistic: True
call.set_effect(effects[(i+1) % effects.size()]->get_name()); id: ledstring_switch
call.perform(); name: "LED String Switch"
} turn_on_action:
} - light.turn_on:
id: ledstring
brightness: 70%
effect: rainbow
turn_off_action:
- light.turn_off:
id: ledstring
light: light:
- platform: neopixelbus - platform: neopixelbus
@ -66,10 +72,6 @@ light:
name: rainbow name: rainbow
speed: 10 speed: 10
width: 50 width: 50
- addressable_rainbow:
name: slowrainbow
speed: 1
width: 70
- addressable_flicker: - addressable_flicker:
name: flicker name: flicker
update_interval: 50ms update_interval: 50ms

Loading…
Cancel
Save