make-all / tuya-local

Local support for Tuya devices in Home Assistant
MIT License
1.28k stars 503 forks source link

Leo's Loo Too not detected #1840

Closed Jster42 closed 5 months ago

Jster42 commented 5 months ago

Describe the bug Leo's Loo Too not detected

To Reproduce Configure integration and put in device id and local key, a few devices are shown, accepted asc_wifi_circuit_breaker to see what logs would be created.

manual tinytuya output:

New base   Product ID = 1badzyvwh1e1hrog  [Valid Broadcast]:
    Address = xxx.xxx.xxx.xxx   Device ID = xxxxxxxxxx (len:22)  Local Key =xxxxxxxxxxxxxx  Version = 3.3  Type = default, MAC = xxxxxxxxxxxxxxx
    Status: {'1': True, '2': 'auto_clean', '5': 426, '6': 33, '7': 1, '9': False, '10': False, '13': False, '21': 0, '22': 0, '101': 15, '109': 30, '111': True, '112': False, '113': True, '115': False}

Expected behavior I would have expected it to be matched properly

Additional context Just for fun I removed all other yaml devices to see if it would get picked up, no matches

If the bug involves a device, then please include device diagnostics from Settings / Devices & Services / Tuya Local (your device) / "1 device"

Please check if there are messages from Tuya Local in the Home Assistant log (Settings / System / Logs), and include those too.

Device matches asc_wifi_circuit_breaker with quality of 25%. DPS: {"updated_at": 1713488128.8003364, "1": true, "2": "auto_clean", "5": 426, "6": 33, "7": 1, "9": false, "10": false, "13": false, "21": 0, "22": 0, "101": 15, "109": 30, "111": true, "112": false, "113": true, "115": false}

Not sure if this is related... but am including it

Detected blocking call to sleep inside the event loop by custom integration 'tuya_local' at custom_components/tuya_local/device.py, line 77: self._api = tinytuya.Device(dev_id, address, local_key), 

If applicable, add screenshots to help explain your problem.

image

image

Jster42 commented 5 months ago

I have tested with the optional flag on dps 16, the device is detected with this change.

Thank you!