prasad-edlabadka / homebridge-tuya-ir

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

Aircon mode id between Homebridge and Tuya #69

Closed donkeystudio closed 1 year ago

donkeystudio commented 1 year ago

Hi, for Heater Cooler between Tuya and Homebridge, mode id mapping is as follow:

Mode Tuya Homebridge
Cool 0 2
Heat 1 1
Auto 2 0

I have fixed it in my fork here.

Cheers..

prasad-edlabadka commented 1 year ago

It's the same mapping

let command = 2;
if (val == this.platform.Characteristic.TargetHeaterCoolerState.COOL) command = 0;
if (val == this.platform.Characteristic.TargetHeaterCoolerState.HEAT) command = 1;

How is it different?

donkeystudio commented 1 year ago

Yup, that part is ok. It's not about the Set, it's about the initial Get

image

prasad-edlabadka commented 1 year ago

Got it. Will fix this. Thanks for spotting.

prasad-edlabadka commented 1 year ago

Fixed in v1.0.6. Please check and let me know.

donkeystudio commented 1 year ago

Yes, just checked, I think that should do it. ^^