-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Ceiling Fan LIGHT Colour Tempature Nolonger Changing #505
Comments
Enable debug for both integration and device and change brightness from Tuya APP if changed success copy all the logs and paste it here. Then repeat process but this Time change brightness from home assistant and paste the logs here. |
I Hope I've done it correctly. This line looks like it could be helpful? (first line of the change via HA debug)
Below are the debugs for when changing the fan light colour temperature. It works fine changing it via the Tuya App and its colour state is updated correctly in HA: Change vi Tuya App Debug
2025-01-24 07:39:27.180 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 9 (device type: type_0a) DPS: None When changing the colour temp though HA it jumps to max cool white with first click (regardless where you click) and then will not do anything for any following adjustments: Change via Home Assistant Debug
2025-01-24 07:50:22.706 WARNING (MainThread) [homeassistant.components.light] Got |
How do you change the temp from HA default card? or custom_card? or yaml action? because it seems HA warning you that you using |
I have been trying using both the HA control (viewing device from within the LocalTuya integration) and also by a Mushroom card on my dashboard - both methods behave the same. So, I'm guessing like you said, that's not the cause for this current issue.
Did anything jump out at you in those debug logs I uploaded? (amusing I done them correctly) Also, my fan speed control is doing few weird things but, happy to focus on the light temperature issue first. |
The value that being sent is always 0 not sure why besides it sends "0" DP next with them for some reason. Can you post the device diagnostics |
Sure thing, see below. I appreciate your time in looking into this, thanks. Device Diagnostics
{ |
I should've read more clearly :) that this issue caused if reverse enabled sorry. 😿 |
haha no problem. Yeah, only have the issue when reversed is ticked, works fine when unpicked but, then my actual colour temp is opposite. Going off that, does the reversed colour thing help you narrow it down or have you already found exactly what's causing the issue? |
Kinda yeah and surprisely the issue is I mistakenly used wrong arithmetic operation I used plus instead of minus 👀 hass-localtuya/custom_components/localtuya/light.py Lines 168 to 169 in 28f8712
it should've |
Ohh good spotting! Am I correct in assuming this will be something that's will 'magically' fix itself in the next LocalTuya update? |
Yes |
Fantastic, thanks very much for that! Would you like me to open a new bug report for the fan speed settings that seem to be misbehaving? I can generate the same logs I did above for the light but, with the fan instead. |
you can explain the issue to me how does it happen/when or so it may give us a hint of what happen and include the logs later. |
Essentially, when its running, I click to change the speed and it will just jump to full 100%. Clicking lower to try and change the speed does not change it most of the time. Every time I click to change the speed (even though it doesn't change and stays on 100%) the fan itself makes it's normal BEEP sound it does when you send it a command from either Tuya App, the fans remote or within HA but, the speed still does not physically change. Hopefully this screen recording shows: Device Diagnostics
{ Debug Log
2025-01-24 07:37:01.787 WARNING (SyncWorker_0) [homeas2025-01-25 15:02:02.183 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"gwId":"FAN_DEVICE_ID","devId":"FAN_DEVICE_ID"}' |
I think it's because your speed is not Integer it string which means you should've configured it with order list. |
Mate, you're a wizard! |
LocalTuya Version
2025.1.1
Home Assistant Version
2025.1.3
Environment
What happened?
The light temperature of my ceiling fan does not change anymore.
Light On/Off, brightness and fan settings all work.
I have had the ceiling fan with light set up and working for some time. I have just now noticed the light temp will no longer change (stuck on 6000k_ish regardless of slider in HA).
The temp DOES change if I un-tick the "Reverse Color Temperature?" option in the device config but, that now inverts the colour temperatures.
It is configured using Protocol Version: 3.3. I tried it on 3.2, 3.4 and 3.5 with all of those leaving the whole fan entity 'Unavailable'.
See the rest of below for my other config settings.
Steps to reproduce.
Open light entity and click on colour temp slider to change, noting happens, colour stays the same (6000k_ish).
Relevant log output
Diagnostics information.
No response
The text was updated successfully, but these errors were encountered: