core icon indicating copy to clipboard operation
core copied to clipboard

Z-Wave Multilevel sensor data not populating in influxdb via influxdb integration

Open dfluff opened this issue 11 months ago • 3 comments

The problem

I have set up the influxdb integration so that I can plot data from my Z-Wave humidity sensors alongside other non-Home Assistant data. However, although the sensors are appearing in influx, only data from the binary-state sensors, sensor-health and last-seen states are populating. The two "muliti-level" sensors (those being humidity and temperature) are non appearing.. and those are the only ones I actually care about.

My configuration.yaml entry looks like this:

influxdb:
  host: influxdb
  port: 8086
  database: REMOVED
  username: REMOVED
  password: REMOVED
  ssl: false
  precision: ms

Doing a show measurements in influx just gives me:

binary_sensor.wardrobe_low_battery_level
binary_sensor.wardrobe_moisture_alarm
binary_sensor.wardrobe_overheat_detected
binary_sensor.wardrobe_replace_battery_now
binary_sensor.wardrobe_underheat_detected
sensor.wardrobe_last_seen
sensor.wardrobe_node_status
update.wardrobe_firmware

What version of Home Assistant Core has the issue?

core-2024.9.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

influxdb

Link to integration documentation on our website

https://www.home-assistant.io/integrations/influxdb/

Diagnostics information

Enabling debug logging for the influx integration only gives messages like this:

2025-01-14 23:07:45.491 DEBUG (influxdb) [homeassistant.components.influxdb] Wrote 100 events.
2025-01-14 23:07:46.719 DEBUG (influxdb) [homeassistant.components.influxdb] Wrote 22 events.
2025-01-14 23:07:49.057 DEBUG (influxdb) [homeassistant.components.influxdb] Wrote 3 events.
2025-01-14 23:07:51.683 DEBUG (influxdb) [homeassistant.components.influxdb] Wrote 3 events.
2025-01-14 23:07:53.567 DEBUG (influxdb) [homeassistant.components.influxdb] Wrote 4 events.
2025-01-14 23:07:55.396 DEBUG (influxdb) [homeassistant.components.influxdb] Wrote 4 events.
2025-01-14 23:07:57.261 DEBUG (influxdb) [homeassistant.components.influxdb] Wrote 2 events.
2025-01-14 23:07:59.393 DEBUG (influxdb) [homeassistant.components.influxdb] Wrote 3 events.
2025-01-14 23:08:05.218 DEBUG (influxdb) [homeassistant.components.influxdb] Wrote 2 events.
2025-01-14 23:08:09.064 DEBUG (influxdb) [homeassistant.components.influxdb] Wrote 3 events.
2025-01-14 23:08:11.563 DEBUG (influxdb) [homeassistant.components.influxdb] Wrote 2 events.

Example YAML snippet

influxdb:
  host: influxdb
  port: 8086
  database: REMOVED
  username: REMOVED
  password: REMOVED
  ssl: false
  precision: ms

Anything in the logs that might be useful for us?


Additional information

No response

dfluff avatar Jan 14 '25 23:01 dfluff

Hey there @mdegat01, mind taking a look at this issue as it has been labeled with an integration (influxdb) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of influxdb can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign influxdb Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


influxdb documentation influxdb source (message by IssueLinks)

home-assistant[bot] avatar Jan 14 '25 23:01 home-assistant[bot]

I have a very similar issue with a SONOFF thermometer/hygrometer.

I successfully get data into the same InfluxDB from my BS444 Bluetooth Lidl bathroom scale which is linked though an ESP32Home implementation into HA following this project: https://github.com/bwynants/weegschaal

First I had the SONOFF sensor attached via my IKEA Dirigent, now it is connected directly through a Zigbee dongle. But in neither case the data appears in the InfluxDB. I also tried with both the entity_globs which works for the bathroom scale and with the individual entitys

Here is my configuration.yaml

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

influxdb:
  host: 192.168.0.221
  port: 8086
  database: home_assistant
  username: ********
  password: ********
  ssl: false
  verify_ssl: true
  max_retries: 10

  measurement_attr: entity_id
  include:
    entity_globs:
       - sensor.bathroomscale*
       - sensor.sonoff_sznb_02d*

uwezi avatar Feb 04 '25 22:02 uwezi

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.