# Issue with brightness report in graph

**URL:** <https://community.gladysassistant.com/t/pb-sur-report-luminosite-dans-graphique/10384>\
**Category:** Configuration\
**Created:** [July 27, 2026, 4:29pm UTC](https://community.gladysassistant.com/t/pb-sur-report-luminosite-dans-graphique/10384 "2026-07-27T16:29:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris75](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/6a8cbe/32.png) [@Chris75](https://community.gladysassistant.com/u/Chris75)\
**Post date:** [July 27, 2026, 4:29pm UTC](https://community.gladysassistant.com/t/pb-sur-report-luminosite-dans-graphique/10384/1 "2026-07-27T16:29:56Z")

</div>

I use the Aqara PS-S04D motion detector for the cellar: on the widget the brightness is correctly indicated in «&nbsp;lx&nbsp;» and on the graph «&nbsp;lx&nbsp;» does not appear?

 ![Screenshot 2026-07-27 180808](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/8/5/856cb1082974790db217eb4004bbfd4486f7f165.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:** [July 27, 2026, 7:06pm UTC](https://community.gladysassistant.com/t/pb-sur-report-luminosite-dans-graphique/10384/2 "2026-07-27T19:06:21Z")

</div>

Hello @Chris75, thanks for your feedback.

I was able to reproduce the issue; it’s indeed a bug in Gladys, not a configuration problem on your end.

**What’s happening:** the widget and the graph don’t fetch the unit from the same place.

- The **widget** reads the unit directly from the sensor, so it’s always up to date → it correctly displays « lx ».
- The **graph** , on the other hand, records the unit in the dashboard configuration at the moment you add the sensor to the graph. It’s a snapshot taken at time T, which is never refreshed afterward.

So, if the « Cellar » sensor didn’t have a unit when you added it to the graph (device recreated since, integration updated in the meantime…), the graph remains without a unit forever, even if the sensor has since retrieved its « lx » unit. This is exactly what we see in your screenshot: « Pantry (lx) » has the unit, « Cellar » doesn’t.

I took the opportunity to fix a second bug at the same time: when you reorder the sensors in a graph by drag-and-drop, the units weren’t reordered with them, which could assign the wrong unit to the wrong curve.

**The fix** is currently being reviewed here: [Use live device feature units in chart boxes by Pierre-Gilles · Pull Request #2716 · GladysAssistant/Gladys · GitHub](https://github.com/GladysAssistant/Gladys/pull/2716)

It makes the graph now read the unit directly from the sensor, like the widget. Once the update is installed, your graph will display correctly on its own, without you having to touch your box.

**In the meantime** , you have a simple workaround: edit your graph box, remove the « Cellar » sensor from the list, then add it back. The unit will be re-recorded in the process, and the « lx » will reappear in the legend.

---

<div class="post-metadata">

**Author:** ![Chris75](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/6a8cbe/32.png) [@Chris75](https://community.gladysassistant.com/u/Chris75)\
**Post date:** [July 27, 2026, 7:39pm UTC](https://community.gladysassistant.com/t/pb-sur-report-luminosite-dans-graphique/10384/3 "2026-07-27T19:39:18Z")

</div>

Thanks: I removed and reinserted the sensor and the graph is correct now!

 ![Capture d'écran 2026-07-27 213728](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/a/0/a00063007f05bdb9693b903a6c167f01744755d9.png)
