-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Hampton Bay Wink Fan Control #115
Comments
I’ll be watching this one with interest as I’d like to swap out the RF modules in our fans and until the Sonoff IFan02 came out this was really the only option. The Sonoff IFan02 is very cheap (about one fifth the price) but no tasmota support yet. |
Hey ryan - let me know if you order any. I want to give these a crack, as
they look ideal for my fans as well!
…On Wed, Jun 13, 2018, 8:43 AM Ryan Beaton ***@***.***> wrote:
I’ll be watching this one with interest as I’d like to swap out the RF
modules in our fans and until the Sonoff IFan02 came out this was really
the only option. The Sonoff IFan02 is very cheap (about one fifth the
price) but no tasmota support yet.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#115 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGU9IOPm_juh7EeApLSI4OFnUi2Jsc4Zks5t8GBGgaJpZM4UlWYF>
.
|
Whats the output when running with |
Sorry for the delay. Below are the logs when fan control is bound to the coordinator and also one where it's not. In both cases the end of the log is the last output I get. I push buttons on the remote to turn the lights on and off, but nothing shows up in the log. Let me know what else I can do to help. Fan-control-as-coordinator.txt |
Could you provide the entry in |
Here is the entry for this device: {"id":2,"type":"EndDevice","ieeeAddr":"0x0022a3000016c8b2","nwkAddr":15197,"manufId":4098,"manufName":"King Of Fans, Inc.","powerSource":"Unknown","modelId":"HBUniversalCFRemote","epList":[1],"status":"online","joinTime":1529615674,"endpoints":{"1":{"profId":260,"epId":1,"devId":14,"inClusterList":[0,3,4,5,6,8,514],"outClusterList":[3,25],"clusters":{"genBasic":{"dir":{"value":1},"attrs":{"zclVersion":1,"manufacturerName":"King Of Fans, Inc.","modelId":"HBUniversalCFRemote","powerSource":0}},"genIdentify":{"dir":{"value":3},"attrs":{"identifyTime":0}},"genGroups":{"dir":{"value":1},"attrs":{"nameSupport":0}},"genScenes":{"dir":{"value":1},"attrs":{"count":0,"currentScene":0,"currentGroup":0,"sceneValid":0,"nameSupport":0}},"genOnOff":{"dir":{"value":1},"attrs":{"onOff":1}},"genLevelCtrl":{"dir":{"value":1},"attrs":{"currentLevel":254,"onLevel":255}},"genOta":{"dir":{"value":2},"attrs":{}},"hvacFanCtrl":{"dir":{"value":1},"attrs":{"fanMode":0,"fanModeSequence":5}}}}},"_id":"Plt947WSsfo7ZJzW"} |
…ling fan premier remote control. Koenkk/zigbee2mqtt#115
Thanks, lets start with getting on/off to work. In the zigbee2mqtt folder: cd node_modules
rm -rf zigbee-shepherd-converters
git clone https://github.com/Koenkk/zigbee-shepherd-converters.git -b HBUniversalCFRemote Now start zigbee2mqtt, you should now be able to turn the device on/off via zigbee2mqtt and get an event when you turn it off from the device itself. To turn on/off from zigbee2mqtt: https://github.com/Koenkk/zigbee2mqtt/wiki/MQTT-topics-and-message-structure#zigbee2mqttdevice_idset |
After I run those commands I cannot start zigbee2mqtt. I get the following output:
The log is attached here too. |
Sorry, should be cd node_modules
rm -rf zigbee-shepherd-converters
git clone https://github.com/Koenkk/zigbee-shepherd-converters.git -b HBUniversalCFRemote
cd zigbee-shepherd-converters
npm install |
That worked! I can turn the light on and off now. When I turn it on or off I get this message:
|
This is great progress. I have one of these modules in a fan that does not have a light. I have not been able to get it to pair with anything though. How did you get it paired with zigbee2mqtt? |
@tube0013 You put the device in pairing mode by turning the power to it on for three seconds and then off for three seconds three times. Those directions are in the installation manual, but it doesn't make it clear that you have to use the power feed to the device and not the remote control to turn it on and off. I have mine cobbled together temporarily with a couple light bulbs and an extension cord, so it's easy to plug and unplug it to get it into pairing mode. I am not going to install it in a fan until I get it all working. If you don't have a switch in line the "easiest" way would probably be flipping the breaker on and off. Unfortunately for you the way it signals that it's in pairing mode is by flashing the lights three times. Also, it seems like it has to be fairly close to the receiver in order to get it paired the first time. YMMV. If you do get it paired you can use the commands from this comment to allow you to turn the light on and off with MQTT. I know you said you don't have a light, but that's all we've got working so far. |
Dimming should also work now. But lets first focus on fan mode first. Go to zigbee2mqtt directory: cd node_modules
rm -rf zigbee-shepherd-converters zcl-id zcl-packet
git clone https://github.com/Koenkk/zigbee-shepherd-converters.git -b HBUniversalCFRemote
git clone https://github.com/Koenkk/zcl-id.git -b HBUniversalCFRemote
git clone https://github.com/Koenkk/zcl-packet.git -b HBUniversalCFRemote
cd zigbee-shepherd-converters
npm install
cd ../zcl-id
npm install
cd ../zcl-packet
npm install Now try to control the fan using.
Possible fan_modes are probably 0, 1, 2, 3, 4, 5, 6, 7. |
No luck with that yet. I have a fan hooked up now. Here's the debug from when I run fan_mode command. |
Ok, lets first get it working, for sake of simplicity I now hardcoded to set the fanmode to 2 on on zigbee2mqtt startup.
Does it turn on the fan on on zigbee2mtt startup? |
Yes, the fan turns on when zigbee2mqtt starts now. |
Ok, could you checkout the zigbee2mqtt HBUniversalCFRemote branch. And then:
You should now be able to control the fan via:
Possible |
Sorry I'm still very new to git and Linux. What commands do I need to run to checkout a specific branch? I don't want to do it incorrectly and give you bad info based on the results. |
In the zigbee2mqtt directory
|
Ok, did the fetch, checkout, and then cloned the HBUniversalCFRemote shepherd converters again. Zigbee2mqtt runs and I can turn the light on and off still. When I try to set the fan_mode zigbee2mqtt crashes with the following output:
|
Made a mistake, fixed now, can you update by doing a |
Ok, each of the fan modes work now, but any time I run one it crashes zigbee2mqtt. Here is the output from an "off" command.
|
Can you do a git pull again? Should be fixed now. |
Sorry for replying late to you, can you check if it works with the latest https://github.com/Koenkk/zigbee-shepherd-converters/tree/HBUniversalCFRemote |
Hmm, maybe I did something wrong here. Did this to update:
Now it hangs when I try to start it with the following:
|
Are you running the latest firmware from: https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/CC2531/bin |
Apparently I was not. Updated that and I'm back in business. Here's what I get when I use the remote to turn the lights on, then off, then on, then adjust the brightness, and finally off. You can see the brightness is only reported after it has been set from when the device in the fan first starts.
I get this when I turn on the light and attempt set a brightness via MQTT:
The light turns on, but it stays at whatever brightness it was before it was turned off. |
I've made some updates, can you try again if setting brightness works? |
It works now. Although I picked 50 to test with and for some reason that particular number seems to cause it to set a brightness of 51.
Tried a few other brightness levels and they all return the correct level.
What's next? Transition time or something else? |
@gitalpaca I've made some final changes, can you check if it still works? The settings brightness 50 -> actual 51 should also be fixed now. So everything is working now? Than we can merge! |
Not working quite yet. Transition does not affect the transition time yet. The 50/51 thing still happens too.
|
It could be that this device does not support transition, but except that and the 50/51 issue everything is working? |
@gitalpaca Is everything working? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I just got zigbee2mqtt working and I'm really interested in using this Hampton Bay device. |
Hello, |
Hello, at this point what are the steps that I have to follow to try this? |
@YamiFrankc please create a new issue with your |
I'm trying to add support for this fan control. I am able to pair it to zigbee2mqtt. I have added it to devices.js, but I don't see any WARN messages with attributes. I've also been able to temporarily bind it to the coordinator using the code from Issue 102 (not entirely sure what that does to be honest, but I did it). I don't see any additional messages once I do that though.
It looks like someone has written some custom device handlers to get it working directly with Smartthings. I don't know if that will help at all.
Is there anything else I can try to get this working?
Added by Koenkk, TODO:
The text was updated successfully, but these errors were encountered: