xZetsubou / hass-localtuya

🔹 A Home Assistant integration to handle Tuya devices locally "fork from localtuya"
https://xzetsubou.github.io/hass-localtuya/
GNU General Public License v3.0
413 stars 50 forks source link

[Bug]: entities still unavailable #330

Closed gounry closed 1 month ago

gounry commented 2 months ago

LocalTuya Version

2024.7.0

Home Assistant Version

2024.8.1

Environment

What happened?

hello, i'm trying to add power clamp in local tuya but, i got that error

"Connection to device succeeded but no datapoints could be found. Please try set-up again. If problem persists, create a new issue (including debug logs)"

after saw on another thread i add "0" in Manual DPS's and i jump to the next page, "configure devices entities".

-if i press "discover device entities automatically" i got error "An error occurred: Couldn't find the data for your device category: zndb.. If reason isn't showing, check logs."

-If i press "configure device entities manually", it ask me to choose the entity type, then i choose "sensor" now in DP ID area it show all the DP ID with value, so i choose the first one and set all area.

now when i go to see the entity i have a red dot writed "unavailable"

ha1 ha2 ha3

Steps to reproduce.

  1. in local tuya in hubs i click configure
  2. add new device
  3. choose the power clamp
  4. just add 0 in manual DPS's area
  5. configure device entities manually
  6. choose sensor
  7. add friendly name nd submit
  8. mark "finish configuring entities" for test only with one entity
  9. and now if i check entity, it's still unavailable

Relevant log output

IndexError: list index out of range
2024-08-13 07:41:09.326 DEBUG (MainThread) [custom_components.localtuya.core.cloud_api] Devices has been updated a minutes ago.
2024-08-13 07:41:16.972 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2] Connection lost: None
2024-08-13 07:41:21.973 DEBUG (MainThread) [custom_components.localtuya.config_flow] [bf2...xj2 - Pince Ampermetrique] Detected DPS: {}
2024-08-13 07:50:15.193 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2] Connection lost: None
2024-08-13 07:50:20.195 DEBUG (MainThread) [custom_components.localtuya.config_flow] [bf2...xj2 - Pince Ampermetrique] Detected DPS: {}
2024-08-13 07:51:45.610 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2] Connection lost: None
2024-08-13 07:51:50.612 DEBUG (MainThread) [custom_components.localtuya.config_flow] [bf2...xj2 - Pince Ampermetrique] Detected DPS: {}
2024-08-13 07:51:50.612 DEBUG (MainThread) [custom_components.localtuya.config_flow] [bf2...xj2 - Pince Ampermetrique] Manual DPS Setting: 0 (['0'])
2024-08-13 07:51:50.612 DEBUG (MainThread) [custom_components.localtuya.config_flow] [bf2...xj2 - Pince Ampermetrique] Total DPS: {}
2024-08-13 07:53:06.589 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] Pince Ampermetrique: Configured entities: []
2024-08-13 07:58:56.307 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2] Connection lost: None
2024-08-13 07:59:01.308 DEBUG (MainThread) [custom_components.localtuya.config_flow] [bf2...xj2 - Pince Ampermetrique] Detected DPS: {}
2024-08-13 07:59:01.309 DEBUG (MainThread) [custom_components.localtuya.config_flow] [bf2...xj2 - Pince Ampermetrique] Manual DPS Setting: 0 (['0'])
2024-08-13 07:59:01.309 DEBUG (MainThread) [custom_components.localtuya.config_flow] [bf2...xj2 - Pince Ampermetrique] Total DPS: {}
2024-08-13 07:59:08.359 DEBUG (MainThread) [custom_components.localtuya.core.cloud_api] Devices has been updated a minutes ago.
2024-08-13 07:59:18.831 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 07:59:18.831 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 07:59:18.831 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2] Command 3 waiting for seq. number -102
2024-08-13 07:59:18.939 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2] Connection lost: None
2024-08-13 07:59:18.940 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2] Cleaning up session.
2024-08-13 07:59:18.940 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2] received null payload (None), fetch new one - 1 retries remaining
2024-08-13 07:59:18.940 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2] Command 3 waiting for seq. number -102
2024-08-13 07:59:23.941 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2] Command 3 timed out waiting for sequence number -102
2024-08-13 07:59:23.941 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2] received null payload (None) but out of recv retries, giving up
2024-08-13 07:59:23.941 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2] session key negotiation failed on step 1
2024-08-13 07:59:23.941 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2] Cleaning up session.
2024-08-13 07:59:23.941 DEBUG (MainThread) [custom_components.localtuya.config_flow] [bf2...xj2 - Pince Ampermetrique] Detected DPS: {}
2024-08-13 07:59:23.941 DEBUG (MainThread) [custom_components.localtuya.config_flow] [bf2...xj2 - Pince Ampermetrique] Manual DPS Setting: 0 (['0'])
2024-08-13 07:59:23.941 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2] Closing connection
2024-08-13 07:59:23.942 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2] Cleaning up session.
2024-08-13 07:59:23.942 DEBUG (MainThread) [custom_components.localtuya.config_flow] [bf2...xj2 - Pince Ampermetrique] Total DPS: {}
2024-08-13 08:01:33.393 DEBUG (MainThread) [custom_components.localtuya.sensor] [bf2...xj2 - Pince Ampermetrique] Initialized sensor [Voltage A]
2024-08-13 08:01:33.395 DEBUG (MainThread) [custom_components.localtuya.sensor] [bf2...xj2 - Pince Ampermetrique] Adding sensor.pince_ampermetrique_voltage_a with configuration: {'id': '101', 'friendly_name': 'Voltage A', 'entity_category': 'diagnostic', 'unit_of_measurement': 'V', 'device_class': <SensorDeviceClass.VOLTAGE: 'voltage'>, 'state_class': 'measurement', 'scaling': 0.1, 'platform': 'sensor'}
2024-08-13 08:01:33.402 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:01:33.589 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:01:33.589 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:01:33.589 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:01:33.590 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:01:33.635 INFO (MainThread) [custom_components.localtuya.core.cloud_api] Cloud API connection succeeded.
2024-08-13 08:01:33.700 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:01:33.700 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:01:33.700 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:01:33.798 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:01:33.798 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:01:33.798 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:01:33.799 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:01:33.907 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:01:33.907 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:01:36.700 INFO (SyncWorker_61) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:01:36.908 INFO (SyncWorker_17) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:01:38.909 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:01:39.019 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:01:39.019 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:01:39.019 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:01:39.020 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:01:39.123 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:01:39.123 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:01:42.124 INFO (SyncWorker_33) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:01:44.124 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:01:44.241 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:01:44.241 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:01:44.241 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:01:44.242 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:01:44.346 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:01:44.346 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:01:47.347 INFO (SyncWorker_18) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:01:49.347 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:01:49.457 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:01:49.457 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:01:49.457 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:01:49.458 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:01:49.477 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:01:49.477 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:01:52.479 INFO (SyncWorker_41) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:01:54.478 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:01:54.583 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:01:54.583 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:01:54.583 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:01:54.584 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:01:54.690 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:01:54.690 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:01:57.692 INFO (SyncWorker_54) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:01:59.693 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:01:59.805 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:01:59.805 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:01:59.805 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:01:59.805 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:01:59.912 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:01:59.912 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:02:02.914 INFO (SyncWorker_5) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:02:04.913 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:02:05.027 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:02:05.027 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:02:05.027 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:02:05.027 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:02:05.143 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:02:05.144 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:02:08.145 INFO (SyncWorker_25) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:02:10.145 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:02:10.248 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:02:10.248 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:02:10.248 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:02:10.249 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:02:10.359 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:02:10.359 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:02:13.360 INFO (SyncWorker_14) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:02:15.360 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:02:15.486 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:02:15.487 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:02:15.487 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:02:15.487 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:02:15.580 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:02:15.580 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:02:18.581 INFO (SyncWorker_40) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:02:20.581 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:02:20.696 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:02:20.696 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:02:20.696 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:02:20.697 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:02:20.801 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:02:20.801 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:02:23.802 INFO (SyncWorker_35) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:02:25.802 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:02:25.812 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:02:25.812 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:02:25.812 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:02:25.812 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:02:25.821 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:02:25.821 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:02:28.822 INFO (SyncWorker_61) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:02:30.822 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:02:30.933 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:02:30.933 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:02:30.933 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:02:30.934 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:02:31.041 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:02:31.041 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:02:34.042 INFO (SyncWorker_17) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:02:36.044 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:02:36.156 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:02:36.156 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:02:36.156 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:02:36.156 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:02:36.263 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:02:36.263 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:02:39.264 INFO (SyncWorker_63) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:02:41.264 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:02:41.286 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:02:41.286 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:02:41.286 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:02:41.286 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:02:41.380 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:02:41.380 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:02:44.382 INFO (SyncWorker_36) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:02:46.382 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:02:46.498 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:02:46.498 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:02:46.498 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:02:46.499 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:02:46.605 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:02:46.605 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:02:49.606 INFO (SyncWorker_3) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:02:51.606 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:02:51.724 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:02:51.724 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:02:51.724 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:02:51.724 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:02:51.842 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:02:51.843 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:02:54.843 INFO (SyncWorker_53) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:02:56.844 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:02:56.943 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:02:56.943 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:02:56.943 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:02:56.943 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:02:57.051 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:02:57.051 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:03:00.053 INFO (SyncWorker_30) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:03:02.053 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:03:02.165 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:03:02.165 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:03:02.165 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:03:02.166 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:03:02.273 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:03:02.273 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:03:05.273 INFO (SyncWorker_15) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:03:07.274 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:03:07.388 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:03:07.388 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:03:07.388 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:03:07.388 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:03:07.497 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:03:07.497 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:03:10.499 INFO (SyncWorker_49) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:03:12.498 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:03:12.610 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:03:12.610 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:03:12.610 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:03:12.611 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:03:12.726 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:03:12.726 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:03:15.727 INFO (SyncWorker_25) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:03:17.727 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:03:17.835 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:03:17.836 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:03:17.836 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:03:17.836 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:03:17.940 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:03:17.940 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:03:20.941 INFO (SyncWorker_14) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:03:22.941 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:03:23.055 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:03:23.056 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:03:23.056 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:03:23.056 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:03:23.164 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:03:23.164 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:03:26.166 INFO (SyncWorker_29) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:03:28.165 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:03:28.277 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:03:28.277 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:03:28.278 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:03:28.278 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:03:28.389 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:03:28.389 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:03:31.389 INFO (SyncWorker_18) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:03:33.390 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:03:33.506 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:03:33.506 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:03:33.506 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:03:33.506 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:03:33.608 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:03:33.608 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:03:36.610 INFO (SyncWorker_48) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:03:38.610 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:03:38.725 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:03:38.725 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:03:38.725 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:03:38.726 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:03:38.843 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:03:38.843 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:03:41.844 INFO (SyncWorker_28) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:03:43.844 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:03:43.944 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:03:43.945 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:03:43.945 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:03:43.945 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:03:44.055 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:03:44.055 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:03:47.056 INFO (SyncWorker_11) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:03:49.056 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:03:49.068 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:03:49.068 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:03:49.068 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:03:49.069 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:03:49.178 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:03:49.178 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:03:52.179 INFO (SyncWorker_9) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:03:54.179 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:03:54.287 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:03:54.287 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:03:54.287 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:03:54.288 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:03:54.395 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:03:54.395 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:03:57.396 INFO (SyncWorker_6) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:03:59.396 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:03:59.511 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:03:59.511 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:03:59.511 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:03:59.512 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:03:59.617 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:03:59.617 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:04:02.618 INFO (SyncWorker_10) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:04:04.618 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:04:04.735 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:04:04.735 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:04:04.735 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:04:04.736 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:04:04.852 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:04:04.853 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:04:07.855 INFO (SyncWorker_19) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:04:09.853 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:04:09.961 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:04:09.961 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:04:09.961 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:04:09.962 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:04:10.064 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:04:10.064 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:04:13.065 INFO (SyncWorker_46) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:04:15.064 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:04:15.081 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:04:15.081 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:04:15.081 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:04:15.081 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:04:15.184 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:04:15.184 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:04:18.186 INFO (SyncWorker_63) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:04:20.186 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:04:20.297 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:04:20.297 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:04:20.297 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:04:20.297 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:04:20.405 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:04:20.405 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:04:23.407 INFO (SyncWorker_33) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:04:25.406 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:04:25.522 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:04:25.522 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:04:25.522 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:04:25.522 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:04:25.627 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:04:25.627 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:04:28.629 INFO (SyncWorker_3) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:04:30.629 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:04:30.743 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:04:30.744 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:04:30.744 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:04:30.744 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:04:30.849 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:04:30.849 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:04:33.850 INFO (SyncWorker_7) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:04:35.850 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:04:35.967 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:04:35.967 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:04:35.967 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:04:35.967 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:04:36.075 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:04:36.075 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:04:39.076 INFO (SyncWorker_41) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:04:41.076 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:04:41.090 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:04:41.090 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:04:41.090 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:04:41.090 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:04:41.196 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:04:41.196 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:04:44.197 INFO (SyncWorker_5) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:04:46.197 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:04:46.313 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:04:46.313 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:04:46.313 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:04:46.313 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:04:46.414 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:04:46.415 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:04:49.415 INFO (SyncWorker_34) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:04:51.416 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:04:51.534 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:04:51.534 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:04:51.534 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:04:51.535 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:04:51.637 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:04:51.637 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:04:54.639 INFO (SyncWorker_14) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Disconnected due to: Connection lost
2024-08-13 08:04:56.638 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Trying to connect to: 192.168.1.239...
2024-08-13 08:04:56.753 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Retrieving initial state
2024-08-13 08:04:56.753 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] 3.4 or 3.5 device: negotiating a new session key
2024-08-13 08:04:56.753 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] final payload for cmd 3: b'0123456789abcdef'
2024-08-13 08:04:56.754 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Command 3 waiting for seq. number -102
2024-08-13 08:04:56.860 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Connection lost: None
2024-08-13 08:04:56.860 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...xj2 - Pince Ampermetrique] Cleaning up session.
2024-08-13 08:04:58.585 INFO (MainThread) [custom_components.localtuya] Device bf202aefb837b6f01eoxj2 removed.
2024-08-13 08:04:58.587 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf2...xj2 - Pince Ampermetrique] Closed connection
2024-08-13 08:04:58.848 INFO (MainThread) [custom_components.localtuya.core.cloud_api] Cloud API connection succeeded.

Diagnostics information.

localtuya-01J53WH2S6ETEF6PD48W6REFGR-Pince Ampermetrique-6d79fabc419826aef9d1ee3a36768196 (1).json

xZetsubou commented 2 months ago

"0" isn't meant to be used this way, have you tried to fully turn off and on the device? 3.4 has some weird issue were devices stops accepting any connection sometimes.

AleksanderGPL commented 2 months ago

I am experiencing the same issue with a Tuya Smart Sprinkler Controller (also protocol 3.4). The device became available again after physically replugging it, although this is likely not a permanent fix.

gounry commented 2 months ago

I removed all fuses from house to be sure it was complety power off (power clamp), And tried, same error.

xZetsubou commented 2 months ago

I am experiencing the same issue with a Tuya Smart Sprinkler Controller (also protocol 3.4). The device became available again after physically replugging it, although this is likely not a permanent fix.

I also sometimes bump into the issue tho I don't know what actually triggers it.. Unlike @gounry issue your issue is fixed if you reboot the device but his device not.

@gounry Did the device got discovered automatically by localtuya or you manually add it? If your device is not running on batteries then 0 shouldn't be used on the device. Can you do long ping with the device IP to ensure that it's not low-power device?

ping -t 192.168.1.239

gounry commented 2 months ago

the device is discovered automatically, pince ampermetrique, 192.168.1.139 image

i done a cmd with your line ping, i got that image

xZetsubou commented 2 months ago

Have you test if the device may works on another protocol version? for example try "auto" it will test all supported protocol versions.

gounry commented 2 months ago

I tried each choice in protocol version, included auto.

Every time I got Connection to device succeeded but no datapoints could be found. Please try set-up again. If problem persists, create a new issue (including debug logs).

fabianosan commented 2 months ago

I tried each choice in protocol version, included auto.

Every time I got Connection to device succeeded but no datapoints could be found. Please try set-up again. If problem persists, create a new issue (including debug logs).

When I have this issue, I put 0 in the "(optional) Manual DPS's ..." and click send and it pass to the next step and I can add the device (setting up manually).

gounry commented 2 months ago

Yes i done that in my first post. But unlucky, It doesn't work

gounry commented 2 months ago

No idea? I tried a lot of thing but still not working.

xZetsubou commented 2 months ago

Not sure to be honest what happen with your device judging by the logs it may be local key issue but I think since you used cloud setup so I guess not.

Can you post the product link if you have it?

You may also want to test the port state. Windows PS: # change the IP to your device IP address.

Test-NetConnection -ComputerName 192.168.1.103 -Port 6668

A success message:

ComputerName     : 192.168.1.103
RemoteAddress    : 192.168.1.103
RemotePort       : 6668
InterfaceAlias   : Ethernet
SourceAddress    : 192.168.1.18
TcpTestSucceeded : True
github-actions[bot] commented 1 month ago

This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days.