# Netatmo: Removal of min and max temperature values

**URL:** <https://community.gladysassistant.com/t/netatmo-suppression-des-valeurs-mini-et-maxi-de-temperature/9606>\
**Category:** Configuration\
**Tags:** dashboard\
**Created:** [June 20, 2025, 10:15am UTC](https://community.gladysassistant.com/t/netatmo-suppression-des-valeurs-mini-et-maxi-de-temperature/9606 "2025-06-20T10:15:19Z")\
**Posts on this page:** 14\
**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 20, 2025, 10:15am UTC](https://community.gladysassistant.com/t/netatmo-suppression-des-valeurs-mini-et-maxi-de-temperature/9606/1 "2025-06-20T10:15:19Z")

</div>

Hello,  
In my living room, I have several associated temperature sensors (multi-protocol) :

- SONOFF SNZB-02D sensor (Zigbee)
- Netatmo station (Netatmo)
- Dyson fan (Matter)
- «&nbsp;oeil de soron&nbsp;» Fibaro FGMS001 (Z-Wave)

I display the room temperature on my dashboard and the average obtained does not match the average of these 4 devices.  
Looking at the details, I noticed that the Netatmo station was sending me 3 temperature values: current, min and max.  
And so with the min and max, the room temperature average on the dashboard is skewed.

Is it possible to eliminate the min and max values from all devices that send these data for the display of the average temperature of a room?

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [June 20, 2025, 11:36am UTC](https://community.gladysassistant.com/t/netatmo-suppression-des-valeurs-mini-et-maxi-de-temperature/9606/2 "2025-06-20T11:36:02Z")

</div>

Hi @mutmut,

This is «&nbsp;my fault&nbsp;» ^^  
There should have been a better spec at the time. We’ll see what @pierre-gilles thinks, but I suppose the only way to do it today would be to:

- create 2 new types of TEMPERATURE\_SENSOR: for example «&nbsp;temperature\_min&nbsp;» and «&nbsp;temperature\_max&nbsp;» (we could consider creating a «&nbsp;temperature\_avg&nbsp;» now)
- migrate the type of Netat

---

<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:05pm UTC](https://community.gladysassistant.com/t/netatmo-suppression-des-valeurs-mini-et-maxi-de-temperature/9606/3 "2025-06-20T12:05:04Z")

</div>

> [@Terdious](#):
>
> We’ll see what @pierre-gilles thinks but I suppose the only way to do it today would be:

Exactly!

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [June 20, 2025, 12:39pm UTC](https://community.gladysassistant.com/t/netatmo-suppression-des-valeurs-mini-et-maxi-de-temperature/9606/4 "2025-06-20T12:39:49Z")

</div>

I’ll do it as soon as possible!!

---

<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:45pm UTC](https://community.gladysassistant.com/t/netatmo-suppression-des-valeurs-mini-et-maxi-de-temperature/9606/5 "2025-06-20T12:45:09Z")

</div>

Thanks @Terdious 😁

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [June 24, 2025, 6:17am UTC](https://community.gladysassistant.com/t/netatmo-suppression-des-valeurs-mini-et-maxi-de-temperature/9606/6 "2025-06-24T06:17:57Z")

</div>

Hi @pierre-gilles,

The pull request has been created: [Added min/max/avg temperature types and Netatmo fixes by Terdious · Pull Request #2341 · GladysAssistant/Gladys · GitHub](https://github.com/GladysAssistant/Gladys/pull/2341)  
**Before :**

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/e/8/e837a69e999a1e6192aa4baf9ecde0910bf405b3.png)  
**After :**  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/7/c/7c5c3ccbf15198c9278d8f130ae657ab9f6316b2.png)

Regarding the tests for the room average temperature:

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/0/5/05f4f83a0467d69e0a86ca41ef4a29fa9191f5d6.png)

I took all the temperature devices. The 3 that are current temperatures are :

- Living room hygrometer (Temperature - Hygromètre salon) = 23.5°C
- Living room hygrometer (Temperature - room Living room) = 22.5°C
- Living room valve (Temperature) = 22.5°C  
=\> Average temperature = (23.5 + 22.5 + 22.5) / 3 = 22.83°C =\> Ok.

If I add the 2 that are now again of a different type :

- Living room hygrometer (Maximum temperature) = 24.2°C
- Living room hygrometer (Maximum temperature) = 23.5°C  
=\> Previous total average temperature = (23.5 + 22.5 + 22.5 + 24.2 + 23.5) / 5 = 23.24°C =\> Not Ok =\> **The changes are therefore valid on that side.**  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/2/f/2f75175c5dc20162cb744bac1980185d34092136.png)

I’ll finish the tests tonight or tomorrow morning!!

---

<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 24, 2025, 6:50am UTC](https://community.gladysassistant.com/t/netatmo-suppression-des-valeurs-mini-et-maxi-de-temperature/9606/7 "2025-06-24T06:50:31Z")

</div>

Great, thanks for your quick response! Keep me posted as soon as it’s ready for review 🙂

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [June 24, 2025, 1:08pm UTC](https://community.gladysassistant.com/t/netatmo-suppression-des-valeurs-mini-et-maxi-de-temperature/9606/8 "2025-06-24T13:08:51Z")

</div>

Looks good to me @pierre-gilles! You can review.

Hope I didn’t forget anything. I struggled with the tests because I couldn’t find the data used (apparently in the seeders). And there was an error in the types passed for the temperature (type = «&nbsp;temperature&nbsp;» instead of «&nbsp;decimal&nbsp;» =\> the tests passed because we weren’t taking types into account).

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [June 25, 2025, 6:11am UTC](https://community.gladysassistant.com/t/netatmo-suppression-des-valeurs-mini-et-maxi-de-temperature/9606/9 "2025-06-25T06:11:04Z")

</div>

Hi @pierre-gilles,

I saw you looked at the PR. FYI it’s fixed.

---

<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 25, 2025, 6:14am UTC](https://community.gladysassistant.com/t/netatmo-suppression-des-valeurs-mini-et-maxi-de-temperature/9606/10 "2025-06-25T06:14:29Z")

</div>

Did you test the migration on your machine? 🙂

If so, it looks good to me!

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [June 25, 2025, 6:16am UTC](https://community.gladysassistant.com/t/netatmo-suppression-des-valeurs-mini-et-maxi-de-temperature/9606/11 "2025-06-25T06:16:36Z")

</div>

Yes, full migration of the 3 devices :

> [@Terdious](#):
>
> ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/e/8/e837a69e999a1e6192aa4baf9ecde0910bf405b3.png)
> 
> **After:**
> 
> ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/7/c/7c5c3ccbf15198c9278d8f130ae657ab9f6316b2.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 25, 2025, 3:50pm UTC](https://community.gladysassistant.com/t/netatmo-suppression-des-valeurs-mini-et-maxi-de-temperature/9606/12 "2025-06-25T15:50:52Z")

</div>

Great, it’s merged and it will be included in the next Gladys release 🙂

---

<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 11, 2025, 12:37pm UTC](https://community.gladysassistant.com/t/netatmo-suppression-des-valeurs-mini-et-maxi-de-temperature/9606/13 "2025-07-11T12:37:13Z")

</div>

It’s available in Gladys Assistant v4.61.1:

> [@Gladys Assistant 4.61.1 : Corrections Caldav, HomeKit, Netatmo & Zigbee2mqtt](https://community.gladysassistant.com/t/gladys-assistant-4-61-1-corrections-caldav-homekit-netatmo-zigbee2mqtt/9636):
>
> Salut à tous, C’est probablement la dernière release de l’été sur Gladys. Ensuite, je travaillerai en coulisse sur des sujets de fond dont je parlerai à la rentrée, et je prendrai bien évidemment des vacances bien méritées pour faire une pause slight_smile Les correctifs de cette v4.61.1 : mobile_phone HomeKit : Gestion des volets roulants simples Les volets roulants dans Gladys, ne disposant pas de commande en pourcentage mais seulement d’un contrôle simple, sont désormais correctement …

Thanks @Terdious for the development 🙂

---

<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 11, 2025, 12:37pm UTC](https://community.gladysassistant.com/t/netatmo-suppression-des-valeurs-mini-et-maxi-de-temperature/9606/14 "2025-07-11T12:37:16Z")

</div>


