-
Notifications
You must be signed in to change notification settings - Fork 117
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
Unsupported device: dmaker.fan.p39 #213
Comments
Hey, I've got the same device :) |
@syssi The p39 is very similar to the P9 but not supported by I'm working on both but unsure wich is the best way forward. |
@Landrash I own the same device and would love to see it supported soon. |
@Landrash Any updates about adding supporting dmaker.fan.p39? |
Hi, My configuration is:
The error I get on Home Assistant startup:
|
Hi, I can confirm this behavior, same error message as traysh reported above:
|
I got as far as the pr that "fixed" this one. I'm unsure why this happens with the exception that the p39 is uses genericmiot instead of fanmiot in the upstream library. |
@paranerd If possible could you give and example of your use of this with your fan? |
@Landrash I'm not sure I understand your question 🤔. I'll be mainly using the integration to turn the fan on and off but you COULD do all sorts of other things like:
Hope this helps 😊 |
Sorry for being unclear @paranerd Your response was very clear. I'm assuming you added it in yaml? If possible a sanitized copy of your yaml entry might help others diagnose the issue. |
Oh wow, sorry, I hadn't seen the rest of this thread! Sure, here's my fan:
- platform: xiaomi_miio_fan
name: "Ventilator"
host: 192.168.x.x
token: 1234567890abcdef
model: dmaker.fan.p39 However, this is running on mid-dev code. I don't have access to my dev machines atm to check if/how it works with the release but can do once I get back. |
I just set up everything again with the latest code and... it works on my machine^^ |
I just tried the manual install approach, got exactly the same result. |
I checked out |
I don't think so, I checked out the same branch as you. |
I don't know what to say. Don't have anything installed additionally, it just worked^^ A couple of debugging steps:
|
Thanks for trying anyway =)
My fan is in the same subnet of Home Assistant, yes. About the token, I'm
now trying to verify it is correct.
Em dom., 10 de set. de 2023 às 17:30, paranerd ***@***.***>
escreveu:
… I don't know what to say. Don't have anything installed additionally, it
just worked^^
A couple of debugging steps:
- Did you use the correct token?
- Is your Fan in the same subnet as Home Assistant?
—
Reply to this email directly, view it on GitHub
<#213 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAH4QLRKJ53PUWQR2CHYOTLXZXMIFANCNFSM6AAAAAAXC32TFU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I installed
|
I just did a fresh deployment:
That's all I did. Hate to say "It works on my machine" but that's just how it is 😅 |
Yes, I understand. Thank you for the additional information. Yet, the same
procedure does not work for me and for some other users.
Maybe there are different hardware/firmware sold with the same name? I'll
continue to investigate when I have more time.
Em dom., 10 de set. de 2023 às 20:46, paranerd ***@***.***>
escreveu:
… I just did a fresh deployment:
-
mkdir -p ~/ha-test/config/custom_components
-
git pull https://github.com/syssi/xiaomi_fan.git
-
cp -r xiaomi_fan/custom_components/xiaomi_miio_fan
~/ha-test/config/custom_components
-
nano ~/ha-test/config/configuration.yaml:
fan:
- platform: xiaomi_miio_fan
name: "Ventilator"
host: 192.168.x.x
token: 1234567890abcd
model: dmaker.fan.p39
-
cd ~/ha-test/
-
Added my docker-compose.yaml
-
sudo docker compose up -d
-
Logged in, Fan showed up and was fully controllable.
That's all I did. Hate to say "It works on my machine" but that's just how
it is 😅
—
Reply to this email directly, view it on GitHub
<#213 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAH4QLXHVHLW67DZOB2QGQDXZYDJ7ANCNFSM6AAAAAAXC32TFU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@paranerd actually, I found a bug in the code, commenting this line makes everything work for me. I believe it happens because the I have no idea why it works for you, maybe you have an earlier firmware in your fan that is not so picky with the request correctness. Fix in this PR. |
Hi, I'm one of the few people experiencing the same problem as described above. I just tried the solution proposed by @traysh and something has definitely changed, but i am still getting an error in logs, just a different one:
Does anybody know, what else could be wrong? |
@fv623 looking at the spec, the code is also missing a mode type (sleep), and that's what is causing the problem for you. I can add it when I have time, maybe tonight. Still, the PR that was just merged will make the code closer to correct. |
Just tried adding my fan in Home Assistant, getting: "Unsupported device: dmaker.fan.p39".
Are there any plans on implementing it, or some generic way of controlling it, seems that others has got it to work, although not officially supported by your integration, but there are little info on how to.
Thanks in advance.
The text was updated successfully, but these errors were encountered: