[BETA v0515] Hampton Bay Zigbee Ceiling Fan/Light Controller

Hi, Stephan. Thanks to you @stephack @ranga @dalec for creating this. It’s the solution to my fan problems. My previous, short, discussion with Dale about fan speeds was here:

I appreciate the complexities of handling both a fan and light control in one DTH for the general use case. (In my installation, I don’t have a light, so I’m only using the fan.)

My control is through a webCoRE piston that needs to control two fans independently. I can certainly put enough lines of programming in to deal with eight different devices (2 fans x Lo/Med/MedHi/HI), but the coding is so much easier if I can loop through two devices and dynamically set the speed. Here is a brief summary of how it looks:

(Index is a variable 1-4 for the speed) For each of Fan1, Fan2 Do setLevel to Index * 25 END For

I have a just-barely working knowledge of how SmartApps and DTH’s are coded and work. Are you suggesting that if the DTH doesn’t have the setLevel capability, then a SmartApp could translate my setLevel command to one that is compatible with your DTH’s?

Keep in mind that I am a real novice, but I do see in the parent DTH that there is a setFanSpeed command, but it doesn’t seem to accept a parameter. I’m curious as to its purpose and wonder if there is some way to use that to achieve my objective.