Периодически вылязят ошибки "characteristic value expected valid finite number and received "NaN""
avbaga opened this issue · comments
Добрый день!
Периодически вылазят ошибки.
Кусок лога прилагаю:
[11/19/2021, 13:09:10] [homebridge-tion] This plugin generated a warning from the characteristic 'Carbon Dioxide Level': characteristic value expected valid finite number and received "NaN" (number). See https://git.io/JtMGR for more info.
[11/19/2021, 13:09:10] [homebridge-tion] Error:
at CarbonDioxideLevel.Characteristic.characteristicWarning (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2074:105)
at CarbonDioxideLevel.Characteristic.validateUserInput (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1967:16)
at CarbonDioxideLevel.Characteristic.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1334:20)
at CarbonDioxideSensor.Service.setCharacteristic (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Service.ts:475:35)
at /usr/local/lib/node_modules/homebridge-tion/src/tion/devices/co2plus.ts:58:27
at Array.forEach ()
at TionCO2Plus.updateState (/usr/local/lib/node_modules/homebridge-tion/src/tion/devices/co2plus.ts:48:26)
at /usr/local/lib/node_modules/homebridge-tion/src/platform.ts:121:51
at Array.forEach ()
at TionPlatform.updateState (/usr/local/lib/node_modules/homebridge-tion/src/platform.ts:121:26)
[11/19/2021, 13:09:10] [homebridge-tion] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "NaN" (number). See https://git.io/JtMGR for more info.
[11/19/2021, 13:09:10] [homebridge-tion] Error:
at CurrentTemperature.Characteristic.characteristicWarning (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2074:105)
at CurrentTemperature.Characteristic.validateUserInput (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1967:16)
at CurrentTemperature.Characteristic.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1334:20)
at TemperatureSensor.Service.setCharacteristic (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Service.ts:475:35)
at /usr/local/lib/node_modules/homebridge-tion/src/tion/devices/co2plus.ts:63:35
at Array.forEach ()
at TionCO2Plus.updateState (/usr/local/lib/node_modules/homebridge-tion/src/tion/devices/co2plus.ts:48:26)
at /usr/local/lib/node_modules/homebridge-tion/src/platform.ts:121:51
at Array.forEach ()
at TionPlatform.updateState (/usr/local/lib/node_modules/homebridge-tion/src/platform.ts:121:26)
[11/19/2021, 13:09:10] [homebridge-tion] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "NaN" (number). See https://git.io/JtMGR for more info.
Исправлено в #30
Установите версию 1.0.21