Home Assistant Community

[solved] Looking for ideas how to WW LED strip, wifi controller + physical button

#1

Hi. I am looking for an ideas how to make possible kitchen LED lights (warm white, not the RGB ones) to be turned on/off via hassio (also to dim), but also via physical button near the controller.

One option is Led strip + sonoff with tasmota, but then there is no option for dimming the Led strip.

Another option, is with Smart Home controller, but the controller is only for RGB and comes with IR remote, not a hardware switch.

Third option is to make my own controller with Node MCU, but Im yet still a novice into that.

maybe someone has already a solution or an idea for this scenario.

Thaanks.

0 Likes

#2

Take a look at this;

0 Likes

#3

Yeah but that requires a bulb that knows how to dim electronically.

0 Likes

#4

thanks, yes, I did see see this thread, but I am not quite sure how it will dim the ‘dumb’ led strip. Or it could give somehow the command to the Magic Home controller, to dim or turn off/on.

0 Likes

#5

Ok, I misunderstood your question.

0 Likes

#6

Are you using a MagicHome LED strip controller

You can desolder the IR receiver and use a push button instead on the GPIO.
You don’t have to use the full RGB, you could just wire it to the white LED wire.

0 Likes

#7

Yes, I am using the MagicHome controller. But as the HA does not read the IR state (on/off), when I turn on the leds with IR, the HA does not know that the strip is on. So it means that the physical button will work the same?

p.s. the I havent flashed the tasmota on MagicHome. It has original firmware.

I should solider the button, GPO-0 and GND as in the picture of MagicHome controller? So I need to flash the tasmota, so it will work as state change if the button is pressed?

0 Likes

#8

I personally use LightWaveRF wall switches, but I understand this may be an investment, especially if you have no 433MHz hub and since LWRF have bumped their prices up.
On the other side, i have various LED strips powered /controlled by a WeMos D1 Mini Pro over MQTT.
I’m sure there are “fake” switches out there that you could use to control this via HA.
Or you could make your own with a Wemos card and a potentiometer and a 3D printed custom case…
You can also check this thread with a fab smart switch:
HA SwitchPlate - DIY LCD Touchscreen wall switch replacement.

0 Likes

#9

Uploaded succesfully Espurna to Magic Home controller. Everything works great via home Assistant, also the Remote control on/off works. But still struggling how to add physical button, maybe there is a way to change IR capabilities to simple on off button.

0 Likes

#10

Finally did it, using Espruma and physical button using GPIO0 and GND, by compiling espruma binary with changed hardware.h file.

addded to MAGICHOME_LED_CONTROLLER definition:

#define BUTTON1_PIN 0 // if IO0 is used
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
#define BUTTON1_RELAY 1
#define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
#define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
#define DUMMY_RELAY_COUNT 1

thanks for your help

1 Like

#11

Hi, can you post a picture of the button you used or a link? I’m trying to do a similar project, an mqtt button, but I’m a total noob

0 Likes

#12

Hi, I am using ordinary push button, that changes state when its pressed, and return state when its released.

similar to this.

This setup did not work with switch, tho.

0 Likes