rospogrigio / localtuya

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

Tuya fan control not working #440

Open Kevinm94 opened 3 years ago

Kevinm94 commented 3 years ago

Still learning here, but I just installed a Treat Life based (Smart Life) fan control. It added to HA just fine with Local Tuya but watching the logs I keep seeing this when I change speeds of the fan:

2021-04-11 17:46:12 WARNING (SyncWorker_34) [custom_components.localtuya.fan] [ebe...sbx] Living Room Ceiling Fan/fan.living_room_ceiling_fan: Ignoring unknown fan controller state: level_2

It looks like it is looking for a level_2 (level_1 = low, level_2 = med, level_3 = high)

I have used the HACS frontend integrations for 'Fan Control Entity Row' and 'Fan Percent Button Row' .

Any ideas on how to get the speed to use level?

Here is the entity info from the 'State attributes'

speed_list:

I am trying to not flash this to ESP or Tas. (last resorts)

Thanks!

meremortals70 commented 3 years ago

I have the same issue

tinglis1 commented 3 years ago

Have a look at #542. This has the option for a defined list of speeds that might work for your issue.

bobbanks commented 2 years ago

@Kevinm94 Did find a solution to this? I have the same TreatLife fan control and the same issue as you.