Aqara: better temperature sensor for SRTS-A01 #10471
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


Aqara SRTS-A01 currently exposes
device_temperaturewhich I suspect is the microcontroller's internal temperature (usually a few degrees higher than the air temp, and only has 1° precision, whereas this one has 0.1°)The device also has
local_temperaturewhich seems to be the air temperature, and already is the measured temperature for the climate entity. this means thatlocal_temperatureis not exposed as a sensor. This fixes it.Potentially, we could keep both, but I'm not familiar enough with the dev of this project to make it clear which is which (if you keep both, you have 2 sensors exposed, and it's difficult to know which is which because they both are named temperature.)
Also, since local_temperature is only access.STATE, you have to wait until it is reported to get a value, so it might be unavailable on startup?
Open for suggestions