# Refresh issue with matterbridge

**URL:** <https://community.gladysassistant.com/t/probleme-de-refresh-avec-matterbridge/9591>\
**Category:** Configuration\
**Created:** [June 13, 2025, 10:08am UTC](https://community.gladysassistant.com/t/probleme-de-refresh-avec-matterbridge/9591 "2025-06-13T10:08:59Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [June 13, 2025, 10:08am UTC](https://community.gladysassistant.com/t/probleme-de-refresh-avec-matterbridge/9591/1 "2025-06-13T10:08:59Z")

</div>

SPOILER : everything ended (almost) well 😬

Hello,  
so the AI tells me there’s no thread about a refresh problem with matterbridge, so I’ll go ahead and post:slight\_smile:  
Yet I remember the tests we did on the Matter integration and forced refresh with decommissioning/recommissioning of matterbridge, weird.

Anyway, I have a refresh issue, here’s my scenario.  
I recently installed a Somfy garage door motor. The motor not appearing (immediately?) in the Matter integration, I disabled the matterbridge-somfy plugin and re-enabled it.  
Result: my Somfy devices changed their unique ID (which is normal) and then all I have to do is go to the Matter devices on Gladys to trigger their updates (with the refresh button).  
And there, nothing 🤔

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/4/f/4f9682b44c5842a57fc6a206210b60c0c29e8b92.png)  
And much later (a few hours), the devices update appears:  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/0/c/0c63e673e8434b960eb48df64d4ea6ce2a606354.png)  
I didn’t understand why this delay.

I retest today by disabling the matterbridge-dyson plugin and nothing happens on the Gladys side even though I’m convinced a red «&nbsp;unreachable&nbsp;» label should appear.

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/b/1/b141d1fcb6315ca8c0fe7ab872242c5ed7806f34.png)  
And if I look in the Matter nodes, my Dyson devices (24 and 25) are still present:  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/4/d/4d1e25bd3aeb4cae108873740eff624c616e6ab5.png)  
I disable Matter and re-enable it, matterbridge reacts well:  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/0/5/050fcaff5bea4dfe55872c72a932d2c322973cfd.jpeg)  
Nodes 24 and 25 have now disappeared:  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/0/e/0e74093aa735cda280505a5a80ad8a05fd90aa5f.png)  
And in the devices they are still there, without a label (the AI confirmed that no thread mentions this kind of «&nbsp;unreachable&nbsp;» label):  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/0/6/06db63c617fdcf3698affd2bc50b1454d0832991.png)

EDIT: I just found that famous badge: [🚀 Matter & Gladys Assistant : C’est parti! - #117 par pierre-gilles](https://community.gladysassistant.com/t/matter-gladys-assistant-c-est-parti/9442/117?u=mutmut)  
AI is great but I must have bad karma because it never gives me a positive answer when I know it’s positive…

I continue my scenario by reactivating the matterbridge-dyson plugin … and then by forcing the refresh, it works (well I just did it live, the demo effect is still as surprising 🤯)

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/d/3/d3cbaf1b7ea67cd525aafc6ada5857122ef22ee4.png)

So from what I was able to retest, there seems to be a refresh problem when a change occurs on the matterbridge side, I have the impression that it’s especially when «&nbsp;removing&nbsp;».  
@pierre-gilles do you have a polling interval/check delay following your implementation?  
We discussed it [here](https://github.com/Luligu/matterbridge/issues/298).  
And for the «&nbsp;disabled&nbsp;» badge, when should it appear?

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 13, 2025, 11:39am UTC](https://community.gladysassistant.com/t/probleme-de-refresh-avec-matterbridge/9591/2 "2025-06-13T11:39:06Z")

</div>

> [@mutmut](#):
>
> @pierre-gilles do you have a check delay after your implementation?

No, actually there’s no longer any delay!

Now, as soon as you load the page, the list shows exactly the paired devices.

Several possible explanations for your observation:

- Either it’s a Gladys bug,

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [June 13, 2025, 11:48am UTC](https://community.gladysassistant.com/t/probleme-de-refresh-avec-matterbridge/9591/3 "2025-06-13T11:48:14Z")

</div>

> [@pierre-gilles](#):
>
> Several possible leads for your observation:

oh it’s going to be hard to find the culprit ☹

> [@pierre-gilles](#):
>
> Either it’s a Gladys bug, but that surprises me because normally we just display the list that comes directly from the Matter.js library

I’m seeing odd behavior with page refreshes:

- I updated my 2 Dyson devices and then removed the filter: I ended up with all the Somfy devices in `Add` mode
- I refreshed the page: same
- I switched back to the `Settings` tab and the page tells me that Matter is not enabled then after a few seconds, it returned to normal
- I went back to the `Devices` tab and everything was normal again, no more unadded devices visible.

It might be my production Gladys install, I’ll test on my test Gladys.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 13, 2025, 11:52am UTC](https://community.gladysassistant.com/t/probleme-de-refresh-avec-matterbridge/9591/4 "2025-06-13T11:52:20Z")

</div>

> [@mutmut](#):
>
> I’m experiencing weird behavior with page refreshes:

If you have a way to reproduce it, I’d appreciate it — these kinds of small bugs, however, are indeed Gladys bugs 🙂

But in my opinion, it’s unrelated to a problem with devices not appearing in Gladys.

If you can monitor your Gladys logs when this kind of problem occurs, that could help.

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [June 13, 2025, 11:58am UTC](https://community.gladysassistant.com/t/probleme-de-refresh-avec-matterbridge/9591/5 "2025-06-13T11:58:12Z")

</div>

I just made a video, it’s real-time.

  
On the infrastructure side, I don’t see any lag on CPU/RAM/IOPS.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 13, 2025, 12:04pm UTC](https://community.gladysassistant.com/t/probleme-de-refresh-avec-matterbridge/9591/6 "2025-06-13T12:04:30Z")

</div>

Your instance looks really slow 😛 What’s the machine behind it? What kind of disk?

Ok, I see the issue, it’s just that your instance is pretty slow and the loading states could be improved! I’ll make a note to look into it.

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [June 13, 2025, 12:20pm UTC](https://community.gladysassistant.com/t/probleme-de-refresh-avec-matterbridge/9591/7 "2025-06-13T12:20:11Z")

</div>

On the SW side: Proxmox with 2 LXC Debian + Docker, one for Gladys and one for Matterbridge, all on a Ceph pool for HA storage.  
On the HW side: i7-6700T with 16 GB of RAM, an NVMe where the system and the Ceph DB/WAL are, a 7200 rpm HDD for the Ceph pool (LXC).

[quote=«&nbsp;pierre-gilles, post:6, topic:9591&nbsp;»]  
Your instance seems really slow

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 13, 2025, 12:44pm UTC](https://community.gladysassistant.com/t/probleme-de-refresh-avec-matterbridge/9591/8 "2025-06-13T12:44:31Z")

</div>

That’s what I was thinking, it looks 100% like a disk problem! You need an SSD 🙂

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [June 13, 2025, 12:46pm UTC](https://community.gladysassistant.com/t/probleme-de-refresh-avec-matterbridge/9591/9 "2025-06-13T12:46:07Z")

</div>

I just tested with my Gladys test instance, it’s a bit faster even though the infrastructure is the same.  
I’ll send you the video and the Gladys log in a DM.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 20, 2025, 6:28am UTC](https://community.gladysassistant.com/t/probleme-de-refresh-avec-matterbridge/9591/10 "2025-06-20T06:28:18Z")

</div>

Thanks for the video and the logs @mutmut 🙂

I don’t see anything special in the logs, and the video doesn’t help me much — I’m having trouble understanding what is supposed to work or not 😅

In any case, I think the first step in your situation is to switch back to fast, full-SSD storage. If you stay on HDD, you’re likely to have a lot of problems in the future. Gladys isn’t designed to run on slow storage and that can cause issues all over the place!

On my side, I’ve noted your feedback on the loading screens and I’ll improve all that 😉

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 20, 2025, 9:10am UTC](https://community.gladysassistant.com/t/probleme-de-refresh-avec-matterbridge/9591/11 "2025-06-20T09:10:03Z")

</div>

I am proposing a PR to improve loading states.

For example, when the «&nbsp;Devices&nbsp;» page is loaded but the list of devices paired via Matter is being refreshed, the page now displays:

 ![Screenshot 2025-06-20 at 11.06.30](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/e/a/ea8e95a6a13e69991c7032bd17d5157907f5f543.png)

I also improved the «&nbsp;Add a device&nbsp;» and «&nbsp;Settings&nbsp;» views to clearly show an indication that the page is loading.

The PR:

> <https://github.com/GladysAssistant/Gladys/pull/2340>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[x\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[x\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community (\[french forum\](https://community.gladysassistant.com/)/\[english forum\](https://en-community.gladysassistant.com/)) for testing before merging.
> 
> \### Description of change
> 
> Improve loading states on slow machines

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [June 20, 2025, 9:32am UTC](https://community.gladysassistant.com/t/probleme-de-refresh-avec-matterbridge/9591/12 "2025-06-20T09:32:25Z")

</div>

> [@pierre-gilles](#):
>
> In any case, I think the first step in your situation is to switch back to fast, all-SSD storage. If you stay on HDD, you’re likely to have a lot of problems in the future.

Done (enterprise SATA SSD) and it’s much snappier (actually like before)!

> [@pierre-gilles](#):
>
> I don’t see anything special in the logs, and the video doesn’t help me much, I’m having trouble understanding what is supposed to work or not 😅

Argh ☹  
When Matterbridge is no longer running (shutdown for example), I don’t have any indication that the devices are disconnected on my side (but I see that you have the `Disconnected` badge in your screenshot), which would let me check whether the matterbridge docker is up or down or if there’s a matterbridge plugin issue. But in my case, I don’t have that visual feedback, even after clicking the `Refresh` button (top right of Devices).  
I don’t know whether Matter has a ping or if it’s just info sent by the protocol at regular intervals, and since I don’t understand that I don’t understand how the rest works (or doesn’t work).

> [@pierre-gilles](#):
>
> I propose a PR to improve the loading states.

Great!

EDIT :  
after about ten manual refreshes (over ~20s), I finally get the Disconnected badges (but not automatically):

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/2/a/2ab18aef4f6ff57535517bc78205f66f45dce780.png)

EDIT 2 :  
ok, it seems to work fine automatically because I do get the badges after I’d say 1 to 2 minutes when returning to the Devices page.  
The HDDs probably didn’t help… I’ll keep an eye on all this over time.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 20, 2025, 12:03pm UTC](https://community.gladysassistant.com/t/probleme-de-refresh-avec-matterbridge/9591/13 "2025-06-20T12:03:36Z")

</div>

> [@mutmut](#):
>
> after about a good ten manual refreshes (over 20s), I finally get the Disconnected badges (but not automatically) :

Ok, this is indeed a user understanding issue, there is no bug.

Refreshing data from Matter can take time, especially if you have offline devices, because the Matter.js library tries to recontact those devices, and the timeout is likely several tens of seconds, hence the wait.

The loading message at the top of this screen should help better understand what’s happening 🙂

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [June 20, 2025, 12:37pm UTC](https://community.gladysassistant.com/t/probleme-de-refresh-avec-matterbridge/9591/14 "2025-06-20T12:37:37Z")

</div>

> [@pierre-gilles](#):
>
> timeout should be several dozen seconds, hence the wait.

Well, that’s the info I was missing 😜 Thanks!

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 20, 2025, 12:41pm UTC](https://community.gladysassistant.com/t/probleme-de-refresh-avec-matterbridge/9591/15 "2025-06-20T12:41:21Z")

</div>

I’ve improved the message:

 ![Screenshot 2025-06-20 at 14.41.01](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/f/4/f4d67e63dc57d37166ccdc859197ea8f78b0da90.png)

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 23, 2025, 7:44am UTC](https://community.gladysassistant.com/t/probleme-de-refresh-avec-matterbridge/9591/16 "2025-06-23T07:44:26Z")

</div>

Improvements to the loading state of the Matter integration are available in Gladys Assistant 4.61 :

> [@Gladys Assistant 4.61 : Passage à Zigbee2mqtt 2.4.0](https://community.gladysassistant.com/t/gladys-assistant-4-61-passage-a-zigbee2mqtt-2-4-0/9613):
>
> Salut à tous slightly_smiling_face Je sors aujourd’hui Gladys Assistant 4.61, avec comme amélioration majeure le passage à Zigbee2MQTT 2.4.0 ! white_check_mark Zigbee2MQTT mis à jour vers la version 2.4.0 Pour une meilleure compatibilité avec les nouveaux périphériques Zigbee, Gladys Assistant passe à la nouvelle version majeure de Zigbee2MQTT. Si vous utilisez le conteneur Zigbee2MQTT lancé par Gladys, celui-ci sera automatiquement mis à jour vers la version 2.4.0, sans action de votre p…
