stason325 / node-red-contrib-miio-localdevices

Nodes for controlling MIIO devices via node-mihome lib. List of devices and commands to be extended.
GNU General Public License v3.0
18 stars 7 forks source link

Support for Mi Smart Standing Fan 2 Lite #5

Closed kiclaw closed 2 years ago

kiclaw commented 2 years ago

Hi, is there any chance to support Mi Smart Standing Fan 2 Lite (also known as 1C)? The model name is dmaker.fan.1c. It doesn't work with any of the built-in models.

stason325 commented 2 years ago

Hi, is there any chance to support Mi Smart Standing Fan 2 Lite (also known as 1C)? The model name is dmaker.fan.1c. It doesn't work with any of the built-in models.

Hello there. Fans are in trend =) I will make some research about that model and come back with a feedback

update: I just updated my nodes to version 0.5.8 and added separate support for your dmaker.fan.1c. To use it please follow the instruction in readme and do not forget to copy-paste defFile for your device and reboot NR after that. By the way I checked the specs for dmaker.fan.1c and it looks like simplified version of dmaker.fan.p10 thus template for dmaker.fan.p10 should have worked. Nevertheless, please make tests and come back with the feedback

stason325 commented 2 years ago

Hi,

is there any chance to support Mi Smart Standing Fan 2 Lite (also known as 1C)? The model name is dmaker.fan.1c. It doesn't work with any of the built-in models.

Hello again. I wonder whether you succeeded with testing your fan with new 0.5.8 version of the nodes?

kiclaw commented 2 years ago

Hi Stason, thanks for help. Unfortunately not exactly. I copied the defFile as instructed, rebooted NR and prepared such a test flow: obraz Looks good at the beginning: obraz so the fan's state is visible, but testing the functions gives me result "Mihome Exception. IP: 192.168.0.183 -> Could not perform operation". Maybe I should modify the inject nodes somehow?

stason325 commented 2 years ago

so the fan's state is visible, but testing the functions gives me result "Mihome Exception. IP: 192.168.0.183 -> Could not perform operation". Maybe I should modify the inject nodes somehow?

Hi there

Yes, you need to modify inject nodes to operate your device correctly. Please see Devices.md table (column "Values for Commands") to choose what value to use in each inject node for each send-command node.

Regards

kiclaw commented 2 years ago

Ok, so I need a while to improve my NR knowledge :) Do I neet to use function node?

stason325 commented 2 years ago

Ok, so I need a while to improve my NR knowledge :) Do I neet to use function node?

Doesn't matter, you can use function node, or put right value just into inject node. NR gives here a lot of space for creativity :)

kiclaw commented 2 years ago

Is it correct? obraz

stason325 commented 2 years ago

Is it correct? obraz

yes, like that

kiclaw commented 2 years ago

Still something wrong: obraz

stason325 commented 2 years ago

Still something wrong: obraz

Once again: please, read more carefully Devices.md table (column "Values for Commands"). It's written there, that right value for "Power" command is true or false... not "Power:true".

Just follow the instructions in readme and devices.md

kiclaw commented 2 years ago

Now I got it! It works, thanks.