<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Matter writeAttribute Crashing]]></title><description><![CDATA[<p dir="auto">Starting at least last night, using any <code>writeAttribute</code> Matter method started erroring with an uncatchable exception which completely crashes the script.</p>
<p dir="auto">This exact kind of code worked at least a week ago (maybe even earlier yesterday), and then last night when I was working on some changes I noticed a new crash that was not happening within my code.</p>
<p dir="auto">I'm not sure what would have caused this as I don't think my Matter devices had any firmware updates, nor the Flic Hub LR getting a firmware update.</p>
<p dir="auto">It appears that the attribute is getting set, but something after that point in underlying Flic code is not expecting a <code>Success</code> value.</p>
<p dir="auto"><em>EXAMPLE CODE:</em></p>
<pre><code>const matterModule = require('matter')
const matterDevices = matterModule.getNodes()

const matterDeviceIDsForNames = {}
for (const thisMatterDevice of matterDevices) {
	matterDeviceIDsForNames[thisMatterDevice.name] = thisMatterDevice.nodeId
}

const thisMatterDeviceID = matterDeviceIDsForNames['Living Room Corner Lamp']

const brightnessPercentage = 80
const brightnessLevel = Math.round(254 * (brightnessPercentage / 100))

matterModule.writeAttribute(thisMatterDeviceID, 1, 'Level Control', 'OnLevel', brightnessLevel, () =&gt; {})
</code></pre>
<p dir="auto"><strong>ERROR OUTPUT:</strong></p>
<pre><code>SyntaxError: unexpected token: 'Success'
    at &lt;input&gt;:1
    at parse (native)
    at handlePacket (core.js:3259)
    at onPipeData (core.js:3336)
</code></pre>
]]></description><link>https://community.flic.io/topic/18535/matter-writeattribute-crashing</link><generator>RSS for Node</generator><lastBuildDate>Thu, 21 May 2026 17:12:26 GMT</lastBuildDate><atom:link href="https://community.flic.io/topic/18535.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 01 Mar 2025 05:42:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Matter writeAttribute Crashing on Mon, 03 Mar 2025 20:36:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/5282">@pico</a> The hub checks for updates automatically every 24 hours. Unfortunately there is no history on the device of updates. If there are new features for an update, we typically show those in the changelog of the Android/iOS app.</p>
]]></description><link>https://community.flic.io/post/21784</link><guid isPermaLink="true">https://community.flic.io/post/21784</guid><dc:creator><![CDATA[Emil]]></dc:creator><pubDate>Mon, 03 Mar 2025 20:36:16 GMT</pubDate></item><item><title><![CDATA[Reply to Matter writeAttribute Crashing on Mon, 03 Mar 2025 17:19:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/57">@Emil</a> Looks like it's fixed in 4.4.1, thank you so much!</p>
<p dir="auto">Out of curiosity, is there a set time that the Flic Hub LR auto-checks and installs updates? Also, there a log of update history on the device to see when updates were installed? And is there a changelog available anywhere?</p>
]]></description><link>https://community.flic.io/post/21783</link><guid isPermaLink="true">https://community.flic.io/post/21783</guid><dc:creator><![CDATA[pico]]></dc:creator><pubDate>Mon, 03 Mar 2025 17:19:34 GMT</pubDate></item><item><title><![CDATA[Reply to Matter writeAttribute Crashing on Mon, 03 Mar 2025 15:09:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/5282">@pico</a> No, it was a firmware update. Please try to update to the latest firmware 4.4.1 and see if it resolves the issue.</p>
]]></description><link>https://community.flic.io/post/21782</link><guid isPermaLink="true">https://community.flic.io/post/21782</guid><dc:creator><![CDATA[Emil]]></dc:creator><pubDate>Mon, 03 Mar 2025 15:09:34 GMT</pubDate></item><item><title><![CDATA[Reply to Matter writeAttribute Crashing on Sun, 02 Mar 2025 03:17:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/57">@Emil</a> Awesome, thank you so much!</p>
<p dir="auto">I'm glad this was easy to track down. I'm curious, is there any explanation as to how this popped up in previously working code when no firmware updates were done in the meantime? Does the Flic Hub LR have other OTA updates to the SDK runtime that are separate from the device firmware?</p>
]]></description><link>https://community.flic.io/post/21781</link><guid isPermaLink="true">https://community.flic.io/post/21781</guid><dc:creator><![CDATA[pico]]></dc:creator><pubDate>Sun, 02 Mar 2025 03:17:54 GMT</pubDate></item><item><title><![CDATA[Reply to Matter writeAttribute Crashing on Sat, 01 Mar 2025 08:57:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/5282">@pico</a> thanks for the report. Found the issue. Will fix the upcoming week.</p>
]]></description><link>https://community.flic.io/post/21779</link><guid isPermaLink="true">https://community.flic.io/post/21779</guid><dc:creator><![CDATA[Emil]]></dc:creator><pubDate>Sat, 01 Mar 2025 08:57:08 GMT</pubDate></item></channel></rss>