Skip to content
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

Xiaomi Mi Fan 2s #20

Closed
janhp opened this issue Apr 13, 2021 · 8 comments
Closed

Xiaomi Mi Fan 2s #20

janhp opened this issue Apr 13, 2021 · 8 comments

Comments

@janhp
Copy link

janhp commented Apr 13, 2021

Dear dev,

unforunatly, I can not write the power (on/off) values of my mi fan 2s. any chance you can fix that?

@Pittini
Copy link
Owner

Pittini commented Apr 13, 2021

Maybe. Whats the exact modelname? You found it at the "info" datapoint. And....are you shure this device is supportet in the script?

@janhp
Copy link
Author

janhp commented Apr 13, 2021

11111

@Pittini
Copy link
Owner

Pittini commented Apr 13, 2021

Ok, tnx. The Device is supportet, but completely untested. So please, try everything and report. But first lets solve the power problem. Please try to change line 256 from:

"power": async function (obj, val) { await device[obj].setPower(val ? 'on' : 'off') },

to

"power": async function (obj, val) { await device[obj].setPower(val) },

@janhp
Copy link
Author

janhp commented Apr 14, 2021

sure I will check that later and let you know

@Pittini
Copy link
Owner

Pittini commented May 12, 2021

I'm still waiting for "later".

@janhp
Copy link
Author

janhp commented May 13, 2021

worked. thanks :)

@janhp janhp closed this as completed May 13, 2021
@Pittini
Copy link
Owner

Pittini commented May 13, 2021

Everything is tested and works or just the power button?

@janhp
Copy link
Author

janhp commented May 13, 2021

tested just the power button

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants