homebridge-tuya-ir icon indicating copy to clipboard operation
homebridge-tuya-ir copied to clipboard

Control Fan Speed

Open Rahulsharma0810 opened this issue 2 years ago • 4 comments

Ton thanks for making it.

Currently only Fan on/off working, when trying to increase or decrease speed logs shows

[5/9/2022, 8:37:19 PM] [TuyaIR] Failed to invoke API param is illegal , please check it
[5/9/2022, 8:37:19 PM] [TuyaIR] Failed to get commands for the fan. Defaulting to standard values. These may not work.
[5/9/2022, 8:37:19 PM] [TuyaIR] Failed to change Fan speed due to an error the infrared code corresponding to the key does not exist

The Fan I am using has independent Speed control buttons, instead of the volume kind button to decrease/increase.

IMG_1D4B8B2E7BB0-1

Is there a way to use speed controls?

Rahulsharma0810 avatar May 09 '22 13:05 Rahulsharma0810

You can try to fork this repo and use the DIY device function that I pushed

louis49 avatar May 12 '22 06:05 louis49

You can try to fork this repo and use the DIY device function that I pushed

This is already merged with main branch and available on npm.

The changes for DIY will need to be extended for speed. I think current implementation support only ON and OFF for DIY.

prasad-edlabadka avatar May 12 '22 06:05 prasad-edlabadka

One way to do this is define a custom remote in Tuya and learn each key on your remote one by one. Then use this custom remote's device Id. It won't show up as Fan but you will get all the buttons as switches.

prasad-edlabadka avatar Jul 27 '22 07:07 prasad-edlabadka

You can try to fork this repo and use the DIY device function that I pushed

Good suggestion. I have a Fan with speed up and down. I think it isn't possible to create a workaround with using the slider control, right?

VCTGomes avatar Aug 06 '22 17:08 VCTGomes

There is now DIY accessory for this

prasad-edlabadka avatar Aug 08 '24 06:08 prasad-edlabadka