Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dkuep opened this issue Jan 23, 2024 · 0 comments
Open

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

dkuep opened this issue Jan 23, 2024 · 0 comments

Comments

@dkuep
Copy link

dkuep commented Jan 23, 2024

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: 1.7.0
  • homebridge-mi-hygrothermograph: 3.4.0
  • node: 18.18.2
  • OS: Ubuntu Jammy Jellyfish (22.04.3 LTS), Grafana is running on Debian 12

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 = "###"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant