<?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>I want to create 2 endpoints on the same zigbee device.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74010/i-want-to-create-2-endpoints-on-the-same-zigbee-device</link><description>I want to create two switch EP(if it is possible I would like to it as much switches as possible). 
 I am using WIndows 10 with Segger and nRF COnnect SDK v1.5.0. 
 I tried it in the following way(I tried other many ways but seems that defining the same</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Apr 2021 13:30:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74010/i-want-to-create-2-endpoints-on-the-same-zigbee-device" /><item><title>RE: I want to create 2 endpoints on the same zigbee device.</title><link>https://devzone.nordicsemi.com/thread/306824?ContentTypeID=1</link><pubDate>Mon, 26 Apr 2021 13:30:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e2b62b1-ecd6-4c3f-a6a3-3e2e43d7ffde</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Manue,&lt;/p&gt;
&lt;p&gt;Edvin will be out of office for some time, so I&amp;nbsp;will help with this case.&lt;/p&gt;
&lt;p&gt;I assume the file he meant to add is this one:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/zigbee_5F00_dimmable_5F00_light_5F00_switch.h"&gt;devzone.nordicsemi.com/.../zigbee_5F00_dimmable_5F00_light_5F00_switch.h&lt;/a&gt;&lt;/p&gt;
[quote user="ManuCorrea"]I also would like to add a sensor device[/quote]
&lt;p&gt;Knowing a bit more about what your goal is with the sensors will help with what advise I can give. Are you thinking of adding sensors as different Zigbee devices (or boards), or are you planning to implement all of this on the same device, the one you have implemented two switch endpoint on? How to implement this will also depend on the type of sensor device. For example, there is a cluster specifically for temperature measurements, so if that is what you want you can use that cluster library. I would recommend looking at what cluster libraries are available to see if you can use any of them in your application. The cluster libraries that are implemented in NCS v1.5.0 and their API can be found&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/zboss/3.3.0.6/group___z_b___z_c_l___c_l_u_s_t_e_r_s.html"&gt;here&lt;/a&gt;. You can also check out the Zigbee Cluster Library specification.&lt;/p&gt;
[quote user="ManuCorrea"]Then I would like to make this device able to receive data from the gateway.[/quote]
&lt;p&gt;I do not have much experience with&amp;nbsp;&lt;span&gt;zigbee2mqtt, but from what I can tell the gateway functions as the Zigbee coordinator. As they are both Zigbee devices you should be able to receive messages from the gateway to your device, but I do not&amp;nbsp;know the gateway is implemented or what clusters it uses. What kind of data do you want to receive from the gateway, and do you know whether the gateway already has the functionality or cluster for this, or is it possible to implement it on the gateway?&lt;/span&gt;&lt;/p&gt;
[quote user="ManuCorrea"]What kind of device would be recommended?[/quote]
&lt;p&gt;&amp;nbsp;I am not sure if I understood what you meant by this. Do you mean what kind of cluster would be recommended, or something else?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to create 2 endpoints on the same zigbee device.</title><link>https://devzone.nordicsemi.com/thread/306621?ContentTypeID=1</link><pubDate>Fri, 23 Apr 2021 22:32:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73f7ff59-805f-4b25-b610-6ee22523ef07</guid><dc:creator>ManuCorrea</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Okay I get it!&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see any attached file(If you mean to your answer).&lt;/p&gt;
&lt;p&gt;My intention is to add multiple buttons to zigbee2mqtt from the same board, I don&amp;#39;t if I can make it in some hacky way with groups I will try for sure to avoid problems.&lt;/p&gt;
&lt;p&gt;I also would like to add a sensor device(more than one if it is possible) to this to send different kind of values. Would it be possible? Any advise?&lt;/p&gt;
&lt;p&gt;Then I would like to make this device able to receive data from the gateway. What kind of device would be recommended? I saw some of them that could be useful in the specs but I am not sure.&lt;/p&gt;
&lt;p&gt;Thanks a lot for your answers&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Manue&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to create 2 endpoints on the same zigbee device.</title><link>https://devzone.nordicsemi.com/thread/306045?ContentTypeID=1</link><pubDate>Wed, 21 Apr 2021 10:10:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8befe185-44d9-4ae3-86c3-08e23a24a783</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Ok, I see. So you want to create two endpoints with the light switch. I assume this is because you want to send light switch commands to two separate groups, is that correct?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I see that the compiler error isn&amp;#39;t related to the&amp;nbsp;ZBOSS_DECLARE_DEVICE_CTX_2_EP, because it still occurs if I comment it out and use the&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;ZBOSS_DECLARE_DEVICE_CTX_1_EP instead. The issue is that you are using two calls to ZB_HA_DECLARE_DIMMER_SWITCH_EP(). Inside this, it uses:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;ZB_ZCL_DECLARE_DIMMER_SWITCH_SIMPLE_DESC() -&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;ZB_DECLARE_SIMPLE_DESC(), and the latter doesn&amp;#39;t consider any names, only the in_clust_num and the out_clost_num. This means you can&amp;#39;t use this two times with two instances of the same number of input and output clusters.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Can you please try to add the attached file to your project (Just copy it into the &amp;quot;include&amp;quot; folder together with nus_cmd.h and zb_mem_config_custom.h&amp;quot;, and add it to main using &amp;#39;#include &amp;quot;zigbee_dimmable_light_switch.h&amp;quot; &amp;#39;.
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;Then replace the calls to ZB_HA_DECLARE_DIMMER_SWITCH_EP() with ZB_ZCL_DECLARE_DIMMER_SWITCH_EP() in your main.c file. In my case, that made it compile, at least.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;If the intention is to control two different light bulb groups, you don&amp;#39;t necessarily need two light switch endpoints. You can acheive the same sending the command to two different groups.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Best regards,&lt;/div&gt;
&lt;div&gt;Edvin&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to create 2 endpoints on the same zigbee device.</title><link>https://devzone.nordicsemi.com/thread/305559?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 13:22:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e269f0f4-9d20-467f-92ae-5e7ef2013915</guid><dc:creator>ManuCorrea</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7652.light_5F00_switch.zip"&gt;devzone.nordicsemi.com/.../7652.light_5F00_switch.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There you have. The sketch is a bit messy because I tried many things. From line 193 you will find the declarations of the endpoints.&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to create 2 endpoints on the same zigbee device.</title><link>https://devzone.nordicsemi.com/thread/305225?ContentTypeID=1</link><pubDate>Fri, 16 Apr 2021 08:18:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:805ab2b7-74f1-48b8-9a18-8684b898ace9</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hm, then where is the redefinition? (the one with the crosses?) Can I reproduce this? Is it possible for me to reproduce this? Can you zip the project folder so that I can unzip it in an unmodified SDK (please test that you get the same behavior in an unmodified SDK, and that all the files you need are included in the zip folder).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to create 2 endpoints on the same zigbee device.</title><link>https://devzone.nordicsemi.com/thread/305176?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2021 20:25:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce8075ff-d6ff-4b9c-8454-9b3630877665</guid><dc:creator>ManuCorrea</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/zb_5F00_ad_5F00_simple_5F00_desc.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;That is where it points in zboss_api_af.h&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to create 2 endpoints on the same zigbee device.</title><link>https://devzone.nordicsemi.com/thread/305118?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2021 13:13:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afbec98a-8272-4097-8ec1-9835fe155618</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Where does the compiler point to if you double click the line saying &amp;quot;originally defined here&amp;quot; or &amp;quot;previous declaration of &amp;#39;zb_af_simple_desc_2_5_t was here&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>