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: "Couldn't find the data for the device category 'wnykq'." #189

Closed
1 of 3 tasks
rmribeiro2024 opened this issue Mar 31, 2024 · 68 comments
Closed
1 of 3 tasks

Bug: "Couldn't find the data for the device category 'wnykq'." #189

rmribeiro2024 opened this issue Mar 31, 2024 · 68 comments
Labels
bug Something isn't working

Comments

@rmribeiro2024
Copy link

rmribeiro2024 commented Mar 31, 2024

LocalTuya Version

3.2.5.1

Home Assistant Version

2024.3.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?

My smart IR remote control is showing this error after attempting automatic setup. Any help?

Steps to reproduce.

Screenshot_20240331_144612_Home Assistant
Screenshot_20240331_143432_Home Assistant

Relevant log output

2024-03-31 15:28:24.176 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 10 (device type: type_0a)
2024-03-31 15:28:24.176 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe","uid":"83630070500291701dfe","t":"1711909704"}'
2024-03-31 15:28:24.183 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 10 waiting for seq. number 1
2024-03-31 15:28:24.184 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Connection lost: [Errno 104] Connection reset by peer
2024-03-31 15:28:29.185 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 10 timed out waiting for sequence number 1
2024-03-31 15:28:29.185 DEBUG (MainThread) [custom_components.localtuya.config_flow] No DPS able to be detected 
2024-03-31 15:28:29.185 DEBUG (MainThread) [custom_components.localtuya.config_flow] Detected DPS: {}
2024-03-31 15:28:29.185 DEBUG (MainThread) [custom_components.localtuya.config_flow] Manual DPS Setting: 0 (['0'])
2024-03-31 15:28:29.185 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Closing connection
2024-03-31 15:28:29.185 DEBUG (MainThread) [custom_components.localtuya.config_flow] Total DPS: {'0': -1}
2024-03-31 15:28:31.465 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] Smart Controle Universal: Entities configured: []

Diagnostics information.

__

@rmribeiro2024 rmribeiro2024 added the bug Something isn't working label Mar 31, 2024
@xZetsubou
Copy link
Owner

xZetsubou commented Mar 31, 2024

For now, you can choose to configure entities manually, then choose 'remote' platform, then submit twice. It is better than waiting for an update for the auto configuration.

Edit: The category does exists in database not sure why it didn't works for maybe the cloud data hasn't been pulled correctly on your attempt < maybe reload is needed if my guess is correct, I did add the other sensors tho since it seems your IR has humidity and temp sensor in master version.

@xZetsubou xZetsubou added the master/next-release Fixed in master branch, Will be ready in the next release label Mar 31, 2024
@rmribeiro2024
Copy link
Author

Thank you. I'm not sure if I understood correctly. Are you saying to use the remote Tuya integration until the local Tuya integration is available?

Would it be possible to manually configure the here in local tuya integration ? When I try, it shows a message that the device has been configured, but it doesn't learn the commands and returns with an error."
Screenshot_20240331_215954_Home Assistant
Screenshot_20240331_220002_Home Assistant
Screenshot_20240331_220107_Home Assistant

"Which DP ID and receiving signal DP should I use for configuration?"

@rmribeiro2024
Copy link
Author

Screenshot_20240330_235032_Home Assistant

@xZetsubou
Copy link
Owner

xZetsubou commented Apr 1, 2024

Would it be possible to manually configure the here in local tuya integration

Yes, Auto configuration is just an additional feature you still can configure it manually, however I got confused because it seems you have multi IR Remotes.

Before I add it to auto configuration I'll need to confirm which is the correct config for your device, can you re-add the device
Set the config as this:

DPID = 1
Receiving signals DP = 2

@rmribeiro2024
Copy link
Author

Thanks!

I tried to set it up this way, but it didn't work. The configuration shows as successful, but the message shows failed to learn.

Any other suggestions?

20240401_115438

@rmribeiro2024
Copy link
Author

2024-04-01 12:00:06.282 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Error for call_service at pos 1: Failed to learn: teste 2
2024-04-01 12:00:06.282 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140425746637760] Failed to learn: teste 2

@xZetsubou
Copy link
Owner

In order to understand how does your device works you will need to enable the debug for the device and control the device from Tuya/Smart Life app e.g. learn command and send command. Hopefully that it reports the process.

  1. Enable the debug for both integration and the IR Remote device
  2. After you enable the debug for both of them open the Tuya/Smart APPs.
  3. Learn a command and send a command from the APP.
  4. Go to Home Assistant -> Settings -> System -> Logs.
  5. Search for localtuya or tuya Then click open full logs and copy everything there here.

@rmribeiro2024
Copy link
Author

rmribeiro2024 commented Apr 2, 2024

Ok, thanks.
log Home assistant:

Logs

2024-04-02 11:39:40.949 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Retrieving initial state
2024-04-02 11:39:40.949 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 10 (device type: type_0a)
2024-04-02 11:39:40.949 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe","uid":"83630070500291701dfe","t":"1712068780"}'
2024-04-02 11:39:40.950 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 10 waiting for seq. number 1
2024-04-02 11:39:40.952 DEBUG (MainThread) [custom_components.localtuya.common] [310...d1a] Trying to connect to 192.168.68.102...
2024-04-02 11:39:40.959 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:40.968 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [310...d1a] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:40.999 DEBUG (SyncWorker_54) [custom_components.localtuya.common] [836...dfe] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.011 DEBUG (SyncWorker_27) [custom_components.localtuya.common] [310...d1a] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.021 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Trying to connect to 192.168.68.249...
2024-04-02 11:39:41.025 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Retrieving initial state
2024-04-02 11:39:41.026 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 10 (device type: type_0a)
2024-04-02 11:39:41.026 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe","uid":"83630070500291701dfe","t":"1712068781"}'
2024-04-02 11:39:41.027 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 10 waiting for seq. number 1
2024-04-02 11:39:41.032 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.039 DEBUG (SyncWorker_6) [custom_components.localtuya.common] [836...dfe] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.041 DEBUG (MainThread) [custom_components.localtuya.common] [310...d1a] Trying to connect to 192.168.68.102...
2024-04-02 11:39:41.057 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [310...d1a] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.060 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Trying to connect to 192.168.68.249...
2024-04-02 11:39:41.064 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Retrieving initial state
2024-04-02 11:39:41.064 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 10 (device type: type_0a)
2024-04-02 11:39:41.065 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe","uid":"83630070500291701dfe","t":"1712068781"}'
2024-04-02 11:39:41.067 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 10 waiting for seq. number 1
2024-04-02 11:39:41.070 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.087 DEBUG (SyncWorker_1) [custom_components.localtuya.common] [836...dfe] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.104 DEBUG (SyncWorker_32) [custom_components.localtuya.common] [310...d1a] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.111 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Trying to connect to 192.168.68.249...
2024-04-02 11:39:41.115 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Retrieving initial state
2024-04-02 11:39:41.115 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 10 (device type: type_0a)
2024-04-02 11:39:41.116 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe","uid":"83630070500291701dfe","t":"1712068781"}'
2024-04-02 11:39:41.117 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 10 waiting for seq. number 1
2024-04-02 11:39:41.121 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.135 DEBUG (MainThread) [custom_components.localtuya.common] [310...d1a] Trying to connect to 192.168.68.102...
2024-04-02 11:39:41.151 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [310...d1a] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.169 DEBUG (SyncWorker_30) [custom_components.localtuya.common] [836...dfe] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.187 DEBUG (SyncWorker_45) [custom_components.localtuya.common] [310...d1a] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.193 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Trying to connect to 192.168.68.249...
2024-04-02 11:39:41.196 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Retrieving initial state
2024-04-02 11:39:41.197 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 10 (device type: type_0a)
2024-04-02 11:39:41.197 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe","uid":"83630070500291701dfe","t":"1712068781"}'
2024-04-02 11:39:41.199 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 10 waiting for seq. number 1
2024-04-02 11:39:41.200 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.213 DEBUG (SyncWorker_8) [custom_components.localtuya.common] [836...dfe] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.218 DEBUG (MainThread) [custom_components.localtuya.common] [310...d1a] Trying to connect to 192.168.68.102...
2024-04-02 11:39:41.232 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [310...d1a] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.233 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Trying to connect to 192.168.68.249...
2024-04-02 11:39:41.237 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Retrieving initial state
2024-04-02 11:39:41.237 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 10 (device type: type_0a)
2024-04-02 11:39:41.237 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe","uid":"83630070500291701dfe","t":"1712068781"}'
2024-04-02 11:39:41.238 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 10 waiting for seq. number 1
2024-04-02 11:39:41.242 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.260 DEBUG (SyncWorker_34) [custom_components.localtuya.common] [310...d1a] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.292 DEBUG (MainThread) [custom_components.localtuya.common] [310...d1a] Trying to connect to 192.168.68.102...
2024-04-02 11:39:41.293 DEBUG (SyncWorker_38) [custom_components.localtuya.common] [836...dfe] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.309 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [310...d1a] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.322 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Trying to connect to 192.168.68.249...
2024-04-02 11:39:41.325 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Retrieving initial state
2024-04-02 11:39:41.325 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 10 (device type: type_0a)
2024-04-02 11:39:41.326 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe","uid":"83630070500291701dfe","t":"1712068781"}'
2024-04-02 11:39:41.327 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 10 waiting for seq. number 1
2024-04-02 11:39:41.331 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.348 DEBUG (SyncWorker_39) [custom_components.localtuya.common] [836...dfe] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.370 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Trying to connect to 192.168.68.249...
2024-04-02 11:39:41.378 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Retrieving initial state
2024-04-02 11:39:41.378 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 10 (device type: type_0a)
2024-04-02 11:39:41.379 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe","uid":"83630070500291701dfe","t":"1712068781"}'
2024-04-02 11:39:41.380 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 10 waiting for seq. number 1
2024-04-02 11:39:41.382 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.400 DEBUG (SyncWorker_42) [custom_components.localtuya.common] [310...d1a] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.421 DEBUG (SyncWorker_31) [custom_components.localtuya.common] [836...dfe] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.440 DEBUG (MainThread) [custom_components.localtuya.common] [310...d1a] Trying to connect to 192.168.68.102...
2024-04-02 11:39:41.443 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Trying to connect to 192.168.68.249...
2024-04-02 11:39:41.443 DEBUG (SyncWorker_59) [custom_components.localtuya.common] [836...dfe] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.447 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Retrieving initial state
2024-04-02 11:39:41.447 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 10 (device type: type_0a)
2024-04-02 11:39:41.447 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe","uid":"83630070500291701dfe","t":"1712068781"}'
2024-04-02 11:39:41.448 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 10 waiting for seq. number 1
2024-04-02 11:39:41.454 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.455 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [310...d1a] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.466 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Trying to connect to 192.168.68.249...
2024-04-02 11:39:41.470 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Retrieving initial state
2024-04-02 11:39:41.470 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 10 (device type: type_0a)
2024-04-02 11:39:41.470 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe","uid":"83630070500291701dfe","t":"1712068781"}'
2024-04-02 11:39:41.472 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 10 waiting for seq. number 1
2024-04-02 11:39:41.480 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.514 DEBUG (SyncWorker_43) [custom_components.localtuya.common] [310...d1a] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.545 DEBUG (MainThread) [custom_components.localtuya.common] [310...d1a] Trying to connect to 192.168.68.102...
2024-04-02 11:39:41.547 DEBUG (SyncWorker_33) [custom_components.localtuya.common] [836...dfe] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.560 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [310...d1a] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.572 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Trying to connect to 192.168.68.249...
2024-04-02 11:39:41.583 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Retrieving initial state
2024-04-02 11:39:41.583 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 10 (device type: type_0a)
2024-04-02 11:39:41.583 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe","uid":"83630070500291701dfe","t":"1712068781"}'
2024-04-02 11:39:41.584 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 10 waiting for seq. number 1
2024-04-02 11:39:41.589 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.614 DEBUG (SyncWorker_25) [custom_components.localtuya.common] [836...dfe] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.632 DEBUG (SyncWorker_58) [custom_components.localtuya.common] [310...d1a] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.637 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Trying to connect to 192.168.68.249...
2024-04-02 11:39:41.640 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Retrieving initial state
2024-04-02 11:39:41.641 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 10 (device type: type_0a)
2024-04-02 11:39:41.641 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe","uid":"83630070500291701dfe","t":"1712068781"}'
2024-04-02 11:39:41.642 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 10 waiting for seq. number 1
2024-04-02 11:39:41.646 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.659 DEBUG (SyncWorker_50) [custom_components.localtuya.common] [310...d1a] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.662 DEBUG (MainThread) [custom_components.localtuya.common] [310...d1a] Trying to connect to 192.168.68.102...
2024-04-02 11:39:41.677 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [310...d1a] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.697 DEBUG (MainThread) [custom_components.localtuya.common] [310...d1a] Trying to connect to 192.168.68.102...
2024-04-02 11:39:41.711 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [310...d1a] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.750 DEBUG (SyncWorker_53) [custom_components.localtuya.common] [836...dfe] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.775 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Trying to connect to 192.168.68.249...
2024-04-02 11:39:41.777 DEBUG (SyncWorker_57) [custom_components.localtuya.common] [310...d1a] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.780 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Retrieving initial state
2024-04-02 11:39:41.780 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 10 (device type: type_0a)
2024-04-02 11:39:41.780 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe","uid":"83630070500291701dfe","t":"1712068781"}'
2024-04-02 11:39:41.782 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 10 waiting for seq. number 1
2024-04-02 11:39:41.787 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.815 DEBUG (MainThread) [custom_components.localtuya.common] [310...d1a] Trying to connect to 192.168.68.102...
2024-04-02 11:39:41.826 DEBUG (SyncWorker_16) [custom_components.localtuya.common] [836...dfe] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.831 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [310...d1a] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.854 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Trying to connect to 192.168.68.249...
2024-04-02 11:39:41.858 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Retrieving initial state
2024-04-02 11:39:41.858 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 10 (device type: type_0a)
2024-04-02 11:39:41.858 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe","uid":"83630070500291701dfe","t":"1712068781"}'
2024-04-02 11:39:41.859 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 10 waiting for seq. number 1
2024-04-02 11:39:41.864 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.872 DEBUG (SyncWorker_19) [custom_components.localtuya.common] [836...dfe] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.873 DEBUG (SyncWorker_55) [custom_components.localtuya.common] [310...d1a] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.896 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Trying to connect to 192.168.68.249...
2024-04-02 11:39:41.900 DEBUG (SyncWorker_7) [custom_components.localtuya.common] [836...dfe] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.902 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Retrieving initial state
2024-04-02 11:39:41.902 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 10 (device type: type_0a)
2024-04-02 11:39:41.903 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe","uid":"83630070500291701dfe","t":"1712068781"}'
2024-04-02 11:39:41.903 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 10 waiting for seq. number 1
2024-04-02 11:39:41.906 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.906 DEBUG (SyncWorker_9) [custom_components.localtuya.common] [310...d1a] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.912 DEBUG (MainThread) [custom_components.localtuya.common] [310...d1a] Trying to connect to 192.168.68.102...
2024-04-02 11:39:41.920 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Trying to connect to 192.168.68.249...
2024-04-02 11:39:41.927 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Retrieving initial state
2024-04-02 11:39:41.927 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 10 (device type: type_0a)
2024-04-02 11:39:41.927 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe","uid":"83630070500291701dfe","t":"1712068781"}'
2024-04-02 11:39:41.928 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 10 waiting for seq. number 1
2024-04-02 11:39:41.928 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [310...d1a] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.934 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.936 DEBUG (SyncWorker_40) [custom_components.localtuya.common] [310...d1a] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:41.944 DEBUG (MainThread) [custom_components.localtuya.common] [310...d1a] Trying to connect to 192.168.68.102...
2024-04-02 11:39:41.957 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [310...d1a] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.960 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Trying to connect to 192.168.68.249...
2024-04-02 11:39:41.963 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Retrieving initial state
2024-04-02 11:39:41.963 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 10 (device type: type_0a)
2024-04-02 11:39:41.963 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe","uid":"83630070500291701dfe","t":"1712068781"}'
2024-04-02 11:39:41.964 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 10 waiting for seq. number 1
2024-04-02 11:39:41.969 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:41.970 DEBUG (MainThread) [custom_components.localtuya.common] [310...d1a] Trying to connect to 192.168.68.102...
2024-04-02 11:39:41.983 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [310...d1a] Connection lost: [Errno 104] Connection reset by peer
2024-04-02 11:39:42.009 DEBUG (SyncWorker_10) [custom_components.localtuya.common] [836...dfe] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:42.026 DEBUG (SyncWorker_12) [custom_components.localtuya.common] [310...d1a] Disconnected: waiting for discovery broadcast
2024-04-02 11:39:42.033 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Trying to connect to 192.168.68.249...
2024-04-02 11:39:42.041 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Retrieving initial state
2024-04-02 11:39:42.041 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 10 (device type: type_0a)
2024-04-02 11:39:42.041 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe","uid":"83630070500291701dfe","t":"1712068782"}'
2024-04-02 11:39:42.043 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 10 waiting for seq. number 1
2024-04-02 11:39:42.057 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 10 TuyaMessage(seqno=1, cmd=10, retcode=0, payload=b'\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3o\xea\x12e\xb8\x88\xe2e\rM\xd4,\xa1\xb9\x7f\xda\x8e\xf2\xf5-\xad\xa7\xc0\xdf\xa2]_\xd2\xf4$\xadl', crc=1624537271, crc_good=True, prefix=21930, iv=None)
2024-04-02 11:39:42.058 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"1":"study_key"}}'
2024-04-02 11:39:42.059 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Success: connected to 192.168.68.249
2024-04-02 11:39:42.059 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Started heartbeat loop
2024-04-02 11:39:42.059 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-02 11:39:42.059 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-02 11:39:42.063 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-02 11:39:42.068 DEBUG (MainThread) [custom_components.localtuya.common] [310...d1a] Trying to connect to 192.168.68.102...
2024-04-02 11:39:42.070 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-02 11:39:42.070 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-02 11:39:42.071 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-02 11:39:42.095 DEBUG (MainThread) [custom_components.localtuya.common] [310...d1a] Success: connected to 192.168.68.102
2024-04-02 11:39:52.072 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-02 11:39:52.073 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-02 11:39:52.074 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-02 11:39:52.085 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-02 11:39:52.085 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-02 11:39:52.085 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-02 11:39:58.441 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x01\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3o\xea\x12e\xb8\x88\xe2e\rM\xd4,\xa1\xb9\x7f\xda\x06\xeb\xda4*u\x92\x865 ?G2\xbd~\x9b"C\x18\xed!\xdb\x17\xf7\xfcs!\x02\xc8\xf7O-', crc=2276739995, crc_good=True, prefix=21930, iv=None)
2024-04-02 11:39:58.441 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got status update
2024-04-02 11:39:58.442 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"1":"study"},"t":1712068797}'
2024-04-02 11:40:00.016 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x00\r\x00\x00\x00\x01\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3\xc8\xb4\x0e\xd6\x84\xf0\xcaj^\x8a\xf5\x9e\x80\x16\xdd\xe8Z>\t\x08\n\x9b\x94N\x93\x84\xb3HQ\xe5T\xec6\xdb\xd8y\x16~\x82\xd4Es\xee\x1c\xb5}\xc3BN\x872l&m\xf8m\xb7\x8aO1\xb9\x0b\r\xd6\xabi\xa6\x1b\xd9"P\xe2V\x03\xfc\xb8\xb5\x1d\x91f\xf1]sIf;\x93\xbb@\x1e\xfb\xc4\x82\x8f\x9bzG0\xc9\xf5"c\xbf8\xf3Y\x8e\xe8G5}\x8f\xcd\x8a\xb2\x8c\xb8\x90\xdak>\xd5\xab\x9c=F7\xa8\xf6\xab\xba\x8b.\xbf\x9a\x05U\xc8C\t\xe6\xc6\x8d:!q\x1e\xe0HP\x88\x92\x05^8\x9f\xe9\x13\xf6\xb1s\x81\x11\xa0\x0e\xb9\xf1\xa6\xdb\xc2S.\xdde\xba\xf0"\xb2\x04\xefg\xe7n\x97\xa2\xd2\xc12:\xafb\xc7\xd1tBo%\x80\xc6(b\xce\x8a\xbd\x98\x1d\x02\xd0\x00\xe5\xb36BLVq\xa3\x00\x98\xee\x02\xe5\xcd\xff\xea-03Pq.\x15\x8a\xd1r\xc6\xa1S\x1a\x8c\x0e\xa9c \x99\x05\x01\xc2I\xb6\x99m\xb9\xb8\xcd\t', crc=2926879018, crc_good=True, prefix=21930, iv=None)
2024-04-02 11:40:00.016 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got status update
2024-04-02 11:40:00.018 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"2":"lCOuEVkCOAJXAjYCWgI4AlcCOAJbAjsCVgI0AlsCMwJVAjkCWAKPBlICjQZfAoUGVgKMBloCNwJWAowGWQKLBlwChwZcAjICVwKNBloCOgJVAowGWQI8AlUCNAJcAjQCWwI0AlwCjwZVAjsCVgKIBlcCQQJUAo4GWgKFBlcCjQZbAokGVwKqoHsjzghUAgCOhiPOCGIC8Y2PI9QIVwIgyw=="},"t":1712068799}'
2024-04-02 11:40:00.788 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x00\x00\x01\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3o\xea\x12e\xb8\x88\xe2e\rM\xd4,\xa1\xb9\x7f\xda]c1\xe5\xfa\xe4\xed\xff\xe0E>\xde\xc5\r\xfe?\xc8f\xb0\xcb\x97&\xbf\x81\x8e\xad\xa8m\xa6QCR', crc=721862022, crc_good=True, prefix=21930, iv=None)
2024-04-02 11:40:00.789 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got status update
2024-04-02 11:40:00.790 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"1":"study_exit"},"t":1712068800}'
2024-04-02 11:40:02.087 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-02 11:40:02.088 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-02 11:40:02.089 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-02 11:40:02.094 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-02 11:40:02.094 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-02 11:40:02.094 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-02 11:40:08.746 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00\x00\x01\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3o\xea\x12e\xb8\x88\xe2e\rM\xd4,\xa1\xb9\x7f\xda\xb5\x1bvi\xb84\xb3\xb8,t|\xc2T\x1b\xcf\x8a\xb2\x9bWw\xa1\xb3YW\xc9\x84BV(\xb3\x8b\xeb', crc=2686360185, crc_good=True, prefix=21930, iv=None)
2024-04-02 11:40:08.747 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got status update
2024-04-02 11:40:08.748 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"1":"study_key"},"t":1712068808}'
2024-04-02 11:40:09.436 DEBUG (Thread-4 (_thread_main)) [homeassistant.components.tuya] Received update for device ebd462e3022f586c51f1s8: {'va_temperature': 254, 'va_humidity': 80}
2024-04-02 11:40:09.478 DEBUG (Thread-4 (_thread_main)) [homeassistant.components.tuya] Received update for device ebd462e3022f586c51f1s8: {'va_temperature': 254, 'va_humidity': 80}
2024-04-02 11:40:10.226 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.sensor_de_temperatura_e_controle_rf_sensor_de_temperatura (°C) cannot be converted to the unit of previously compiled statistics (ºC). Generation of long term statistics will be suppressed unless the unit changes back to ºC or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-04-02 11:40:12.096 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-02 11:40:12.096 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-02 11:40:12.098 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-02 11:40:12.102 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-02 11:40:12.102 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-02 11:40:12.102 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it















local tuya: 
2024-04-02 11:39:42.041 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe","uid":"83630070500291701dfe","t":"1712068782"}'
2024-04-02 11:39:42.043 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 10 waiting for seq. number 1
2024-04-02 11:39:42.057 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 10 TuyaMessage(seqno=1, cmd=10, retcode=0, payload=b'\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3o\xea\x12e\xb8\x88\xe2e\rM\xd4,\xa1\xb9\x7f\xda\x8e\xf2\xf5-\xad\xa7\xc0\xdf\xa2]_\xd2\xf4$\xadl', crc=1624537271, crc_good=True, prefix=21930, iv=None)
2024-04-02 11:39:42.058 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"1":"study_key"}}'
2024-04-02 11:39:42.059 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Success: connected to 192.168.68.249
2024-04-02 11:39:42.059 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Started heartbeat loop
2024-04-02 11:39:42.059 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-02 11:39:42.059 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-02 11:39:42.063 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-02 11:39:42.068 DEBUG (MainThread) [custom_components.localtuya.common] [310...d1a] Trying to connect to 192.168.68.102...
2024-04-02 11:39:42.070 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-02 11:39:42.070 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-02 11:39:42.071 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-02 11:39:42.095 DEBUG (MainThread) [custom_components.localtuya.common] [310...d1a] Success: connected to 192.168.68.102
2024-04-02 11:39:52.072 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-02 11:39:52.073 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-02 11:39:52.074 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-02 11:39:52.085 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-02 11:39:52.085 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-02 11:39:52.085 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-02 11:39:58.441 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x01\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3o\xea\x12e\xb8\x88\xe2e\rM\xd4,\xa1\xb9\x7f\xda\x06\xeb\xda4*u\x92\x865 ?G2\xbd~\x9b"C\x18\xed!\xdb\x17\xf7\xfcs!\x02\xc8\xf7O-', crc=2276739995, crc_good=True, prefix=21930, iv=None)
2024-04-02 11:39:58.441 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got status update
2024-04-02 11:39:58.442 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"1":"study"},"t":1712068797}'
2024-04-02 11:40:00.016 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x00\r\x00\x00\x00\x01\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3\xc8\xb4\x0e\xd6\x84\xf0\xcaj^\x8a\xf5\x9e\x80\x16\xdd\xe8Z>\t\x08\n\x9b\x94N\x93\x84\xb3HQ\xe5T\xec6\xdb\xd8y\x16~\x82\xd4Es\xee\x1c\xb5}\xc3BN\x872l&m\xf8m\xb7\x8aO1\xb9\x0b\r\xd6\xabi\xa6\x1b\xd9"P\xe2V\x03\xfc\xb8\xb5\x1d\x91f\xf1]sIf;\x93\xbb@\x1e\xfb\xc4\x82\x8f\x9bzG0\xc9\xf5"c\xbf8\xf3Y\x8e\xe8G5}\x8f\xcd\x8a\xb2\x8c\xb8\x90\xdak>\xd5\xab\x9c=F7\xa8\xf6\xab\xba\x8b.\xbf\x9a\x05U\xc8C\t\xe6\xc6\x8d:!q\x1e\xe0HP\x88\x92\x05^8\x9f\xe9\x13\xf6\xb1s\x81\x11\xa0\x0e\xb9\xf1\xa6\xdb\xc2S.\xdde\xba\xf0"\xb2\x04\xefg\xe7n\x97\xa2\xd2\xc12:\xafb\xc7\xd1tBo%\x80\xc6(b\xce\x8a\xbd\x98\x1d\x02\xd0\x00\xe5\xb36BLVq\xa3\x00\x98\xee\x02\xe5\xcd\xff\xea-03Pq.\x15\x8a\xd1r\xc6\xa1S\x1a\x8c\x0e\xa9c \x99\x05\x01\xc2I\xb6\x99m\xb9\xb8\xcd\t', crc=2926879018, crc_good=True, prefix=21930, iv=None)
2024-04-02 11:40:00.016 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got status update
2024-04-02 11:40:00.018 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"2":"lCOuEVkCOAJXAjYCWgI4AlcCOAJbAjsCVgI0AlsCMwJVAjkCWAKPBlICjQZfAoUGVgKMBloCNwJWAowGWQKLBlwChwZcAjICVwKNBloCOgJVAowGWQI8AlUCNAJcAjQCWwI0AlwCjwZVAjsCVgKIBlcCQQJUAo4GWgKFBlcCjQZbAokGVwKqoHsjzghUAgCOhiPOCGIC8Y2PI9QIVwIgyw=="},"t":1712068799}'
2024-04-02 11:40:00.788 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x00\x00\x01\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3o\xea\x12e\xb8\x88\xe2e\rM\xd4,\xa1\xb9\x7f\xda]c1\xe5\xfa\xe4\xed\xff\xe0E>\xde\xc5\r\xfe?\xc8f\xb0\xcb\x97&\xbf\x81\x8e\xad\xa8m\xa6QCR', crc=721862022, crc_good=True, prefix=21930, iv=None)
2024-04-02 11:40:00.789 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got status update
2024-04-02 11:40:00.790 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"1":"study_exit"},"t":1712068800}'
2024-04-02 11:40:02.087 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-02 11:40:02.088 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-02 11:40:02.089 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-02 11:40:02.094 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-02 11:40:02.094 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-02 11:40:02.094 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-02 11:40:08.746 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00\x00\x01\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3o\xea\x12e\xb8\x88\xe2e\rM\xd4,\xa1\xb9\x7f\xda\xb5\x1bvi\xb84\xb3\xb8,t|\xc2T\x1b\xcf\x8a\xb2\x9bWw\xa1\xb3YW\xc9\x84BV(\xb3\x8b\xeb', crc=2686360185, crc_good=True, prefix=21930, iv=None)
2024-04-02 11:40:08.747 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got status update
2024-04-02 11:40:08.748 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"1":"study_key"},"t":1712068808}'
2024-04-02 11:40:09.436 DEBUG (Thread-4 (_thread_main)) [homeassistant.components.tuya] Received update for device ebd462e3022f586c51f1s8: {'va_temperature': 254, 'va_humidity': 80}
2024-04-02 11:40:09.478 DEBUG (Thread-4 (_thread_main)) [homeassistant.components.tuya] Received update for device ebd462e3022f586c51f1s8: {'va_temperature': 254, 'va_humidity': 80}
2024-04-02 11:40:10.226 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.sensor_de_temperatura_e_controle_rf_sensor_de_temperatura (°C) cannot be converted to the unit of previously compiled statistics (ºC). Generation of long term statistics will be suppressed unless the unit changes back to ºC or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-04-02 11:40:12.096 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-02 11:40:12.096 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-02 11:40:12.098 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-02 11:40:12.102 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-02 11:40:12.102 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-02 11:40:12.102 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it

@xZetsubou
Copy link
Owner

Did you sent a command after you learn it? in logs it does shows the learning but not sending.

@rmribeiro2024
Copy link
Author

rmribeiro2024 commented Apr 3, 2024

Yes, I sent. Tried again now with learn and send.

logs

024-04-02 21:01:17.059 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 10 TuyaMessage(seqno=1, cmd=10, retcode=0, payload=b'\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3o\xea\x12e\xb8\x88\xe2e\rM\xd4,\xa1\xb9\x7f\xda\x8e\xf2\xf5-\xad\xa7\xc0\xdf\xa2]_\xd2\xf4$\xadl', crc=1624537271, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:01:17.061 DEBUG (MainThread) [custom_components.localtuya.common] [310...3a0] Success: connected to 192.168.68.101
2024-04-02 21:01:17.064 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"1":"study_key"}}'
2024-04-02 21:01:17.064 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Success: connected to 192.168.68.249
2024-04-02 21:01:17.068 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Started heartbeat loop
2024-04-02 21:01:17.068 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-02 21:01:17.068 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-02 21:01:17.069 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-02 21:01:17.080 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:01:17.080 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-02 21:01:17.080 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-02 21:01:17.207 DEBUG (MainThread) [custom_components.localtuya.common] [eb6...rq6] Success: connected to 192.168.68.105
2024-04-02 21:01:17.481 DEBUG (MainThread) [custom_components.localtuya.common] [ebd...1s8] Success: connected to 192.168.68.103
2024-04-02 21:01:17.733 DEBUG (MainThread) [custom_components.localtuya.common] [eb3...qze] Success: connected to 192.168.68.106
2024-04-02 21:01:17.934 DEBUG (MainThread) [custom_components.localtuya.common] [eb5...qmg] Success: connected to 192.168.68.116
2024-04-02 21:01:18.092 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Success: connected to 192.168.68.102
2024-04-02 21:01:18.873 INFO (MainThread) [custom_components.localtuya.cloud_api] Cloud API connection succeeded.
2024-04-02 21:01:27.081 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-02 21:01:27.081 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-02 21:01:27.083 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-02 21:01:27.132 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:01:27.132 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-02 21:01:27.132 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-02 21:01:37.133 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-02 21:01:37.134 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-02 21:01:37.136 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-02 21:01:37.142 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:01:37.142 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-02 21:01:37.143 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-02 21:01:47.144 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-02 21:01:47.144 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-02 21:01:47.147 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-02 21:01:47.202 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:01:47.202 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-02 21:01:47.202 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-02 21:01:54.874 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities scene.ligar_luz_da_planta are missing or not currently available
2024-04-02 21:01:57.203 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-02 21:01:57.204 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-02 21:01:57.205 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-02 21:01:57.235 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:01:57.235 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-02 21:01:57.236 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-02 21:02:04.276 DEBUG (Thread-4 (_thread_main)) [homeassistant.components.tuya] Received update for device ebd462e3022f586c51f1s8: {'va_temperature': 263, 'va_humidity': 82}
2024-04-02 21:02:04.480 DEBUG (Thread-4 (_thread_main)) [homeassistant.components.tuya] Received update for device ebd462e3022f586c51f1s8: {'va_temperature': 263, 'va_humidity': 82}
2024-04-02 21:02:07.236 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-02 21:02:07.237 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-02 21:02:07.239 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-02 21:02:07.246 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:02:07.246 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-02 21:02:07.247 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-02 21:02:17.249 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-02 21:02:17.250 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-02 21:02:17.252 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-02 21:02:17.259 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:02:17.259 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-02 21:02:17.259 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-02 21:02:27.113 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x00\x07\x00\x00\x00\x01\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3o\xea\x12e\xb8\x88\xe2e\rM\xd4,\xa1\xb9\x7f\xda\x05F\xf1Wm-l=X\xf7\x10\x86\x11h$\xdc\xda\x8f\xd3o]c;\xceg\x93=X}\xe5|\x84', crc=1264089445, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:02:27.113 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got status update
2024-04-02 21:02:27.115 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"1":"study"},"t":1712102545}'
2024-04-02 21:02:27.260 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-02 21:02:27.261 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-02 21:02:27.263 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-02 21:02:27.418 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:02:27.418 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-02 21:02:27.418 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-02 21:02:30.313 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x01\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3o\xea\x12e\xb8\x88\xe2e\rM\xd4,\xa1\xb9\x7f\xda]c1\xe5\xfa\xe4\xed\xff\xe0E>\xde\xc5\r\xfe?\xbf\xc3%\xb9\x0e\x12\xdc\x81\x00\xbd\xef1,\x82\xc0\xbd', crc=3462855777, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:02:30.313 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got status update
2024-04-02 21:02:30.315 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"1":"study_exit"},"t":1712102549}'
2024-04-02 21:02:34.865 WARNING (MainThread) [homeassistant.helpers.script] Error in 'choose[0]' evaluation: In 'and' (item 2 of 3):
  In 'numeric_state':
    In 'numeric_state' condition: unknown entity sensor.sensor_de_temperatura_temperatura
2024-04-02 21:02:37.419 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-02 21:02:37.420 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-02 21:02:37.422 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-02 21:02:37.428 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:02:37.429 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-02 21:02:37.429 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-02 21:02:43.597 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x00\x01\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3o\xea\x12e\xb8\x88\xe2e\rM\xd4,\xa1\xb9\x7f\xda\x05F\xf1Wm-l=X\xf7\x10\x86\x11h$\xdc\x9d\xa3\xa05\xf1\xdd3\x95\xe7\x1eZ\xa9\xb3\r\x86\xb5', crc=1381917395, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:02:43.597 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got status update
2024-04-02 21:02:43.598 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"1":"study"},"t":1712102562}'
2024-04-02 21:02:46.056 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x00\n\x00\x00\x00\x01\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3\xc3\xbf\x92\x11$\xf4\xc3\xe4\xd6t)\x8b\x9d{\xf1\xa0\xd0\x17H]\xd9\xed0o\x17\xcd\xb2\x846\x18yX\xb9\x17\xed\xfe\xa3\x94\xc6\xb9\xc2\x1b\xff\xfb\x11\x17L\x92\xfb\x1e\x8e\xc5\xbc\xe2\x1b{Yg\xb1>;\x14}\x800\x96S6Y\xf2\x9e`)\xa1\x8aT\xdd\xdd\xe2\xcd\xc8\xf2\x95\xa7\xca3m\x15\xd8\x98>\x88\xcbb\x82\xfb\x18:y\xaf\x18\xb4\xeb\xbb\x06\x8c\xe3w@\xa7\xbc_-\xa3\xc0\x84\xfd\x0e\xc7\x12\xf5\x13\x0f\r\xd9\x05\xc2CM9\x02n\xe2\x1b\xcc\x81\x97v\xf1\x83J\xcf\x8b\xc4\xaf\x19\xcfB2\x103}\x0f\xbd\x9c\xb2\x07!\xb2\xce\xf4\x88f\xdfE\xa3\x85\x88s>\xa6b\x93\x01|\xb3e\xe0\xb7\xa8-/\x8c\x96\xe5rL\xdd\x93\xb7\xbdP', crc=2471201003, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:02:46.056 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got status update
2024-04-02 21:02:46.057 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"2":"cw2KJjYCCAYbAi8CAQItAgICIwILAjAGAgIuAgICJgIIAhcCJAIgAgYCKgICAiMCBAIZAhYCJwIHAiUCBQIrAgMCEgIeAiECBwInAgMCLgYEAjsGAgIyAgMCMAYDAioCAQImAgkCEwIeAiQGHgJFBgECNwb9ASDL"},"t":1712102564}'
2024-04-02 21:02:46.834 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x00\x01\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3o\xea\x12e\xb8\x88\xe2e\rM\xd4,\xa1\xb9\x7f\xda]c1\xe5\xfa\xe4\xed\xff\xe0E>\xde\xc5\r\xfe?\x80\x89)y\x88\x15"\xa5w-\xc2\xcb+;\xa5\x9f', crc=720419654, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:02:46.835 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got status update
2024-04-02 21:02:46.836 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"1":"study_exit"},"t":1712102565}'
2024-04-02 21:02:47.430 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-02 21:02:47.431 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-02 21:02:47.432 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-02 21:02:47.439 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:02:47.439 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-02 21:02:47.440 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-02 21:02:54.002 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x01\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3o\xea\x12e\xb8\x88\xe2e\rM\xd4,\xa1\xb9\x7f\xda\x05F\xf1Wm-l=X\xf7\x10\x86\x11h$\xdcF\x18e#\xa3$\xd7a\xc0VA\x9a_FTv', crc=988237848, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:02:54.002 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got status update
2024-04-02 21:02:54.002 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"1":"study"},"t":1712102572}'
2024-04-02 21:02:57.442 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-02 21:02:57.443 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-02 21:02:57.445 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-02 21:02:57.454 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:02:57.454 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-02 21:02:57.454 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-02 21:02:57.905 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b"3.3\x00\x00\x00\x00\x00\x00\x00\r\x00\x00\x00\x01\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3\x7f\xcd\x8a)\xc2\xde\xe8\x88\xb1'0vD\x1d\x90\x88\x80rUE\xd7 \x06\xb4<\x9c\xed\xec\x8f\xb1P\xfb\xe8j\x87y\xad\xea\x98\xd4\x11.fqi\xe7\xcc\\\xf30\x98\x82\x9d\x82|\xfb\x96\x1e\x14\x92\xd6\xce\xd1\x01\xcf ;\x01\x0ex\xcck\x05\xddRp\x80\xeb\x8f\x93Y7\x06Uc\x9a\xbc\x98\xc8\xc3\xe5\xf6\xf0\xb4\x8e\xab\xb5\xf0Y+(m\xfbZ\x8d\x9d\xf8\xefCm\x9d\x1b\xc7\x1df\x84\xf8[\xe6LW\t\x87\xba\xb5\xad\xd2Y\xf9{\xd2\n\x1b\xf2\xc7\xcb\n\x12\x89\xdf7\xf2;BS\xa4\xed\x15\xe30\xf5W$\x8cU\x88\x15\xeb\x03T\x08y\xbe\\\x9c=\xb9Mt\xd1\x85\xab\xe8%P\nz\xb7\xe9\xfdv\xec\x8c\xad\x89\xc39\x19\x818U\xfe", crc=3059987288, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:02:57.906 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got status update
2024-04-02 21:02:57.907 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"2":"jAx0JjICEwYzAvgBOAIPAh0CCgIlAiQGHwIPAh4CFgIeAg8CHgIUBi4CBwY2AhMCHgIFAh4CEwIeAgUCHgIKAiUCBgIhAg4CHgIHAiACDwIeAggCHwIKAh4CJQYkAggCHgIcBh0CBQIyAgQCOQIIAiACJwYeAiDL"},"t":1712102576}'
2024-04-02 21:02:58.752 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x00\x00\x01\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3o\xea\x12e\xb8\x88\xe2e\rM\xd4,\xa1\xb9\x7f\xda]c1\xe5\xfa\xe4\xed\xff\xe0E>\xde\xc5\r\xfe?qm\xff\xa3\xf9\xf2\x1bD\xb3\x02\xb5\xf1\x985:>', crc=200344283, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:02:58.753 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got status update
2024-04-02 21:02:58.755 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"1":"study_exit"},"t":1712102577}'
2024-04-02 21:03:07.456 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-02 21:03:07.456 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-02 21:03:07.458 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-02 21:03:07.559 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:03:07.559 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-02 21:03:07.560 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-02 21:03:08.143 DEBUG (MainThread) [homeassistant.components.tuya] Remove device: ebdab8cce922684816bzb4
2024-04-02 21:03:09.166 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00\x00\x01\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3o\xea\x12e\xb8\x88\xe2e\rM\xd4,\xa1\xb9\x7f\xda\xb5\x1bvi\xb84\xb3\xb8,t|\xc2T\x1b\xcf\x8aG\xb9/\xfe\x19\x81M\xeesv\xce\xa3\x10\xca\xb3I', crc=1404668205, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:03:09.167 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got status update
2024-04-02 21:03:09.167 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"1":"study_key"},"t":1712102588}'
2024-04-02 21:03:09.961 DEBUG (Thread-4 (_thread_main)) [homeassistant.components.tuya] Received update for device ebd462e3022f586c51f1s8: {'va_temperature': 263, 'va_humidity': 82}
2024-04-02 21:03:10.145 DEBUG (Thread-4 (_thread_main)) [homeassistant.components.tuya] Received update for device ebd462e3022f586c51f1s8: {'va_temperature': 263, 'va_humidity': 82}
2024-04-02 21:03:17.561 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-02 21:03:17.561 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-02 21:03:17.563 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-02 21:03:17.569 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:03:17.569 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-02 21:03:17.569 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-02 21:03:27.570 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-02 21:03:27.571 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-02 21:03:27.573 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-02 21:03:27.586 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-02 21:03:27.586 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-02 21:03:27.586 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it

@xZetsubou
Copy link
Owner

xZetsubou commented Apr 3, 2024

I added support for your device can you test it by installing the master version.

Go HACS -> Local Tuya -> On top right corner click on the ⋮ and choose redownload and select master

HACS Select version

image

and restart HA then re-add your device

@rmribeiro2024
Copy link
Author

rmribeiro2024 commented Apr 4, 2024

Thank you very much! I tried to redownload but I can't select the master option. When I click on master it seems that it doesn't select it, it just keeps showing 3.2.5.1 selected all the time.

@xZetsubou
Copy link
Owner

Not sure if the a bug in HACS I made a beta-release with the new changes.
When you choose redownload enable beta version and choose 3.2.5.2b1 if HACS auto selected it when you enable beta version then choose another version then choose 3.2.5.2b1 back

@rmribeiro2024
Copy link
Author

rmribeiro2024 commented Apr 4, 2024

Perfect. Now i can install the update.

Now, when I Re-add the device it show a new option: key study DP. I tried 7 fot test but it does not work. However, now the led is on when it is in learn mode. Please, what is the correct key study Dp? I should mark it? Or only dp1 and dp2?
Screenshot_20240403_232531_Home Assistant

@xZetsubou
Copy link
Owner

Auto configure entity may work for you. However, I think 7 is the correct option for it.
What that didn't work Key Stduy should diz send command does that means learn command not working? If yes, try to enable debug again #189 (comment) but this time control you device and try to learn using Home Assistant then port logs

@rmribeiro2024
Copy link
Author

rmribeiro2024 commented Apr 4, 2024

  1. Auto-configure still isn't working. It's showing the same error 'wnykq'.
  2. Yes, the learn commands are not functioning. When I call the service to learn a command, only the LED turns on, but the device doesn't recognize the signals of the keys to be learned.
  3. I tried using DPS 1, receiving DP2, and studying key 7
    image
    Screenshot_20240404_090744_Home Assistant
4) Is the protocol version 3.3? Here, many options appear when I try to configure manually. I did select 3.3 what was already.

@rmribeiro2024
Copy link
Author

rmribeiro2024 commented Apr 4, 2024

Logs:

Details


Registrador: homeassistant.helpers.script.websocket_api_script
Fonte: helpers/script.py:1855
Ocorreu pela primeira vez: 3 de abril de 2024 às 23:30:36 (16 ocorrências)
Último registro: 08:36:48

websocket_api script: Error executing script. Error for call_service at pos 1: Failed to learn: teste3
websocket_api script: Error executing script. Error for call_service at pos 1: Failed to learn: test4
websocket_api script: Error executing script. Error for call_service at pos 1: Failed to learn: Test5


2024-04-04 08:34:54.159 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-04 08:34:54.159 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-04 08:34:54.161 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-04 08:34:54.167 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-04 08:34:54.167 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-04 08:34:54.168 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-04 08:34:57.151 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:35:00.222 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:35:03.294 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:35:04.096 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Trying to connect to 192.168.68.102...
2024-04-04 08:35:04.169 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-04 08:35:04.169 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-04 08:35:04.171 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-04 08:35:04.258 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-04 08:35:04.259 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-04 08:35:04.259 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-04 08:35:07.198 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:35:10.270 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:35:13.343 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:35:14.099 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Trying to connect to 192.168.68.102...
2024-04-04 08:35:14.260 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-04 08:35:14.260 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-04 08:35:14.262 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-04 08:35:14.268 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-04 08:35:14.268 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-04 08:35:14.268 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-04 08:35:17.183 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:35:20.255 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:35:23.326 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:35:24.103 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Trying to connect to 192.168.68.102...
2024-04-04 08:35:24.269 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-04 08:35:24.270 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-04 08:35:24.272 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-04 08:35:24.431 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-04 08:35:24.432 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-04 08:35:24.432 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-04 08:35:27.167 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:35:30.238 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:35:33.310 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:35:34.105 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Trying to connect to 192.168.68.102...
2024-04-04 08:35:34.433 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-04 08:35:34.434 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-04 08:35:34.436 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-04 08:35:34.441 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-04 08:35:34.442 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-04 08:35:34.442 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-04 08:35:37.214 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:35:40.287 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:35:43.358 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:35:44.106 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Trying to connect to 192.168.68.102...
2024-04-04 08:35:44.444 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-04 08:35:44.444 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-04 08:35:44.446 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-04 08:35:44.604 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-04 08:35:44.604 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-04 08:35:44.604 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-04 08:35:47.199 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:35:50.271 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:35:53.343 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:35:54.108 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Trying to connect to 192.168.68.102...
2024-04-04 08:35:54.606 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-04 08:35:54.607 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'ú
2024-04-04 08:35:54.609 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-04 08:35:54.666 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-04 08:35:54.666 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-04 08:35:54.666 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-04 08:35:57.183 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:36:00.254 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:36:03.327 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:36:04.109 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Trying to connect to 192.168.68.102...
2024-04-04 08:36:04.668 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-04 08:36:04.668 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-04 08:36:04.669 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-04 08:36:04.702 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-04 08:36:04.702 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-04 08:36:04.703 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-04 08:36:07.166 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:36:10.239 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:36:13.311 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:36:14.111 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Trying to connect to 192.168.68.102...
2024-04-04 08:36:14.704 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-04 08:36:14.704 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-04 08:36:14.707 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-04 08:36:14.741 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-04 08:36:14.741 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-04 08:36:14.741 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-04 08:36:17.214 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:36:18.205 DEBUG (MainThread) [custom_components.localtuya.remote] Sending: {'1': <ControlMode.STUDY: 'study'>}
2024-04-04 08:36:18.205 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 7 (device type: type_0a)
2024-04-04 08:36:18.205 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"devId":"83630070500291701dfe","uid":"83630070500291701dfe","t":"1712230578","dps":{"1":"study"}}'
2024-04-04 08:36:18.206 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 7 waiting for seq. number 12
2024-04-04 08:36:18.397 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 7 TuyaMessage(seqno=12, cmd=7, retcode=0, payload=b'', crc=3794389354, crc_good=True, prefix=21930, iv=None)
2024-04-04 08:36:18.397 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 7: ignoring it
2024-04-04 08:36:18.401 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x00\x1d\x00\x00\x00\x01\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3o\xea\x12e\xb8\x88\xe2e\rM\xd4,\xa1\xb9\x7f\xda\x1f\x90\x86x7u\x19E\xbe\xe6\xc7\xa5P\x8c)W\xf65\xe7D\xddl\x01\xb3\xd0x\xbb\xa1\xb9_*@', crc=2240344888, crc_good=True, prefix=21930, iv=None)
2024-04-04 08:36:18.401 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got status update
2024-04-04 08:36:18.401 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"1":"study"},"t":1712230577}'
2024-04-04 08:36:20.287 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:36:22.800 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x00\x1e\x00\x00\x00\x01\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3\xcaP\xff\xd7\xa1Jo\xddb\xcd\x18{\xecv\xd6\x12\xd6D\xb2\xb6!\x85\xe0!9\xa7\x0b\xff\x11\xb4\x16\x8d\x97\xd70eM\x7fVu\x12\x90\xbe\xe3sD\xa6\xba\x11du,\x94\xf2\xcd\x03)4\xcf\x90\xe8m\xcc\xa4\x11\xd8\xf4\xbc\x0ben\x95\xcaJ@u?\xf6\xb5C\xe13\xab\xeb@{\xbd\x8ai\x89\x1a\xa1\xa8a\r\xeb\xb5\xc7\x85V\xc6V\xa3\x1d+\xf0,\xec\x04y\xa1r\xe7\x94C\x8e\xdeh\x96/\xe8\n\x0f\x9ci\x12|\xaal#KY\x0c\xbbq*l\x0c\xaf]\xa5\xc3\x97\x9b\xb2[\xdf\xc5\x03g\x94\tP\x8d8-62\xf5 \xcaV\xe5\xc5E\xc9\x14\x0f th<`\xec~\x93v\xa9\xe6\xe5E\x95\xf5\x19\x88\x96R\xf8\x13\xf1\xf7\x9a`\x88#I\xfa9\xa0\xa1\xc3\xf1\xfb\xd0\x03\xc7\x81\'\x05\x985\xe6\x13\xad>\xb6e\xda\x8fbY\\\x14}\xb9\xe0\xb4\x7f\n;y\xa0&\xab?@\xd1a\x15"x\xa3\xd6\xb8\xc5A\xfd\x94\x85F6.\xad\x12\xd1\x80', crc=21847990, crc_good=True, prefix=21930, iv=None)
2024-04-04 08:36:22.800 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got status update
2024-04-04 08:36:22.801 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"2":"cyOrEVYCPAJNAjoCUwI5AlUCOQJVAjwCVgI0AlsCNAJcAjICVQKLBlUCjwZUAo8GVgKKBlQCOgJXAokGXgKFBlUCjgZUAkECTgKLBlQCOwJWAjMCWwI8AkwCOQJUAjwCVQI8Ak0CjgZbAjMCUwKQBlUCkAZVAocGVgKSBlYChwZTApYGVQKYoH4jzAhYAuWNeiPNCFsC4411I8cIVgIgyw=="},"t":1712230582}'
2024-04-04 08:36:23.358 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:36:24.113 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Trying to connect to 192.168.68.102...
2024-04-04 08:36:24.742 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-04 08:36:24.743 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-04 08:36:24.744 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-04 08:36:24.772 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-04 08:36:24.772 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-04 08:36:24.772 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-04 08:36:27.199 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:36:30.271 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:36:33.342 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:36:34.117 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Trying to connect to 192.168.68.102...
2024-04-04 08:36:34.773 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-04 08:36:34.773 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-04 08:36:34.774 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-04 08:36:34.808 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-04 08:36:34.808 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-04 08:36:34.808 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-04 08:36:37.183 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:36:40.255 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:36:43.327 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:36:44.120 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Trying to connect to 192.168.68.102...
2024-04-04 08:36:44.809 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-04 08:36:44.810 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-04 08:36:44.812 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-04 08:36:44.818 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-04 08:36:44.818 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-04 08:36:44.819 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-04 08:36:47.231 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:36:48.428 DEBUG (MainThread) [custom_components.localtuya.remote] Sending: {'1': <ControlMode.STUDY_EXIT: 'study_exit'>}
2024-04-04 08:36:48.428 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 7 (device type: type_0a)
2024-04-04 08:36:48.429 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"devId":"83630070500291701dfe","uid":"83630070500291701dfe","t":"1712230608","dps":{"1":"study_exit"}}'
2024-04-04 08:36:48.431 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 7 waiting for seq. number 16
2024-04-04 08:36:48.606 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 7 TuyaMessage(seqno=16, cmd=7, retcode=0, payload=b'', crc=3432306251, crc_good=True, prefix=21930, iv=None)
2024-04-04 08:36:48.606 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 7: ignoring it
2024-04-04 08:36:48.608 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Error for call_service at pos 1: Failed to learn: Test5
2024-04-04 08:36:48.609 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x00\x1f\x00\x00\x00\x01\xc4\xbe\xb56\t\xc3z\xafyq(\x92 /\xfdY\xe8.2K\xac\xb4r\x08\xf7\x10\x80?Q\xc0\x98\xd3o\xea\x12e\xb8\x88\xe2e\rM\xd4,\xa1\xb9\x7f\xda]c1\xe5\xfa\xe4\xed\xff\xe0E>\xde\xc5\r\xfe??\x8e\x02\x16z\x04\xe5?D\x8b\x86\xb1n\t\t\xc0', crc=3623624556, crc_good=True, prefix=21930, iv=None)
2024-04-04 08:36:48.609 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got status update
2024-04-04 08:36:48.611 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Deciphered data = '{"devId":"83630070500291701dfe","dps":{"1":"study_exit"},"t":1712230608}'
2024-04-04 08:36:48.612 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139937525513152] Failed to learn: Test5
2024-04-04 08:36:50.303 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:36:53.374 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:36:54.122 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Trying to connect to 192.168.68.102...
2024-04-04 08:36:54.821 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-04 08:36:54.821 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-04 08:36:54.823 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-04 08:36:54.829 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-04 08:36:54.830 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-04 08:36:54.830 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-04 08:36:57.215 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:37:00.287 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:37:03.359 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast
2024-04-04 08:37:04.123 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Trying to connect to 192.168.68.102...
2024-04-04 08:37:04.831 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending command 9 (device type: type_0a)
2024-04-04 08:37:04.832 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Sending payload: b'{"gwId":"83630070500291701dfe","devId":"83630070500291701dfe"}'
2024-04-04 08:37:04.834 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Command 9 waiting for seq. number -100
2024-04-04 08:37:04.843 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-04 08:37:04.843 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] Got heartbeat response
2024-04-04 08:37:04.843 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [836...dfe] ACK received for command 9: ignoring it
2024-04-04 08:37:07.199 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Disconnected: waiting for discovery broadcast

@xZetsubou
Copy link
Owner

xZetsubou commented Apr 4, 2024

Auto-configure still isn't working. It's showing the same error 'wnykq'.

the auto configure I can understand why it didn't works it was my mistake I didn't add it correctly.
In that logs did you configure the device this way?

Is the protocol version 3.3

Yes probably if the device got discovered this way then it's the correct one.

EDIT: I think I know what causing this issue for you.

@xZetsubou
Copy link
Owner

Hello, I think everything should works fine now. Auto configure and device both should works I hope :)

Re-Download the integration and select 3.2.5.2b1 again. #189 (comment)

@rmribeiro2024
Copy link
Author

rmribeiro2024 commented Apr 5, 2024

Hello, good news! Now the device is working perfectly! Thank you very much for the help and patience!

I have another smart remote control that has both IR and RF functions. It's only working with IR codes. When I try to teach it RF devices, the same problem occurs. The LED lights up waiting for the learning command, but when I press the button, it doesn't turn off, meaning it doesn't recognize the command and ends with an error message. Is it possible to solve this problem as well?

@xZetsubou
Copy link
Owner

Not sure how does the device recognize the RF commands, maybe if you enable the debug on the device and then Learn and Send a RF command using Smart Life APP like tests before may give me an idea whether it possible to add or not.

@rmribeiro2024
Copy link
Author

rmribeiro2024 commented Apr 5, 2024

ok. Thanks !!!!! This is the log:

Logs

2024-04-05 12:01:38.570 DEBUG (MainThread) [custom_components.localtuya.remote] [ebe...axc] Adding remote.controle_ir_rf433 with configuration: {'entity_category': 'None', 'receive_dp': '202', 'friendly_name': '', 'id': '201', 'platform': 'remote', 'icon': ''}
2024-04-05 12:01:38.607 DEBUG (MainThread) [custom_components.localtuya.remote] [ebe...axc] Entity  - Additional attributes: {}
2024-04-05 12:01:38.608 DEBUG (MainThread) [custom_components.localtuya.remote] [ebe...axc] Entity  - Additional attributes: {}
2024-04-05 12:01:38.614 DEBUG (MainThread) [custom_components.localtuya.common] [310...d1a] Trying to connect to 192.168.68.100...
2024-04-05 12:01:38.616 DEBUG (MainThread) [custom_components.localtuya.common] [310...3a0] Trying to connect to 192.168.68.101...
2024-04-05 12:01:38.617 DEBUG (MainThread) [custom_components.localtuya.common] [eb3...qze] Trying to connect to 192.168.68.106...
2024-04-05 12:01:38.617 DEBUG (MainThread) [custom_components.localtuya.common] [eb6...rq6] Trying to connect to 192.168.68.105...
2024-04-05 12:01:38.618 DEBUG (MainThread) [custom_components.localtuya.common] [ebd...1s8] Trying to connect to 192.168.68.103...
2024-04-05 12:01:38.619 DEBUG (MainThread) [custom_components.localtuya.common] [eb5...qmg] Trying to connect to 192.168.68.116...
2024-04-05 12:01:38.619 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Trying to connect to 192.168.68.102...
2024-04-05 12:01:38.620 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Trying to connect to 192.168.68.249...
2024-04-05 12:01:38.749 DEBUG (MainThread) [custom_components.localtuya.common] [836...dfe] Success: connected to 192.168.68.249
2024-04-05 12:01:38.757 DEBUG (MainThread) [custom_components.localtuya.common] [310...3a0] Success: connected to 192.168.68.101
2024-04-05 12:01:38.761 DEBUG (MainThread) [custom_components.localtuya.common] [310...d1a] Success: connected to 192.168.68.100
2024-04-05 12:01:38.768 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Retrieving initial state
2024-04-05 12:01:38.768 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 10 (device type: type_0a)
2024-04-05 12:01:38.768 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc","uid":"ebe758c289b0d5e7033axc","t":"1712329298"}'
2024-04-05 12:01:38.770 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 10 waiting for seq. number 1
2024-04-05 12:01:38.798 DEBUG (MainThread) [custom_components.localtuya.common] [ebd...1s8] Success: connected to 192.168.68.103
2024-04-05 12:01:38.801 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 10 TuyaMessage(seqno=1, cmd=10, retcode=0, payload=b'\xa9\xb8\x19}\xf6\xe2\x94\x0c\xba\x03V\xa8\x13\x8255\x17M"\xe8pZ\xdd\x86\xf0\xe6\x8bp\xff[\xec\xebY\x8f\x85\xf3\xe9\x10\x9e\xf6\xedD-\x92!\x07r\x1a', crc=1412509763, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:01:38.802 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Deciphered data = '{"dps":{"201":"{\\"control\\":\\"study_exit\\"}"}}'
2024-04-05 12:01:38.803 DEBUG (MainThread) [custom_components.localtuya.common] [ebe...axc] Success: connected to 192.168.68.102
2024-04-05 12:01:38.804 DEBUG (MainThread) [custom_components.localtuya.common] [eb6...rq6] Success: connected to 192.168.68.105
2024-04-05 12:01:38.805 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Started heartbeat loop
2024-04-05 12:01:38.805 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:01:38.805 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:01:38.805 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:01:38.952 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:01:38.953 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:01:38.954 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:01:39.473 DEBUG (MainThread) [custom_components.localtuya.common] [eb3...qze] Success: connected to 192.168.68.106
2024-04-05 12:01:39.712 DEBUG (MainThread) [custom_components.localtuya.common] [eb5...qmg] Success: connected to 192.168.68.116
2024-04-05 12:01:40.688 INFO (MainThread) [custom_components.localtuya.cloud_api] Cloud API connection succeeded.
2024-04-05 12:01:48.956 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:01:48.956 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:01:48.958 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:01:49.088 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:01:49.088 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:01:49.088 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:01:59.090 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:01:59.091 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:01:59.092 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:01:59.153 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:01:59.153 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:01:59.154 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:02:09.154 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:02:09.155 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:02:09.156 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:02:09.241 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:02:09.241 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:02:09.242 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:02:19.244 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:02:19.245 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:02:19.246 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:02:19.341 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:02:19.341 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:02:19.342 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:02:29.342 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:02:29.343 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:02:29.344 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:02:29.523 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:02:29.523 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:02:29.525 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:02:39.528 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:02:39.528 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:02:39.529 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:02:39.657 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:02:39.657 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:02:39.658 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:02:49.660 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:02:49.660 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:02:49.661 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:02:49.791 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:02:49.792 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:02:49.792 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:02:59.794 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:02:59.794 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:02:59.795 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:02:59.926 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:02:59.926 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:02:59.927 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:03:09.928 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:03:09.928 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:03:09.929 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:03:10.059 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:03:10.060 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:03:10.060 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:03:20.063 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:03:20.064 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:03:20.066 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:03:20.195 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:03:20.195 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:03:20.195 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:03:30.197 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:03:30.197 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:03:30.199 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:03:30.330 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:03:30.330 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:03:30.330 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:03:40.332 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:03:40.332 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:03:40.334 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:03:40.396 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:03:40.396 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:03:40.396 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:03:50.397 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:03:50.397 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:03:50.399 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:03:50.526 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:03:50.526 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:03:50.526 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:04:00.527 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:04:00.528 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:04:00.529 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:04:00.558 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:04:00.558 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:04:00.558 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:04:10.560 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:04:10.560 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:04:10.561 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:04:10.625 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:04:10.625 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:04:10.625 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:04:20.628 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:04:20.628 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:04:20.630 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:04:20.753 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:04:20.753 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:04:20.753 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:04:25.605 WARNING (MainThread) [homeassistant.helpers.script] Error in 'choose[0]' evaluation: In 'and' (item 2 of 3):
  In 'numeric_state':
    In 'numeric_state' condition: unknown entity sensor.sensor_de_temperatura_temperatura
2024-04-05 12:04:30.755 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:04:30.755 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:04:30.757 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:04:30.858 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:04:30.858 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:04:30.859 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:04:40.861 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:04:40.861 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:04:40.862 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:04:40.945 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:04:40.945 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:04:40.945 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:04:49.181 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b"3.3\x00\x00\x00\x00\x00\x00\x17\x11\x00\x00\x00\x01\xca{\x9d\x87_\xf9Xmu).t_\xccW\x81\xe8bD\x9b\xceW0\\\x81\xb3\x9dA\xdfk:\x16\x8f\x17\xf556\\\x89\xf4gEG\xc5\xc2L\xae\x853\xc6\xbaH\xb9\x94\xd1b\x9dP\x9b\xfb\xa5\x1f\x85\xb0\x8f\xda:\xaaW\xf1\xa7\x88Y\xb7\x80\x92M\xbb\x02\x16\\\xd7^\xd7\x86|%\xd0Y\xf2v\xe0;\xf2\x92#+\x94\xber\x88v\xb8\xff\xfd\xb5E\xd4\xb2\x8b?\xfd\xb7K_\xe0\x97\x15Bj\x8cw\x81-\xfbu5\xe8)\x00+</\x91\xaa\x84\xee5Q\xa3\x01\x864<2i\x13\xb3l\xc6\x06gl\xcf\x8a\x16\x9b\x98\xf8e\xfc\x81'rJ\xed)\x1cq\xcdU\x8aB\xb4\xb7P\x8a\xd7\x9ed3\xf3:?\xc5\x1c\x8d\xd5\x11\xd5\xa1\xe78J\xcf\x99}|:\xb7#\x17\x89\x83\xb1\x95\xb4\xf4\xd7\x11@0\x88Y\xf5\\\xa0!\xc2\xd4i\xa7\x0311\xc4\xc4@\x8e\xcf\xf2Y\x1878\x19\xc1\xd8\xc3ZJk\xc7\xe8-\xb8\x9e>2\x90b~\xf2y]s?l\xc7\x9d\xa7_O\xe7;\x05\xbe:)Y\xde\x12\x8a(\x9b1\xd1\x84-\x91\xfdl\xafQjy\x97f\x99\x8e\x15\x86(\x16>\x8e\xa8\xff\xees\xea\xe2&\xec", crc=2018540955, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:04:49.181 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got status update
2024-04-05 12:04:49.183 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Deciphered data = '{"dps":{"202":"eyJudW0iOjEsInZlciI6IjIiLCJzdHVkeV9mZXEiOiI0MzMiLCJkYXRhMCI6ImZUS3FBY2dFcWdISUJNZ0VxZ0dxQWNnRXFnSElCTWdFMUFISUJLb0JxZ0hJQk1nRXFnR3FBY2dFeUFTcUFjZ0VxZ0hJQktvQnlBU3FBY2dFcWdISUJLb0JxZ0hJQktvQnlBU3FBY2dFeUFUVUFhb0J5QVNxQWNnRXFnSElCTWdFcWdHcUFRPT0iLCJsdiI6WzBdfQ=="},"t":1712329480}'
2024-04-05 12:04:49.186 DEBUG (MainThread) [custom_components.localtuya.remote] [ebe...axc] Entity  - Additional attributes: {}
2024-04-05 12:04:50.946 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:04:50.947 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:04:50.948 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:04:51.048 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:04:51.049 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:04:51.049 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:05:01.051 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:05:01.051 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:05:01.053 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:05:01.159 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:05:01.160 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:05:01.160 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:05:11.161 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:05:11.162 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:05:11.163 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:05:11.262 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:05:11.263 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:05:11.263 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:05:21.264 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:05:21.265 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:05:21.267 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:05:21.371 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:05:21.371 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:05:21.371 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:05:31.374 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:05:31.374 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:05:31.375 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:05:31.442 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:05:31.442 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:05:31.443 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:05:41.444 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:05:41.444 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:05:41.447 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:05:41.525 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:05:41.525 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:05:41.528 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:05:51.530 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 9 (device type: type_0a)
2024-04-05 12:05:51.531 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"gwId":"ebe758c289b0d5e7033axc","devId":"ebe758c289b0d5e7033axc"}'
2024-04-05 12:05:51.533 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 9 waiting for seq. number -100
2024-04-05 12:05:51.611 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-04-05 12:05:51.611 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Got heartbeat response
2024-04-05 12:05:51.611 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] ACK received for command 9: ignoring it
2024-04-05 12:05:57.237 DEBUG (MainThread) [custom_components.localtuya.remote] [ebe...axc] Sending IR Command: {'201': '{"control": "send_ir", "type": 0, "head": "", "key1": "1ZyOTEToCOgJ1AjoCdQI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgJsBjoCbAY6AmwGdQJsBnUCOgI6AmwGdQJsBjoCbAY6AjoCOgJsBjoCOgI6AjoCdQI6AjoCOgI6AjoCOgI6AjoCbAY6AjoCOgJsBjoCbAZ1AmwGOgJsBjoCbAY6AmwGOgJgoGcjuQg6Auj9ZyO5CDoCMHU="}'}
2024-04-05 12:05:57.237 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending command 7 (device type: type_0a)
2024-04-05 12:05:57.237 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Sending payload: b'{"devId":"ebe758c289b0d5e7033axc","uid":"ebe758c289b0d5e7033axc","t":"1712329557","dps":{"201":"{\\"control\\":\\"send_ir\\",\\"type\\":0,\\"head\\":\\"\\",\\"key1\\":\\"1ZyOTEToCOgJ1AjoCdQI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgJsBjoCbAY6AmwGdQJsBnUCOgI6AmwGdQJsBjoCbAY6AjoCOgJsBjoCOgI6AjoCdQI6AjoCOgI6AjoCOgI6AjoCbAY6AjoCOgJsBjoCbAZ1AmwGOgJsBjoCbAY6AmwGOgJgoGcjuQg6Auj9ZyO5CDoCMHU=\\"}"}}'
2024-04-05 12:05:57.238 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [ebe...axc] Command 7 waiting for seq. number 28

@xZetsubou
Copy link
Owner

The Logs is kinda not completed.

  1. Can you post the device diagnostics of the RF/IR remote.
  2. If you can update the logs I want you to learn/send RF command from smart life app.

@rmribeiro2024
Copy link
Author

@rmribeiro2024
Copy link
Author

rmribeiro2024 commented Apr 9, 2024

Can you give me the logs with the latest changes If I can't think, If you choose IR and the LED Light up the device doesn't recognize the RF commands yes?

There is also 1 more way to actually debug the device and maybe we can understand how does RF works.

  1. Open Tuya IOT and go to Devices
  2. Click on debug device.
  3. From the left bar select you RF remote device --> Select device logs as well.
  4. from the logs select DPID IR Send and IR Study then click on search and copy the logs from IoT

Hi, sorry for the delay. Busy days here.

here is the log:
DP IR SEND

2024-04-09 18:39:43 | Publish | ir_send | {"rf_type":"sub_2g","mode":0,"key1":{"times":6,"intervals":0,"delay":0,"code":"eyJudW0iOjEsInZlciI6IjIiLCJzdHVkeV9mZXEiOiI0MzMiLCJkYXRhMCI6ImF6S2JBYWtFOUFHcEJLa0Vtd0diQWYwRW13SDlCS2tFOUFHcEJKc0Jtd0g5QktrRW13R2JBYWtFL1FTYkFha0Vtd0dwQlBRQnFRU2JBYWtFbXdHcEJKc0Jtd0dwQkpzQnFRU2JBYWtFL1FTYkFac0JxUVNiQWYwRW13R3BCS2tFbXdHYkFRPT0iLCJsdiI6WzBdfQ=="},"feq":0,"rate":0,"control":"rfstudy_send","ver":"2"} | cloud | scene:desligar ventilador da sala,scene Id:RB8PcgIBOO18notj
-- | -- | -- | -- | -- | --
2024-04-09 18:38:46 | Report | ir_study_code | eyJudW0iOjEsInZlciI6IjIiLCJzdHVkeV9mZXEiOiI0MzMiLCJkYXRhMCI6IklESFBCSllCdWdIUEJNOEV1Z0dXQWM4RXVnSFBCTG9CendTNkFjOEV1Z0hQQkxvQnp3U1dBYzhFendTNkFib0J6d1NXQWM4RXp3UzZBYzhFdWdIUEJMb0J1Z0hQQkpZQnp3UzZBYzhFdWdIUEJMb0J6d1RQQkxvQnp3U1dBYm9CendTNkFRPT0iLCJsdiI6WzBdfQ== | device itself |  
2024-04-09 18:38:01 | Publish | ir_send | {"rf_type":"sub_2g","mode":0,"key1":{"times":6,"intervals":0,"delay":0,"code":"eyJudW0iOjEsInZlciI6IjIiLCJzdHVkeV9mZXEiOiI0MzMiLCJkYXRhMCI6ImF6S2JBYWtFOUFHcEJLa0Vtd0diQWYwRW13SDlCS2tFOUFHcEJKc0Jtd0g5QktrRW13R2JBYWtFL1FTYkFha0Vtd0dwQlBRQnFRU2JBYWtFbXdHcEJKc0Jtd0dwQkpzQnFRU2JBYWtFL1FTYkFac0JxUVNiQWYwRW13R3BCS2tFbXdHYkFRPT0iLCJsdiI6WzBdfQ=="},"feq":0,"rate":0,"control":"rfstudy_send","ver":"2"} | cloud | scene:desligar ventilador da sala,scene Id:RB8PcgIBOO18notj
2024-04-09 18:37:41 | Report | ir_send | {"control":"study_exit"} | device itself |  
2024-04-09 18:37:39 | Device semaphore | Device semaphore | signal intensity:-38\|\|Remaining memory:37136\|\|UTC:1712698659\|\|DST:1712698659 | device itself |  
2024-04-09 18:37:11 | Report | ir_send | {"control":"study"} | device itself |  
2024-04-09 18:20:43 | Publish | ir_send | {"rf_type":"sub_2g","mode":0,"key1":{"times":6,"intervals":0,"delay":0,"code":"eyJudW0iOjEsInZlciI6IjIiLCJzdHVkeV9mZXEiOiI0MzMiLCJkYXRhMCI6ImF6S2JBYWtFOUFHcEJLa0Vtd0diQWYwRW13SDlCS2tFOUFHcEJKc0Jtd0g5QktrRW13R2JBYWtFL1FTYkFha0Vtd0dwQlBRQnFRU2JBYWtFbXdHcEJKc0Jtd0dwQkpzQnFRU2JBYWtFL1FTYkFac0JxUVNiQWYwRW13R3BCS2tFbXdHYkFRPT0iLCJsdiI6WzBdfQ=="},"feq":0,"rate":0,"control":"rfstudy_send","ver":"2"} | cloud

@rmribeiro2024
Copy link
Author

rmribeiro2024 commented Apr 9, 2024

dpid ir study :

2024-04-09 18:38:46 | Report | ir_study_code | eyJudW0iOjEsInZlciI6IjIiLCJzdHVkeV9mZXEiOiI0MzMiLCJkYXRhMCI6IklESFBCSllCdWdIUEJNOEV1Z0dXQWM4RXVnSFBCTG9CendTNkFjOEV1Z0hQQkxvQnp3U1dBYzhFendTNkFib0J6d1NXQWM4RXp3UzZBYzhFdWdIUEJMb0J1Z0hQQkpZQnp3UzZBYzhFdWdIUEJMb0J6d1RQQkxvQnp3U1dBYm9CendTNkFRPT0iLCJsdiI6WzBdfQ== | device itself
-- | -- | -- | -- | --


log after I try learn some code RF by home assistant: dp ir send:

2024-04-09 18:52:20 | Publish | ir_send | {"rf_type":"sub_2g","mode":0,"key1":{"times":6,"intervals":0,"delay":0,"code":"eyJudW0iOjEsInZlciI6IjIiLCJzdHVkeV9mZXEiOiI0MzMiLCJkYXRhMCI6ImF6S2JBYWtFOUFHcEJLa0Vtd0diQWYwRW13SDlCS2tFOUFHcEJKc0Jtd0g5QktrRW13R2JBYWtFL1FTYkFha0Vtd0dwQlBRQnFRU2JBYWtFbXdHcEJKc0Jtd0dwQkpzQnFRU2JBYWtFL1FTYkFac0JxUVNiQWYwRW13R3BCS2tFbXdHYkFRPT0iLCJsdiI6WzBdfQ=="},"feq":0,"rate":0,"control":"rfstudy_send","ver":"2"} | cloud | scene:desligar ventilador da sala,scene Id:RB8PcgIBOO18notj
-- | -- | -- | -- | -- | --
2024-04-09 18:51:49 | Report | ir_send | {"control":"study_exit"} | device itself |  
2024-04-09 18:51:18 | Report | ir_send | {"control":"study"} | device itself |  
2024-04-09 18:51:11 | Report | ir_send | {"control":"study_exit"} | device itself |  
2024-04-09 18:51:10 | Report | ir_send | {"control":"study"}

@xZetsubou
Copy link
Owner

This looks good, are this the logs reported after you learn / send DP through smart life?

@rmribeiro2024
Copy link
Author

This looks good, are this the logs reported after you learn / send DP through smart life?

Yes. After I try learn / send RF commands by smart life. And after I tried learn RF commands trought home assistant too.

@joaovictor0200
Copy link

Hi. I wanna try other IR. But still with problem
Registrador: homeassistant.components.websocket_api.http.connection
Fonte: components/websocket_api/commands.py:798
integração: Home Assistant WebSocket API (documentação, problemas)
Ocorreu pela primeira vez: 08:11:01 (2 ocorrências)
Último registro: 08:11:05

[139789986800448] Failed to learn: LigarAr

Uploading config_entry-localtuya-d88870963e081a4c193fb2bd42c9c247 (1).json…

@xZetsubou
Copy link
Owner

@rmribeiro2024 Check the latest beta update. b2-rf and see if there is any difference.

@joaovictor0200 The file you posted hasn't upload completely.

@rmribeiro2024
Copy link
Author

Hi! Same problem here my friend. Unlike learning IR commands in wich the LED lights up, in RF learning mode the device does not show any signal :( even after uptade.

@xZetsubou
Copy link
Owner

Not sure how I can debug this furthest without an actually device, so I think I'll will wait and may buy remote RF later.

@rmribeiro2024
Copy link
Author

Not sure how I can debug this furthest without an actually device, so I think I'll will wait and may buy remote RF later.

Okay, I understand. I greatly appreciate the help, patience, and willingness to assist, my friend.

@rmribeiro2024
Copy link
Author

About the smart IR that turns on the LEDs but doesn't learn the commands, if there's any news, please let us know :)
Thanks!

@xZetsubou
Copy link
Owner

About the smart IR that turns on the LEDs but doesn't learn the commands, if there's any news, please let us know :)

Which one?, I'm at confused I thought IR is fixed :)

@joaovictor0200
Copy link

Hi. I buy another IR Smart - Ekaza and try integrate again, and get this error :
Ocorreu um erro desconhecido. [Errno 113] Connect call failed ('192.168.3.143', 6668).
I send the diagnostics. I don't see logs in home assistant

config_entry-localtuya-a59c2b22120e81d2e7554d630625d20b.json

@rmribeiro2024
Copy link
Author

About the smart IR that turns on the LEDs but doesn't learn the commands, if there's any news, please let us know :)

Which one?, I'm at confused I thought IR is fixed :)
Hi,
Actually the first device (IR only) does not work yet :( Unfortunately, only the LED stays on waiting for a IR command, but it doesn't learn.

@xZetsubou
Copy link
Owner

@rmribeiro2024 I'm kinda confused of which one you means is it the one related to this comment? #189 (comment) can you post the device diagnostic of the meant one.

@joaovictor0200 Like I mentioned the issue is not in the device or the integration the issue is that you Home Assistant can't reach your device at all. try to ping the device from Home Assistant terminal e.g. ping 192.168.3.143

@joaovictor0200
Copy link

I try and comunicate it's OK.
I connect in manual mode, and get this error in learn command.

Imagem do WhatsApp de 2024-04-20 à(s) 18 50 38_5ec620d3

@xZetsubou
Copy link
Owner

I try and comunicate it's OK.

If you added "0" in manual DPS and it's success then connection has been made. in the last picture you sent the remote seems turned off go Devices -> Local Tuya -> Your device -> Ensure it's turned on.

@joaovictor0200
Copy link

I try and comunicate it's OK.

If you added "0" in manual DPS and it's success then connection has been made. in the last picture you sent the remote seems turned off go Devices -> Local Tuya -> Your device -> Ensure it's turned on.

I see this, The IR its on. and get this same error

@xZetsubou
Copy link
Owner

I see this, The IR its on. and get this same error

Enable the logs any after learn/send post the logs after try both "home assistant learn/send and smart life learn/send"
#189 (comment)

@joaovictor0200
Copy link

I see this, The IR its on. and get this same error

Enable the logs any after learn/send post the logs after try both "home assistant learn/send and smart life learn/send" #189 (comment)

Este erro originou-se de uma integração personalizada.

Registrador: homeassistant
Fonte: custom_components/localtuya/core/pytuya/init.py:489
integração: LocalTuya (documentação, problemas)
Ocorreu pela primeira vez: 20:13:32 (2 ocorrências)
Último registro: 20:13:40

Error doing job: Fatal error: protocol.data_received() call failed.
Traceback (most recent call last):
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1017, in _read_ready__data_received
self._protocol.data_received(data)
File "/config/custom_components/localtuya/core/pytuya/init.py", line 900, in data_received
self.dispatcher.add_data(data)
File "/config/custom_components/localtuya/core/pytuya/init.py", line 643, in add_data
header = parse_header(self.buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/localtuya/core/pytuya/init.py", line 489, in parse_header
raise DecodeError(
custom_components.localtuya.core.pytuya.DecodeError: Header claims the packet size is over 1000 bytes! It is most likely corrupt. Claimed size: 1003 bytes. fmt:>4I unpacked:(21930, 0, 8, 1003)

home-assistant_2024-04-22T23-17-12.444Z.log

xZetsubou added a commit that referenced this issue Apr 24, 2024
@xZetsubou
Copy link
Owner

@joaovictor0200 Try the latest beta version "beta6"

@joaovictor0200
Copy link

@joaovictor0200 Try the latest beta version "beta6"

This Work's fine. Thanky for you help and attention.

But, my other IR Controll, now i can add in the manual mode. I can Learn the command, ( It's notification learn, and turn on the light and learn the command). But when i try send command, the led light it's blink ( send the command) but the device not react the command.

@xZetsubou
Copy link
Owner

But, my other IR Controll, now i can add in the manual mode. I can Learn the command, ( It's notification learn, and turn on the light and learn the command). But when i try send command, the led light it's blink ( send the command) but the device not react the command

You mean the device does learn the command but doesn't send it? if yes enable the debug logs, for that IR device and use learn/send command using "home-assistant" then again use learn/send command but using "smart life" would be better if each test on different log file.

@rmribeiro2024
Copy link
Author

@rmribeiro2024 I'm kinda confused of which one you means is it the one related to this comment? #189 (comment) can you post the device diagnostic of the meant one.

@joaovictor0200 Like I mentioned the issue is not in the device or the integration the issue is that you Home Assistant can't reach your device at all. try to ping the device from Home Assistant terminal e.g. ping 192.168.3.143

Hello, yes, this is the first device I referred to earlier. It has only IR function. The issue is that it learns the command correctly but doesn't send it. It shows the message that the sending was done but nothing happens. I tried several different commands but it doesn't execute."
localtuya-3eff235ffee1649d45495c5e452d519d-Smart Controle Universal-1326c912f1d3c1eced363721874f0714 (1).json

Copy link

This issue was closed because it was resolved on the release:

@github-actions github-actions bot added stale and removed master/next-release Fixed in master branch, Will be ready in the next release stale labels May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants