Pittini / iobroker-nodemihome

Steuerung von bisher nicht unterstützten Xiaomi Geräten in Iobroker via node-mihome
MIT License
27 stars 15 forks source link

Xiaomi Mi Fan 2s #20

Closed janhp closed 3 years ago

janhp commented 3 years ago

Dear dev,

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

Pittini commented 3 years ago

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

janhp commented 3 years ago

11111

Pittini commented 3 years ago

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 commented 3 years ago

sure I will check that later and let you know

Pittini commented 3 years ago

I'm still waiting for "later".

janhp commented 3 years ago

worked. thanks :)

Pittini commented 3 years ago

Everything is tested and works or just the power button?

janhp commented 3 years ago

tested just the power button