prasad-edlabadka / homebridge-tuya-ir

Allows homebridge to control Tuya Smart IR based devices
Apache License 2.0
50 stars 22 forks source link

Control Fan Speed #48

Open Rahulsharma0810 opened 2 years ago

Rahulsharma0810 commented 2 years ago

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?

louis49 commented 2 years ago

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

prasad-edlabadka commented 2 years ago

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 commented 1 year ago

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.

VCTGomes commented 1 year ago

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?