-
Notifications
You must be signed in to change notification settings - Fork 421
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
Home Assistant 2022.4.0b0 - Unable to prepare setup for platform sonoff.fan: Platform not found #735
Comments
Same issue here. |
Set_Speed service has been deprecated and speed_low, speed_medium and speed_high has been deprecated too. also note........ These SUPPORT_* constants are deprecated as of Home Assistant 2022.5. |
I've done a pretty messy fix for my own use for now.
|
Thanks! Perhaps someone can continue the work from here and merge the code. |
Works like a charm! thanx |
I'll keep this issue open, hoping that someone could deploy an official code fix. |
Hi - Not sure why im getting this issue. Is there anything to add in sonoff_main.py? Logger: homeassistant.setup Unable to prepare setup for platform sonoff.fan: Platform not found (cannot import name 'EWeLinkEntity' from 'custom_components.sonoff.sonoff_main' (/config/custom_components/sonoff/sonoff_main.py)). Thanks in advance! |
In order to help you, can you explain your situation?
|
-Edited fan.py and replaced complete with above code. Logger: homeassistant.setup Unable to prepare setup for platform sonoff.fan: Platform not found (cannot import name 'EWeLinkEntity' from 'custom_components.sonoff.sonoff_main' (/config/custom_components/sonoff/sonoff_main.py)). |
I've 3 ifan03 as well (no other Sonoff hardware), and took exactly the same steps as you. It is working fine for me. I've no idea why it is not working for you. |
Same situation. I'm using ifan03 as well. |
Mind sharing your sonoff_main.py ? |
Sure :)
|
Now for me it worked
All 3 iFan03 working fine. |
Duplicate of #725 |
Can i ask what cards you are all using, |
Duplicate of #725 |
B-Hartley’s fix, above, works for iFan04 as well. |
I use a plain Entities Card. |
The edited code works, so now i can control my sonoff fans again, thanks! |
It doesn't work for me when using a diffuser.
|
I can confirm that this works on my system as well. I've got iFan03's and am accessing them through custom:button_card buttons. |
I have this app for 1 sonoff micro, and this fan error is still in my logs. Grrr... |
thank you @B-Hartley worked for me also. Used also with fan-percent-button-row and its working great along with automations using set percentage. |
I will try this code as I have the same problem with iFan03 |
I'm also getting the following error after trying the suggestion from @minimalco
|
Finally, it works. I had the "cannot import name 'EWeLinkEntity'" problem. Thanks to @B-Hartley for the code and @pimw1 who showed us his sonoff_main file! I saw that the file was different from mine. It seems that the latest version from HACS (2.4.3) is not the same as Gihut one. This is what I did.
|
Thank you very much, it also worked for me with iFan02 your method, ;) |
I've created a file in: This one has the other fan platforms in it, and I've attempted to fix the diffuser fan as well (although I don't have one so can't test). |
Try the new version in my fork.... |
I installed the master and then your modified code. |
I would be happy if it just goes on / off. Thanks to so far less progress and great work. |
I've made a tweak, there was an error. |
Same switch behavior on last code test. The progress is that I turn on the diffuser with the speed slider. If the speed slider moves to 0, the diffuser will turn off. The switch still works the same way. If the diffuser is on with the speed slider, I can turn it off with the switch. The switch automatically returns to the on position and the diffuser remains off. The switch only works for switching off, but switches on again automatically. No log errors. |
Fixed in v2.4.7 |
Great, thanks. Interesting to see how it is done "properly" compared with how I did it. Pleased that it was vaguely similar. Is it ok that you are using low, med & high values on the diffuser even though it only has two speeds as far as I can tell? Will it just get pushed onto the correct values ? |
This is not very properly. This is just fast solution. Your solution also great. |
Hi All I even restored a backup before I applied the above-mentioned fix and then did the SONOFF LAN upgrade again but still get the same error. Currently on SONOFF LAN 2.4.7 and everything runs as it should. Thanks much appreciated. |
@WillemGoosen go here and help to me with logs #786 |
Since Home Assistant 2022.4.0b0, the Sonoff integration is failing to load. The error message is the following:
It was working fine with the latest non-beta version of Home Assistant (2022.3.8). I run a supervised install.
The functional impact is that my fans are not working at the moment.
The text was updated successfully, but these errors were encountered: