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
73.58k stars 30.75k forks source link

Integration GeoSphere Austria: Missing Parameters (Entities) => "status unknown" #124928

Open fhroland opened 2 months ago

fhroland commented 2 months ago

The problem

Seems some Entities are not available:

Example call for station 11150 (Flughafen Salzburg):

Great would be also the import of following available entities (parameters): Niederschlagsmelder der letzten 10 Minuten (API parameter: RRM) Sonnenscheindauer (API parameter: SO)

What version of Home Assistant Core has the issue?

2024.8.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

joostlek commented 2 months ago

Please add more information like what integration

home-assistant[bot] commented 2 months ago

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

Code owner commands Code owners of `zamg` 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 zamg` 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)


zamg documentation zamg source (message by IssueLinks)

killer0071234 commented 2 months ago

@fhroland The thing with some invalid entities is that not every weather station is returning all measurements.

Example 1 Station Flughafen Salzburg (11150): Dew Point (TP): valid Dew Point average (TPAM): invalid Humidity (RF): valid Humidity average (RFAM): invalid Sunshine last 10min (SO): valid Precipitation (RR): valid Precipitation Duration (RRM): valid Wind Speed (FFAM): invalid Top Wind Speed (FFX): valid https://dataset.api.hub.geosphere.at/v1/station/current/tawes-v1-10min?parameters=RR,RRM,SO,TL,TP,TPAM,DD,P,PRED,RF,RFAM,FFX,FFAM&station_ids=11150&output_format=geojson

Example 2 Station Güssing (11198): Dew Point (TP): valid Dew Point average (TPAM): valid Humidity (RF): valid Humidity average (RFAM): valid Sunshine last 10min (SO): valid Precipitation (RR): valid Precipitation Duration (RRM): valid Wind Speed (FFAM): valid Top Wind Speed (FFX): valid

https://dataset.api.hub.geosphere.at/v1/station/current/tawes-v1-10min?parameters=RR,RRM,SO,TL,TP,TPAM,DD,P,PRED,RF,RFAM,FFX,FFAM&station_ids=11198&output_format=geojson

In the 2 Examples above you see that the second station is returning more values as your station Flughafen Salzburg. The mentioned values dew point average and wind speed are not supported by your weather station. But anyway we can add the Niederschlagsmelder der letzten 10 Minuten (API parameter: RRM) as extension. For the Humidity (RF) currently just the average parameter (RFAM) is read from the api which is not returning anything in your case. I think I need to extend the call for supporting the missing parameter (RF).

BR Daniel

fhroland commented 2 months ago

You are right Daniel, but that is also the reason why I was (and still am) surprised that some of the values supplied by the weather station are not taken over in the HA. I have attached a screenshot showing the current values from Salzburg Airport. Both the wind speed and the humidity are missing.

BR Roland

Screenshot 2024-09-03 202922

killer0071234 commented 2 months ago

Ok, I got the point. That's so confusing from Geosphere that there are many variations between the stations.

In my test environment I had already everything in: grafik

BR Daniel

fhroland commented 2 months ago

Great, because you can calculate the average values yourself within HA if you need them.

HA or the integration should actually update the values every 10 minutes, right? I've also noticed and mostly the log shows also that the values were collected a few hours ago. This is also visible in the history of the data (see screenshot). Screenshot 2024-09-03 210542

killer0071234 commented 2 months ago

Great, because you can calculate the average values yourself within HA if you need them.

No not really, because the average values are reported from the weather station in that 10min time frame where new data are available. But making an average over a hour or day you can do in HA.

HA or the integration should actually update the values every 10 minutes, right? I've also noticed and mostly the log shows also that the values were collected a few hours ago. This is also visible in the history of the data (see screenshot).

Yes, that's right, but there was a issue on Geosphere side between 2nd of September 14:45 and 3rd 16:45. (See issue: #125137) grafik

BR Daniel