Fan Device Type

I plan to migrate my King Of Fans DTH over to hubitat for testing .
It was mentioned on a previous post that there is a built in Fan DTH. Is there any way for me to see any documentation or an example of this DT? If it allows easier configurations for fan devices, it could save me quite a bit of effort. See my current "challenges" below

  • this zigbee device controls both the lights (dimmer functionlity) and fan control (speed 1, 2, 3, 4, Breeze).
  • because of the above, I cannot use the setLevel workaround used in other fan DTH's.
  • to expose each speed to Voice control, I used the ST composite device to allow individual control of each fan speed and separate dim control of the light. I know this is not possible yet in hubitat so I plan to use separate custom commands for each fan speed that would allow smartApps to change the speeds.

I'm posting this here because if the new Fan Device Type you have already implemented can provide the functionality I need, I won't need to waste time reinventing the wheel. Let me know what you think.

We have created a “FanControl” capability which supports a setSpeed(speed) function, with the speed as a number or corresponding string. These are the values.

0 : off
1 : low
2 : medium-low
3 : medium
4 : high or medium-high
6 : auto

And in testing the driver right now I see that integer values seems to be throwing an error. So we will look into that right away!

This looks like exactly what I need. I just read through the compatible device list and noticed that @mike.maxwell listed the Hampton Zigbee controller. I hope this is the same controller that I am referring to. If you already have this working natively in Hubitat, let me know and I will test.
I would rather not remove from ST and add to Hubitat till I feel like there is at least a semi-functional driver…because these things can be a real pain to reset.

I have both the Hampton Bay (Wink) fan itself as well as the universal 4 speed kits working with the same driver. So you should be good to go!

Yes resetting them is quite the challenge, but since I’ve had them running on Hubitat they have been bullet proof. No drop offs, or needing to reset it like on another system. :slight_smile:

2 Likes

I’m loving this hub more and more every day. Gonna migrate one of these now and report back here.

2 Likes

I had difficulty getting one of them connected so I brought the hub directly under the fan…still nogo. Decided to disconnect another controller from ST because this one had a wall switch I could use to attempt resetting without using a breaker.

When I set hub to discover it found both fans. It successfully configured the original fan I was trying to get working. The second fan was stuck on Initializing for a couple of minutes so I backed out to the device list. Only device 1 is shown. Device 2 is not listed and not shown under Zigbee radios. I cannot seem to get it detected. I’ll keep trying in the meantime but if you have any suggestions…I’m open to try.

Since my fans are all getting power from a switch, I do the reset that way. What I have found in the past is that turning the fan off and letting it sit without power for a little bit… 1 minute at most, then I do the crazy secret handshake on off for 3 seconds 10 times trick, ending with on. The light will flash if its in pairing mode. If you don’t see the light flash, then its back to square one. I found the real fan was easier to get most of the time.

The strange thing is that I can reconnect the fan to ST and it works fine. I disjoint ST and the Hubitat can’t find it. I’m hoping I don’t have to reset the zigbee radio and reconnect my devices.

I had a similar issue with my Zwave remotec control. It got stuck on Initializing … I had to back out… then it kept finding the remote over and over again. I had to go to Zwave information…try to reinitialize…when that failed it gave me a button to remove. I then reconnect the controller and it’s worked perfectly.

Could this be something similar…I don’t see the fan under Zigbee info…but is it possible the hub got stuck initializing and thinks it’s already paired with this fan?

I also tried your suggestion above but it didn’t work. I don’t think you get the blinking lights when the device is already at factory defaults.

If it was joined to the hub you should see the device in the list of devices. It may just be under the name “Device” if it didn’t initialize properly. If its not there, the fan may still think its paired with ST, which is why it joins back easily. As you are aware its difficult to factory reset these devices for some reason.

Yessir…well aware.
I only had 3 other zigbee devices so I went ahead and removed each device…reset the zigbee radio…disabled and reenabled radio. It still didn’t connect but I was able to reset the 2nd fan. Still not found by Hubitat.

Rebooted hub. Neither the 1st nor the second fan are found now…King Of Fail strikes again. This was what I was afraid of…hours lost with this inconsistent device.

It’s frustrating… There really should be a reset switch somewhere on the fan unit. I really think this is the main issue. It a roll of the dice to get the fan into pairing mode properly. Did you try killing power to the fan for a few minutes?

1 Like

Yep. :frowning:
Gonna keep trying.

I have two remotes that have been waiting for me to install in fans… I think today is as good as any other. So I will do some more testing as well. :slight_smile:

Ok…I gave up. Got both fans reconnected to ST but can get them working with Hubitat. Might try again another day but I’m done counting to 10 today.

1 Like

Just installed a brand new one from the box. Paired up instantly. Did the light flashing while pairing. Also this fan was at the complete opposite end of the house. I do have an Iris Outlet in the middle that was most likely helping as a repeater.

I will do some more in depth testing with the second device. I will pair, then unpair, then fingers crossed pair again…

Your Iris plug mention had me try one more time. I removed a fan from ST and powered off.
I then removed the Iris Smartplug I had in my Living room (there strictly as an ST repeater) from ST and migrated to Hubitat.
Turned on the fan and it immediately discovered it. :slight_smile:
Now I’m getting the error you mentioned earlier when changing fan speeds :frowning:
[dev:93](http://192.168.x.xxx/logs#dev93)2018-02-10 14:54:16.966:errorFor input string: "high" on line null

You should be able to enter a fan speed name in the Set Speed button.

off
low
medium-low
medium
medium-high
high
auto

Also run a configure and/or refresh to see if that helps.

1 Like

That worked…but I’m not sure I understand your decision to use strings. Why not use numbers like you initially suggested. The zigbee commands to change the fan speed are already numerical and with numbers we could apply increments using math in our smartApps. It would also be a lot easier for someone to know the next fan speed up. With the current setup, I would have to reference this post to know what the next higher fan speed would be. Hope I don’t sound critical…these are just my opinions based on the request and issues we ran into creating the the Beta DTH for ST.

1 Like

I know this is an old thread, but what universal speed controllers are you talking about?
I am looking for a 4 speed zigbee controller.

It looks like this has been discontinued by Home Depot. I'm not sure if it is available elsewhere.

https://www.homedepot.com/p/Hampton-Bay-Universal-Wink-Enabled-White-Ceiling-Fan-Premier-Remote-Control-99432/206591100