<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>[Zigbee] Multiple Temperature Clusters in the same device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76352/zigbee-multiple-temperature-clusters-in-the-same-device</link><description>Hello, 
 How can I have two or more temperature probes reporting using the ZCL library? 
 Imagine that I want to have a device that measures for instance two temperatures at two different locations (Inside/Outside a fridge). How can I report these two</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Jul 2021 13:58:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76352/zigbee-multiple-temperature-clusters-in-the-same-device" /><item><title>RE: [Zigbee] Multiple Temperature Clusters in the same device</title><link>https://devzone.nordicsemi.com/thread/319406?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 13:58:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb2e4219-0aa9-49c2-be41-9ee501b95718</guid><dc:creator>Marjeris Romero</dc:creator><description>[quote user="Fernando Fontes"] Is there any rule to choose a cluster ID for my own cluster implementation?[/quote]
&lt;p&gt;&amp;nbsp;No, I don&amp;#39;t think so :) just don&amp;#39;t use one of the IDs already used in the ZCL specification.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Multiple Temperature Clusters in the same device</title><link>https://devzone.nordicsemi.com/thread/319361?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 12:06:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0bfd9cd-a48d-4aee-9e00-778206015813</guid><dc:creator>Fernando Fontes</dc:creator><description>&lt;p&gt;Hi Marjeris,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for the help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;One last question though: What about the clusters IDs? Is there any rule to choose a cluster ID for my own cluster implementation?&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Multiple Temperature Clusters in the same device</title><link>https://devzone.nordicsemi.com/thread/319016?ContentTypeID=1</link><pubDate>Wed, 07 Jul 2021 14:46:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:111f5831-29ac-4a2c-9749-53677d34650a</guid><dc:creator>Marjeris Romero</dc:creator><description>[quote user="Fernando Fontes"]How can I discover the device source address and the containing endpoints without knowing in advance the profile ID and the implemented clusters? I know the existence of the&amp;nbsp;&lt;em&gt;zdo&amp;nbsp;match_desc&amp;nbsp;&lt;/em&gt;command but that requires me to fill the profile ID and also the implemented clusters....&amp;nbsp;[/quote]
&lt;p&gt;You only need to fill the profile id for &amp;#39;zdo match_desc&amp;#39;, which usually is either Zigbee Light Link (0xc05e) or the Home Automation profile (0x0104) at least for lighting devices. The number of input cluster or output clusters argument is just so you can sort it in case you need to find a device with at least one of n_input clusters. All devices should have at least the basic cluster, so you could send a match descriptor request requiring for devices with at least the Basic cluster implementation if you want a list of all devices.&lt;/p&gt;
&lt;p&gt;The other way would be to use a zigbee sniffer and look at the devices available on the network.&lt;/p&gt;
[quote user="Fernando Fontes"]Well, my first question is, should I change the profile ID from the home automation to the manufacturer-specific profile? Or it&amp;#39;s fine keeping the HA? [/quote]
&lt;p&gt;&amp;nbsp;I think manufacturer-specific profiles will need to be register with the Zigbee Alliance. You can create a custom cluster inside the HA profile. If you need a custom profile is up to you and your implementation. Please refer to the Zigbee Alliance for more information on this. From what I read private profiles are usually implemented for applications that do not need to interact with other vendors&amp;#39; products.&lt;/p&gt;
[quote user="Fernando Fontes"]My second question is if there is any command to request the attributes that a given cluster contains? [/quote]
&lt;p&gt;&amp;nbsp;The closer thing we have is &amp;#39;zcl attr read&amp;#39;, but this is for reading the values of a given attributes. I cannot see to find anything about attribute discovery in the specification, but you could check for yourself as well, to see if this is even possible. For cluster on the ZCL specification each attribute is documented on the specification, also with the attribute type. For custom cluster you will need to document this yourself I suppose.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Multiple Temperature Clusters in the same device</title><link>https://devzone.nordicsemi.com/thread/315471?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 16:03:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ea40070-f08f-4004-b0da-052724b29417</guid><dc:creator>Fernando Fontes</dc:creator><description>&lt;p&gt;Hi Marjeris,&lt;/p&gt;
&lt;p&gt;Thank you for the reply.&lt;/p&gt;
&lt;p&gt;All that you said makes sense. However, my application requires some specific measurements not covered by the ZCL specification. So, I already went for that road and after some fight, I have already created my own customized cluster.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m a bit new to Zigbee and I have some questions that&amp;nbsp;maybe you can help me with.&lt;/p&gt;
&lt;p&gt;I have two development kits, one running an end-device (with my customized cluster) and another one running the CLI configured as a coordinator.&lt;/p&gt;
&lt;p&gt;How can I discover the device source address and the containing endpoints without knowing in advance the profile ID and the implemented clusters? I know the existence of the&amp;nbsp;&lt;em&gt;zdo&amp;nbsp;match_desc&amp;nbsp;&lt;/em&gt;command but that requires me to fill the profile ID and also the implemented clusters....&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Another thing is, after running&amp;nbsp;&lt;code&gt;&lt;em&gt;zdo simple_desc_req 0xF700 20&lt;/em&gt; &lt;/code&gt;I get&amp;nbsp;&lt;em&gt;&lt;code&gt;src_addr=0xF700 ep=20 profile_id=0x0104 app_dev_id=0xFFF2 app_dev_ver=0x0 in_clusters=0x0000,0x0003,0x0402,0x1234&lt;/code&gt; out_clusters=0x0003&lt;/em&gt;, being the 0x1234 cluster-ID the one that I have customized. Well, my first question is, should I change the profile ID from the home automation to the manufacturer-specific profile? Or it&amp;#39;s fine keeping the HA? My second question is if there is any command to request the attributes that a given cluster contains? Or this should be known in advance by looking at the ZCL specification? And what about the attribute type?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Fernando Fontes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Multiple Temperature Clusters in the same device</title><link>https://devzone.nordicsemi.com/thread/315458?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 15:10:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd376d7e-b822-46fc-8ad2-63e28dee0359</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Fernando,&lt;/p&gt;
&lt;p&gt;As it was pointed above one solution for this would be to have multiple endpoints in your device. Endpoints allow for separate control points to exist within each node. I have seend this implemented with On/Off cluster before, for instance having a switch device and a lightbulb device, each with multiple endpoints to have separately controllable lights in one device, and three separate toggle switches in another device, for example:&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1623767256161v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Figure taken from the Zigbee Wireless Networking by Drew Gislason.&lt;/p&gt;
&lt;p&gt;One endpoint for each of your temperature sensor will give you more flexibility to control each sensor and configure attribute reporting in my opinion.&lt;/p&gt;
&lt;p&gt;I recommend you take a look at the&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/zigbee_multi_dynamic_color_light_sed_thingy_master.html"&gt; BLE Thingy and Zigbee Color light bulb example&lt;/a&gt; inside the nRF5 SDK for Thread &amp;amp; Zigbee. &lt;br /&gt;&lt;br /&gt;Adding a custom cluster is also possible, but it will potentially require a bit more work on your side, and for interoperability purposes it&amp;#39;s often best to stick to the clusters defined by the ZCL specification. If you want to go down that road you can take a look at the custom cluster implemented for pressure in zb_zcl_pressure_measurement.h and zb_zcl_pressure_measurement.c in the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/zigbee_multi_sensor_example.html"&gt;Zigbee Multi Sensor example&lt;/a&gt; in the SDK. See also &amp;#39;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v4.1.0%2Fusing_zigbee__z_c_l.html&amp;amp;cp=7_3_3_4&amp;amp;anchor=cluster_declaration_custom"&gt;Declaring Custom cluste&lt;/a&gt;r&amp;#39;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Multiple Temperature Clusters in the same device</title><link>https://devzone.nordicsemi.com/thread/315412?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 13:17:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:508206e5-e231-4ec6-ace4-da6db6ee0250</guid><dc:creator>Fernando Fontes</dc:creator><description>&lt;p&gt;Have you ever thought&amp;nbsp;of doing a customized cluster to handle this? Like one that&amp;nbsp;has multiple attributes one for each temperature sensor?&lt;/p&gt;
&lt;p&gt;E.g:&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;ZB_ZCL_ATTR_TEMP_MEASUREMENT_1_VALUE_ID = 0x0000&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;ZB_ZCL_ATTR_TEMP_MEASUREMENT_2_VALUE_ID = 0x0001&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;....&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;e.t.c?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Or is this a bad idea?&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Multiple Temperature Clusters in the same device</title><link>https://devzone.nordicsemi.com/thread/315384?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 12:11:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c83b3d2-8cb9-43df-bc77-00b58310a835</guid><dc:creator>Patrick</dc:creator><description>&lt;p&gt;You would only have multiple endpoint IDs. Depending on your coordinator this shouldn&amp;#39;t be a problem but I have read that Smartthings does not have great support for multi-endpoint devices.&lt;br /&gt;&lt;br /&gt;In my opinion, this approach isn&amp;#39;t ideal but it does seem to be the only way to handle multiple instances of the same cluster.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Multiple Temperature Clusters in the same device</title><link>https://devzone.nordicsemi.com/thread/315364?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 11:36:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44b72ad8-f67f-489c-8904-d29d0ff83045</guid><dc:creator>Fernando Fontes</dc:creator><description>&lt;p&gt;Hmm, ok. I thought in doing that, but then it would be necessary to assign a new device ID, or could they be the same?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Multiple Temperature Clusters in the same device</title><link>https://devzone.nordicsemi.com/thread/315361?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 11:23:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c6eb69c-f7e4-48f9-9d5b-de6109b40360</guid><dc:creator>Patrick</dc:creator><description>&lt;p&gt;Seems we are working on similar projects. The approach I am taking is to have multiple endpoints, with each having an instance of the temperature measurement cluster.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>