Skip to content
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

Open
2 of 3 tasks
AstonishingAston opened this issue Jan 22, 2025 · 16 comments
Open
2 of 3 tasks

[Bug]: Ceiling Fan LIGHT Colour Tempature Nolonger Changing #505

AstonishingAston opened this issue Jan 22, 2025 · 16 comments
Labels
bug Something isn't working master/next-release Fixed in master branch, Will be ready in the next release

Comments

@AstonishingAston
Copy link

LocalTuya Version

2025.1.1

Home Assistant Version

2025.1.3

Environment

  • Does the device work using the Home Assistant Tuya Cloud component?
  • Is this device connected to another local integration, including Home Assistant and any other tools?
  • The devices are within the same HA subnet, and they get discovered automatically when I add them

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.

Image

Image

Image

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

@AstonishingAston AstonishingAston added the bug Something isn't working label Jan 22, 2025
@xZetsubou
Copy link
Owner

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.

@AstonishingAston
Copy link
Author

I Hope I've done it correctly.

This line looks like it could be helpful? (first line of the change via HA debug)

2025-01-24 07:50:22.706 WARNING (MainThread) [homeassistant.components.light] Got color_temp argument in turn_on service, which is deprecated and will break in Home Assistant 2026.1, please use color_temp_kelvin argument

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
2025-01-24 07:39:27.181 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"gwId":"FAN_ID_NUMBER_HIDDEN","devId":"FAN_ID_NUMBER_HIDDEN"}'
2025-01-24 07:39:27.182 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 9 waiting for seq. number -100
2025-01-24 07:39:27.271 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2025-01-24 07:39:27.272 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got heartbeat response
2025-01-24 07:39:27.272 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 9: ignoring: 0
2025-01-24 07:39:36.273 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 9 (device type: type_0a) DPS: None
2025-01-24 07:39:36.273 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"gwId":"FAN_ID_NUMBER_HIDDEN","devId":"FAN_ID_NUMBER_HIDDEN"}'
2025-01-24 07:39:36.274 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 9 waiting for seq. number -100
2025-01-24 07:39:36.383 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2025-01-24 07:39:36.383 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got heartbeat response
2025-01-24 07:39:36.383 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 9: ignoring: 0
2025-01-24 07:39:45.385 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 9 (device type: type_0a) DPS: None
2025-01-24 07:39:45.385 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"gwId":"FAN_ID_NUMBER_HIDDEN","devId":"FAN_ID_NUMBER_HIDDEN"}'
2025-01-24 07:39:45.385 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 9 waiting for seq. number -100
2025-01-24 07:39:45.398 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2025-01-24 07:39:45.399 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got heartbeat response
2025-01-24 07:39:45.399 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 9: ignoring: 0
2025-01-24 07:39:45.889 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x98\xe3\x00\x00\x00\x01\x84\x012E\x1f\xc8\x93\xe0\xe4{\x9b\xf0\xddTxW\x04\xfa\x83v8\xd6S\xce\x8c\x9e\xc23\xa2N\x98\x8a\x1f/?^\xea\xd2=\xb38\xfbT\xedYI\xed', crc=2013291513, crc_good=True, prefix=21930, iv=None) 2025-01-24 07:39:45.889 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got status update 2025-01-24 07:39:45.889 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Deciphered data = '{"dps":{"11":100},"t":1737657584}' 2025-01-24 07:39:45.892 DEBUG (SyncWorker_9) [custom_components.localtuya.fan] Fan current_speed ranged_value_to_percentage: 4 from (1, 6) 2025-01-24 07:39:45.893 DEBUG (SyncWorker_9) [custom_components.localtuya.fan] Fan current_percentage: 66 2025-01-24 07:39:45.893 DEBUG (SyncWorker_9) [custom_components.localtuya.fan] Fan current_direction : forward > forward 2025-01-24 07:39:45.895 DEBUG (MainThread) [custom_components.localtuya.light] [ebf...zox - OFFICE Ceiling Fan] Entity Light - Additional attributes: {'raw_state': True} 2025-01-24 07:39:45.896 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6 2025-01-24 07:39:45.896 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {} 2025-01-24 07:39:48.714 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x98\xe4\x00\x00\x00\x01w\xc4\x8c\x991\xeeeG\xad\x9e2\xa6 8\xbab\x93+&\xcbG\xcd\xd7\x8c\x03Q\xa2f\xf9\x02wt\x87I\x88y\xe3\xa9\xe2\x87\xc3\x85AV03\xa2', crc=1104980219, crc_good=True, prefix=21930, iv=None)
2025-01-24 07:39:48.714 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got status update
2025-01-24 07:39:48.714 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Deciphered data = '{"dps":{"11":54},"t":1737657587}'
2025-01-24 07:39:48.727 DEBUG (SyncWorker_5) [custom_components.localtuya.fan] Fan current_speed ranged_value_to_percentage: 4 from (1, 6)
2025-01-24 07:39:48.727 DEBUG (SyncWorker_5) [custom_components.localtuya.fan] Fan current_percentage: 66
2025-01-24 07:39:48.728 DEBUG (SyncWorker_5) [custom_components.localtuya.fan] Fan current_direction : forward > forward
2025-01-24 07:39:48.730 DEBUG (MainThread) [custom_components.localtuya.light] [ebf...zox - OFFICE Ceiling Fan] Entity Light - Additional attributes: {'raw_state': True}
2025-01-24 07:39:48.731 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6
2025-01-24 07:39:48.731 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {}

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 color_temp argument in turn_on service, which is deprecated and will break in Home Assistant 2026.1, please use color_temp_kelvin argument
2025-01-24 07:50:22.709 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 7 (device type: type_0a) DPS: {'10': 60, '11': 0, None: 'white'}
2025-01-24 07:50:22.709 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"devId":"FAN_ID_NUMBER_HIDDEN","uid":"FAN_ID_NUMBER_HIDDEN","t":"1737658222","dps":{"10":60,"11":0,"null":"white"}}'
2025-01-24 07:50:22.709 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 7 waiting for seq. number 74
2025-01-24 07:50:22.851 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 7 TuyaMessage(seqno=74, cmd=7, retcode=0, payload=b'', crc=4282484508, crc_good=True, prefix=21930, iv=None)
2025-01-24 07:50:22.851 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching sequence number 74
2025-01-24 07:50:22.851 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got ACK message for command 7: ignoring it 74
2025-01-24 07:50:22.851 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got update ack message update seqno only. msg.seqno=74 self.seqno=75
2025-01-24 07:50:22.851 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 7: ignoring: 74
2025-01-24 07:50:23.125 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 9 (device type: type_0a) DPS: None
2025-01-24 07:50:23.125 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"gwId":"FAN_ID_NUMBER_HIDDEN","devId":"FAN_ID_NUMBER_HIDDEN"}'
2025-01-24 07:50:23.127 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 9 waiting for seq. number -100
2025-01-24 07:50:23.159 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x98\xe6\x00\x00\x00\x01\x17(cp:c?U\x824\xef\x85\xcf\x8d_\x03f\xcc34\x94\xff{\xd9z\xb9}\xbd1y\xc3', crc=3253053691, crc_good=True, prefix=21930, iv=None) 2025-01-24 07:50:23.160 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got status update 2025-01-24 07:50:23.160 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Deciphered data = '{"dps":{"11":0},"t":1737658221}' 2025-01-24 07:50:23.163 DEBUG (SyncWorker_0) [custom_components.localtuya.fan] Fan current_speed ranged_value_to_percentage: 4 from (1, 6) 2025-01-24 07:50:23.163 DEBUG (SyncWorker_0) [custom_components.localtuya.fan] Fan current_percentage: 66 2025-01-24 07:50:23.163 DEBUG (SyncWorker_0) [custom_components.localtuya.fan] Fan current_direction : forward > forward 2025-01-24 07:50:23.164 DEBUG (MainThread) [custom_components.localtuya.light] [ebf...zox - OFFICE Ceiling Fan] Entity Light - Additional attributes: {'raw_state': True} 2025-01-24 07:50:23.165 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6 2025-01-24 07:50:23.165 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {} 2025-01-24 07:50:23.170 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None) 2025-01-24 07:50:23.170 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got heartbeat response 2025-01-24 07:50:23.171 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 9: ignoring: 0 2025-01-24 07:50:25.246 WARNING (MainThread) [homeassistant.components.light] Got color_tempargument inturn_onservice, which is deprecated and will break in Home Assistant 2026.1, please usecolor_temp_kelvin argument 2025-01-24 07:50:25.248 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 7 (device type: type_0a) DPS: {'10': 60, '11': 0, None: 'white'} 2025-01-24 07:50:25.249 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"devId":"*FAN_ID_NUMBER_HIDDEN*","uid":"*FAN_ID_NUMBER_HIDDEN*","t":"1737658225","dps":{"10":60,"11":0,"null":"white"}}' 2025-01-24 07:50:25.249 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 7 waiting for seq. number 76 2025-01-24 07:50:25.276 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 7 TuyaMessage(seqno=76, cmd=7, retcode=0, payload=b'', crc=1604606145, crc_good=True, prefix=21930, iv=None) 2025-01-24 07:50:25.276 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching sequence number 76 2025-01-24 07:50:25.276 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got ACK message for command 7: ignoring it 76 2025-01-24 07:50:25.276 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got update ack message update seqno only. msg.seqno=76 self.seqno=77 2025-01-24 07:50:25.277 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 7: ignoring: 76 2025-01-24 07:50:25.378 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b"3.3\x00\x00\x00\x00\x00\x00\x98\xe7\x00\x00\x00\x01\xeb\xb1I\x9d\xdeY\x11\x96\xa4\x0e<\x0b\xc3\xeb\xaeJ\x14\xdfQ\x80\xd7\xe2\xeb\xd3V\x9d\xcf\x01\x87\x96\xb4'\xc6\xb1m\xc7VY\xc7\x9a\xf8\xe7K\x02\x18A;[\xf6\xbbD\x04\xfd\xecI\xf8.\xd4\x18\x1c\xfe\xfb", crc=4256228800, crc_good=True, prefix=21930, iv=None)
2025-01-24 07:50:25.379 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got status update
2025-01-24 07:50:25.379 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Deciphered data = '{"dps":{"10":60,"11":0},"type":"query","t":1737658223}'
2025-01-24 07:50:28.448 WARNING (MainThread) [homeassistant.components.light] Got color_temp argument in turn_on service, which is deprecated and will break in Home Assistant 2026.1, please use color_temp_kelvin argument
2025-01-24 07:50:28.450 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 7 (device type: type_0a) DPS: {'10': 60, '11': 0, None: 'white'}
2025-01-24 07:50:28.450 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"devId":"FAN_ID_NUMBER_HIDDEN","uid":"FAN_ID_NUMBER_HIDDEN","t":"1737658228","dps":{"10":60,"11":0,"null":"white"}}'
2025-01-24 07:50:28.451 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 7 waiting for seq. number 77
2025-01-24 07:50:28.583 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 7 TuyaMessage(seqno=77, cmd=7, retcode=0, payload=b'', crc=2184347972, crc_good=True, prefix=21930, iv=None)
2025-01-24 07:50:28.583 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching sequence number 77
2025-01-24 07:50:28.583 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got ACK message for command 7: ignoring it 77
2025-01-24 07:50:28.583 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got update ack message update seqno only. msg.seqno=77 self.seqno=78
2025-01-24 07:50:28.584 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 7: ignoring: 77
2025-01-24 07:50:28.677 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b"3.3\x00\x00\x00\x00\x00\x00\x98\xe8\x00\x00\x00\x01\xeb`\xb1I\x9d\xdeY\x11\x96\xa4\x0e<\x0b\xc3\xeb\xaeJ\x14\xdfQ\x80\xd7\xe2\xeb\xd3V\x9d\xcf\x01\x87\x96\xb4'\xc6\xb1m\xc7VY\xc7\x9a\xf8\xe7K\x02\x18
ARrF\xa2\xb2h\x13\xed\xb4\x13,\xceDW\xdc\xb3", crc=1271082355, crc_good=True, prefix=21930, iv=None)
2025-01-24 07:50:28.678 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got status update
2025-01-24 07:50:28.678 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Deciphered data = '{"dps":{"10":60,"11":0},"type":"query","t":1737658227}'
2025-01-24 07:50:32.173 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 9 (device type: type_0a) DPS: None
2025-01-24 07:50:32.173 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"gwId":"FAN_ID_NUMBER_HIDDEN","devId":"FAN_ID_NUMBER_HIDDEN"}'
2025-01-24 07:50:32.174 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 9 waiting for seq. number -100
2025-01-24 07:50:32.245 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2025-01-24 07:50:32.245 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got heartbeat response
2025-01-24 07:50:32.245 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 9: ignoring: 0

@xZetsubou
Copy link
Owner

xZetsubou commented Jan 23, 2025

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 color_temp which is deprecated for both HA and Localtuya and so it does in localtuya. even tho I don't think this is not an issue since HA should handle conversion till 2026 but I want to check.

@AstonishingAston
Copy link
Author

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.

  • It was definitely all working perfectly fine when I was using the original(?) LocalTuya integration but, jumped over to this forked version when a the HA 2025.0.0 update upset most of my LocalTuya devices.
  • I'm fairly certain the light was working fine on this forked version when I changed.
  • Shortly after I changed to this fork, an update came out for it this fork and I installed that as normal.
  • I then noticed the light's colour temp not changing but, can't 100% say when it stopped function.

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.
(it jumps to full speed about 70% of the time you change the speed to any setting)

@xZetsubou
Copy link
Owner

Did anything jump out at you in those debug logs I uploaded?

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

@AstonishingAston
Copy link
Author

Sure thing, see below. I appreciate your time in looking into this, thanks.

Device Diagnostics

{
"home_assistant": {
"installation_type": "Home Assistant OS",
"version": "2025.1.3",
"dev": false,
"hassio": true,
"virtualenv": false,
"python_version": "3.13.1",
"docker": true,
"arch": "x86_64",
"timezone": "HIDDEN_TIME_ZONE",
"os_name": "Linux",
"os_version": "6.6.66-haos",
"supervisor": "2024.12.3",
"host_os": "Home Assistant OS 14.1",
"docker_version": "27.2.0",
"chassis": "embedded",
"run_as_root": true
},
"custom_components": {
"hacs": {
"documentation": "https://hacs.xyz/docs/use/",
"version": "2.0.3",
"requirements": [
"aiogithubapi>=22.10.1"
]
},
"webrtc": {
"documentation": "https://github.com/AlexxIT/WebRTC",
"version": "v3.6.0",
"requirements": []
},
"hass_agent": {
"documentation": "https://github.com/LAB02-Research/HASS.Agent-Integration",
"version": "2022.11.9",
"requirements": []
},
"localtuya": {
"documentation": "https://github.com/xZetsubou/hass-localtuya/",
"version": "2025.1.1",
"requirements": []
},
"bambu_lab": {
"documentation": "https://github.com/greghesp/ha-bambulab",
"version": "2.0.40",
"requirements": [
"cloudscraper"
]
},
"weatherdotcom": {
"documentation": "https://github.com/jaydeethree/Home-Assistant-weatherdotcom",
"version": "1.2.0",
"requirements": []
}
},
"integration_manifest": {
"domain": "localtuya",
"name": "Local Tuya",
"codeowners": [],
"config_flow": true,
"dependencies": [],
"documentation": "https://github.com/xZetsubou/hass-localtuya/",
"integration_type": "hub",
"iot_class": "local_push",
"issue_tracker": "https://github.com/xZetsubou/hass-localtuya/issues",
"requirements": [],
"version": "2025.1.1",
"is_built_in": false,
"overwrites_built_in": false
},
"setup_times": {
"null": {
"setup": 0.0004958340432494879
},
"5f1085b1fdb127e79a93fc95ba660bf8": {
"wait_import_platforms": -3.3311489910120144,
"wait_base_component": -0.000687491032294929,
"config_entry_setup": 3.3557085329666734
}
},
"data": {
"device_config": {
"friendly_name": "OFFICE Ceiling Fan",
"host": "HIDDEN_HOST_IP",
"local_key": "HIDDEN_LOCAL_KEY",
"protocol_version": "3.3",
"enable_debug": true,
"entities": [
{
"friendly_name": "Fan",
"entity_category": "config",
"fan_speed_control": "3",
"fan_direction": "4",
"fan_direction_forward": "forward",
"fan_direction_reverse": "reverse",
"fan_speed_min": 1,
"fan_speed_max": 6,
"fan_speed_ordered_list": "disabled",
"id": "1",
"platform": "fan",
"icon": ""
},
{
"friendly_name": "Light",
"entity_category": "None",
"brightness": "10",
"color_temp": "11",
"brightness_lower": 0,
"brightness_upper": 100,
"color_mode_set": "0",
"color_temp_min_kelvin": 2700,
"color_temp_max_kelvin": 6500,
"color_temp_reverse": true,
"scene_values": {},
"music_mode": false,
"id": "9",
"platform": "light",
"icon": ""
}
],
"product_key": "HIDDEN_PRODUCT_KEYs",
"device_id": "HIDDEN_DEVICE_ID",
"node_id": null,
"dps_strings": [
"1 (value: False)",
"3 (value: 3)",
"4 (value: forward)",
"9 (value: False)",
"10 (value: 100)",
"11 (value: 50)",
"102 (value: normal)",
"103 (value: off)"
]
}
}
}

@xZetsubou
Copy link
Owner

I should've read more clearly :) that this issue caused if reverse enabled sorry. 😿

@AstonishingAston
Copy link
Author

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?

@xZetsubou
Copy link
Owner

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 👀

if reverse:
value = from_max - (value + from_min)

it should've (value - from_min)

@xZetsubou xZetsubou added the master/next-release Fixed in master branch, Will be ready in the next release label Jan 24, 2025
@AstonishingAston
Copy link
Author

Ohh good spotting!
Seems like its luckily a very easy fix then 🎉

Am I correct in assuming this will be something that's will 'magically' fix itself in the next LocalTuya update?

@xZetsubou
Copy link
Owner

Am I correct in assuming this will be something that's will 'magically' fix itself in the next LocalTuya update?

Yes

@AstonishingAston
Copy link
Author

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?
(jumping to 100% speed)

I can generate the same logs I did above for the light but, with the fan instead.
Probably won't have a chance to do it until tomorrow.

@xZetsubou
Copy link
Owner

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.

@AstonishingAston
Copy link
Author

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.
If I keep clicking, eventually it might go to a lower speed.
It seems to work better for me if I turn it OFF and then click a lower speed, it will turn on and go the lower speed.. until I select any other speed and it jumps back to full 100%.

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:
https://github.com/user-attachments/assets/31b0e978-c264-4ff4-91bd-1413231dca92

Device Diagnostics

{
"home_assistant": {
"installation_type": "Home Assistant OS",
"version": "2025.1.3",
"dev": false,
"hassio": true,
"virtualenv": false,
"python_version": "3.13.1",
"docker": true,
"arch": "x86_64",
"timezone": "HIDDEN_TIMEZONE",
"os_name": "Linux",
"os_version": "6.6.66-haos",
"supervisor": "2024.12.3",
"host_os": "Home Assistant OS 14.1",
"docker_version": "27.2.0",
"chassis": "embedded",
"run_as_root": true
},
"custom_components": {
"hacs": {
"documentation": "https://hacs.xyz/docs/use/",
"version": "2.0.3",
"requirements": [
"aiogithubapi>=22.10.1"
]
},
"webrtc": {
"documentation": "https://github.com/AlexxIT/WebRTC",
"version": "v3.6.0",
"requirements": []
},
"hass_agent": {
"documentation": "https://github.com/LAB02-Research/HASS.Agent-Integration",
"version": "2022.11.9",
"requirements": []
},
"localtuya": {
"documentation": "https://github.com/xZetsubou/hass-localtuya/",
"version": "2025.1.1",
"requirements": []
},
"bambu_lab": {
"documentation": "https://github.com/greghesp/ha-bambulab",
"version": "2.0.40",
"requirements": [
"cloudscraper"
]
},
"weatherdotcom": {
"documentation": "https://github.com/jaydeethree/Home-Assistant-weatherdotcom",
"version": "1.2.0",
"requirements": []
}
},
"integration_manifest": {
"domain": "localtuya",
"name": "Local Tuya",
"codeowners": [],
"config_flow": true,
"dependencies": [],
"documentation": "https://github.com/xZetsubou/hass-localtuya/",
"integration_type": "hub",
"iot_class": "local_push",
"issue_tracker": "https://github.com/xZetsubou/hass-localtuya/issues",
"requirements": [],
"version": "2025.1.1",
"is_built_in": false,
"overwrites_built_in": false
},
"setup_times": {
"null": {
"setup": 0.0004958340432494879
},
"5f1085b1fdb127e79a93fc95ba660bf8": {
"wait_import_platforms": -3.3311489910120144,
"wait_base_component": -0.000687491032294929,
"config_entry_setup": 3.3557085329666734
}
},
"data": {
"device_config": {
"friendly_name": "OFFICE Ceiling Fan",
"host": "HIDDEN_LOCAL_IP",
"local_key": "HIDDEN_LOCAL_KEY",
"protocol_version": "3.3",
"enable_debug": true,
"entities": [
{
"friendly_name": "Fan",
"entity_category": "None",
"fan_speed_control": "3",
"fan_direction": "4",
"fan_direction_forward": "forward",
"fan_direction_reverse": "reverse",
"fan_speed_min": 1,
"fan_speed_max": 6,
"fan_speed_ordered_list": "disabled",
"id": "1",
"platform": "fan",
"icon": ""
},
{
"friendly_name": "Light",
"entity_category": "None",
"brightness": "10",
"color_temp": "11",
"brightness_lower": 0,
"brightness_upper": 100,
"color_mode_set": "0",
"color_temp_min_kelvin": 2700,
"color_temp_max_kelvin": 6500,
"color_temp_reverse": true,
"scene_values": {},
"music_mode": false,
"id": "9",
"platform": "light",
"icon": ""
}
],
"product_key": "HIDDEN_PRODUCT_KEY",
"device_id": "HIDDEN_DEVICE_ID",
"node_id": null,
"dps_strings": [
"1 (value: False)",
"3 (value: 3)",
"4 (value: forward)",
"9 (value: False)",
"10 (value: 100)",
"11 (value: 50)",
"102 (value: normal)",
"103 (value: off)"
]
}
}
}

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"}'
2025-01-25 15:02:02.185 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 9 waiting for seq. number -100
2025-01-25 15:02:02.290 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2025-01-25 15:02:02.290 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got heartbeat response
2025-01-25 15:02:02.290 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 9: ignoring: 0
2025-01-25 15:02:03.973 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_set_percentage: 50
2025-01-25 15:02:03.974 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 7 (device type: type_0a) DPS: {'3': 3}
2025-01-25 15:02:03.974 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"devId":"FAN_DEVICE_ID","uid":"FAN_DEVICE_ID","t":"1737770523","dps":{"3":3}}'
2025-01-25 15:02:03.976 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 7 waiting for seq. number 227
2025-01-25 15:02:04.035 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 7 TuyaMessage(seqno=227, cmd=7, retcode=0, payload=b'', crc=1807803158, crc_good=True, prefix=21930, iv=None)
2025-01-25 15:02:04.036 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching sequence number 227
2025-01-25 15:02:04.036 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got ACK message for command 7: ignoring it 227
2025-01-25 15:02:04.036 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got update ack message update seqno only. msg.seqno=227 self.seqno=228
2025-01-25 15:02:04.036 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 7: ignoring: 227
2025-01-25 15:02:04.036 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_set_percentage: 50 > 3.0
2025-01-25 15:02:04.037 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6
2025-01-25 15:02:04.038 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {}
2025-01-25 15:02:04.080 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b"3.3\x00\x00\x00\x00\x00\x00\x99\x07\x00\x00\x00\x01\t+?rNgX\x06\xdb\xdc >N\xfd\x8f@\xf7?,K\xba\xc8\x13&\x9d3t'3 gT\x87I\x88y\xe3\xa9\xe2\x87\xc3\x85AV03\xa2", crc=4017102855, crc_good=True, prefix=21930, iv=None) 2025-01-25 15:02:04.081 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got status update 2025-01-25 15:02:04.081 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Deciphered data = '{"dps":{"3":"6"},"t":1737770522}' 2025-01-25 15:02:04.082 DEBUG (MainThread) [custom_components.localtuya.light] [ebf...zox - OFFICE Ceiling Fan] Entity Light - Additional attributes: {'raw_state': False} 2025-01-25 15:02:04.083 DEBUG (SyncWorker_4) [custom_components.localtuya.fan] Fan current_speed ranged_value_to_percentage: 6 from (1, 6) 2025-01-25 15:02:04.083 DEBUG (SyncWorker_4) [custom_components.localtuya.fan] Fan current_percentage: 100 2025-01-25 15:02:04.083 DEBUG (SyncWorker_4) [custom_components.localtuya.fan] Fan current_direction : forward > forward 2025-01-25 15:02:04.083 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6 2025-01-25 15:02:04.083 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {} 2025-01-25 15:02:06.416 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_set_percentage: 33 2025-01-25 15:02:06.417 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 7 (device type: type_0a) DPS: {'3': 2} 2025-01-25 15:02:06.418 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"devId":"**FAN_DEVICE_ID**","uid":"**FAN_DEVICE_ID**","t":"1737770526","dps":{"3":2}}' 2025-01-25 15:02:06.419 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 7 waiting for seq. number 228 2025-01-25 15:02:06.434 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 7 TuyaMessage(seqno=228, cmd=7, retcode=0, payload=b'', crc=380888398, crc_good=True, prefix=21930, iv=None) 2025-01-25 15:02:06.434 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching sequence number 228 2025-01-25 15:02:06.434 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got ACK message for command 7: ignoring it 228 2025-01-25 15:02:06.434 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got update ack message update seqno only. msg.seqno=228 self.seqno=229 2025-01-25 15:02:06.434 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 7: ignoring: 228 2025-01-25 15:02:06.434 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_set_percentage: 33 > 1.98 2025-01-25 15:02:06.436 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6 2025-01-25 15:02:06.437 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {} 2025-01-25 15:02:07.726 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_turn_off 2025-01-25 15:02:07.728 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 7 (device type: type_0a) DPS: {'1': False} 2025-01-25 15:02:07.728 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"devId":"**FAN_DEVICE_ID**","uid":"**FAN_DEVICE_ID**","t":"1737770527","dps":{"1":false}}' 2025-01-25 15:02:07.729 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 7 waiting for seq. number 229 2025-01-25 15:02:07.823 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 7 TuyaMessage(seqno=229, cmd=7, retcode=0, payload=b'', crc=3408215243, crc_good=True, prefix=21930, iv=None) 2025-01-25 15:02:07.823 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching sequence number 229 2025-01-25 15:02:07.824 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got ACK message for command 7: ignoring it 229 2025-01-25 15:02:07.824 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got update ack message update seqno only. msg.seqno=229 self.seqno=230 2025-01-25 15:02:07.824 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 7: ignoring: 229 2025-01-25 15:02:07.826 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6 2025-01-25 15:02:07.826 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {} 2025-01-25 15:02:08.125 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x99\x08\x00\x00\x00\x01\xeeQ="\xd2+\xe3\xcc\x1c7\r\nQ\x9a\xa52u#\x8a\x07x\xf9_\xd8\xf0\x0c\x88q\xcbj\x1c\x89\xe0w\xed**\xbd\x08\x12\xf5\xaa\x8a\xcb\x14\xd7(9', crc=598451386, crc_good=True, prefix=21930, iv=None)
2025-01-25 15:02:08.125 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got status update
2025-01-25 15:02:08.125 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Deciphered data = '{"dps":{"1":false},"t":1737770526}'
2025-01-25 15:02:08.128 DEBUG (SyncWorker_10) [custom_components.localtuya.fan] Fan current_speed ranged_value_to_percentage: 6 from (1, 6)
2025-01-25 15:02:08.128 DEBUG (SyncWorker_10) [custom_components.localtuya.fan] Fan current_percentage: 100
2025-01-25 15:02:08.129 DEBUG (SyncWorker_10) [custom_components.localtuya.fan] Fan current_direction : forward > forward
2025-01-25 15:02:08.129 DEBUG (MainThread) [custom_components.localtuya.light] [ebf...zox - OFFICE Ceiling Fan] Entity Light - Additional attributes: {'raw_state': False}
2025-01-25 15:02:08.129 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6
2025-01-25 15:02:08.130 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {}
2025-01-25 15:02:09.194 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_set_percentage: 16
2025-01-25 15:02:09.195 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_turn_on
2025-01-25 15:02:09.196 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 7 (device type: type_0a) DPS: {'1': True}
2025-01-25 15:02:09.197 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"devId":"FAN_DEVICE_ID","uid":"FAN_DEVICE_ID","t":"1737770529","dps":{"1":true}}'
2025-01-25 15:02:09.197 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 7 waiting for seq. number 230
2025-01-25 15:02:09.212 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 7 TuyaMessage(seqno=230, cmd=7, retcode=0, payload=b'', crc=1995395077, crc_good=True, prefix=21930, iv=None)
2025-01-25 15:02:09.213 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching sequence number 230
2025-01-25 15:02:09.213 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got ACK message for command 7: ignoring it 230
2025-01-25 15:02:09.213 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got update ack message update seqno only. msg.seqno=230 self.seqno=231
2025-01-25 15:02:09.213 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 7: ignoring: 230
2025-01-25 15:02:09.213 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6
2025-01-25 15:02:09.214 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {}
2025-01-25 15:02:09.215 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 7 (device type: type_0a) DPS: {'3': 1}
2025-01-25 15:02:09.216 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"devId":"FAN_DEVICE_ID","uid":"FAN_DEVICE_ID","t":"1737770529","dps":{"3":1}}'
2025-01-25 15:02:09.247 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 7 waiting for seq. number 231
2025-01-25 15:02:09.263 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 7 TuyaMessage(seqno=231, cmd=7, retcode=0, payload=b'', crc=2876868992, crc_good=True, prefix=21930, iv=None)
2025-01-25 15:02:09.263 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching sequence number 231
2025-01-25 15:02:09.264 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got ACK message for command 7: ignoring it 231
2025-01-25 15:02:09.264 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got update ack message update seqno only. msg.seqno=231 self.seqno=232
2025-01-25 15:02:09.264 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 7: ignoring: 231
2025-01-25 15:02:09.264 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_set_percentage: 16 > 0.96
2025-01-25 15:02:09.265 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6
2025-01-25 15:02:09.266 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {}
2025-01-25 15:02:09.520 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x99\t\x00\x00\x00\x01\xd7@{\xec\xf5\xaeZ\x08\x83\x9d\x1dx\x00\x81>\xb9O\xb0N?y\xf5\x98,aA\x1e.\xe6g"d\x1f/?^\xea\xd2=\xb38\xfbT\xedYI\xed', crc=1200500711, crc_good=True, prefix=21930, iv=None) 2025-01-25 15:02:09.520 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got status update 2025-01-25 15:02:09.521 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Deciphered data = '{"dps":{"1":true},"t":1737770528}' 2025-01-25 15:02:09.523 DEBUG (SyncWorker_6) [custom_components.localtuya.fan] Fan current_speed ranged_value_to_percentage: 6 from (1, 6) 2025-01-25 15:02:09.523 DEBUG (SyncWorker_6) [custom_components.localtuya.fan] Fan current_percentage: 100 2025-01-25 15:02:09.523 DEBUG (SyncWorker_6) [custom_components.localtuya.fan] Fan current_direction : forward > forward 2025-01-25 15:02:09.525 DEBUG (MainThread) [custom_components.localtuya.light] [ebf...zox - OFFICE Ceiling Fan] Entity Light - Additional attributes: {'raw_state': False} 2025-01-25 15:02:09.526 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6 2025-01-25 15:02:09.526 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {} 2025-01-25 15:02:10.558 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_turn_off 2025-01-25 15:02:10.559 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 7 (device type: type_0a) DPS: {'1': False} 2025-01-25 15:02:10.560 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"devId":"**FAN_DEVICE_ID**","uid":"**FAN_DEVICE_ID**","t":"1737770530","dps":{"1":false}}' 2025-01-25 15:02:10.561 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 7 waiting for seq. number 232 2025-01-25 15:02:10.588 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 7 TuyaMessage(seqno=232, cmd=7, retcode=0, payload=b'', crc=2349423797, crc_good=True, prefix=21930, iv=None) 2025-01-25 15:02:10.588 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching sequence number 232 2025-01-25 15:02:10.589 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got ACK message for command 7: ignoring it 232 2025-01-25 15:02:10.589 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got update ack message update seqno only. msg.seqno=232 self.seqno=233 2025-01-25 15:02:10.589 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 7: ignoring: 232 2025-01-25 15:02:10.589 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6 2025-01-25 15:02:10.589 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {} 2025-01-25 15:02:10.893 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x99\n\x00\x00\x00\x01\xeeQ="\xd2+\xe3\xcc\x1c7\r\nQ\x9a\xa52u#\x8a\x07x\xf9_\xd8\xf0\x0c\x88q\xcbj\x1c\xfe\x02\xd3X\x13X\xdf\xe2\xd8\x9e\xdd d\xd3\xc2\x88', crc=1173689398, crc_good=True, prefix=21930, iv=None)
2025-01-25 15:02:10.894 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got status update
2025-01-25 15:02:10.894 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Deciphered data = '{"dps":{"1":false},"t":1737770529}'
2025-01-25 15:02:10.895 DEBUG (SyncWorker_1) [custom_components.localtuya.fan] Fan current_speed ranged_value_to_percentage: 6 from (1, 6)
2025-01-25 15:02:10.895 DEBUG (SyncWorker_1) [custom_components.localtuya.fan] Fan current_percentage: 100
2025-01-25 15:02:10.895 DEBUG (SyncWorker_1) [custom_components.localtuya.fan] Fan current_direction : forward > forward
2025-01-25 15:02:10.898 DEBUG (MainThread) [custom_components.localtuya.light] [ebf...zox - OFFICE Ceiling Fan] Entity Light - Additional attributes: {'raw_state': False}
2025-01-25 15:02:10.898 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6
2025-01-25 15:02:10.899 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {}
2025-01-25 15:02:11.291 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 9 (device type: type_0a) DPS: None
2025-01-25 15:02:11.292 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"gwId":"FAN_DEVICE_ID","devId":"FAN_DEVICE_ID"}'
2025-01-25 15:02:11.293 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 9 waiting for seq. number -100
2025-01-25 15:02:11.299 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2025-01-25 15:02:11.300 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got heartbeat response
2025-01-25 15:02:11.300 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 9: ignoring: 0
2025-01-25 15:02:12.848 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_set_percentage: 33
2025-01-25 15:02:12.849 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_turn_on
2025-01-25 15:02:12.850 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 7 (device type: type_0a) DPS: {'1': True}
2025-01-25 15:02:12.851 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"devId":"FAN_DEVICE_ID","uid":"FAN_DEVICE_ID","t":"1737770532","dps":{"1":true}}'
2025-01-25 15:02:12.852 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 7 waiting for seq. number 234
2025-01-25 15:02:12.866 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 7 TuyaMessage(seqno=234, cmd=7, retcode=0, payload=b'', crc=3965053438, crc_good=True, prefix=21930, iv=None)
2025-01-25 15:02:12.867 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching sequence number 234
2025-01-25 15:02:12.867 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got ACK message for command 7: ignoring it 234
2025-01-25 15:02:12.867 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got update ack message update seqno only. msg.seqno=234 self.seqno=235
2025-01-25 15:02:12.867 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 7: ignoring: 234
2025-01-25 15:02:12.867 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6
2025-01-25 15:02:12.868 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {}
2025-01-25 15:02:12.870 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 7 (device type: type_0a) DPS: {'3': 2}
2025-01-25 15:02:12.870 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"devId":"FAN_DEVICE_ID","uid":"FAN_DEVICE_ID","t":"1737770532","dps":{"3":2}}'
2025-01-25 15:02:12.902 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 7 waiting for seq. number 235
2025-01-25 15:02:12.906 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 7 TuyaMessage(seqno=235, cmd=7, retcode=0, payload=b'', crc=834875515, crc_good=True, prefix=21930, iv=None)
2025-01-25 15:02:12.906 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching sequence number 235
2025-01-25 15:02:12.906 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got ACK message for command 7: ignoring it 235
2025-01-25 15:02:12.906 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got update ack message update seqno only. msg.seqno=235 self.seqno=236
2025-01-25 15:02:12.907 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 7: ignoring: 235
2025-01-25 15:02:12.907 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_set_percentage: 33 > 1.98
2025-01-25 15:02:12.909 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6
2025-01-25 15:02:12.909 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {}
2025-01-25 15:02:13.171 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x99\x0b\x00\x00\x00\x01\xd7@{\xec\xf5\xaeZ\x08\x83\x9d\x1dx\x00\x81>\xb9i\xf1\xf41\x85\x0c1\x0c\xa3\x83h\xfa\xa0\xcf|\xf7\x1f/?^\xea\xd2=\xb38\xfbT\xedYI\xed', crc=187696201, crc_good=True, prefix=21930, iv=None) 2025-01-25 15:02:13.171 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got status update 2025-01-25 15:02:13.171 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Deciphered data = '{"dps":{"1":true},"t":1737770531}' 2025-01-25 15:02:13.174 DEBUG (SyncWorker_3) [custom_components.localtuya.fan] Fan current_speed ranged_value_to_percentage: 6 from (1, 6) 2025-01-25 15:02:13.174 DEBUG (SyncWorker_3) [custom_components.localtuya.fan] Fan current_percentage: 100 2025-01-25 15:02:13.174 DEBUG (SyncWorker_3) [custom_components.localtuya.fan] Fan current_direction : forward > forward 2025-01-25 15:02:13.175 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6 2025-01-25 15:02:13.175 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {} 2025-01-25 15:02:13.176 DEBUG (MainThread) [custom_components.localtuya.light] [ebf...zox - OFFICE Ceiling Fan] Entity Light - Additional attributes: {'raw_state': False} 2025-01-25 15:02:13.915 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_set_percentage: 33 2025-01-25 15:02:13.917 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 7 (device type: type_0a) DPS: {'3': 2} 2025-01-25 15:02:13.917 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"devId":"**FAN_DEVICE_ID**","uid":"**FAN_DEVICE_ID**","t":"1737770533","dps":{"3":2}}' 2025-01-25 15:02:13.919 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 7 waiting for seq. number 236 2025-01-25 15:02:13.933 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 7 TuyaMessage(seqno=236, cmd=7, retcode=0, payload=b'', crc=1286616611, crc_good=True, prefix=21930, iv=None) 2025-01-25 15:02:13.933 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching sequence number 236 2025-01-25 15:02:13.934 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got ACK message for command 7: ignoring it 236 2025-01-25 15:02:13.934 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got update ack message update seqno only. msg.seqno=236 self.seqno=237 2025-01-25 15:02:13.934 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 7: ignoring: 236 2025-01-25 15:02:13.934 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_set_percentage: 33 > 1.98 2025-01-25 15:02:13.935 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6 2025-01-25 15:02:13.936 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {} 2025-01-25 15:02:17.745 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_set_percentage: 66 2025-01-25 15:02:17.747 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 7 (device type: type_0a) DPS: {'3': 4} 2025-01-25 15:02:17.747 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"devId":"**FAN_DEVICE_ID**","uid":"**FAN_DEVICE_ID**","t":"1737770537","dps":{"3":4}}' 2025-01-25 15:02:17.749 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 7 waiting for seq. number 237 2025-01-25 15:02:17.855 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 7 TuyaMessage(seqno=237, cmd=7, retcode=0, payload=b'', crc=2435248038, crc_good=True, prefix=21930, iv=None) 2025-01-25 15:02:17.855 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching sequence number 237 2025-01-25 15:02:17.856 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got ACK message for command 7: ignoring it 237 2025-01-25 15:02:17.856 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got update ack message update seqno only. msg.seqno=237 self.seqno=238 2025-01-25 15:02:17.856 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 7: ignoring: 237 2025-01-25 15:02:17.856 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_set_percentage: 66 > 3.96 2025-01-25 15:02:17.857 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6 2025-01-25 15:02:17.857 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {} 2025-01-25 15:02:20.301 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 9 (device type: type_0a) DPS: None 2025-01-25 15:02:20.301 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"gwId":"**FAN_DEVICE_ID**","devId":"**FAN_DEVICE_ID**"}' 2025-01-25 15:02:20.302 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 9 waiting for seq. number -100 2025-01-25 15:02:20.407 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None) 2025-01-25 15:02:20.407 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got heartbeat response 2025-01-25 15:02:20.408 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 9: ignoring: 0 2025-01-25 15:02:21.202 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_turn_off 2025-01-25 15:02:21.203 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 7 (device type: type_0a) DPS: {'1': False} 2025-01-25 15:02:21.203 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"devId":"**FAN_DEVICE_ID**","uid":"**FAN_DEVICE_ID**","t":"1737770541","dps":{"1":false}}' 2025-01-25 15:02:21.205 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 7 waiting for seq. number 239 2025-01-25 15:02:21.339 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 7 TuyaMessage(seqno=239, cmd=7, retcode=0, payload=b'', crc=4051327725, crc_good=True, prefix=21930, iv=None) 2025-01-25 15:02:21.339 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching sequence number 239 2025-01-25 15:02:21.339 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got ACK message for command 7: ignoring it 239 2025-01-25 15:02:21.339 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got update ack message update seqno only. msg.seqno=239 self.seqno=240 2025-01-25 15:02:21.340 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 7: ignoring: 239 2025-01-25 15:02:21.341 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6 2025-01-25 15:02:21.341 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {} 2025-01-25 15:02:21.646 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x99\x0c\x00\x00\x00\x01\xeeQ="\xd2+\xe3\xcc\x1c7\r\nQ\x9a\xa52**\xe5\xf9$\x9c\x1c\x1f \x8d\xa5#\xdaP\xec\xcb\x91\xf5\xb5(\xb6@\x99\xb8p\xe6a\xcb\xb8\xd5\\pr', crc=58313141, crc_good=True, prefix=21930, iv=None) 2025-01-25 15:02:21.646 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got status update 2025-01-25 15:02:21.647 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Deciphered data = '{"dps":{"1":false},"t":1737770540}' 2025-01-25 15:02:21.649 DEBUG (SyncWorker_6) [custom_components.localtuya.fan] Fan current_speed ranged_value_to_percentage: 6 from (1, 6) 2025-01-25 15:02:21.649 DEBUG (SyncWorker_6) [custom_components.localtuya.fan] Fan current_percentage: 100 2025-01-25 15:02:21.650 DEBUG (SyncWorker_6) [custom_components.localtuya.fan] Fan current_direction : forward > forward 2025-01-25 15:02:21.651 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6 2025-01-25 15:02:21.652 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {} 2025-01-25 15:02:21.652 DEBUG (MainThread) [custom_components.localtuya.light] [ebf...zox - OFFICE Ceiling Fan] Entity Light - Additional attributes: {'raw_state': False} 2025-01-25 15:02:23.845 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_set_percentage: 16 2025-01-25 15:02:23.845 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_turn_on 2025-01-25 15:02:23.847 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 7 (device type: type_0a) DPS: {'1': True} 2025-01-25 15:02:23.847 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"devId":"**FAN_DEVICE_ID**","uid":"**FAN_DEVICE_ID**","t":"1737770543","dps":{"1":true}}' 2025-01-25 15:02:23.847 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 7 waiting for seq. number 240 2025-01-25 15:02:23.864 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 7 TuyaMessage(seqno=240, cmd=7, retcode=0, payload=b'', crc=1645029634, crc_good=True, prefix=21930, iv=None) 2025-01-25 15:02:23.864 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching sequence number 240 2025-01-25 15:02:23.864 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got ACK message for command 7: ignoring it 240 2025-01-25 15:02:23.864 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got update ack message update seqno only. msg.seqno=240 self.seqno=241 2025-01-25 15:02:23.865 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 7: ignoring: 240 2025-01-25 15:02:23.866 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6 2025-01-25 15:02:23.866 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {} 2025-01-25 15:02:23.867 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 7 (device type: type_0a) DPS: {'3': 1} 2025-01-25 15:02:23.867 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"devId":"**FAN_DEVICE_ID**","uid":"**FAN_DEVICE_ID**","t":"1737770543","dps":{"3":1}}' 2025-01-25 15:02:23.900 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 7 waiting for seq. number 241 2025-01-25 15:02:23.922 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 7 TuyaMessage(seqno=241, cmd=7, retcode=0, payload=b'', crc=3214667911, crc_good=True, prefix=21930, iv=None) 2025-01-25 15:02:23.923 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching sequence number 241 2025-01-25 15:02:23.923 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got ACK message for command 7: ignoring it 241 2025-01-25 15:02:23.923 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got update ack message update seqno only. msg.seqno=241 self.seqno=242 2025-01-25 15:02:23.923 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 7: ignoring: 241 2025-01-25 15:02:23.923 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_set_percentage: 16 > 0.96 2025-01-25 15:02:23.924 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6 2025-01-25 15:02:23.924 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {} 2025-01-25 15:02:24.163 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x99\r\x00\x00\x00\x01\xd7@{\xec\xf5\xaeZ\x08\x83\x9d\x1dx\x00\x81>\xb9\x80\x801\x82\xe2\xf8\xc5D9\xaf\x1d\xa9\x16\xef\xc2\xa4\x1f/?^\xea\xd2=\xb38\xfbT\xedYI\xed', crc=706097671, crc_good=True, prefix=21930, iv=None)
2025-01-25 15:02:24.163 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got status update
2025-01-25 15:02:24.164 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Deciphered data = '{"dps":{"1":true},"t":1737770542}'
2025-01-25 15:02:24.166 DEBUG (SyncWorker_9) [custom_components.localtuya.fan] Fan current_speed ranged_value_to_percentage: 6 from (1, 6)
2025-01-25 15:02:24.166 DEBUG (SyncWorker_9) [custom_components.localtuya.fan] Fan current_percentage: 100
2025-01-25 15:02:24.166 DEBUG (SyncWorker_9) [custom_components.localtuya.fan] Fan current_direction : forward > forward
2025-01-25 15:02:24.168 DEBUG (MainThread) [custom_components.localtuya.light] [ebf...zox - OFFICE Ceiling Fan] Entity Light - Additional attributes: {'raw_state': False}
2025-01-25 15:02:24.169 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6
2025-01-25 15:02:24.169 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {}
2025-01-25 15:02:24.170 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x99\x0e\x00\x00\x00\x015\x91J80\xc8$O\xf2\x14@\xbd\xca?\xba \xe5\xcap\xb0\x160\x1c\x10\xc2W\x84\x1e\x12w\xa3\xfb\x87I\x88y\xe3\xa9\xe2\x87\xc3\x85AV03\xa2', crc=1912728906, crc_good=True, prefix=21930, iv=None) 2025-01-25 15:02:24.170 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got status update 2025-01-25 15:02:24.170 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Deciphered data = '{"dps":{"3":"2"},"t":1737770542}' 2025-01-25 15:02:24.174 DEBUG (SyncWorker_4) [custom_components.localtuya.fan] Fan current_speed ranged_value_to_percentage: 2 from (1, 6) 2025-01-25 15:02:24.175 DEBUG (SyncWorker_4) [custom_components.localtuya.fan] Fan current_percentage: 33 2025-01-25 15:02:24.175 DEBUG (SyncWorker_4) [custom_components.localtuya.fan] Fan current_direction : forward > forward 2025-01-25 15:02:24.178 DEBUG (MainThread) [custom_components.localtuya.light] [ebf...zox - OFFICE Ceiling Fan] Entity Light - Additional attributes: {'raw_state': False} 2025-01-25 15:02:24.178 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6 2025-01-25 15:02:24.178 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {} 2025-01-25 15:02:28.805 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_set_percentage: 50 2025-01-25 15:02:28.806 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 7 (device type: type_0a) DPS: {'3': 3} 2025-01-25 15:02:28.807 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"devId":"**FAN_DEVICE_ID**","uid":"**FAN_DEVICE_ID**","t":"1737770548","dps":{"3":3}}' 2025-01-25 15:02:28.807 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 7 waiting for seq. number 242 2025-01-25 15:02:28.827 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 7 TuyaMessage(seqno=242, cmd=7, retcode=0, payload=b'', crc=38902857, crc_good=True, prefix=21930, iv=None) 2025-01-25 15:02:28.828 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching sequence number 242 2025-01-25 15:02:28.828 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got ACK message for command 7: ignoring it 242 2025-01-25 15:02:28.828 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got update ack message update seqno only. msg.seqno=242 self.seqno=243 2025-01-25 15:02:28.828 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 7: ignoring: 242 2025-01-25 15:02:28.828 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_set_percentage: 50 > 3.0 2025-01-25 15:02:28.830 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6 2025-01-25 15:02:28.830 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {} 2025-01-25 15:02:29.128 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x99\x0f\x00\x00\x00\x01\t+?rNgX\x06\xdb\xdc >N\xfd\x8f@TQ\xcd\x11\xb8i\xd9ca~\xe8\xf4\xe4o\x02}\x87I\x88y\xe3\xa9\xe2\x87\xc3\x85AV03\xa2', crc=3626139082, crc_good=True, prefix=21930, iv=None)
2025-01-25 15:02:29.128 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got status update
2025-01-25 15:02:29.129 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Deciphered data = '{"dps":{"3":"6"},"t":1737770547}'
2025-01-25 15:02:29.130 DEBUG (SyncWorker_0) [custom_components.localtuya.fan] Fan current_speed ranged_value_to_percentage: 6 from (1, 6)
2025-01-25 15:02:29.130 DEBUG (SyncWorker_0) [custom_components.localtuya.fan] Fan current_percentage: 100
2025-01-25 15:02:29.130 DEBUG (SyncWorker_0) [custom_components.localtuya.fan] Fan current_direction : forward > forward
2025-01-25 15:02:29.133 DEBUG (MainThread) [custom_components.localtuya.light] [ebf...zox - OFFICE Ceiling Fan] Entity Light - Additional attributes: {'raw_state': False}
2025-01-25 15:02:29.134 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6
2025-01-25 15:02:29.134 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {}
2025-01-25 15:02:29.408 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 9 (device type: type_0a) DPS: None
2025-01-25 15:02:29.409 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"gwId":"FAN_DEVICE_ID","devId":"FAN_DEVICE_ID"}'
2025-01-25 15:02:29.410 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 9 waiting for seq. number -100
2025-01-25 15:02:29.415 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2025-01-25 15:02:29.415 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got heartbeat response
2025-01-25 15:02:29.416 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 9: ignoring: 02025-01-25 15:02:32.016 DEBUG (MainThread) [custom_components.localtuya.fan] Fan async_turn_off
2025-01-25 15:02:32.018 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending command 7 (device type: type_0a) DPS: {'1': False}
2025-01-25 15:02:32.018 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Sending payload: b'{"devId":"FAN_DEVICE_ID","uid":"FAN_DEVICE_ID","t":"1737770552","dps":{"1":false}}'
2025-01-25 15:02:32.019 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Command 7 waiting for seq. number 244
2025-01-25 15:02:32.034 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 7 TuyaMessage(seqno=244, cmd=7, retcode=0, payload=b'', crc=2729722772, crc_good=True, prefix=21930, iv=None)
2025-01-25 15:02:32.034 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching sequence number 244
2025-01-25 15:02:32.034 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got ACK message for command 7: ignoring it 244
2025-01-25 15:02:32.035 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got update ack message update seqno only. msg.seqno=244 self.seqno=245
2025-01-25 15:02:32.035 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] ACK received for command 7: ignoring: 244
2025-01-25 15:02:32.036 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6
2025-01-25 15:02:32.036 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {}
2025-01-25 15:02:32.338 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x99\x10\x00\x00\x00\x01\xeeQ="\xd2+\xe3\xcc\x1c7\r\nQ\x9a\xa52\xd1\rw\xfb\x83\xc8\x00\x18F\xbb\x93u\xdde\x04\xb8\x0f\x99K\x031o\xcb\xe2J\xd4)\xc0\xb8\xb0\xcdX', crc=3020521395, crc_good=True, prefix=21930, iv=None)
2025-01-25 15:02:32.338 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Got status update
2025-01-25 15:02:32.338 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebf...zox - OFFICE Ceiling Fan] Deciphered data = '{"dps":{"1":false},"t":1737770551}'
2025-01-25 15:02:32.341 DEBUG (SyncWorker_7) [custom_components.localtuya.fan] Fan current_speed ranged_value_to_percentage: 6 from (1, 6)
2025-01-25 15:02:32.341 DEBUG (SyncWorker_7) [custom_components.localtuya.fan] Fan current_percentage: 100
2025-01-25 15:02:32.341 DEBUG (SyncWorker_7) [custom_components.localtuya.fan] Fan current_direction : forward > forward
2025-01-25 15:02:32.343 DEBUG (MainThread) [custom_components.localtuya.fan] Fan speed_count: 6
2025-01-25 15:02:32.343 DEBUG (MainThread) [custom_components.localtuya.fan] [ebf...zox - OFFICE Ceiling Fan] Entity Fan - Additional attributes: {}
2025-01-25 15:02:32.348 DEBUG (MainThread) [custom_components.localtuya.light] [ebf...zox - OFFICE Ceiling Fan] Entity Light - Additional attributes: {'raw_state': False}

@xZetsubou
Copy link
Owner

xZetsubou commented Jan 25, 2025

I think it's because your speed is not Integer it string which means you should've configured it with order list.
Go to HA Settings -> Integration -> Localtuya -> Configure -> select the fan. and on fan entity step at the bottom fan speed list remove disabled and instead put 1,2,3,4,5,6

@AstonishingAston
Copy link
Author

Mate, you're a wizard!
That seems to have been exactly it, good spotting.
Thanks very much for your time on all this 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working master/next-release Fixed in master branch, Will be ready in the next release
Projects
None yet
Development

No branches or pull requests

2 participants