homebridge-mqttthing: Voltage: supplied illegal value

How this can be fixed? my arduino sends this voltage state and i like to display this value. Seems a fixed value of 100 which isnt met due the minimum value?

[ESP2688 Battery] Ignoring invalid value [4.44] for Voltage - below minimum (100)

[homebridge-mqttthing] This plugin generated a warning from the characteristic 'Voltage': characteristic was supplied illegal value: number 4.44 exceeded minimum of 100. See https://git.io/JtMGR for more info.

https://github.com/arachnetech/homebridge-mqttthing/blob/42c7a5da71b2a6d80d49d2e70016dd03db387c24/index.js#L2241

 Error:
    at _Characteristics.<computed>.Characteristic.characteristicWarning (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2038:105)
    at _Characteristics.<computed>.Characteristic.validateUserInput (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1946:16)
    at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1533:24
    at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/once.ts:9:18
    at handleGetStateCallback (/usr/local/lib/node_modules/homebridge-mqttthing/index.js:282:21)
    at _Characteristics.<computed>.<anonymous> (/usr/local/lib/node_modules/homebridge-mqttthing/index.js:1174:21)
    at _Characteristics.<computed>.emit (events.js:375:28)
    at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1508:14
    at new Promise (<anonymous>)
    at _Characteristics.<computed>.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1506:12)

Also the pressure gets invalid:

Ignoring invalid value [989.51] for Air Pressure - not an integer

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 19 (7 by maintainers)

Most upvoted comments

I`ve set the minVolts to 100, no maxVolts, let´s see what happens