Here’s the thing…On Vera, I’m using the Fibaro RGB Controller V2. When installed on Vera, the Fibaro creates separate devices for State, Dim, Red, Green, Blue & White channels. There is a way on Vera to merge them into one device, but that only works for Fibaro RGB Controller V1. So, the only option for me is to utilize a plugin called RGB Controller which utilizes the following services:
urn:upnp-org:serviceId:RGBController1
urn:upnp-org:serviceId:SwitchPower1
urn:micasaverde-com:serviceId:HaDevice1
This plugin, however, does not have a Dim function builit in.
What my plugin is attempting to do is manage this problem. What I’ve done is make a plugin with 2 Vera device #'s per HR plugin device. To accomplish this, the Id property of each device looks like 466:455 where the 1st number is for the State & Color device and the 2nd is for the Dim device. At the top of onChangeRequest and onPoll, I take the device.Id and parse it out to create the 2 devices with:
DeviceSwitchLevel = device.Id.slice(-3);
DeviceColor = device.Id.substring(0, 3);
I then have to manage those 2 devices throughout the code to get everything working. I know it’s convoluted, but hope it makes sense. If there’s another way, I’m open to it. I didn’t want to ask you to incorporate support for this into the software…you probably have more important things to work on. Thanks.