Skip to content

Question: how to consume tuyaDatapointData in custom zha quirk? (No datapoint handler issue) #3733

Open
@MrdUkk

Description

@MrdUkk

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionMore of a discussion than an issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions