make-all / tuya-local

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

QCB2-WB Wi-Fi SP smart circuit breaker Device matches None with quality of 0% (Device not supported) #1769

Closed alikarodi closed 5 months ago

alikarodi commented 6 months ago

This form is for reporting bugs. If you have encountered a bug, you should generally have some log messages or device diagnostics to show something is going wrong. If your problem is more of a question or a request for help, then Discussions is probably a more suitable venue.

Describe the bug A clear and concise description of what the bug is. Device not supported. 2024-03-23 11:36:56.941 WARNING (MainThread) [homeassistant.util.async_] 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), please create a bug report at https://github.com/make-all/tuya-local/issues 2024-03-23 11:36:58.837 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches None with quality of 0%. DPS: {"updated_at": 1711190217.426434, "1": 2, "16": false, "102": "Trip", "103": "Closed", "104": "Trip", "105": "Closed", "107": "Trip", "110": "Normal", "112": false, "114": 63, "115": 280, "116": 165, "118": 800, "119": 2000, "125": 2, "131": 259} 2024-03-23 11:36:58.837 WARNING (MainThread) [custom_components.tuya_local.config_flow] Report this to https://github.com/make-all/tuya-local/issues/

To Reproduce Steps to reproduce the behavior including the device the issue was observed with:

Expected behavior A clear and concise description of what you expected to happen.

Additional context Add any other context about the problem here.

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.

If applicable, add screenshots to help explain your problem.

tinytuya scan: Device Listing

[ { "name": "QCB2-single phase smart circuit breaker", "id": "ff637fbefe67ffe3caaiuw", "key": "????????????????", "mac": "aa:aa:aa:aa:aa:aa", "uuid": "9fa7779734b4fa2b", "sn": "10010011000210", "category": "dlq", "product_name": "QCB2-single phase smart circuit breaker", "product_id": "l1t5oophgyzpdrag", "biz_type": 18, "model": "", "sub": false, "icon": "https://images.tuyaeu.com/smart/icon/bay1638066107344ANbl/1853af3a98f2840a63ce3772edfde441.jpg", "mapping": { "1": { "code": "forward_energy_total", "type": "Integer", "values": { "unit": "kW\u00b7h", "min": 0, "max": 99999999, "scale": 2, "step": 1 } }, "6": { "code": "phase_a", "type": "Raw", "values": { "maxlen": 128 } }, "16": { "code": "switch", "type": "Boolean", "values": {} }, "102": { "code": "ov_set", "type": "Enum", "values": { "range": [ "Closed", "Alarm", "Trip" ] } }, "103": { "code": "uv_set", "type": "Enum", "values": { "range": [ "Closed", "Alarm", "Trip" ] } }, "104": { "code": "oc_set", "type": "Enum", "values": { "range": [ "Closed", "Alarm", "Trip" ] } }, "105": { "code": "op_set", "type": "Enum", "values": { "range": [ "Closed", "Alarm", "Trip" ] } }, "107": { "code": "temp_set", "type": "Enum", "values": { "range": [ "Closed", "Alarm", "Trip" ] } }, "109": { "code": "online_state", "type": "Enum", "values": { "range": [ "online", "offline" ] } }, "110": { "code": "event", "type": "Enum", "values": { "range": [ "Normal", "Over_Current_Trip", "Over_Power_Trip", "High_Temp_Trip", "Over_Voltage_Trip", "Under_Voltage_Trip", "Over_Current_Alarm", "Over_Power_Alarm", "High_Temp_Alarm", "Over_Voltage_Alarm", "Under_Voltage_Alarm", "Remote_ON", "Remote_OFF", "Manual_ON", "Manual_OFF", "Leakage_Trip", "Leakage_Alarm", "Restore_Default", "Automatic_Closing", "Electricity_Shortage", "Electricity_Shortage_Alarm" ] } }, "112": { "code": "auto_reclosing", "type": "Boolean", "values": {} }, "114": { "code": "c_thresh", "type": "Integer", "values": { "unit": "A", "min": 1, "max": 63, "scale": 0, "step": 1 } }, "115": { "code": "ov_thresh", "type": "Integer", "values": { "unit": "V", "min": 245, "max": 295, "scale": 0, "step": 1 } }, "116": { "code": "uv_thresh", "type": "Integer", "values": { "unit": "V", "min": 145, "max": 220, "scale": 0, "step": 1 } }, "118": { "code": "temp_thresh", "type": "Integer", "values": { "unit": "\u00b0C", "min": -250, "max": 1000, "scale": 1, "step": 1 } }, "119": { "code": "op_thresh", "type": "Integer", "values": { "unit": "W", "min": 5, "max": 25000, "scale": 0, "step": 10 } }, "125": { "code": "fap_a", "type": "Integer", "values": { "unit": "kW\u00b7h", "min": -999999999, "max": 999999999, "scale": 2, "step": 1 } }, "131": { "code": "temp_a", "type": "Integer", "values": { "unit": "\u00b0C", "min": -250, "max": 1000, "scale": 1, "step": 1 } }, "113": { "code": "rd_set", "type": "Boolean", "values": {} } } }

Thank

alikarodi commented 6 months ago

ok. works

Thank you