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
743 stars 679 forks source link

[Device Support Request] Tuya Smart Plug TS011F _TZ3000_5f43h46b #1442

Closed jasonwragg closed 1 year ago

jasonwragg commented 2 years ago

Is your feature request related to a problem? Please describe. Plug has the following in zigbee2mqtt Screenshot 2022-03-23 at 12 42 23 Screenshot 2022-03-23 at 12 43 15

{
    "child_lock": "UNLOCK",
    "indicator_mode": "off",
    "linkquality": 63,
    "power_outage_memory": "restore",
    "state": "ON"
}

Describe the solution you'd like Add the missing option to ZHA

Device signature - this can be acquired by removing the device from ZHA and pairing it again from the add devices screen. Be sure to add the entire content of the log panel after pairing the device to a code block below this line.


{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *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": 260,
      "device_type": "0x010a",
      "in_clusters": [
        "0x0000",
        "0x0003",
        "0x0004",
        "0x0005",
        "0x0006",
        "0x0702",
        "0x0b04",
        "0xe000",
        "0xe001"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    }
  },
  "manufacturer": "_TZ3000_5f43h46b",
  "model": "TS011F",
  "class": "zhaquirks.tuya.ts011f_plug.Plug"
}
**Additional context**
TheJulianJES commented 1 year ago

Config entities for most Tuya plugs were implemented in HA a couple of versions ago: image


@evlo Your issue is a different one. IIRC some Tuya plugs randomly turn themselves off (possibly because of faulty over-voltage detection). Please create a new issue and fill-out the issue template if you still have problems.

evlo commented 1 year ago

Juist to get feedback on my issues (if I find my own issue in the future): weird coincidence, but plug started misbehaving about the same time I did the setting change, different ones are ok.