question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Dew Point Negative Temperature Error

See original GitHub issue

Describe the bug Dew point values that are negative cause an error.

To Reproduce Have a negative dew_point value input.

Expected behavior I’m not familiar with the calculation for evapotranspiration so I cannot say whether a negative dew point is suitable for input. If one is not suitable perhaps we could floor the dew_point value to 0 with inputs <0.

Screenshots I’m not sure a screenshot is helpful, but an excerpt from the error log below.

File "/config/custom_components/smart_irrigation/OWMClient.py", line 61, in get_data
    self.validationError(k,data[k],OWM_validators[k]["min"],OWM_validators[k]["max"])
  File "/config/custom_components/smart_irrigation/OWMClient.py", line 84, in validationError
    raise ValueError("Value {0} is not valid for {1}. Excepted range: {2}-{3}".format(value,key,minval,maxval))
ValueError: Value -5.95 is not valid for dew_point. Excepted range: 0-35
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/config/custom_components/smart_irrigation/__init__.py", line 533, in _async_initial_update
    await self.handle_calculate_hourly_adjusted_run_time(call=None)
  File "/config/custom_components/smart_irrigation/__init__.py", line 406, in handle_calculate_hourly_adjusted_run_time
    self.data = await self._async_update_data()
  File "/config/custom_components/smart_irrigation/__init__.py", line 546, in _async_update_data
    raise UpdateFailed(exception)
homeassistant.helpers.update_coordinator.UpdateFailed: Value -5.95 is not valid for dew_point. Excepted range: 0-35

Installed version 0.74

Additional context Previous versions have not shown the issue and rolling back to previous versions has resolved this issue. I currently use an ecowitt weather vain for most of the inputs to this integration and it generates negative dew point values.

Thanks for a great integration!

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
natosyscommented, Sep 14, 2021

I think at <0 it would be referred to as the frost point rather than the dew point, but I’m not sure that matters for this use case.

Thanks for what you do.

0reactions
natosyscommented, Jan 22, 2022

Hi @jeroenterheerdt, log as promised. It looks like, regardless of the precipitation amount it calculates a water_budget and adjusted_run_time of 0. debug log.txt

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do you get a negative dew point? - WRAL
A negative dew point simply means the air is dry enough that it would have to be cooled to that very low temperature,...
Read more >
Can the dew point in the high desert drop below zero?
Because the dew point can never be higher than the temperature, by definition there must be a negative dew point any time the...
Read more >
Dewpoint stuck at 10 C - Microsoft Flight Simulator Forums
The dewpoint is stuck at 10C (on ATIS) which makes every temperature below 0 Degrees Celcius a Freezing condition. I tried to remove...
Read more >
9.2.1 Causes of Errors in Forecast Temperature and Humidity
Effects contributing to dew point temperature errors ... To combat this problem the radiation code was changed and involved modifying the ...
Read more >
temperature dew-point temperature: Topics by Science.gov
We present a dew point temperature sensor with the thermal detection of condensed ... Both T d and T w showed negative trends...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found