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
418 stars 54 forks source link

[Bug]: Pet Feeder: no datapoints could be found. #374

Open gaspuas opened 3 weeks ago

gaspuas commented 3 weeks ago

LocalTuya Version

2024.9.0

Home Assistant Version

2024.10.3

Environment

What happened?

Trying to connect my pet feeder and get this message 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).

Steps to reproduce.

Added the device Error

Relevant log output

2024-10-22 09:57:09.193 ERROR (MainThread) [custom_components.tuya_local.device] Failed to refresh device state for Test.
2024-10-22 10:24:13.908 DEBUG (MainThread) [custom_components.localtuya.coordinator] [eb9...cke - Control Remoto con Sensor de Temperatura] Trying to connect to: 192.168.68.106...
2024-10-22 10:24:21.911 DEBUG (MainThread) [custom_components.localtuya.coordinator] [eb9...cke - Control Remoto con Sensor de Temperatura] Trying to connect to: 192.168.68.106...
2024-10-22 10:24:29.914 DEBUG (MainThread) [custom_components.localtuya.coordinator] [eb9...cke - Control Remoto con Sensor de Temperatura] Trying to connect to: 192.168.68.106...
2024-10-22 10:24:32.787 DEBUG (MainThread) [custom_components.localtuya.config_flow] [eb8...ct2 - Alimentador para Mascotas] Detected DPS: {}
2024-10-22 10:24:32.793 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [eb8...ct2] Connection lost: None

Diagnostics information.

tuya-01JAFQQEDDA6BFX520V3E1S6AF-Alimentador para Mascotas Smart HD-80151abad81e6c98adf656a2db64b914.json

xZetsubou commented 2 weeks ago

Diagnostics are from the official integration not this, however your device maybe a low-power device it it's running on batteries, So try specify sleep time for the device e.g. 7200 which is 2 hour, and put 0 in manual DPS, This is just assuming that device actually updates within 2 hours.

gaspuas commented 2 weeks ago

how do i know which is the sleep time, where i can find this? It doesnt run on batteries btw

xZetsubou commented 2 weeks ago

If it doesn't run on batteries maybe try adding "0" on the manual DPS, and wait for the device it self to update the entity value, the device maybe doesn't return "status" however it may reports the changes if a DP state changed.

note: that both manual dps and sleep time are an options when you connect to the device bottom of IP and ID etc...

github-actions[bot] commented 2 days 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.