Xiaomi sensor data limitation

Hi, is there any data conversions in xiaomi aqara component?
I mean why I see plot floor in history plot when temperature lower than 20 celsium degrees below zero (last temperature is ~ -19.71 then pause and new actual data since ~ -19).
I know that in specs it works from -20 to +60, but Xiaomi android app shows up to -25 (but this point below of application possible axis).

It is hard coded in xiaomi_aqara.py in the sensor folder of home assistant. See below for part of the code. Either modify it in your own installation or make a request to change it on github.

    if self._data_key == 'temperature' and (value < -20 or value > 60):
        return False

Is there “https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/xiaomi_aqara.py” this file?
Because I don’t see this lines there…
However, this is a bad idea to use sensor outside, because the battery very quickly discarged in the cold.

No, I mean this file inside the componens/sensor folder.


1 Like