home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.34k stars 29.88k forks source link

Aeotec Multisensor 6 data displayed in bar instead of graph #12941

Closed janincaptiva closed 6 years ago

janincaptiva commented 6 years ago

Home Assistant release (hass --version): 0.64.3 (via HASS.IO 1.1)

Python release (python3 --version): The one shipped with HASS.IO (not sure how to check)

Component/platform: Z-Wave

Description of problem: When clicking on any of the values reported by my Aeotec Multisensor 6, historical data are displayed in a "bar". image

Expected: Displayed in a graph.

Problem-relevant configuration.yaml entries and steps to reproduce:

zwave:
  usb_path: /dev/ttyACM0

No changes otherwise to config.

  1. Install Home assistant via HASS.IO
  2. Add zwave to config
  3. Plugin Z-Stick Gen5.
  4. Reload config
  5. Set controller in inclusion mode (as per https://home-assistant.io/docs/z-wave/adding/)
  6. Add Multisensor 6
  7. Everything is auto discovered - no further configuration needed.

Additional info: According to this forum post, it could be because the values are parsed as strings instead of floats. And they mention a fix by explicit casting the values to a float. But I'm not sure how this is done, and I would say that parsing as floats should be default behavior.

In the forum post the problem was fixed automatically via an upgrade. Based on the dates of forum post, it seems as if this is and old bug reintroduced.

I've a Aeotec Smart Switch 6 connected using same procedure. This sensor has the expected behavoir, and historical data is displayed in a graph.

fanaticDavid commented 6 years ago

I use two of these sensors but I do not have this problem. However, I did change the Command Options setting from Basic Set (default) to Binary Sensor Report for both of them through the ZWave config panel. Or actually, I may have done that through the Open Z-Wave Control Panel as I've had my sensors for a while, but that shouldn't make a difference.

janincaptiva commented 6 years ago

Hi @fanaticDavid

Thanks for input. Are you using the same version as me? I'l try your suggesion.

I forgot to note that I've had my HA setup about a year ago (same sensors and everything) without this problem. So I'm wondering if this has something to do with newer versions of HA?

fanaticDavid commented 6 years ago

I am also using Home Assistant 0.64.3 but installed in a venv (so not using hass.io).

janincaptiva commented 6 years ago

I can confirm that changing to Binary Sensor report changed the historical data to graphs as noted by @fanaticDavid