1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Fixed #339 - Sensor values over 100F show up as 0.0 in "Sensors" section

I was incorrectly limiting between -100F and 100F. Doubled that. The limit exists to filter out obviously bad data (which there is some of)
This commit is contained in:
Jon Ziebell 2021-07-08 20:37:32 -04:00
parent 3e672b1694
commit 7938f260f1

View File

@ -214,8 +214,8 @@ class ecobee_sensor extends cora\crud {
case 'temperature':
if(
is_numeric($capability['value']) === true &&
$capability['value'] <= 999.99 &&
$capability['value'] >= -999.99
($capability['value'] / 10) <= 200 &&
($capability['value'] / 10) >= -200
) {
$attributes['temperature'] = $capability['value'] / 10;
} else {