arachnetech / homebridge-mqttthing

A plugin for Homebridge allowing the integration of many different accessory types using MQTT.
Apache License 2.0
462 stars 104 forks source link

temperature NaN #613

Closed frimar75 closed 1 year ago

frimar75 commented 1 year ago

Hi, i tried to integrate a tasmota temperature sensor. The sensor is recognized, but the following message pops up in the log

[05/03/2023, 17:58:14] [pooltemperatur] Received MQTT: tele/tasmota_5F1FD6/SENSOR = {"Time":"2023-03-05T17:58:13","DS18B20":{"Id":"000000038069","Temperature":20},"TempUnit":"C"} [05/03/2023, 17:58:14] [pooltemperatur] Ignoring invalid value [NaN] for Current Temperature - not a number [05/03/2023, 18:02:41] [homebridge-mqttthing] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "NaN" (number). See https://homebridge.io/w/JtMGR for more info.

and the temperature is shown as 0 degree.

The config looks like this

{ "type": "temperatureSensor", "name": "pooltemperatur", "url": "192.168.178.80:1883", "username": "xxxx", "password": "xxxx", "mqttOptions": { "keepalive": 10 }, "logMqtt": true, "topics": { "getCurrentTemperature": "tele/tasmota_5F1FD6/SENSOR" }, "history": true, "accessory": "mqttthing" }

It woould be nice, if you could help me out.