Zigbee nRF5 SDK for Thread and Zigbee

Hello, devzone.

I'm developing end device on nRF52840 using nRF5_SDK_for_Thread_and_Zigbee_v4.1.0.
I've connected my device to Home Assistant(HA) and have some configuration issues,
used clusters:
zb_zcl_identify_attrs_t identify_attr;//0003
zb_zcl_basic_attrs_ext_t basic_attr;//0000
zb_zcl_on_off_attrs_ext_t on_off_attr;//0006
zb_zcl_scenes_attrs_t scenes_attr;//0005
zb_zcl_groups_attrs_t groups_attr;//0004
zb_zcl_power_config_attr_t power_attr;//0001

it's based on zb_ha_on_off_output but i've added power config.
I have problem of HA see that my device is powered from DC source, in HA i can see and get all attributes of all clusters: basic_attr_cluster.power_source is battery source and power_config have all attributes configured based on specification minimal.
From connection log:
[0xdda9] Got Node Descriptor: NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, 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: 140>, manufacturer_code=4660, maximum_buffer_size=108, maximum_incoming_transfer_size=127, server_mask=11264, maximum_outgoing_transfer_size=127, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=False, *is_security_capable=False)
and there is *is_mains_powered=True but must be False.
So the question is:
- Where can i find configuration of Node Descriptor response?
- Where is full list of aviable configurations for SDK i'm using?
- Or it's HA send me wrong request?(posted simmilar question on HA forum)

I will be very grateful for any help. 

Parents
  • Hi,

    The mac_capability_flags, where the "mains powered" flag is set is part of the zb_af_node_desc_s/zb_zdo_node_desc_resp_s struct. I could not find this used anywhere in the examples in the SDK, but there is some sample code on this page, but this seems related to requesting the node descriptor from another node: zb_zdo_node_desc_req().

    I have asked our Zigbee developers what is the proper way to configure this, but I have not received any feedback yet. I will get back to you once I receive some updated information from them.

    Best regards,
    Jørgen

Reply
  • Hi,

    The mac_capability_flags, where the "mains powered" flag is set is part of the zb_af_node_desc_s/zb_zdo_node_desc_resp_s struct. I could not find this used anywhere in the examples in the SDK, but there is some sample code on this page, but this seems related to requesting the node descriptor from another node: zb_zdo_node_desc_req().

    I have asked our Zigbee developers what is the proper way to configure this, but I have not received any feedback yet. I will get back to you once I receive some updated information from them.

    Best regards,
    Jørgen

Children
No Data
Related