Toggel strip with push button

I’ve been struggling for a while now but I can’t get over it.

I want to have a strip toggle every time the touch sensor (KY-036) is touched. I’ve already tried a lot more I like but can’t figure it out.
Can someone help me step by step.

Setup Button 0 with the GPIO of our switch, create a toggle preset (T=2) go to Time & Macros page, Button Actions section, enter that preset number for Button 0 short press.

That also does not work when I touch the touch sensor, my eps8266 mini loses its internet connection and the color keeps changing.

Then something is very wrong. Post what you have.

I have the following hardware:

  • AZDelivery ESP8266 D1 Mini NodeMcu
  • ky-036 touch sensor (DO is connected to GPIO0) DO becomes 5V when touched
  • ws2812b led strip (GPIO4)

The LED strip itself works, but if I want to turn it on and off with that touch sensor, the WiFi disconnect.

Is this all you need to know?

If that sensor puts out 5v, I don’t think it will work. The device needs to pull the GPIO pin to ground. You may need to add a transistor in between.

Thank you for your time. I have found a other way to do it.