[Deprecated] Hampton Bay Zigbee Fan Controller Driver (King Of Fans)

This fan controller is supported natively (great work guys) but I wanted a few more fan control options available on the device page (similar to my ST device handler). See my driver (Device Type Handler) below.

Hubitat/deprecated/drivers/KOF Fan Controller.groovy at master · stephack/Hubitat · GitHub

2 Likes

Forgot to include the new “Fan Control” capability. Github and screentshot updated. Please also note that the “Set Speed” in my version accepts numbers :
0 : Off
1 : Low
2: Medium
3: Medium-High
4: High
6: Breeze Mode/Auto

@stephack As one of your appreciative fans (pun intended) of the ST dth, 1) thanks, and 2) a question:

Are you finding this device any better at staying connected to the Hubitat than the ST hub?

I haven’t had any issues with Hubitat or smartthings once I added a zigbee outlet that also acts as a repeater. Without it these controllers are problematic…does not matter what hub you use.

2 Likes

Is there a trick to controlling the fan and lights separately with Alexa? Since it only shows up as one device, in my case “TV Fan”, when I say “Alexa, turn off TV Fan” it only turns off the lights.

We don’t have the ability to create component devices in hubitat yet. You can make a virtual switches for any of the fan speeds you would like to control. Then tie them together using Rule Machine and the custom commands feature. I haven’t had the time to set this up myself but I’m pretty sure it’s doable. Hopefully component child devices become available and I will redo this driver so it matches what we had in ST.

I’m not worried about the fan speeds so much but I’d like to have the light separate from the fan on a voice command.

Understood…but when you turn on the fan, I assume you want to turn it on at a certain speed. Fan Speed 1 would turn on at low, speed 2 medium etc. Off is self explanatory.

Yes, but there are times when I want the fan on but not the lights and sometime the lights on but not the fan. :slight_smile:

Each of the above commands are available in Rule Machine as Custom Commands. "Resume last" would also just turn on to the speed that the fan was on with last.

I realize this isn't best case scenario but it's what we have with the existing limitations of hubitat. It will take a bit more work to get some of the conveniences that we had in ST. :slight_smile:

Yeah, I’m trying to test out rule machine’s custom commands now.

Yes…and what I described in my first reply will accomplish that.

Sorry, maybe I’m blind but all your posts refer to fan speed. Nothing about setting the lights to be a separate voice command…

Ok…so there are a few things you would need to do. Unfortunately there might be a learning curve for some of this and I won’t be able to walk through all the steps with you but I can give a roadmap.

Assuming your fan is in the bedroom:

  1. Name your existing device Bedroom Fan Light (can be shared with Alexa for light voice control)
  2. Create a virtual switch and call it Bedroom Fan (or Bedroom Fan Low…or whatever will work for you in Alexa)
  3. Create a custom command in RM that executes fanSpeed1(), fanSpeed2 or whatever speed you woulld like your fan to come on at…you can create a virtual switch for each speed if you would like as well.
  4. Tie that custom command to the virtual switch turning on (in Rule Machine)
  5. Tie custom Command fanOff() to when the virtual switch is turned off
  6. Share with Alexa and enjoy separate control.
1 Like

Here's a quick cook up for RM that I just made for this. It might be inefficient logic because I'm not very familiar with RM yet...but it works.

Yeah, I’ve been playing with RM for an hour or so now. I was able to setup a basic fan on and fan off deal. I’ll get more complex once I have a better handle on RM. hah

Thanks for porting this over as a hubitat driver!

I like the additional commands too.

And best of all, on this hub even the custom driver runs locally!!

2 Likes

I think this is possible now with the latest hub firmware update :grin:.

Yessir. Hopefully I can find some time to update this soon.

1 Like

This file has been deprecated and moved to a new location. Original post updated with new location.
I will post new driver with component devices shortly.

Edit:
New Driver:

1 Like