MagicHome RGB LED Strip Troubleshooting and IR rules setup

I have just flashed Tasmota on a MagicHome RGB LED stip controller and attempted to configure HomeAssistant.

The controller is the same as this one. RGB only.

Firstly, I set the ‘Module type’ as ‘34 MagicHome’ in Tasmota and then the HomeAssistant configuration as here.

I was having an issue where sending red was producing no colour, sending green was producing red and sending blue was producing green.

This post was me asking for help, but I have since edited it to a ‘asked and answered’ type format for anyone else having the same issue.

For anyone that finds this and is having the same issues (or for when my config gets wiped and I need to do it again!), I managed to solve it.

In the Tasmota config I set the module type to be “18 Generic” and then set GPIO5 to be PWM1, GPIO12 to be PWM2 and GPIO13 to be PWM3.

I kept the config the same as I linked and removed the lines regarding the White channel. This gives me the correct colours for my model.

1 Like

I have just got the IR remote working as well using Tasmota rules.

From the MQTT dev tool (on HassIO) I sent the topics following:

cmnd/deviceName/rule1
cmnd/deviceName/rule2
cmnd/deviceName/rule3

The following payloads:

on IrReceived#Data=FF906F do dimmer + endon on IrReceived#Data=FFB847 do dimmer - endon on IrReceived#Data=FFF807 do power OFF endon on IrReceived#Data=FFB04F do power ON endon on IrReceived#Data=FF9867 do color #ff0000 endon on IrReceived#Data=FFD827 do color #00ff00 endon on IrReceived#Data=FF8877 do color #0000ff endon on IrReceived#Data=FFA857 do color #FFFFFF endon

on IrReceived#Data=FFE817 do color #996600 endon on IrReceived#Data=FF48B7 do color #009900 endon on IrReceived#Data=FF6897 do color #0066ff endon on IrReceived#Data=FF02FD do color #ff9900 endon on IrReceived#Data=FF32CD do color #0099ff endon on IrReceived#Data=FF20DF do color #6600ff endon on IrReceived#Data=FF50AF do color #ffcc00 endon

on IrReceived#Data=FF7887 do color #0066cc endon on IrReceived#Data=FF708F do color #cc00ff endon on IrReceived#Data=FF38C7 do color #ffff00 endon on IrReceived#Data=FF28D7 do color #66ccff endon on IrReceived#Data=FFF00F do color #ff00ff endon

This covers all buttons except the flash/strobe/fade/smooth ones. The colours aren’t great currently so I need to tweak them (some look too similar to others). I might post a reply when I get it sorted.

2 Likes

Oh, and don’t forget to set the rules to be ON “rule1 1” etc in the Tasmota console.

Thanks for the info

If you are on Tasmota 6.5.0 the new commands are:

cmnd/deviceName/rule1

on IrReceived#Data=0xFF906F do dimmer + endon on IrReceived#Data=0xFFB847 do dimmer - endon on IrReceived#Data=0xFFF807 do power OFF endon on IrReceived#Data=0xFFB04F do power ON endon on irReceived#Data=0xFF9867 do color #ff0000 endon on IrReceived#Data=0xFFD827 do color #00ff00 endon on IrReceived#Data=0xFF8877 do color #0000ff endon on IrReceived#Data=0xFFA857 do color #FFFFFF endon



cmnd/deviceName/rule2

on IrReceived#Data=0xFFE817 do color #996600 endon on irReceived#Data=0xFF48B7 do color #009900 endon on IrReceived#Data=0xFF6897 do color #0066ff endon on IrReceived#Data=0xFF02FD do color #ff9900 endon on IrReceived#Data=0xFF32CD do color #0099ff endon on IrReceived#Data=0xFF20DF do color #6600ff endon on IrReceived#Data=0xFF50AF do color #ffcc00 endon



cmnd/deviceName/rule3

on IrReceived#Data=0xFF7887 do color #0066cc endon on IrReceived#Data=0xFF708F do color #cc00ff endon on IrReceived#Data=0xFF38C7 do color #ffff00 endon on IrReceived#Data=0xFF28D7 do color #66ccff endon

on IrReceived#Data=0xFFF00F do color #ff00ff endon

If you are using Tasmota 6.6.0 the new commands are:

on IrReceived#Data=0x00FF906F do …

Needed some time to figure it out…Noticed the full HEX code???

in addition in version 6.7.1 of Tasmota you will need to enable the rules by

Rule1 1
Rule2 1
Rule3 1

To Disable

Rule1 0
Rule2 0
Rule3 0