moifort / homebridge-create-fan

Connect your create ceiling fan into homekit
Apache License 2.0
6 stars 3 forks source link

Color Temperature #4

Open marsuboss opened 1 year ago

marsuboss commented 1 year ago

One more thing is the color temperature.

I am researching how to add this feature called "Characteristic.ColorTemperature".

For Tuya, they use the code 23 and have three different values: 0, 500 or 1000.

I don't see how to handle this with "Characteristic.ColorTemperature" which uses values between 140 and 500...

I suppose that : 140 (Characteristic.ColorTemperature) corresponds to 0 (Tuya) 320 is 500 500 is 1000

Do we agree on this?

Then how is this presented in Apple Home? My goal is to display the three different colors under the light.

marsuboss commented 1 year ago

It should look like this : ColorTemperature

moifort commented 1 year ago

Yes I agree !

moifort commented 1 year ago

I just tested, it's work, but I think there is a bug with the software of the Wi-Fi module (because I have the same behavior with the native application). It will only change the color when you send the command, without interpreting the value.

For example, when you send a command it will change the color to the next temperature, and go to the next etc. There are only 3 options: warm, warm light, white. I will try to devs the algorithm to be compatible with this behavior.

marsuboss commented 1 year ago

I tested, but I have the impression that the fan of Create does not take the desired value, but jumps to the next value like the remote control does. When I press the remote it goes to the next temperature. In summary, the value goes from 0 to 500, then from 500 to 1000, and finally from 1000 to 0.

Besides, I also tested the Tuya or Create application to adjust the temperature, and it's the same! When I change warn -> white, but the fan switches to the next value "warn light"... You see?

Therefore, I think it's better to remove it, right?

marsuboss commented 1 year ago

In that case, report this bug to Create so they can fix it, and maybe we'll get a mod update...

Otherwise my fan module version is 2.5.2.

moifort commented 1 year ago

I have the same behavior. We can temporarily comment the code. My module version is 2.6.4.

I didn't find a bug report form, do you have any URL? I already sent a ticket to CREATE support, but no answer yet. :(

marsuboss commented 1 year ago

I didn't find a bug report form, do you have any URL? I already sent a ticket to CREATE support, but no answer yet. :(

I also couldn't find the link to report this bug. However, I tried leaving messages on Messenger "CREATE."

blazejpawlak commented 9 months ago

Perhaps this particular bug should be reported to Tuya since they're seems to be the supplier of hardware for CREATE fans?