Pirate-Weather / pirate-weather-ha

Replacement for the default Dark Sky Home Assistant integration using Pirate Weather
https://pirateweather.net/
Apache License 2.0
369 stars 26 forks source link

Pressure reading "spikes" at over 3000hPa every week #330

Open speedbird182 opened 2 weeks ago

speedbird182 commented 2 weeks ago

Describe the bug

Every week at midnight on Monday morning (00:00:xx) the pressure reading jumps to over 3000hPa before returning to normal. This reading of over 3000hPa then causes the display history to be completely unreadable.

image

image

Expected behavior

values with such a high jump (200% increase) should be ignored/dropped as being invalid.

Actual behavior

Any value is recorded and skews the data

Home Assistant version

2024.10.3

Integration version

1.6

Other details

No response

Troubleshooting steps

alexander0042 commented 2 weeks ago

Thanks for posting this issue, and I'm sorry that you're running into it! The good news here is that this sort of long term, periodic thing is exactly what I need to diagnose the problem, so it's very, very helpful.

I'll investigate and let you know, but I've got a theory about what's happening here

alexander0042 commented 2 weeks ago

One interesting aspect to this is that it's occurring at 00:00 local time, not UTC like the API runs in. Do you mind letting me know what location you're querying data for?

alexander0042 commented 2 weeks ago

One other helpful troubleshooting step here- would you be able to add in two hourly pressure sensors, for 0 and 1 hours? That way we could get a better handle about what the API is "seeing" at that moment

speedbird182 commented 2 weeks ago

I'm querying the API from the UK (Currently UTC+1). I've set up the pressure sensors for hours 0 and 1 as I don't have them configured. I'll let you know how this goes next week (BST ends and goes back to being GMT/UTC this weekend)

alexander0042 commented 2 weeks ago

Thanks for adding those! We'll keep an eye on it, since those two points will really help pinpoint what's happening

radumarinoiu commented 1 week ago

I am also encountering this same issue, but with all the live sensors I'm using from PirateWeather:

Also I cannot find a pattern to how often this is happening, except for the fact that it happens at midnight local time for me as well

image

Those 3 sensors above are the only ones exhibiting this issue. Here's a list of all the sensors I have enabled: image

Let me know if there's anything more I can help with

speedbird182 commented 1 week ago

I'm querying the API from the UK (Currently UTC+1). I've set up the pressure sensors for hours 0 and 1 as I don't have them configured. I'll let you know how this goes next week (BST ends and goes back to being GMT/UTC this weekend)

After the UK went back to GMT this weekend, this issue didn't happen overnight (at least for me it didn't).