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:
parent
3e672b1694
commit
7938f260f1
@ -214,8 +214,8 @@ class ecobee_sensor extends cora\crud {
|
|||||||
case 'temperature':
|
case 'temperature':
|
||||||
if(
|
if(
|
||||||
is_numeric($capability['value']) === true &&
|
is_numeric($capability['value']) === true &&
|
||||||
$capability['value'] <= 999.99 &&
|
($capability['value'] / 10) <= 200 &&
|
||||||
$capability['value'] >= -999.99
|
($capability['value'] / 10) >= -200
|
||||||
) {
|
) {
|
||||||
$attributes['temperature'] = $capability['value'] / 10;
|
$attributes['temperature'] = $capability['value'] / 10;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user