Open stumain opened 2 years ago
I'm having the same issue adding a temperature and humidity sensor, my tuyadebug test.py looks pretty much the same
The error from localtuya integration says there are no datapoints when I add the device, but there are DPs when I use tinytuya wizard to poll my network and see the device
[Temperature and humidity alarm] - 192.168.100.181 - Off - DPS: {'1': 264, '2': 451, '4': 78, '9': 'f', '10': 500, '11': -10, '12': 900, '13': 100, '14': 'cancel', '15': 'cancel', '16': 88, '17': 30, '18': 30, '21': False, '23': 0, '24': 0}
I didn't know about tinytuya - cool. Just installed it and configured it. Devices detected from cloud correctly, but the scan of those devices fails:
TinyTuya (Tuya device scanner) [1.7.1]
Loaded devices.json - 2 devices:
Device Listing
[
{
"name": "Garden Lights Breaker",
"id": "bf2624e25637c6xxxxxr",
"key": "fd508xxxxxxxx",
"mac": "fc:67:1f:2f:xx:xx",
"category": "dlq",
"product_name": "Breaker ",
"product_id": "r9kg2g1uhhyicycb",
"biz_type": 0,
"model": "",
"sub": false,
"icon": "https://images.tuyaeu.com/smart/icon/bay1591839287906taVN/073f2e2ff5f3c3c3b62c096c74145863.png"
},
{
"name": "Pool Breaker",
"id": "bf8aa2ec768926xxxxx",
"key": "861eb8xxxxxxx",
"mac": "fc:67:1f:2f:xx:xx",
"category": "dlq",
"product_name": "Breaker ",
"product_id": "r9kg2g1uhhyicycb",
"biz_type": 0,
"model": "",
"sub": false,
"icon": "https://images.tuyaeu.com/smart/icon/bay1591839287906taVN/073f2e2ff5f3c3c3b62c096c74145863.png"
}
]
Poll local devices? (Y/n): y
Scanning local network for Tuya devices (retry 17 times)...
0 local devices discovered
Polling local devices...
[Garden Lights Breaker] - 0 - Error: No IP found
[Pool Breaker] - 0 - Error: No IP found
>> Saving device snapshot data to snapshot.json
Done.
Have enabled the devices via the Tuya Smart Life app and the app is not currently running. Devices are pinging on my network.
The problem
Have a Tuya smart breaker that is physically the same as SMT006 which is already supported. But when trying to add my device it errors: "Connection to device succeeded but no datapoints found, please try again. Create a new issue and include debug logs if problem persists." The devices are seen on the network correctly based on pulling details from Tuya Cloud.
Can add the devices using cloud Tuya integration but it only reports Current(A), Voltage(V), Active Power(kW) and Switch status (on/off). It is not reporting Leakage Value(mA) which Tuya app is showing - leakage_fault_value or leakage_current. I think the devices are based on the following: [https://developer.tuya.com/en/docs/cloud/electric-energy-open-capacity?id=Kbi599hlehgkn]
Environment
Steps to reproduce
Configuration
configuration.yaml
orconfig_flow
DP dump
Exception raised using tuyadebug test.py script:
Using Tuya IoT platform there are no DP's listed in the getdeviceinfo / attributes / Specification....
GetDeviceSpecification
GetDeviceInformation
GetSpecificationAndPropertiesOfDevice