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

Values showing up at the wrong spot of the chart #18

Open
2 tasks done
jayme-github opened this issue Sep 4, 2024 · 3 comments
Open
2 tasks done

Values showing up at the wrong spot of the chart #18

jayme-github opened this issue Sep 4, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@jayme-github
Copy link

jayme-github commented Sep 4, 2024

Checklist

  • I updated the card to the latest version available
  • I cleared the cache of my browser

Describe the bug
The tooltip is showing correct values, but the white dot seems to be placed in the wrong area of the chart (see screenshot).

Version of the card
Version: 1.5.0

To Reproduce
This is the configuration I used:

type: custom:ha-vpd-chart
sensors:
  - temperature: sensor.sonoff_snzb_02_1_temperature
    humidity: sensor.sonoff_snzb_02_1_humidity_calibrated
    leaf_temperature: sensor.sonoff_snzb_02_1_temperature
    name: Sonoff
vpd_phases:
  - upper: 0
    className: gray-danger-zone
    color: '#999999'
  - lower: 0
    upper: 0.4
    className: under-transpiration
    color: '#1a6c9c'
  - lower: 0.4
    upper: 0.8
    className: early-veg
    color: '#22ab9c'
  - lower: 0.8
    upper: 1.2
    className: late-veg
    color: '#9cc55b'
  - lower: 1.2
    upper: 1.6
    className: mid-late-flower
    color: '#e7c12b'
  - lower: 1.6
    className: danger-zone
    color: '#ce4234'
is_bar_view: false
min_temperature: 5
max_temperature: 35
min_humidity: 10
max_humidity: 90
min_height: 200
leaf_temperature_offset: 2
enable_tooltip: true
air_text: Air
rh_text: RH
kpa_text: kPa
enable_axes: true
enable_ghostclick: true
enable_ghostmap: true
enable_triangle: false
enable_crosshair: true
enable_fahrenheit: false
enable_zoom: true
enable_show_always_informations: true
enable_legend: false
ghostmap_hours: 24
unit_temperature: °C

Screenshots
image

Desktop (please complete the following information):

  • Browser: Chrome 128.0.6613.119, Firefox 129.0.2
@jayme-github jayme-github added the bug Something isn't working label Sep 4, 2024
@flo269
Copy link

flo269 commented Sep 9, 2024

I'm having the same issue again as well. I am using a separate leaf temperature sensor. Please let me know if there's anything I can supply to help.

@mentalilll
Copy link
Owner

Hey,

use calculated rh. That's for recalculation of theoretical humidity.

Because Leaf Temperature Sensor is used on VPD Calculations, so there are 2 ways to render calculation.
For that task, I need to calculate rH from Temperature and kPa.

Maybe I call that function LeafTemperature Positioning. Don't know what would here more sense.

image

@lmnx
Copy link

lmnx commented Sep 28, 2024

Hi, I'm having similar issue. I would like to recommend a few things to help. First, I think it should provide 2 different types of VPD calculations in this case, as some of us may not have leaf temperature sensors.

  • If leaf temp sensor is provided, calculate plant VPD
  • If leaf temp sensor is not provide, calculate the air VPD (provide an option to calculate theorical plant VPD)

Some terminology changes could be useful too as "Calculated RH?" could be confusing (since I already provided RH value). On the other hand, distinguishing between "Air VPD", "Plant VPD", and "Calculated Plant VPD" would sound more intuitive imo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants