You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now the library only exposes the roomTemp, but sensors have a temperature as well.
In my case the roomTemp can only display 0.5 degree accuracy, whereas the sensor - at least seems - much preciser.
Mainly opening this FR to discuss what way you think this should be exposed (I'm happy to send a PR afterwards).
My simple idea would be to have get_current_temperature() return the sensor's temperature if available and then fall back to roomTemp. How does that sound?
Thanks!
Fabi
The text was updated successfully, but these errors were encountered:
Sorry for the long-delayed response. Yes, since the sensor's temperature seems to be reported with greater precision I'd accept a small PR to return the sensor's temperature, if present, and fall back to the current method otherwise.
Hi there!
Right now the library only exposes the
roomTemp
, but sensors have atemperature
as well.In my case the
roomTemp
can only display 0.5 degree accuracy, whereas the sensor - at least seems - much preciser.Mainly opening this FR to discuss what way you think this should be exposed (I'm happy to send a PR afterwards).
My simple idea would be to have
get_current_temperature()
return the sensor's temperature if available and then fall back toroomTemp
. How does that sound?Thanks!
Fabi
The text was updated successfully, but these errors were encountered: