-
-
Notifications
You must be signed in to change notification settings - Fork 297
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
iFan02 speed support? #156
Comments
@JangoBritt despite my best intentions (just like you now, 1 example here #123) people kept asking for this feature but no one was kind enough to explain to me what are exact switch combinations for a fan device, in plain words: what is switch0 doing exactly, switch1 and so on. if you'll be kind enough, just like you did in the previous issue start a debug session and try to activate all the fan states and post the output here + (very important) the order of what you did so that i can figure how it works exactly. ps: this is not a priority right now and might take a while to till i might add it. right now the component is plagued by a bug due to the last HA updates that kinda makes to stop working sooo that's on the top list of fixes |
No Probs. CH1 = Light I started in the OFF state, then cycled through Low, Med, and High, then back to off. Interestingly, I see that when I switched OFF, CH4 stayed on... so it looks like 3 and 4 remain on, to remember the last fan state. |
|
@JangoBritt hey, i've done a bit of work please try this sonoff-ifan branch. in theory you should see a new sonoff i'll appreciate if you can drop a follow anytime you can ;) |
Just tested ifan branch with iFan03, it works good as expected. |
Yea, that works in Hassio, thanks. I think there's one small issue though. The device pulls through to HomeKit, and can see the speed changes, but can't control the speed changes. I think that the component is able to set the right combination of channels to achieve a hi/med/low speed, and then output that as a percentage in HomeKit, but that it's not doing it the other way round. Even if I specify the speed, rather than scroll to it, it's not reading the 33% output from HomeKit, and turning that back into on/off/off |
great! glad to get another confirmation
well, technically speaking, this is not a problem :P as you've asked if iFan can be enabled to work as defined fan entity within HA. the fact that you want to kick it up a notch and push it over HomeKit is a type of improvement or feature request (and truth be told i have no idea yet how to make the to-from conversion with HomeKit 😬) |
You are indeed correct :) |
Ok, here's what I get from the fan/light (iFan02) For some reason my phone doesn't like doing screenshots so.......When looking at the list of devices, I see the iFan02 with a button for the fan and one for the light, indicating (and allowing me to change) the power status for each. Off to one side it also tells me the gear/speed of the fan (1, 2 or 3.) If I tap on that device to show just it, I then get a row of buttons for speed (only one of which is highlighted but there's always one highlighted. Never all three dark.) and then two buttons for power for fan and light. Tapping on the fan power (here or in the list) results in a longer beep if powering off or 1, 2 or 3 beeps when powering on. So if telling Alexa to power it on or off, I can tell what gear it's in when powering on based on sound (and it keeps track of the gear settings.) In HomeAssistant, I removed the "+1" and thus I have "device CH 0", "device CH 1", "device CH 2" and "device CH 3". CH 0 is the light. I started with CH 1, 2 & 3 all off. I click on CH 1 and get one short beep and the fan comes on low. Leaving that on and turning on CH 2 gives two short beeps and turning it off gets one short beep. If I leave CH 2 off and turn on CH 3, I get three short beeps. No matter if CH 2 or CH 3 is on, turning off CH 1 results in a long beep and the fan powers off. But having CH 1 on and leaving either CH 2 or 3 on and then turning on the other (so that CH 1, 2 and 3 are all on) gives me 4 short beeps, which isn't valid and, depending on the order of things, can actually wind up turning the fan off instead of a super-high speed. So here's how it all breaks down for me:
HTH |
I just found where someone has code for ESPHome for the iFan02 that basically supports what I was showing as to the CH 1-3 (or CH 2-4) that's at https://gist.github.com/quazzie/09ee3ef2c419ecbcf979a7410062481b In part:
|
@prabbit237 thanks for all the inputs, but out of curiosity have you tried the |
Sorry, I must have skimmed over those middle messages too fast sigh Yes, the ifan branch seems to be working fine from my remote testing (I need to wait till I get home later today to make sure it's actually turning the fan off and on but HA says it is.) I still don't care for the +1 in the numbering scheme and removed that again but that's just my personal taste so don't take it personally at all :) I also want to dig a bit more into it and see if I can remove or hide the 1,2&3 from the switches section completely to clean up that section some. But other than that, it looks great. Thanx. sarcasm (And I hope ya realize that last WAS a joke laugh) |
@prabbit237 all the |
How do I get those to disappear? Mine still show up |
|
I was about to ask the same "stupid question" laugh Actually, I was going to ask "will they disappear when I use that branch (because I was about to say they didn't) or will they disappear with a newer/as-of-yet-unreleased version that you're still working on?" Thanx for the hard work, BTW. |
i've merge a bunch of new things in a new dev branch https://github.com/peterbuga/HASS-sonoff-ewelink/tree/dev if someone is willing to test it out initial beta iFan + RF Bridge + B1 support 💪 |
Didn't see a comment here for the dev branch commit, it works great for my fan, Alexa works great with it too. |
I wonder, is there any way to change the 4-channel fan controller so that it presents as a single entity, with speed control?
The text was updated successfully, but these errors were encountered: