I was getting this error when adding a new IR Air:
I saw that the minimum value was 32 and max 31 on the logs.
After debugging the code, I saw that the code gets the minimum value from array position 0, printing the array I got this:
I another IR Air the values are ordered:
So, I change the code to get the min and max values using the Math object.
I was getting this error when adding a new IR Air:
I saw that the minimum value was![image](https://github.com/0x5e/homebridge-tuya-platform/assets/22357579/f467ecb9-d0cc-4ea7-bd7e-d5d6f99f94b1)
32
and max31
on the logs. After debugging the code, I saw that the code gets the minimum value from array position0
, printing the array I got this:I another IR Air the values are ordered:
So, I change the code to get the
min
andmax
values using theMath
object.