-
Notifications
You must be signed in to change notification settings - Fork 726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: how to consume tuyaDatapointData in custom zha quirk? (No datapoint handler issue) #3733
Comments
The docs and wiki would be the place to start. For supporting Tuya devices, see using the TuyaQuirkBuilder. https://github.com/zigpy/zha-device-handlers/wiki/Tuya-%E2%80%90-v2-Quirk-with-TuyaQuirkBuilder |
unfortunately that documents covers only v2 quirks. i have only v1 quirk. he is working but don't have support for datapoints i observed in zha logs. how to add custom datapoint to v1 quirks ? |
Depends on the quirk and how it's built, they vary. Likely easier to rebuild it as a v2 quirk. |
|
Hello! I can't find some documentation or other information how to add processing TuyaDatapointData that is not known to quirk and zha to date?
i got some MOES Dimmer switch that is constantly spammig network with two datapoints (each second two DPs) and ZHA answering each request to device 'attibute unsupported'.
[zigpy.zcl] [0x66DA:1:0xef00] Received ZCL frame: b'\t\x8e\x02\x00]\x0c\x02\x00\x04\x0fU\xa4\xc2'
[zigpy.zcl] [0x66DA:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl<0x09>(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, direction=<Direction.Server_to_Client: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=142, command_id=2, *direction=<Direction.Server_to_Client: 1>)
[zigpy.zcl] [0x66DA:1:0xef00] Decoded ZCL frame: TuyaLevelControlManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=93, datapoints=[TuyaDatapointData(dp=12, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x0fU\xa4\xc2', *payload=257270978))]))
[zigpy.zcl] [0x66DA:1:0xef00] Received command 0x02 (TSN 142): set_data_response(data=TuyaCommand(status=0, tsn=93, datapoints=[TuyaDatapointData(dp=12, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x0fU\xa4\xc2', *payload=257270978))]))
[zigpy.zcl] [0x66DA:1:0xef00] No datapoint handler for TuyaDatapointData(dp=12, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x0fU\xa4\xc2', *payload=257270978))
[zigpy.zcl] [0x66DA:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl<0x10>(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Client_to_Server: 0>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=142, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 0>)
[zigpy.zcl] [0x66DA:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
maybe someone can point me to right place where i can read some documentation or example quirks that consume custom attributes ?
The text was updated successfully, but these errors were encountered: