Having trouble getting my Magic Home RGB (not W) controller setup with Home Assistant. They are both talking fine over MQTT with Mosquitto, but the color wheel on the dashboard and in HomeKit don’t work properly. Colors are not what they are on the wheel, and some appear to be very dim. I’ve pasted my configuration.yaml entry below. On the device I’ve set the module type to MagicHome (34), and setoption19 to 1 for discovery. It is worth noting I can turn the device on and off just fine.
Use the Arilux configuration instead of Magichome. It works a lot better (at least for me the MagicHome module didn’t work and I had the same problem as you).
Second, I will highly recommend you to remove your hardcoded mqtt config (the one you just posted here) and use autodiscovery instead. I know you had setup autodiscovery but it will not work nicely if you still hardcode it into your setup! Not only will you be sure it is going to give you all related entities (including wifi status). But also if you would ever change anything in tasmota the changes will be automatically reflected to Home Assistant). The last reason to do this is that using autodiscovery will make configuring a lot faster as you don’t need to restart Home Assistant whenever you want to change your settings!
How to do this?
Step1a: remove the previous mqtt switch/light you have created (this is important)
Step1: set the correct module, Arilux (in my case)
Step2: go to configuration on tasmota, click on Other and set a friendly name
Step3: still in configuration, go to mqtt settings and setup the topic name (I suggest using the same name as the friendly name).
Step4: at the homepage of tasmota click on console
Step5: enter the following line: SetOption19 on and press enter.
Step6: done! You now should have a working tasmota magic home led controller and set up completely with autodiscovery. No more need for the separate light config and you shouldn’t need to restart Home Assistant (other than to remove your old config). Any new tasmota device can be added in the same way without ever needing to restart HA.
Just to clarify … I am still sort of new to this … this issue and solution refers to LED controllers that have been flashed with new firmware, the Tasmota firmware right?
I’d need to flash my current LED strip controllers with the Tasmota firmware to use this set up/solution?
Also… I have one of the single color versions of these. I can only seem to be able to make it on/off (no dimming) using the 1 channel config or dimmable but with a color wheel that doesn’t do me any good using the Arilux configuration. How do I set it so I only have on/off and brightness control?
Alright… My MagicHome RGB simple strips were working fine, but then we had a power outage which reset the config back to default somehow… Of course, I did not have the setup config documented lol so I had to start from scratch.
I found this post, which clued me into the auto MQTT discovery method (thanks!) however, I discovered a few things in following here…
First - MQTT discovery is not enabled by default, so you’ll need to do that.
Second, for my particular modules, I could not figure out why there seemed to be no red channel. It turns out that for mine, I did need to use the “magichome” device type on my tasmota. I updated the firmware to the latest version (8.4 today) to test the LC01 device type, but same results.
I have not ventured so far as to set different options, as my lights are working again (and it is late). The only one I did set (which does not make a perceivable difference) is fade on
For now, I will leave it this way, as it does seem to be a better overall compatible fit for home assistant, rather than hard-coding the config. If I run into any issues or discover new settings that must be enabled, I will post that here.