<?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 power config cluster</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51848/zigbee-power-config-cluster</link><description>Hi, 
 1. ZigBee Cluster Library Specification(Rev 6) -&amp;gt; 3.3.2.2.3 Battery Information Attribute Set -&amp;gt; Table 3-18. Attributes of the Battery Information Attribute Set tell me the BatteryVoltage attribute access is &amp;quot;Read only&amp;quot;, and the BatteryPercentageRemaining</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Sep 2019 03:29:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51848/zigbee-power-config-cluster" /><item><title>RE: zigbee power config cluster</title><link>https://devzone.nordicsemi.com/thread/208779?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2019 03:29:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29bd52a7-cd7f-4b30-ac22-d216b7b722c9</guid><dc:creator>SongSie</dc:creator><description>&lt;p&gt;Because base on door lock example, not just edit the power config cluster header, I have to modify &amp;quot;zb_ha_door_lock.h&amp;quot;.&lt;/p&gt;
&lt;p&gt;I must edit the &amp;quot;ZB_HA_DECLARE_DOOR_LOCK_CLUSTER_LIST&amp;quot; macro and &amp;quot;C750_ZB_ZCL_DECLARE_DOOR_LOCK_SIMPLE_DESC&amp;quot; macro to add power config cluster.&lt;/p&gt;
&lt;p&gt;The most important is the define value of &amp;quot;ZB_HA_DOOR_LOCK_REPORT_ATTR_COUNT&amp;quot;. &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Song&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zigbee power config cluster</title><link>https://devzone.nordicsemi.com/thread/208566?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2019 01:05:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:380ab485-5a57-475a-80d2-7827503c0c61</guid><dc:creator>SongSie</dc:creator><description>&lt;p&gt;Hi Patrick,&lt;/p&gt;
&lt;p&gt;Thank your reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;I have already done this before I asked this question. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;I add the door state attribute of door lock cluster and it can report success, but the power config fail.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;It should be something I missed.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;I will to do more test. Thanks&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;Best Regards&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;Song&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zigbee power config cluster</title><link>https://devzone.nordicsemi.com/thread/208561?ContentTypeID=1</link><pubDate>Sun, 08 Sep 2019 13:41:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97b993db-49e5-4c59-adf7-3a6a4e4742be</guid><dc:creator>Patrick</dc:creator><description>&lt;p&gt;Sorry for the delay. In zb_zcl_power_config.h, change the following defines to enable reporting on battery voltage and battery percentage:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// Line 422
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_POWER_CONFIG_BATTERY_VOLTAGE_ID(data_ptr, bat_num) \
{                                                               \
  ZB_ZCL_ATTR_POWER_CONFIG_BATTERY##bat_num##_VOLTAGE_ID,       \
  ZB_ZCL_ATTR_TYPE_U8,                                          \
  ZB_ZCL_ATTR_ACCESS_READ_ONLY | ZB_ZCL_ATTR_ACCESS_REPORTING,  \
  (zb_voidp_t) data_ptr                                         \
}


// Line 471
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_POWER_CONFIG_BATTERY_REMAINING_ID(data_ptr, bat_num) \
{                                                               \
  ZB_ZCL_ATTR_POWER_CONFIG_BATTERY##bat_num##_REMAINING_ID,     \
  ZB_ZCL_ATTR_TYPE_U8,                                          \
  ZB_ZCL_ATTR_ACCESS_READ_ONLY | ZB_ZCL_ATTR_ACCESS_REPORTING,  \
  (zb_voidp_t) data_ptr                                         \
}

// Line 546
#define ZB_ZCL_POWER_CONFIG_REPORT_ATTR_COUNT 3&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zigbee power config cluster</title><link>https://devzone.nordicsemi.com/thread/208457?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 11:39:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed06e686-fe6e-4868-8327-04432ad24e05</guid><dc:creator>Patrick</dc:creator><description>&lt;p&gt;You need to edit the power config cluster header to enable reporting for voltage and percentage remaining. I am not sure if this is a bug (since the spec indicates these should be reportable) but I was able to get it working. I don&amp;#39;t have the specific changes I made in front of me but can update this answer later today with the code you&amp;#39;ll need to modify.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>