<?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>Light control server: Potential bug when turning off</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126818/light-control-server-potential-bug-when-turning-off</link><description>Good day, 
 I am currently using NCS V3.1.1 and nrf52840 devices. 
 We are making use of the light control server model and a ambient lux sensor device. 
 I do have the following enabled in my prj.conf : 
 
 I have noticed some odd behaviour in the light</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Feb 2026 15:30:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126818/light-control-server-potential-bug-when-turning-off" /><item><title>RE: Light control server: Potential bug when turning off</title><link>https://devzone.nordicsemi.com/thread/561517?ContentTypeID=1</link><pubDate>Wed, 18 Feb 2026 15:30:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ee8c7cc-b12f-4f57-8ea3-e3b8975e2bd7</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am sorry for the delay from my end as well. I do not find the Mesh Model Specification to be the easiest document to understand.&lt;/p&gt;
&lt;p&gt;Now, if you have a look at figures 6.6 and 6.7, as well as read section&amp;nbsp;6.2.5.1 &lt;em&gt;Light LC State Machine states&lt;/em&gt;, I think you will find that the &lt;em&gt;Off&lt;/em&gt; state is for disabling the controller, while the state set when receiving an &lt;em&gt;OnOff&lt;/em&gt; messages is&amp;nbsp;&lt;em&gt;Fade Standby Manual&lt;/em&gt;. The timing value for the &lt;em&gt;Lightness Out&lt;/em&gt; state then becomes&amp;nbsp;&lt;em&gt;Light LC Lightness Standby - Timer / Transition Time * (Light LC Lightness Standby – Initial Lightness)&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;In other words, when receiving an OnOff message, the light should not immediately turn off, but rather fade according to certain timer settings. There might of course be more to it, but as far as I can tell our implementation seems to show the correct behavior according to the Mesh Model specification.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Light control server: Potential bug when turning off</title><link>https://devzone.nordicsemi.com/thread/561164?ContentTypeID=1</link><pubDate>Sat, 14 Feb 2026 03:26:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cda4d16a-53f5-467d-91d2-908452338ae1</guid><dc:creator>Chris_Dev</dc:creator><description>&lt;p&gt;Good day.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thank you for getting back to me.&lt;/p&gt;
&lt;p&gt;1. We have a proprietary solution which consists of a frontend and backend which communicates with a mesh device to send data out over the air. Essentially, we use the messages provided by NCS client models:&lt;br /&gt;&lt;br /&gt;Setting LC properties -&amp;nbsp;&lt;strong&gt;bt_mesh_light_ctrl_cli_prop_set()&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;Setting controller coefficients is a bit different, for that we use -&amp;nbsp;&lt;strong&gt;bt_mesh_light_ctrl_cli_coeff_set&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;LC On/Off set message (so that you don&amp;#39;t turn off the controller when turning the light on and off) -&amp;nbsp;&lt;strong&gt;bt_mesh_light_ctrl_cli_light_onoff_set&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;2. Well it depends on what lux values you receive from your sensor node... Sometimes it takes up to 5 minutes (without real lux values i.e. the sensor is not observing the true lux, it&amp;#39;s just place somewhere random)..... &lt;br /&gt;&lt;br /&gt;In any event, I am expecting to see the light turn off immediately if you send a Light on/off = OFF message. According to the specification..... It does not matter what your run/prolong/standby values are. Also, this should not be dependent on the PI control loop, according to my understanding at least. Instead of the light turning off immediately, the controller regulates down to 0 eventually.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Apologies for taking so long to reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Light control server: Potential bug when turning off</title><link>https://devzone.nordicsemi.com/thread/560361?ContentTypeID=1</link><pubDate>Wed, 04 Feb 2026 15:20:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7281371-22a4-4353-a23a-5fb8916b77be</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I do have a couple of questions, for clarity:&lt;/p&gt;
&lt;p&gt;1. What device/app/other are you using for configuring and sending messages to the LC device, and what messages are you sending (or what exactly are you doing in the interface of the app etc.)&lt;br /&gt;2. Can you quantify the time taken for the light to turn off and on? (I.e. number of seconds, instead of &amp;quot;very long time&amp;quot;.) Preferably also what time you expect, in addition to what time you observe, for both turning off and on.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>