[Release] Magic Home Wifi (Drivers) + MagicHome Manager (App)

@adamkempenich
I've finally gotten around to trying your integration out and it's been working fantastic! So well, the wife has become addicted to these wifi strips and has me putting them everywhere.
Miheal WiFi Wireless Smart Phone Controlled Led Strip Light Kit
Thank you!

I also wanted to report a discovery (hilarious at the time) I made by accident. It seems these devices share some IR codes with a cheap Vizio TV I installed last night. I was truly at a loss when during the TV setup procedure, my bed started strobing white. After turning the strips off a couple of times only to have them strobe again, was I able to make the connection. The LED controller's receiver is now covered with tape to avoid a repeat performance.

So, for anyone who would like to partially control Magic Home WiFi RGB strips from their Vizio remotes-

CH+........White Strobe
Info.........Green
Last........Seven Color Dissolve
1..............Blue
2.............Light Green
4.............Cyan
5.............White
6.............Lavender
7..............Orange
9.............Red
Yes, I may have been a little bored. :grin:

1 Like

I had to remove my IR strips in certain spots because of this :laughing: That's a good note to make for everyone else looking at these. I'm glad to hear the driver is working well for you---I really like these lights.

And since I've been dormant, lately---my wedding is quickly approaching, and I've taken a step back from all of this in the meantime.

0.90 will be out some time in the weeks following that :slight_smile: My deadline is 2 weeks before Halloween (I've got something spooky planned at my house!), so at the latest, look for it then.

6 Likes

Looking forward to it and congratulations on the upcoming nuptials!

3 Likes

Hey Adam. I'm trying to set up some WiFi lamps that work nicely with the Magic Home app (all the functions seem to work nicely). But I'm getting some issues. I've tried these 2 drivers from your set....

...but neither of them seem to give complete control over the bulbs. Some of the functions on the device page work, others don't. And here's an example error I'm getting when trying to set the brightness over 5 seconds...

Is there another driver I should be using?

Nope. That version of the driver is missing a parameter in SetLevel(). You can add it in manually, changing the method’s parameter to be:

Def setLevel(level, duration=1)

For now

Ok, not sure how to do that but will take a look when I can. Thanks. Also I noticed the color temperature doesn't change the white tone either. Maybe you can implement that too sometime if possible.

Cheers!

Which bulb is that?

This type (RGBW)...

Smart WiFi Light Bulb Led Lamp 4.5/ 7/10W RGB RGBW E27
https://s.click.aliexpress.com/e/C0k9fQbe

Do you have the flood light, 7w, or 4.5w bulb?

Hi Adam actually I'm not sure if my lamps are exactly this model. I'm away right now so can't check the bar code on the box of my lamps. But they are something like this, purchased on Aliexpress. Basically, they are designated as "RGBW" lamp bulbs that work fine on Magic Home app but don't quite work properly using the 2 drivers I tried thus far. They are interior lamps, so not floods. I recall they are around 7W. It was light level and temperature that I noted were not working. The various effects like coloured strobes and fade from colour to colour were triggering ok.

Is color temperature throwing any errors in your logs? That essentially just runs setColor, so it should work regardless.

I'm away for a few days now and my remote VNC connection via RPi has decided to go on the blink. Sigh. So can't check it right now. Will let you know when I get back.

Thank you!

1 Like

Hello, I am new here. I just have a question about Magic home LED strip. I have set an LED strip as see photo 1 and a rule see photo 2, however, the LED strip only comes on after a menuut or 4 and not at the set time !!! Can anyone explain this? And is it also possible to dim this and set a color via a rule?

Does it work normally when you press on/off in the device itself? I’ve never experienced this with a rule—and I have devices that are require some precision for on/off timing that run every day. If you use a different device, does this still happen?

You can dim and set color through rule machine—absolutely :slight_smile: Just use the set Level or set Color in rule action like with any other decide.

Also: welcome to the community!

Thanks for the response. If I just switch it on, it will switch on immediately but not via the rule. and also controlling a rule to change the color to a level does not even work at all !?

I’ve never experienced this. If you enable logging for the rule and watch your logs, does it have any useful data?

Does this happen if you use a different device?

Just wanted to share with this thread and @adamkempenich that the Hubitat Support team suspected that my Magic Home was causing my hub to lock up and throw Error 500s, causing many of my devices to become unresponsive, and ultimately requiring a reboot.

I originally thought that the Chromecast Beta integration was the source of my problems, but I removed that and still was having probs. When I sent my logs to support, this is the reply I got.

While researching your case, we have identified that your problem may be caused by a custom code. It appears that Magic Home integration may be the cause of your problems. I suggest to temporarily disable any custom code to see if your problem persists. If it is, then we will further research to identify the possible root cause and will provide you with an estimated resolution time-frame.
If your problems go away, then you can enable your custom apps or drivers, one at the time, to identify which one is the problem. Once the offending custom code is identified, then you can escalate the problem in our community so that the developer can fix it.

Not suggesting or implying anything about this driver, and I know @adamkempenich has been working hard on it and been extremely helpful to me and the community. But in case anyone else was running into similar gremlins, I thought I'd share. It could just as easily be a conflict with another driver or device in my system, and not having anything to do with the Magic Home driver itself.

This is the error that I'm getting every minute:

dev:3532019-10-09 06:09:04.342 pm errorjava.lang.NullPointerException: Cannot invoke method minus() on null object on line 473 (socketStatus)
dev:3532019-10-09 06:09:00.147 pm errorjava.lang.NullPointerException: Cannot invoke method minus() on null object on line 473 (socketStatus)
dev:3532019-10-09 06:09:00.099 pm debugfalse
dev:3532019-10-09 06:08:04.415 pm errorjava.lang.NullPointerException: Cannot invoke method minus() on null object on line 473 (socketStatus)
dev:3532019-10-09 06:08:00.255 pm errorjava.lang.NullPointerException: Cannot invoke method minus() on null object on line 473 (socketStatus)
dev:3532019-10-09 06:08:00.122 pm debugfalse
dev:3532019-10-09 06:07:00.185 pm errorjava.lang.NullPointerException: Cannot invoke method minus() on null object on line 473

1 Like

Interesting. Thanks for the report. Which driver are you using, and after how long did you notice the 500 error was happening? I’m not getting the minus issue, but I would love to solve this once and for all.

I’ve never been able to link a 500 error with the updated drivers, but I’ve had my occasional suspicions.

Edit: I just wanted to add that I get 500 errors even with the MagicHome devices disabled. Perhaps I have another bad driver/app, as well. To combat it, I reboot every day at 0300 and haven’t had any issues in a few weeks. Anyone else experiencing this? Data is power :slight_smile:

I was trying to avoid doing the daily reboot, but I guess its probably the easiest way to solve the symptoms.

I'd been having the issue with .87 and then upgraded today to .88 and ran into the same issue. Sometimes thing would work for a few days, and othertimes something would lock up in a few hours. So I finally just shot my logs to Support to see what they had to say.

Most of my research led me to believe the Chromecast Integration was causing my freezes, and I was humming along nicely for almost a week before I got my 500 today (while playing with the Plex Communicator and Media Scene apps).

Like I said, I don't mean to imply anything is wrong with the driver. Just wanted to share what the official support team had to say.

1 Like

I don't know which specific driver @ckronengold is using, but I can tell you I have never seen a 500 error with the RGB Controller using sockets.

1 Like