Got the basics working on my wifi controller. THANKS!
I am having trouble figuring out the presets. Can I set a custom preset? Also I thought I read there was a warm white preset, but all I have is fades and strobes of different colors.
There are 21 built-in presets that each device has. Those are the presets in the driver.
Custom ones can be added—I’ve reverse engineered that, but creating a functional UI to make and call them in HE... that’s the tough part. I have a few ideas that I will experiment with once I get the driver in a more stable spot.
So Brand New to Hubitat, I installed your drive for my devices, but how do I add them? I go to devices and click Lan and it says its handled in the apps section, what app do I need. Thanks Look forward to using your driver.
Enter your device name and network name, select MagicHome Wifi (device type) for your proper device type.
Click Save.
For Server (I need to fix that text to say Device), enter your MagicHome device's IP.
Port can most likely be left at 5577.
That should be all! The other settings are just extra. I've been working on another release soon--- you may see some slowdown with the currently listed version---I'm aware of the issue and working on it. Let me know your experiences.
got it working, but one question. the Device Network ID what is that? (I just put in the IP address there for now)
And whats the difference between Device Name and Device Label?
But otherwise it seems quick I like it. never got it working in ST and already have it working here in under a min. LOL love it.
One thought, could you make a reset called alarm or something, so if alarm is triggered then run preset. Or it that something I would have to do in rule machine?
The Device Network ID is just something hubitat can use internally to access the device. You can put pretty much anything here. I use this field to organize my devices in spreadsheets (since I often change the names of devices)
Device name tends to be the actual name of the device (e.g. MagicHome Wifi RGB + CCT...), while device label is what you call the device. You don't need a Device label, and HE will default to a device name if one isn't provided.
(ST was always promising they'd release the necessary protocol to make it work, and never properly did... HE took about a week to do so )
You can actually call a preset with HE. I think this post from earlier should be helpful:
Hey Adam, fantastic work on the driver. Thank you so much.
I installed Ver 085 for the RGB strips, and seeing this
dev:11992019-04-13 12:32:07.109 am errorgroovy.lang.MissingMethodException: No signature of method: user_driver_MagicHome_MagicHome_Wifi___Controller_085__RGB__1458.setLevel() is applicable for argument types: (java.math.BigDecimal, java.math.BigDecimal) values: [20, 1] Possible solutions: setLevel(java.lang.Object) (setLevel)
dev:11992019-04-13 12:31:51.454 am errorgroovy.lang.MissingMethodException: No signature of method: user_driver_MagicHome_MagicHome_Wifi___Controller_085__RGB__1458.setLevel() is applicable for argument types: (java.math.BigDecimal, java.math.BigDecimal) values: [50, 5] Possible solutions: setLevel(java.lang.Object) (setLevel)
Thanks! This is helpful. I’ll reach out to staff and figure out why setLevel sometimes is sending two values. I’m pretty sure this happens if a Color Temperature has been sent to the device.
In the meantime, to fix this, I think you could delete your device and re-create it.
Also, I haven’t noticed slowdown with the other drivers, so I’d say they’re safe to use. Let me know how they handle!
I'm not sure which ones, yet. This will take some time to debug.
In the meantime, if you experience slowdown, I offer an alternative:
Install this as a separate driver. I was running it reliably for a couple weeks. There's also another alternative version that I can send if this one causes slowdown for you.
Edit:
I think I've got it! I found the recursive loop. Testing and fixing.
0.86 is up! It adds some checks in the parse(...) method that's fixed the slowdown for me—and hopefully you. I'm still trying to figure out why exactly this happens. A few ideas that I'll be testing in the coming week.
@vjv — I've also changed how some of the methods receive parameters, if you're willing to test how multiple hubs handle the link with this. If it's not working for you, I think I can fix it if not. Buying another hub in the next week or so for development only.
If the slowdown is gone, I'll start adding features back in the next versions.