Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No datapoints could be found #324

Closed
3 tasks
Maxxxel opened this issue Aug 7, 2024 · 6 comments
Closed
3 tasks

No datapoints could be found #324

Maxxxel opened this issue Aug 7, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@Maxxxel
Copy link

Maxxxel commented Aug 7, 2024

LocalTuya Version

2024.7.0

Home Assistant Version

2024.6.4

Environment

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

What happened?

I can't add the device in localtuya.i receive the error message that no datapoints could be found.

I have a gateway and a sub device, both recently installed. I can control them from smart life and see them my tuya iot project as online.

Steps to reproduce.

  1. Click Add device
  2. Check Device information
  3. Click send

Screenshot_20240807_153344_Home Assistant

Relevant log output

2024-08-07 14:27:35.794 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] 3.4 or 3.5 device: negotiating a new session key
2024-08-07 14:27:35.794 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] final payload for cmd 3: b'0123456789abcdef'
2024-08-07 14:27:35.798 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Command 3 waiting for seq. number -102
2024-08-07 14:27:35.806 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Dispatching message CMD 4 TuyaMessage(seqno=45704, cmd=4, retcode=0, payload=b'\xe8w\xfe\xc2\x8d\xac\xf0Hr\xe6\xaaJ\xc2Hh\xcaft\x01\x9a\xba\xaa\xc2\xd6.p\xcf;\x90\xe2\\\x08|]&\n\xfd\xad\x1c\xa9\x9a\xef\x9a\x05\x0f\x97C|\xc0\x0e\xdd6-}\xe7\x90\x03:\xd6\x91\xa7\x98\x03\xa1', crc=b"g\xb2b\xa1J\xaa\x19\xb8\xa1!7\xcc\xcdZ\x12\xbb\x92\xd2U>\xdb'W\x8e\xba\xd0\xbb\x8c\x0fl\xb4\x05", crc_good=True, prefix=21930, iv=None)
2024-08-07 14:27:35.806 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Got key negotiation response
2024-08-07 14:27:35.809 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] decrypted session key negotiation step 2: payload=b'4542fe722965f45b&"\x92\xff\x17\x8b\xa6mU\xd9^\xaa\xeb\x1d\xb4|-\xb5 \x97\xeb\\t\xdd\xcd\x87n\n\x02\xf1E\x06'
2024-08-07 14:27:35.810 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] final payload for cmd 5: b"\xa7u\x87D\x0b\xe5\xdc\xda\xff\xeao\xeb0O\xa3'B\xd9\xe4\x0f\xd0\xbd\xc0\x00\x1c\xef\x8f\xf9\x05\x13\xbe "
2024-08-07 14:27:35.878 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Session key negotiate success! session key: b"\xfe-\xeeq\x08u0\xb7\x0eud'\x9f\x8cI\xd0"
2024-08-07 14:27:35.878 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Sending command 10 (device type: v3.4) DPS: None
2024-08-07 14:27:35.878 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Sending payload: b'{"t":"1723037255","cid":"b451bfcd38c4787e"}'
2024-08-07 14:27:35.879 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] final payload for cmd 16: b'{"t":"1723037255","cid":"b451bfcd38c4787e"}'
2024-08-07 14:27:35.883 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Command 16 waiting for seq. number 45705
2024-08-07 14:27:35.891 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Dispatching message CMD 16 TuyaMessage(seqno=45705, cmd=16, retcode=1, payload=b'\xbf\xce\x97\x9do\xca\xc7\xee\xde\x12\xc0\xce\xbc\xa11<\xa1:\xa9;\xc1x\xef\xca}\xbcb*\\%\x815', crc=b'/\xc1}\xdb\x92\xaaQ \xc7\x81h\x0e\xac|\xd2\xdc\x17\xe1\xea\xc6"\xd08\x17<T\\\x84\xac\xc3\r\xcf', crc_good=True, prefix=21930, iv=None)
2024-08-07 14:27:35.891 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Dispatching sequence number 45705
2024-08-07 14:27:35.894 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Sending command 10 (device type: v3.4) DPS: None
2024-08-07 14:27:35.894 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Sending payload: b'{"t":"1723037255","cid":"b451bfcd38c4787e"}'
2024-08-07 14:27:35.895 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] final payload for cmd 16: b'{"t":"1723037255","cid":"b451bfcd38c4787e"}'
2024-08-07 14:27:35.898 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Command 16 waiting for seq. number 45706
2024-08-07 14:27:35.906 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Dispatching message CMD 16 TuyaMessage(seqno=45706, cmd=16, retcode=1, payload=b'\xbf\xce\x97\x9do\xca\xc7\xee\xde\x12\xc0\xce\xbc\xa11<\xa1:\xa9;\xc1x\xef\xca}\xbcb*\\%\x815', crc=b'\xfc\x81s\xa4\xff\xba^\x8a\x87\xc3\x1d\xc5o\xb5>\x13\x96\xd4.(\x8a\xfd>m)\x92 \xd5\xf0\\\xef\xaf', crc_good=True, prefix=21930, iv=None)
2024-08-07 14:27:35.906 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Dispatching sequence number 45706
2024-08-07 14:27:35.909 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Sending command 10 (device type: v3.4) DPS: None
2024-08-07 14:27:35.909 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Sending payload: b'{"t":"1723037255","cid":"b451bfcd38c4787e"}'
2024-08-07 14:27:35.910 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] final payload for cmd 16: b'{"t":"1723037255","cid":"b451bfcd38c4787e"}'
2024-08-07 14:27:35.913 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Command 16 waiting for seq. number 45707
2024-08-07 14:27:35.937 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bf6...qvt - Waschmaschine] Trying to connect to: 192.168.178.66...
2024-08-07 14:27:35.939 DEBUG (MainThread) [custom_components.localtuya.coordinator] [bff...jxq - Luftsensor] Trying to connect to: 192.168.178.69...
2024-08-07 14:27:35.982 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Dispatching message CMD 16 TuyaMessage(seqno=45707, cmd=16, retcode=1, payload=b'\xbf\xce\x97\x9do\xca\xc7\xee\xde\x12\xc0\xce\xbc\xa11<\xa1:\xa9;\xc1x\xef\xca}\xbcb*\\%\x815', crc=b'\xc3\xf8Qyd5\xd6s\xe2@Sc\x06WW\xb6\xa4\xe7\xb6\x03\xde\xce\xd3\x93<R\x83uIu\xb39', crc_good=True, prefix=21930, iv=None)
2024-08-07 14:27:35.982 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Dispatching sequence number 45707
2024-08-07 14:27:35.986 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Sending command 10 (device type: v3.4) DPS: None
2024-08-07 14:27:35.987 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Sending payload: b'{"t":"1723037255","cid":"b451bfcd38c4787e"}'
2024-08-07 14:27:35.988 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] final payload for cmd 16: b'{"t":"1723037255","cid":"b451bfcd38c4787e"}'
2024-08-07 14:27:35.991 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Command 16 waiting for seq. number 45708
2024-08-07 14:27:35.998 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Dispatching message CMD 16 TuyaMessage(seqno=45708, cmd=16, retcode=1, payload=b'\xbf\xce\x97\x9do\xca\xc7\xee\xde\x12\xc0\xce\xbc\xa11<\xa1:\xa9;\xc1x\xef\xca}\xbcb*\\%\x815', crc=b'\x15\xe3]\xe1\xe2\xe4\xd7\xba\x81\xcd\x06;\xb3\x11\xaa*\x05.mz\x94\xb4\xff\x8b\xb4\x02n\xc5\xfb\xb2\x99\xf4', crc_good=True, prefix=21930, iv=None)
2024-08-07 14:27:35.998 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Dispatching sequence number 45708
2024-08-07 14:27:36.000 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Sending command 10 (device type: v3.4) DPS: None
2024-08-07 14:27:36.001 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Sending payload: b'{"t":"1723037256","cid":"b451bfcd38c4787e"}'
2024-08-07 14:27:36.001 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] final payload for cmd 16: b'{"t":"1723037256","cid":"b451bfcd38c4787e"}'
2024-08-07 14:27:36.004 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Command 16 waiting for seq. number 45709
2024-08-07 14:27:36.016 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Dispatching message CMD 16 TuyaMessage(seqno=45709, cmd=16, retcode=1, payload=b'\xbf\xce\x97\x9do\xca\xc7\xee\xde\x12\xc0\xce\xbc\xa11<\xa1:\xa9;\xc1x\xef\xca}\xbcb*\\%\x815', crc=b'\xfa\xaeAK\xb1\xbaK)t\xb2\xd5T1\x92q\x83\xddX\xff\x19\x1f\x98\xa4%\xf9k\x02\xa2%\xab\xa8\xf2', crc_good=True, prefix=21930, iv=None)
2024-08-07 14:27:36.016 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Dispatching sequence number 45709
2024-08-07 14:27:36.020 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Sending command 10 (device type: v3.4) DPS: None
2024-08-07 14:27:36.020 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Sending payload: b'{"t":"1723037256","cid":"b451bfcd38c4787e"}'
2024-08-07 14:27:36.021 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] final payload for cmd 16: b'{"t":"1723037256","cid":"b451bfcd38c4787e"}'
2024-08-07 14:27:36.024 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Command 16 waiting for seq. number 45710
2024-08-07 14:27:36.098 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Dispatching message CMD 16 TuyaMessage(seqno=45710, cmd=16, retcode=1, payload=b'\xbf\xce\x97\x9do\xca\xc7\xee\xde\x12\xc0\xce\xbc\xa11<\xa1:\xa9;\xc1x\xef\xca}\xbcb*\\%\x815', crc=b'L:\xa1\xe5f\xc4\xf7;\xab\xe9/\xd6\x90\xb7\x854\xb2\xfa\xa0\xd7*\x8c\xe4br\xb6Zj\xf5\xd3\xbd\xa2', crc_good=True, prefix=21930, iv=None)
2024-08-07 14:27:36.098 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Dispatching sequence number 45710
2024-08-07 14:27:36.103 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Sending command 10 (device type: v3.4) DPS: None
2024-08-07 14:27:36.104 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Sending payload: b'{"t":"1723037256","cid":"b451bfcd38c4787e"}'
2024-08-07 14:27:36.104 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] final payload for cmd 16: b'{"t":"1723037256","cid":"b451bfcd38c4787e"}'
2024-08-07 14:27:36.111 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Command 16 waiting for seq. number 45711
2024-08-07 14:27:36.119 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Dispatching message CMD 16 TuyaMessage(seqno=45711, cmd=16, retcode=1, payload=b'\xbf\xce\x97\x9do\xca\xc7\xee\xde\x12\xc0\xce\xbc\xa11<\xa1:\xa9;\xc1x\xef\xca}\xbcb*\\%\x815', crc=b'?-v\x8c\x18=\x1c\t\x95C\xba\x06\x8d\xf7!\x11\xe89\xdbp\xc0\x84\xfaz\xa8\x7f\xd0b\xef\xa5\x7fT', crc_good=True, prefix=21930, iv=None)
2024-08-07 14:27:36.120 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Dispatching sequence number 45711
2024-08-07 14:27:36.123 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Sending command 10 (device type: v3.4) DPS: None
2024-08-07 14:27:36.124 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Sending payload: b'{"t":"1723037256","cid":"b451bfcd38c4787e"}'
2024-08-07 14:27:36.124 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] final payload for cmd 16: b'{"t":"1723037256","cid":"b451bfcd38c4787e"}'
2024-08-07 14:27:36.130 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Command 16 waiting for seq. number 45712
2024-08-07 14:27:36.196 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Dispatching message CMD 16 TuyaMessage(seqno=45712, cmd=16, retcode=1, payload=b'\xbf\xce\x97\x9do\xca\xc7\xee\xde\x12\xc0\xce\xbc\xa11<\xa1:\xa9;\xc1x\xef\xca}\xbcb*\\%\x815', crc=b's\xefd\x9fS\xbe\xa2\xbb\x9do]2\x0e\x19\x99\xb3\x06iF\x9b\t\n\xe1\xa2u\xc6\xbc\xee\xdc\xcc@\x11', crc_good=True, prefix=21930, iv=None)
2024-08-07 14:27:36.197 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Dispatching sequence number 45712
2024-08-07 14:27:36.200 DEBUG (MainThread) [custom_components.localtuya.config_flow] [bf3...hkk - Smart Dual Water Timer] Detected DPS: {}
2024-08-07 14:27:36.200 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Closing connection
2024-08-07 14:27:36.201 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Cleaning up session.
2024-08-07 14:27:36.208 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Connection lost: None
2024-08-07 14:27:36.209 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf3...hkk] Cleaning up session.
2024-08-07 14:27:36.813 INFO (MainThread) [custom_components.pyscript.file.SmartMeterLogin.keep_alive_smart_meter_service] Blinking for keep-alive...

Diagnostics information.

No response

@Maxxxel Maxxxel added the bug Something isn't working label Aug 7, 2024
@coolgoh98
Copy link

try to power on and off your gateway? I have the same issue previosly. but i belive it still have bug. becuase after my gateway is turn off, the zigbee become unavaliable.

@xZetsubou
Copy link
Owner

No this is different issue 😄 , the sub-device doesn't return any status

  • Are you sure about the "node id" that it's correct?
  • Are you sure the sub-device is connected to gateway and working good? ensure that sub-device is working as well on smart life

@Maxxxel
Copy link
Author

Maxxxel commented Aug 8, 2024

No this is different issue 😄 , the sub-device doesn't return any status

  • Are you sure about the "node id" that it's correct?
  • Are you sure the sub-device is connected to gateway and working good? ensure that sub-device is working as well on smart life

Hey, the node id was automatically filled in.
The device is connected to the gateway and both devices show up in smart life. The water timer was working fine there.

I never checked the gateway so I clicked on it in the smart life app and saw that I could add devices to it and it discovered the water timer. So I added it.

After doing that I could add the water timer but not the gateway with localtuya.

Now I'm adding the entities step by step. Switches and sensors are easy, but I have problems adding countdown timers and the battery sensor. As well as an entity where I can 'name' the timer.

Screenshot_20240808_111714_Home Assistant.jpg

Screenshot_20240808_111830_Samsung Internet.jpg

@xZetsubou
Copy link
Owner

the gateway normally shouldn't been added into localtuya unless it has some features to control otherwise it just a bridge between localtuya and sub-device, So adding the device into gateway is enough for Localtuya to connect to the sub-device.

Now I'm adding the entities step by step. Switches and sensors are easy, but I have problems adding countdown timers and the battery sensor. As well as an entity where I can 'name' the timer.

Is the automatically setup entitles doesn't works? You can download & check entry diagnostics it should includes all your devices with "dps_data" object where it helps you more then IoT.

@Maxxxel
Copy link
Author

Maxxxel commented Aug 8, 2024

the gateway normally shouldn't been added into localtuya unless it has some features to control otherwise it just a bridge between localtuya and sub-device, So adding the device into gateway is enough for Localtuya to connect to the sub-device.

Now I'm adding the entities step by step. Switches and sensors are easy, but I have problems adding countdown timers and the battery sensor. As well as an entity where I can 'name' the timer.

Is the automatically setup entitles doesn't works? You can download & check entry diagnostics it should includes all your devices with "dps_data" object where it helps you more then IoT.

Ye thanks, found the Infos and already added most entities.
Only thing missing is fault (bitmap) and normal_timer (String).

In smart Life the normal timer holds alot of data like:

  • time start
  • duration
  • cylce

As a string it's "AAABSgAVf2QBB+gICAEA", I guess base64 encoded values for each of those settings..

Guess these things can't be added?

@xZetsubou
Copy link
Owner

Yes for now there is no handing for base64 values. If this is still an issue feel free to re-open it ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants