hannseman / homebridge-mi-hygrothermograph

Homebridge plugin for the Xiaomi Mi Bluetooth Temperature and Humidity Sensor
MIT License
264 stars 52 forks source link

Not receiving decimal/float temperature values in influxDB/Grafana #196

Open dkuep opened 6 months ago

dkuep commented 6 months ago

Expected Behavior

Hello, I am relatively new to Homebridge and TIG-Stack and was happy to have it running now with no issues for some time. After the last version update (v3.4.0) im experiencing a strange behaviour:

Current Behavior

I get readings from 3 sensors to show up fine in Homebridge. In Grafana however, only integer values (with no decimals) are displayed as expected. Reading the MQTT stream directly (MQTT running in docker) I get all values as expected. Only thing I can observe here is that either they appear to be float/decimal e.g. 20.3 or integer e.g. 21. So round values miss a trailing .0. MQTT stream is sent to my InfluxDB via Telegraf and displayed using Grafana (all in docker containers)

Steps to Reproduce (for bugs)

Versions

Homebridge Log / Command Output

MQTT Stream:

sensors/hallway/temperature 21                     # will be displayed correctly
sensors/hallway/humidity 50.9                        # will NOT
sensors/hallway/temperature 20.9                  # and so on...
sensors/hallway/humidity 50.9

Telegraf config:

servers = ["tcp://mosquitto:####"]
topics = [
  "sensors/#",
]
data_format = "csv"
csv_header_row_count = 0
csv_skip_columns = 0
csv_column_names = ["value"]
username = "###"
password = "###"