Closed KisKisSandra closed 4 months ago
P.S. Manually writing DPS does not work. It says that their values are "-1"
Upd. 1. Works with TuyaLocal
Tried these steps, same result. Detects only DP 2,3 and 5. If i manually add DP 1 - it shows "-1" in configuration values. (IIRC there must be strings "open", "close" or "stop")
Yeah the error may still showing up but did the dps shows automatically on adding device step after installing beta <- I can make the fix after that. ? you click open or close from tuya app to update -1
value after adding the device.
Logs are different, but there are still DPS 2,3 and 5 and DP 1 and 12 are not present. Adding manual DP 0 makes no difference. Also after adding device in beta and if i click open or close in tuya app - device still shows as unavalible. However device with DP 5 (Motor direction, set as different sensor) works fine. When i change motor direction from Reserse to Forward - HA sees it. But motor itself is still unavalible in HA
Logs:
components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 10 TuyaMessage(seqno=1, cmd=10, retcode=0, payload=b'\x87\xa1\xd4\xc8\xf1\xe7\x1d\xe2M\xd7X\xb0@^\xeff)i|\xc5\xb8\x862V\x9ca\x1f\xc1&\x87\x06\x92%!\xb4\xac\xd1\x05\xf1\xab\x96\xd2\nY$\xc6G\x01', crc=2513020778, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:20:14.417 DEBUG (MainThread) [custom_components.localtuya.config_flow] Detected DPS: {'2': 0, '3': 100, '5': 'back'}
2024-05-19 10:20:14.417 DEBUG (MainThread) [custom_components.localtuya.config_flow] Total DPS: {'2': 0, '3': 100, '5': 'back'}
2024-05-19 10:20:14.419 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Connection lost: None
2024-05-19 10:20:15.260 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] Curtain Motor 3: Entity configured: {'id': '12', 'state_on': '1', 'friendly_name': 'Fault', 'icon': '', 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>, 'platform': <Platform.BINARY_SENSOR: 'binary_sensor'>}
2024-05-19 10:20:15.260 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] id Already configured with: 1.
2024-05-19 10:20:15.261 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] current_position_dp Already configured with: 3.
2024-05-19 10:20:15.261 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] set_position_dp Already configured with: 2.
2024-05-19 10:20:15.261 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] Curtain Motor 3: Entity configured: {'id': '1', 'current_position_dp': '3', 'set_position_dp': '2', 'commands_set': 'open_close_stop', 'positioning_mode': 'position', 'position_inverted': False, 'friendly_name': 'Curtain', 'icon': '', 'entity_category': 'None', 'platform': <Platform.COVER: 'cover'>}
2024-05-19 10:20:15.261 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] current_position_dp Already configured with: 2.
2024-05-19 10:20:15.261 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] set_position_dp Already configured with: 2.
2024-05-19 10:20:15.261 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] id Already configured with: 5.
2024-05-19 10:20:15.262 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] Curtain Motor 3: Entity configured: {'id': '5', 'select_options': {'forward': 'Forward', 'back': 'Back'}, 'friendly_name': 'Motor Direction', 'icon': 'mdi:swap-vertical', 'entity_category': <EntityCategory.CONFIG: 'config'>, 'platform': <Platform.SELECT: 'select'>}
2024-05-19 10:20:15.262 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] Curtain Motor 3: Configured entities: [{'id': '1', 'current_position_dp': '3', 'set_position_dp': '2', 'commands_set': 'open_close_stop', 'positioning_mode': 'position', 'position_inverted': False, 'friendly_name': 'Curtain', 'icon': '', 'entity_category': 'None', 'platform': <Platform.COVER: 'cover'>}, {'id': '5', 'select_options': {'forward': 'Forward', 'back': 'Back'}, 'friendly_name': 'Motor Direction', 'icon': 'mdi:swap-vertical', 'entity_category': <EntityCategory.CONFIG: 'config'>, 'platform': <Platform.SELECT: 'select'>}, {'id': '12', 'state_on': '1', 'friendly_name': 'Fault', 'icon': '', 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>, 'platform': <Platform.BINARY_SENSOR: 'binary_sensor'>}]
2024-05-19 10:20:15.279 DEBUG (MainThread) [custom_components.localtuya.select] Display Options Configured: ['Forward', 'Back']
2024-05-19 10:20:15.279 DEBUG (MainThread) [custom_components.localtuya.select] Total Raw Options: 2 - Total Display Options: 2
2024-05-19 10:20:15.280 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bfc...2zn] Trying to connect to Curtain Motor 3 - 192.168.0.123...
2024-05-19 10:20:15.289 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 10 TuyaMessage(seqno=1, cmd=10, retcode=0, payload=b'\x87\xa1\xd4\xc8\xf1\xe7\x1d\xe2M\xd7X\xb0@^\xeff)i|\xc5\xb8\x862V\x9ca\x1f\xc1&\x87\x06\x92%!\xb4\xac\xd1\x05\xf1\xab\x96\xd2\nY$\xc6G\x01', crc=2513020778, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:20:15.290 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bfc...2zn] Success: connected to Curtain Motor 3 - 192.168.0.123
2024-05-19 10:20:15.383 ERROR (SyncWorker_44) [homeassistant.util.logging] Exception in _update_handler when dispatching 'localtuya_bfc1faa77d85fe1e6dh2zn': ({'2': 0, '3': 100, '5': 'back'},)
Traceback (most recent call last):
File "/config/custom_components/localtuya/entity.py", line 172, in _update_handler
self.status_updated()
File "/config/custom_components/localtuya/cover.py", line 254, in status_updated
if self._state.isupper():
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'isupper'
2024-05-19 10:20:16.021 INFO (MainThread) [custom_components.localtuya.core.cloud_api] Cloud API connection succeeded.
2024-05-19 10:20:25.295 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:22:45.405 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:22:46.132 INFO (MainThread) [custom_components.localtuya] Device bfc1faa77d85fe1e6dh2zn removed.
2024-05-19 10:22:46.133 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bfc...2zn] Closed connection with Curtain Motor 3
2024-05-19 10:22:46.134 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Connection lost: None
2024-05-19 10:22:46.930 INFO (MainThread) [custom_components.localtuya.core.cloud_api] Cloud API connection succeeded.
2024-05-19 10:22:48.060 DEBUG (MainThread) [custom_components.localtuya.core.cloud_api] Devices has been updated a minutes ago.
2024-05-19 10:22:55.884 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 10 TuyaMessage(seqno=1, cmd=10, retcode=0, payload=b'\x87\xa1\xd4\xc8\xf1\xe7\x1d\xe2M\xd7X\xb0@^\xeff)i|\xc5\xb8\x862V\x9ca\x1f\xc1&\x87\x06\x92%!\xb4\xac\xd1\x05\xf1\xab\x96\xd2\nY$\xc6G\x01', crc=2513020778, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:22:55.885 DEBUG (MainThread) [custom_components.localtuya.config_flow] Detected DPS: {'2': 0, '3': 100, '5': 'back'}
2024-05-19 10:22:55.885 DEBUG (MainThread) [custom_components.localtuya.config_flow] Manual DPS Setting: 0 (['0'])
2024-05-19 10:22:55.885 DEBUG (MainThread) [custom_components.localtuya.config_flow] Total DPS: {'2': 0, '3': 100, '5': 'back'}
2024-05-19 10:22:55.888 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Connection lost: None
2024-05-19 10:22:57.032 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] Curtain Motor 3: Entity configured: {'id': '12', 'state_on': '1', 'friendly_name': 'Fault', 'icon': '', 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>, 'platform': <Platform.BINARY_SENSOR: 'binary_sensor'>}
2024-05-19 10:22:57.032 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] id Already configured with: 1.
2024-05-19 10:22:57.032 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] current_position_dp Already configured with: 3.
2024-05-19 10:22:57.033 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] set_position_dp Already configured with: 2.
2024-05-19 10:22:57.033 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] Curtain Motor 3: Entity configured: {'id': '1', 'current_position_dp': '3', 'set_position_dp': '2', 'commands_set': 'open_close_stop', 'positioning_mode': 'position', 'position_inverted': False, 'friendly_name': 'Curtain', 'icon': '', 'entity_category': 'None', 'platform': <Platform.COVER: 'cover'>}
2024-05-19 10:22:57.033 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] current_position_dp Already configured with: 2.
2024-05-19 10:22:57.033 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] set_position_dp Already configured with: 2.
2024-05-19 10:22:57.033 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] id Already configured with: 5.
2024-05-19 10:22:57.034 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] Curtain Motor 3: Entity configured: {'id': '5', 'select_options': {'forward': 'Forward', 'back': 'Back'}, 'friendly_name': 'Motor Direction', 'icon': 'mdi:swap-vertical', 'entity_category': <EntityCategory.CONFIG: 'config'>, 'platform': <Platform.SELECT: 'select'>}
2024-05-19 10:22:57.034 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] Curtain Motor 3: Configured entities: [{'id': '1', 'current_position_dp': '3', 'set_position_dp': '2', 'commands_set': 'open_close_stop', 'positioning_mode': 'position', 'position_inverted': False, 'friendly_name': 'Curtain', 'icon': '', 'entity_category': 'None', 'platform': <Platform.COVER: 'cover'>}, {'id': '5', 'select_options': {'forward': 'Forward', 'back': 'Back'}, 'friendly_name': 'Motor Direction', 'icon': 'mdi:swap-vertical', 'entity_category': <EntityCategory.CONFIG: 'config'>, 'platform': <Platform.SELECT: 'select'>}, {'id': '12', 'state_on': '1', 'friendly_name': 'Fault', 'icon': '', 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>, 'platform': <Platform.BINARY_SENSOR: 'binary_sensor'>}]
2024-05-19 10:22:57.043 DEBUG (MainThread) [custom_components.localtuya.select] Display Options Configured: ['Forward', 'Back']
2024-05-19 10:22:57.044 DEBUG (MainThread) [custom_components.localtuya.select] Total Raw Options: 2 - Total Display Options: 2
2024-05-19 10:22:57.055 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bfc...2zn] Trying to connect to Curtain Motor 3 - 192.168.0.123...
2024-05-19 10:22:57.065 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 10 TuyaMessage(seqno=1, cmd=10, retcode=0, payload=b'\x87\xa1\xd4\xc8\xf1\xe7\x1d\xe2M\xd7X\xb0@^\xeff)i|\xc5\xb8\x862V\x9ca\x1f\xc1&\x87\x06\x92%!\xb4\xac\xd1\x05\xf1\xab\x96\xd2\nY$\xc6G\x01', crc=2513020778, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:22:57.066 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bfc...2zn] Success: connected to Curtain Motor 3 - 192.168.0.123
2024-05-19 10:22:57.072 ERROR (SyncWorker_6) [homeassistant.util.logging] Exception in _update_handler when dispatching 'localtuya_bfc1faa77d85fe1e6dh2zn': ({'2': 0, '3': 100, '5': 'back'},)
Traceback (most recent call last):
File "/config/custom_components/localtuya/entity.py", line 172, in _update_handler
self.status_updated()
File "/config/custom_components/localtuya/cover.py", line 254, in status_updated
if self._state.isupper():
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'isupper'
2024-05-19 10:22:57.850 INFO (MainThread) [custom_components.localtuya.core.cloud_api] Cloud API connection succeeded.
2024-05-19 10:23:43.417 ERROR (SyncWorker_59) [homeassistant.util.logging] Exception in _update_handler when dispatching 'localtuya_bfc1faa77d85fe1e6dh2zn': ({'2': 0, '3': 89, '5': 'back'},)
Traceback (most recent call last):
File "/config/custom_components/localtuya/entity.py", line 172, in _update_handler
self.status_updated()
File "/config/custom_components/localtuya/cover.py", line 254, in status_updated
if self._state.isupper():
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'isupper'
2024-05-19 10:23:45.114 ERROR (SyncWorker_60) [homeassistant.util.logging] Exception in _update_handler when dispatching 'localtuya_bfc1faa77d85fe1e6dh2zn': ({'2': 0, '3': 100, '5': 'back'},)
Traceback (most recent call last):
File "/config/custom_components/localtuya/entity.py", line 172, in _update_handler
self.status_updated()
File "/config/custom_components/localtuya/cover.py", line 254, in status_updated
if self._state.isupper():
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'isupper'
2024-05-19 10:23:47.301 ERROR (SyncWorker_24) [homeassistant.util.logging] Exception in _update_handler when dispatching 'localtuya_bfc1faa77d85fe1e6dh2zn': ({'2': 0, '3': 86, '5': 'back'},)
Traceback (most recent call last):
File "/config/custom_components/localtuya/entity.py", line 172, in _update_handler
self.status_updated()
File "/config/custom_components/localtuya/cover.py", line 254, in status_updated
if self._state.isupper():
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'isupper'
2024-05-19 10:23:50.289 ERROR (SyncWorker_28) [homeassistant.util.logging] Exception in _update_handler when dispatching 'localtuya_bfc1faa77d85fe1e6dh2zn': ({'2': 0, '3': 100, '5': 'back'},)
Traceback (most recent call last):
File "/config/custom_components/localtuya/entity.py", line 172, in _update_handler
self.status_updated()
File "/config/custom_components/localtuya/cover.py", line 254, in status_updated
if self._state.isupper():
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'isupper'
2024-05-19 10:23:56.227 ERROR (SyncWorker_45) [homeassistant.util.logging] Exception in _update_handler when dispatching 'localtuya_bfc1faa77d85fe1e6dh2zn': ({'2': 0, '3': 50, '5': 'back'},)
Traceback (most recent call last):
File "/config/custom_components/localtuya/entity.py", line 172, in _update_handler
self.status_updated()
File "/config/custom_components/localtuya/cover.py", line 254, in status_updated
if self._state.isupper():
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'isupper'
2024-05-19 10:24:00.162 ERROR (SyncWorker_57) [homeassistant.util.logging] Exception in _update_handler when dispatching 'localtuya_bfc1faa77d85fe1e6dh2zn': ({'2': 0, '3': 82, '5': 'back'},)
Traceback (most recent call last):
File "/config/custom_components/localtuya/entity.py", line 172, in _update_handler
self.status_updated()
File "/config/custom_components/localtuya/cover.py", line 254, in status_updated
if self._state.isupper():
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'isupper'
2024-05-19 10:24:01.704 ERROR (SyncWorker_25) [homeassistant.util.logging] Exception in _update_handler when dispatching 'localtuya_bfc1faa77d85fe1e6dh2zn': ({'2': 70, '3': 82, '5': 'back'},)
Traceback (most recent call last):
File "/config/custom_components/localtuya/entity.py", line 172, in _update_handler
self.status_updated()
File "/config/custom_components/localtuya/cover.py", line 254, in status_updated
if self._state.isupper():
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'isupper'
2024-05-19 10:24:03.571 ERROR (SyncWorker_52) [homeassistant.util.logging] Exception in _update_handler when dispatching 'localtuya_bfc1faa77d85fe1e6dh2zn': ({'2': 70, '3': 71, '5': 'back'},)
Traceback (most recent call last):
File "/config/custom_components/localtuya/entity.py", line 172, in _update_handler
self.status_updated()
File "/config/custom_components/localtuya/cover.py", line 254, in status_updated
if self._state.isupper():
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'isupper'
2024-05-19 10:24:03.915 ERROR (SyncWorker_5) [homeassistant.util.logging] Exception in _update_handler when dispatching 'localtuya_bfc1faa77d85fe1e6dh2zn': ({'2': 33, '3': 71, '5': 'back'},)
Traceback (most recent call last):
File "/config/custom_components/localtuya/entity.py", line 172, in _update_handler
self.status_updated()
File "/config/custom_components/localtuya/cover.py", line 254, in status_updated
if self._state.isupper():
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'isupper'
2024-05-19 10:24:08.414 ERROR (SyncWorker_10) [homeassistant.util.logging] Exception in _update_handler when dispatching 'localtuya_bfc1faa77d85fe1e6dh2zn': ({'2': 33, '3': 34, '5': 'back'},)
Traceback (most recent call last):
File "/config/custom_components/localtuya/entity.py", line 172, in _update_handler
self.status_updated()
File "/config/custom_components/localtuya/cover.py", line 254, in status_updated
if self._state.isupper():
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'isupper'
2024-05-19 10:24:08.917 ERROR (SyncWorker_8) [homeassistant.util.logging] Exception in _update_handler when dispatching 'localtuya_bfc1faa77d85fe1e6dh2zn': ({'2': 33, '3': 34, '5': 'forward'},)
Traceback (most recent call last):
File "/config/custom_components/localtuya/entity.py", line 172, in _update_handler
self.status_updated()
File "/config/custom_components/localtuya/cover.py", line 254, in status_updated
if self._state.isupper():
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'isupper'
2024-05-19 10:24:12.057 ERROR (SyncWorker_49) [homeassistant.util.logging] Exception in _update_handler when dispatching 'localtuya_bfc1faa77d85fe1e6dh2zn': ({'2': 33, '3': 34, '5': 'back'},)
Traceback (most recent call last):
File "/config/custom_components/localtuya/entity.py", line 172, in _update_handler
self.status_updated()
File "/config/custom_components/localtuya/cover.py", line 254, in status_updated
if self._state.isupper():
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'isupper'
2024-05-19 10:24:33.773 ERROR (SyncWorker_12) [homeassistant.util.logging] Exception in _update_handler when dispatching 'localtuya_bfc1faa77d85fe1e6dh2zn': ({'2': 60, '3': 34, '5': 'back'},)
Traceback (most recent call last):
File "/config/custom_components/localtuya/entity.py", line 172, in _update_handler
self.status_updated()
File "/config/custom_components/localtuya/cover.py", line 254, in status_updated
if self._state.isupper():
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'isupper'
2024-05-19 10:24:34.438 ERROR (SyncWorker_19) [homeassistant.util.logging] Exception in _update_handler when dispatching 'localtuya_bfc1faa77d85fe1e6dh2zn': ({'2': 29, '3': 34, '5': 'back'},)
Traceback (most recent call last):
File "/config/custom_components/localtuya/entity.py", line 172, in _update_handler
self.status_updated()
File "/config/custom_components/localtuya/cover.py", line 254, in status_updated
if self._state.isupper():
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'isupper'
2024-05-19 10:24:41.899 ERROR (SyncWorker_34) [homeassistant.util.logging] Exception in _update_handler when dispatching 'localtuya_bfc1faa77d85fe1e6dh2zn': ({'2': 29, '3': 30, '5': 'back'},)
Traceback (most recent call last):
File "/config/custom_components/localtuya/entity.py", line 172, in _update_handler
self.status_updated()
File "/config/custom_components/localtuya/cover.py", line 254, in status_updated
if self._state.isupper():
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'isupper'
2024-05-19 10:25:05.954 DEBUG (MainThread) [custom_components.localtuya.core.cloud_api] Devices has been updated a minutes ago.
2024-05-19 10:25:10.508 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 10 TuyaMessage(seqno=1, cmd=10, retcode=0, payload=b'\x95E\xf9\x82\xf7\x0b\xbe\xf3\x15G\x87V5\x1d\xb2\x19;}l\x83Md\x10\x8bTFA\xa8\x82\xd1\x0bh%!\xb4\xac\xd1\x05\xf1\xab\x96\xd2\nY$\xc6G\x01', crc=476583675, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:25:10.509 DEBUG (MainThread) [custom_components.localtuya.config_flow] Detected DPS: {'2': 29, '3': 30, '5': 'back'}
2024-05-19 10:25:10.509 DEBUG (MainThread) [custom_components.localtuya.config_flow] Total DPS: {'2': 29, '3': 30, '5': 'back'}
2024-05-19 10:25:10.511 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Connection lost: None
2024-05-19 10:25:11.296 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] Curtain Motor 3: Entity configured: {'id': '12', 'state_on': '1', 'friendly_name': 'Fault', 'icon': '', 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>, 'platform': <Platform.BINARY_SENSOR: 'binary_sensor'>}
2024-05-19 10:25:11.296 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] id Already configured with: 1.
2024-05-19 10:25:11.296 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] current_position_dp Already configured with: 3.
2024-05-19 10:25:11.296 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] set_position_dp Already configured with: 2.
2024-05-19 10:25:11.297 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] Curtain Motor 3: Entity configured: {'id': '1', 'current_position_dp': '3', 'set_position_dp': '2', 'commands_set': 'open_close_stop', 'positioning_mode': 'position', 'position_inverted': False, 'friendly_name': 'Curtain', 'icon': '', 'entity_category': 'None', 'platform': <Platform.COVER: 'cover'>}
2024-05-19 10:25:11.297 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] current_position_dp Already configured with: 2.
2024-05-19 10:25:11.297 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] set_position_dp Already configured with: 2.
2024-05-19 10:25:11.297 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] id Already configured with: 5.
2024-05-19 10:25:11.297 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] Curtain Motor 3: Entity configured: {'id': '5', 'select_options': {'forward': 'Forward', 'back': 'Back'}, 'friendly_name': 'Motor Direction', 'icon': 'mdi:swap-vertical', 'entity_category': <EntityCategory.CONFIG: 'config'>, 'platform': <Platform.SELECT: 'select'>}
2024-05-19 10:25:11.298 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] Curtain Motor 3: Configured entities: [{'id': '1', 'current_position_dp': '3', 'set_position_dp': '2', 'commands_set': 'open_close_stop', 'positioning_mode': 'position', 'position_inverted': False, 'friendly_name': 'Curtain', 'icon': '', 'entity_category': 'None', 'platform': <Platform.COVER: 'cover'>}, {'id': '5', 'select_options': {'forward': 'Forward', 'back': 'Back'}, 'friendly_name': 'Motor Direction', 'icon': 'mdi:swap-vertical', 'entity_category': <EntityCategory.CONFIG: 'config'>, 'platform': <Platform.SELECT: 'select'>}, {'id': '12', 'state_on': '1', 'friendly_name': 'Fault', 'icon': '', 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>, 'platform': <Platform.BINARY_SENSOR: 'binary_sensor'>}]
2024-05-19 10:25:11.307 DEBUG (MainThread) [custom_components.localtuya.select] Display Options Configured: ['Forward', 'Back']
2024-05-19 10:25:11.307 DEBUG (MainThread) [custom_components.localtuya.select] Total Raw Options: 2 - Total Display Options: 2
2024-05-19 10:25:11.318 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bfc...2zn] Trying to connect to Curtain Motor 3 - 192.168.0.123...
2024-05-19 10:25:11.328 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 10 TuyaMessage(seqno=1, cmd=10, retcode=0, payload=b'\x95E\xf9\x82\xf7\x0b\xbe\xf3\x15G\x87V5\x1d\xb2\x19;}l\x83Md\x10\x8bTFA\xa8\x82\xd1\x0bh%!\xb4\xac\xd1\x05\xf1\xab\x96\xd2\nY$\xc6G\x01', crc=476583675, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:25:11.330 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bfc...2zn] Success: connected to Curtain Motor 3 - 192.168.0.123
2024-05-19 10:25:11.334 ERROR (SyncWorker_2) [homeassistant.util.logging] Exception in _update_handler when dispatching 'localtuya_bfc1faa77d85fe1e6dh2zn': ({'2': 29, '3': 30, '5': 'back'},)
Traceback (most recent call last):
File "/config/custom_components/localtuya/entity.py", line 172, in _update_handler
self.status_updated()
File "/config/custom_components/localtuya/cover.py", line 254, in status_updated
if self._state.isupper():
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'isupper'
2024-05-19 10:25:12.224 INFO (MainThread) [custom_components.localtuya.core.cloud_api] Cloud API connection succeeded.
2024-05-19 10:25:21.337 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:25:31.347 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:25:41.352 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:25:51.357 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:26:01.366 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:26:11.372 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:26:21.377 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:26:31.387 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:26:41.400 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:26:51.405 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:27:01.411 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:27:11.417 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:27:21.425 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:27:31.435 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:27:41.444 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:27:51.451 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:28:01.457 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:28:11.462 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:28:21.471 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:28:31.476 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 10:28:41.498 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
Try installing "master" with https://github.com/xZetsubou/hass-localtuya/commit/49ccdb6b2051c0113c792917c13ef77383f23ea6 changes version choose it when you re-download the integration
Yes, it finally works! Detected DPS are same as before, but now motor is avalible and controls from HA perfectly fine.
Logs:
2024-05-19 11:18:45.378 DEBUG (MainThread) [custom_components.localtuya.core.cloud_api] Devices has been updated a minutes ago.
2024-05-19 11:18:49.833 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 10 TuyaMessage(seqno=1, cmd=10, retcode=0, payload=b'\x95E\xf9\x82\xf7\x0b\xbe\xf3\x15G\x87V5\x1d\xb2\x19;}l\x83Md\x10\x8bTFA\xa8\x82\xd1\x0bh%!\xb4\xac\xd1\x05\xf1\xab\x96\xd2\nY$\xc6G\x01', crc=476583675, crc_good=True, prefix=21930, iv=None)
2024-05-19 11:18:49.835 DEBUG (MainThread) [custom_components.localtuya.config_flow] Detected DPS: {'2': 29, '3': 30, '5': 'back'}
2024-05-19 11:18:49.836 DEBUG (MainThread) [custom_components.localtuya.config_flow] Total DPS: {'2': 29, '3': 30, '5': 'back'}
2024-05-19 11:18:49.838 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Connection lost: None
2024-05-19 11:18:51.324 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] Curtain Motor 3: Entity configured: {'id': '12', 'state_on': '1', 'friendly_name': 'Fault', 'icon': '', 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>, 'platform': <Platform.BINARY_SENSOR: 'binary_sensor'>}
2024-05-19 11:18:51.325 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] id Already configured with: 1.
2024-05-19 11:18:51.325 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] current_position_dp Already configured with: 3.
2024-05-19 11:18:51.325 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] set_position_dp Already configured with: 2.
2024-05-19 11:18:51.325 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] Curtain Motor 3: Entity configured: {'id': '1', 'current_position_dp': '3', 'set_position_dp': '2', 'commands_set': 'open_close_stop', 'positioning_mode': 'position', 'position_inverted': False, 'friendly_name': 'Curtain', 'icon': '', 'entity_category': 'None', 'platform': <Platform.COVER: 'cover'>}
2024-05-19 11:18:51.326 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] current_position_dp Already configured with: 2.
2024-05-19 11:18:51.326 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] set_position_dp Already configured with: 2.
2024-05-19 11:18:51.326 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] id Already configured with: 5.
2024-05-19 11:18:51.326 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] Curtain Motor 3: Entity configured: {'id': '5', 'select_options': {'forward': 'Forward', 'back': 'Back'}, 'friendly_name': 'Motor Direction', 'icon': 'mdi:swap-vertical', 'entity_category': <EntityCategory.CONFIG: 'config'>, 'platform': <Platform.SELECT: 'select'>}
2024-05-19 11:18:51.327 DEBUG (MainThread) [custom_components.localtuya.core.ha_entities] Curtain Motor 3: Configured entities: [{'id': '1', 'current_position_dp': '3', 'set_position_dp': '2', 'commands_set': 'open_close_stop', 'positioning_mode': 'position', 'position_inverted': False, 'friendly_name': 'Curtain', 'icon': '', 'entity_category': 'None', 'platform': <Platform.COVER: 'cover'>}, {'id': '5', 'select_options': {'forward': 'Forward', 'back': 'Back'}, 'friendly_name': 'Motor Direction', 'icon': 'mdi:swap-vertical', 'entity_category': <EntityCategory.CONFIG: 'config'>, 'platform': <Platform.SELECT: 'select'>}, {'id': '12', 'state_on': '1', 'friendly_name': 'Fault', 'icon': '', 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>, 'platform': <Platform.BINARY_SENSOR: 'binary_sensor'>}]
2024-05-19 11:18:51.373 DEBUG (MainThread) [custom_components.localtuya.select] Display Options Configured: ['Forward', 'Back']
2024-05-19 11:18:51.373 DEBUG (MainThread) [custom_components.localtuya.select] Total Raw Options: 2 - Total Display Options: 2
2024-05-19 11:18:51.379 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bfc...2zn] Trying to connect to Curtain Motor 3 - 192.168.0.123...
2024-05-19 11:18:51.399 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 10 TuyaMessage(seqno=1, cmd=10, retcode=0, payload=b'\x95E\xf9\x82\xf7\x0b\xbe\xf3\x15G\x87V5\x1d\xb2\x19;}l\x83Md\x10\x8bTFA\xa8\x82\xd1\x0bh%!\xb4\xac\xd1\x05\xf1\xab\x96\xd2\nY$\xc6G\x01', crc=476583675, crc_good=True, prefix=21930, iv=None)
2024-05-19 11:18:51.400 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bfc...2zn] Success: connected to Curtain Motor 3 - 192.168.0.123
2024-05-19 11:18:52.092 INFO (MainThread) [custom_components.localtuya.core.cloud_api] Cloud API connection succeeded.
2024-05-19 11:19:00.717 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 7 TuyaMessage(seqno=2, cmd=7, retcode=0, payload=b'', crc=416269786, crc_good=True, prefix=21930, iv=None)
2024-05-19 11:19:00.829 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00Q!\x00\x00\x00\x014\xac\xcf\xe0\r4\x9b\x852\xb8\xf35\xcex\xbb\x92\\c\xc4\x88\xc8\xa2\x1e\xa1W\xd8\xc7yt\xa9\x15\x16', crc=1311365375, crc_good=True, prefix=21930, iv=None)
2024-05-19 11:19:04.780 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00Q"\x00\x00\x00\x01\xf13\xf7\xb5\x15\xbc@e\x13\x8d\\\xc2\xf7!b\xc9\xd3\xda\xd0a\xd22O\x89md\xe2\xd5\xc0\x0cL)', crc=793775549, crc_good=True, prefix=21930, iv=None)
2024-05-19 11:19:11.411 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-05-19 11:19:11.988 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 7 TuyaMessage(seqno=4, cmd=7, retcode=0, payload=b'', crc=3089766919, crc_good=True, prefix=21930, iv=None)
2024-05-19 11:19:12.080 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00Q#\x00\x00\x00\x01\x85\xc5\xba\xd1A\x93>]]\xd4\x9b\xf8Tz\x1d\xd8\xbf\x9eC\x19\x83\x87\xd3\xd1\x9e^\x82;\x02?\xbb\xf8', crc=4137211007, crc_good=True, prefix=21930, iv=None)
2024-05-19 11:19:14.156 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 7 TuyaMessage(seqno=5, cmd=7, retcode=0, payload=b'', crc=1706869634, crc_good=True, prefix=21930, iv=None)
2024-05-19 11:19:14.232 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 7 TuyaMessage(seqno=6, cmd=7, retcode=0, payload=b'', crc=3631656780, crc_good=True, prefix=21930, iv=None)
2024-05-19 11:19:14.266 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00Q$\x00\x00\x00\x01\x85\xc5\xba\xd1A\x93>]]\xd4\x9b\xf8Tz\x1d\xd8Fh\xfa\xd9\xc7am\xf2G\xd8\xd0\x02z\xd5\xe5\x04\x1c\x1b\xb2+Z>\xe2v\xdf:\xb5\xfa\x9d\x0f+\xb7', crc=1598556363, crc_good=True, prefix=21930, iv=None)
2024-05-19 11:19:14.660 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00Q%\x00\x00\x00\x01\xddXK\xac)\x9e\x87Sl-\x11\xff\xf3\x82\x90\x8b\xe4"z\xfaJ4A\xc0\x9cw\xc0\xb31\xbej\xd7', crc=2661789775, crc_good=True, prefix=21930, iv=None)
2024-05-19 11:19:14.700 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 7 TuyaMessage(seqno=7, cmd=7, retcode=0, payload=b'', crc=98596553, crc_good=True, prefix=21930, iv=None)
2024-05-19 11:19:14.777 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00Q&\x00\x00\x00\x01\x1c\r\xaa\x89(\xee\xd2\x00\xc7Q\xaf\xf5\xf9\xa7c\x1d\xe4"z\xfaJ4A\xc0\x9cw\xc0\xb31\xbej\xd7', crc=3476037841, crc_good=True, prefix=21930, iv=None)
2024-05-19 11:19:18.396 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b"3.3\x00\x00\x00\x00\x00\x00Q'\x00\x00\x00\x01w\xe7\xa8Q\xc0\x8e1X\xc3\xcd\xf7\xb8\xe4\x0f\xbf\x99\xc2qf\x0cN\x11\xda\xccS\x95d\\\xf3\xa7\xca\xd7", crc=3131902304, crc_good=True, prefix=21930, iv=None)
2024-05-19 11:19:21.416 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfc...2zn] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
This issue was closed because it was resolved on the release: []()
LocalTuya Version
3.2.5.1
Home Assistant Version
2024.5.2
Environment
What happened?
When adding a curtain motor, the integration writes an error "Connection to device succeeded but no datapoints could be found.". But i already added 3 same motors with same firmware, etc. If you first try to control the motor through the tuya application, and then try to add it to localtuya, the motor is successfully added, but homeassistant writes that “Device is not available”. In logs you can see that when adding a device, the integration does not see all datapoints. It sees only dp 3, which is responsible for the percentage of curtains opening. Moreover, if you request datapoints in tuya iot, all datapoints are shown there, like the other three motors.
In log you can see outputs when:
Steps to reproduce.
None
Relevant log output
Diagnostics information.
No response