rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.86k stars 551 forks source link

Fan speed control not found #546

Open Francisk0 opened 3 years ago

Francisk0 commented 3 years ago

Hi, Thanks to a lot of people here I can control my new lamp with fan in HA!!! https://www.en.mantrailuminacion.com/productos-mantra/Himalaya

Only have a Issue, because I can´t control speed of my fan, no work. This is my DPS, I extract the data with tuyadebug package. DPS [1] VALUE [True] FAN ON / OFF DPS [3] VALUE [1] FAN Speed 1 to 32 DPS [6] VALUE [0] timer in hours DPS [7] VALUE [0] Timer in minutes DPS [9] VALUE [True] Light ON /OFF DPS [10] VALUE [789] Bright (82 min - 996 max) DPS [11] VALUE [1000] White colour temperature(0 warm - 1000 cold) DPS [101] VALUE [False] Fan direcction

I can't find where to put the minimum and maximum values of my fan. I also can't find where to put the fan direction or the timers, but I'm not worried about that. Attach below a picture of my setup.

Captura de pantalla 2021-08-22 a las 19 27 05
Francisk0 commented 3 years ago

With the following configuration it works, but the speed is incorrect. I need to change the 3 to a 16 and the 4 to a 32.

Captura de pantalla 2021-08-22 a las 19 39 44
vmartinv commented 3 years ago

There's a new version of the fan config here #542 , it should solve your issues. You can copy the files and give some feedback or wait until is officially added.