I simply have this in my configuration.yaml file:-
zha:
custom_quirks_path: /config/custom_zha_quirks/
I have had this happen before with Tuya smart plugs and in the end I had to edit the quirk to make it work. It might be worth learning how to do this if you use local quirks alot, as I’ve found particularly with ZHA that I need a few of these.
To start, getting the diagnostics of your device and comparing the clusters and attributes in the quirk might point you in the right direction.
Go to the device and click the download diagnostics from menu to the left of the reconfigure button:-
Once you have the file downloaded the device will be at the bottom, in my case it looks like this:-
"user_given_name": "Ajax Plug - First Floor Hall",
"device_reg_id": "2ff51f2921bf1c7e283ad2ec5edc370e",
"area_id": null,
"cluster_details": {
"1": {
"device_type": {
"name": "ON_OFF_PLUG_IN_UNIT",
"id": 266
},
"profile_id": 260,
"in_clusters": {
"0x0000": {
"endpoint_attribute": "basic",
"attributes": {
"0x0000": {
"attribute_name": "zcl_version",
"value": 3
},
"0x0001": {
"attribute_name": "app_version",
"value": 69
},
"0x0003": {
"attribute_name": "hw_version",
"value": 1
},
"0x0004": {
"attribute_name": "manufacturer",
"value": "_TZ3000_1h2x4akh"
},
"0x0005": {
"attribute_name": "model",
"value": "TS011F"
},
"0x0007": {
"attribute_name": "power_source",
"value": 1
},
"0xfffe": {
"attribute_name": "attr_reporting_status",
"value": 0
}
},
"unsupported_attributes": {
"0x4000": {
"attribute_name": "sw_build_id"
},
"0x0009": {
"attribute_name": "generic_device_type"
},
"0x000e": {
"attribute_name": "product_label"
},
"0x000a": {
"attribute_name": "product_code"
},
"0x000c": {
"attribute_name": "manufacturer_version_details"
},
"0x000d": {
"attribute_name": "serial_number"
}
}
},
"0x0003": {
"endpoint_attribute": "identify",
"attributes": {},
"unsupported_attributes": {}
},
"0x0004": {
"endpoint_attribute": "groups",
"attributes": {},
"unsupported_attributes": {}
},
"0x0005": {
"endpoint_attribute": "scenes",
"attributes": {},
"unsupported_attributes": {}
},
"0x0006": {
"endpoint_attribute": "on_off",
"attributes": {
"0x0000": {
"attribute_name": "on_off",
"value": 0
},
"0x4001": {
"attribute_name": "on_time",
"value": 0
},
"0x4002": {
"attribute_name": "off_wait_time",
"value": 0
},
"0x8000": {
"attribute_name": "child_lock",
"value": 0
},
"0x8001": {
"attribute_name": "backlight_mode",
"value": 1
},
"0x8002": {
"attribute_name": "power_on_state",
"value": 2
}
},
"unsupported_attributes": {
"0x4003": {
"attribute_name": "start_up_on_off"
}
}
},
"0x0702": {
"endpoint_attribute": "smartenergy_metering",
"attributes": {
"0x0000": {
"attribute_name": "current_summ_delivered",
"value": 1691
},
"0x0200": {
"attribute_name": "status",
"value": 0
},
"0x0300": {
"attribute_name": "unit_of_measure",
"value": 0
},
"0x0301": {
"attribute_name": "multiplier",
"value": 1
},
"0x0302": {
"attribute_name": "divisor",
"value": 100
},
"0x0303": {
"attribute_name": "summation_formatting",
"value": 0
},
"0x0306": {
"attribute_name": "metering_device_type",
"value": 0
}
},
"unsupported_attributes": {
"0x0400": {
"attribute_name": "instantaneous_demand"
},
"0x0304": {
"attribute_name": "demand_formatting"
}
}
},
"0x0b04": {
"endpoint_attribute": "electrical_measurement",
"attributes": {
"0x0505": {
"attribute_name": "rms_voltage",
"value": 237
},
"0x0508": {
"attribute_name": "rms_current",
"value": 0
},
"0x050b": {
"attribute_name": "active_power",
"value": 0
},
"0x0602": {
"attribute_name": "ac_current_multiplier",
"value": 1
},
"0x0603": {
"attribute_name": "ac_current_divisor",
"value": 1000
}
},
"unsupported_attributes": {
"0x0300": {
"attribute_name": "ac_frequency"
},
"0x0601": {
"attribute_name": "ac_voltage_divisor"
},
"0x0302": {
"attribute_name": "ac_frequency_max"
},
"0x0600": {
"attribute_name": "ac_voltage_multiplier"
},
"0x0604": {
"attribute_name": "ac_power_multiplier"
},
"0x0605": {
"attribute_name": "ac_power_divisor"
},
"0x0401": {
"attribute_name": "ac_frequency_divisor"
},
"0x0507": {
"attribute_name": "rms_voltage_max"
},
"0x0400": {
"attribute_name": "ac_frequency_multiplier"
},
"0x0000": {
"attribute_name": "measurement_type"
},
"0x050a": {
"attribute_name": "rms_current_max"
},
"0x0403": {
"attribute_name": "power_divisor"
},
"0x0803": {
"attribute_name": "ac_active_power_overload"
},
"0x050d": {
"attribute_name": "active_power_max"
},
"0x050f": {
"attribute_name": "apparent_power"
},
"0x0402": {
"attribute_name": "power_multiplier"
},
"0x0801": {
"attribute_name": "ac_voltage_overload"
}
}
},
"0xe000": {
"endpoint_attribute": "tuya_is_pita_0",
"attributes": {},
"unsupported_attributes": {}
},
"0xe001": {
"endpoint_attribute": "tuya_external_switch_type",
"attributes": {},
"unsupported_attributes": {}
}
},
"out_clusters": {
"0x000a": {
"endpoint_attribute": "time",
"attributes": {},
"unsupported_attributes": {}
},
"0x0019": {
"endpoint_attribute": "ota",
"attributes": {},
"unsupported_attributes": {}