zigpy / zha-device-handlers

ZHA device handlers bridge the functionality gap created when manufacturers deviate from the ZCL specification, handling deviations and exceptions by parsing custom messages to and from Zigbee devices.
Apache License 2.0
683 stars 633 forks source link

[Device Support Request] “TS011F by _TZ3000_cayepv1a“ Tongou Variable Load Relay Switch #2931

Open npapagiannis opened 5 months ago

npapagiannis commented 5 months ago

Problem description

The zha integration does not support the variable load (1-63A) feature (as far as I know it does work on z2m)

Solution description

I hope the gurus can come up with a working quirk

Screenshots/Video

Screenshots/Video (I’ve unplugged the device, that’s why it shows as unavailable) ![IMG_4617](https://github.com/zigpy/zha-device-handlers/assets/146246142/69bf4d5c-c1e5-4ba5-a0e4-39774bd2483c) ![IMG_4616](https://github.com/zigpy/zha-device-handlers/assets/146246142/b2a81778-eab6-4e91-acfe-96be9e264a9f)

Device signature

Device signature ```json { "node_descriptor": "NodeDescriptor(logical_type=, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=, mac_capability_flags=, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)", "endpoints": { "1": { "profile_id": "0x0104", "device_type": "0x010a", "input_clusters": [ "0x0000", "0x0003", "0x0004", "0x0005", "0x0006", "0x0402", "0x0702", "0x0b04", "0xe000", "0xe001" ], "output_clusters": [ "0x000a", "0x0019" ] }, "242": { "profile_id": "0xa1e0", "device_type": "0x0061", "input_clusters": [], "output_clusters": [ "0x0021" ] } }, "manufacturer": "_TZ3000_cayepv1a", "model": "TS011F", "class": "zigpy.device.Device" } ```

Diagnostic information

Diagnostic information ```json [Paste the diagnostic information here] ```

Logs

Logs ```python [Paste the logs here] ```

Custom quirk

Custom quirk ```python [Paste your custom quirk here] ```

Additional information

No response

Xesc1714 commented 5 months ago

I not found any integration for this breaker/meter device..., HA found through ZHA, but it can't show better than TUYA. Limit Ampers can't be change 1-63. or Leakeage value...
TUYA are still light years away from any. Continous use it with app TUYA (also easy & friendly installation) . breaker-meter Any way thank you.

pulento commented 1 month ago

Same device here an none of the "thresholds" are shown as Controls on ZHA, those are exposed on zigbee2mqtt:

https://www.zigbee2mqtt.io/devices/TS011F_with_threshold.html

Since these are supported in zigbee2mqtt it shouldn't be hard to expose the controls to ZHA, are there any pointers to try to hack this myself ?

TIA

pulento commented 1 month ago

Found the commit con zigbee2mqtt that added support for this devices with thresholds here

https://github.com/Koenkk/zigbee-herdsman-converters/commit/c9f531f50a7c819050ddb9cc20d21367288afa1c