i have a nodemcu with a button and a led strip.
inside the nodemcu yaml I managed to configure the button to turn on the led strip:
light:
- platform: fastled_clockless
chipset: WS2812B
pin: D2
num_leds: 28
rgb_order: GRB
name: "Fita led mini"
id: Fita_led_mini
binary_sensor:
- platform: gpio
pin:
number: D1
mode: INPUT_PULLUP
inverted: true
name: "Botao"
on_press:
then:
- light.toggle: Fita_led_mini
What I can’t do is make the button trigger an entity that isn’t in nodemcu’s yaml.
What I wanted was this:
light:
- platform: fastled_clockless
chipset: WS2812B
pin: D2
num_leds: 28
rgb_order: GRB
name: "Fita led mini"
id: Fita_led_mini
binary_sensor:
- platform: gpio
pin:
number: D1
mode: INPUT_PULLUP
inverted: true
name: "Botao"
on_press:
then:
- light.toggle: Fita_led_mini
on_double_click:
then:
- light.toggle: **OTHER ENTITY***