Continuing the discussion from
HomeSeer HSM200 Support:
Ok, so I ended up purchasing the HSM200 and installing
@DrZWave 's device type. I added the device to my hub, changed the device type, and can control the LED (with all 7 colors) with the app.
Now I am interested in integrating this with something like the Smart Lighting app so I can activate a color based on motion/mode.
I’ve been doing a ton of reading, but am not at the level to be able to modify a template to integrate the color options. The LED allows only for on/off of white/red/green/blue, and combines them for the other colors. This is different than how, for example, the Hue devices handle colors. So if the proper code for turning on/off the 4 LEDs could be integrated into the Hue template, I think that custom SmartApp would work.
This is a Zwave device, not Zigbee like the Hues, so the approach is different. The closest thing there is is probably the Aeon lightbulb. Or the Fibaro RGBW controller. Hopefully some of the coders will be able to make suggestions. (I rely on speech to text and can’t read the actual code. )
Uses the Color Switch Command Class to control the color of the LED.
Thanks for directing this to the proper location. It seems like this is very doable by someone with a bit of skill.
The device type is here: Link
And the owner’s manual with command class info is here: Link
@twack would probably know.
I don’t think
@wackware is active anymore? I can’t seem to click on the name to retrieve any account info. Seems like they made some quality contributions to the forum though. That’s a shame.
@JDRoberts, do you know of any z-wave SmartApp templates that I may be able to learn from and modify based on my (albeit limited) understanding of the device type?
It’s a color switch, so I would look at the Aeon bulb. Talk to the folks in the following two threads, they should have both code and ideas.
My Aeon Labs LED bulb just arrived, and I’m starting the process of building out a device type for it. I’m relatively new to the device type work, but there seems to be very little documentation on attributes or capabilities of the bulb. Does anyone have a good source for the basics on controlling z-wave colored LEDs?
We’re finally adding support for Z-Wave Color Switch control. The command class to use is SwitchColorV3, here’s how the set command works:
zwave.switchColorV3.switchColorSet(red: 0xFF, green: 0xFF, blue: 0xFF, warmWhite: 0, coldWhite: 0)
Each of those channels goes from 0 to 0xFF, like your typical RGB hex format. Generally you set either red, green and blue, or just warmWhite and/or coldWhite. Brightness is still controlled by the SwitchMultilevel or Basic command class.
Unfortunately querying the current color is a pain; you have to get each component individually:
Which will request the device to send you a switchcolorv3.SwitchColorReport with a value parameter for that color component.
Here are beta device handlers to try …
Thanks so much! Looks like I have some more reading to do!
Really appreciate the (very prompt) replies!
My template lets you choose any of the 8 colors supported by the HSM200. No new code required there.
See the previous discussion for more details.