ZAMG Integration not working as expected

Hi Guys,

I wanted to ZAMG integration for austrian weather data because most of the other services are very unreliable.

I configured the integration via configuration.yaml as written in the documentation with the station id 11331 for “Klagenfurt/Flughafen” and the integration tells me

2021-03-17 06:51:31 ERROR (SyncWorker_2) [homeassistant.components.zamg.sensor] Configured ZAMG station_id (11331) is not a known station

Anyhow I looked over the code on github (I’m not a coder) and saw that obviously the list is getting fetched from: http://www.zamg.ac.at/ogd/ and what should I say - the station ID is correct.

Maybe someone have an Idea?

Cheers Florian

I don’t know details of Austrian geography, but the docs say’:

Only observations for capital cities are publicly available

Hey,

Klagenfurt is the capital city of Carinthia.

Cheers

Hey, have you tried the example from the documentation ?

# Example configuration.yaml entry
sensor:
  - platform: zamg
    station_id: 11035
    name: Wien

If this works, try the station id from here:

When I try the station id 11035 - i do not get any errors. I do get an entity then but without any values with it’s attributes.

Cheers

Please ignore…

Ehm what should I ignore?

For the values you have to add theme by hand. For temperature and humidity:

# Example configuration.yaml entry
sensor:
  - platform: zamg
    station_id: 11035
    name: Wien
    monitored_conditions:
      - temperature
      - humidity

It seems like just Klagenfurt is not working.

Yeah right.
I don’t mind the weather in Vienna :wink:
It too far for me :stuck_out_tongue:

Maybe one of the developers can check on that?

I have found an other thread addressing the same topic: ZAMG - Weather Sensor - unkown station? - #3 by luxnch

Use the station numbers from this file:
https://www.zamg.ac.at/cms/en/documents/climate/doc_metnetwork/zamg-observation-points

@florianmulatz Greetings from Vorarlberg btw. :smiley:

Hi Stefan,

Unfortunately this still does not work (I already stripped out this URL from the github-source-code) - It looks like that only “Klagenfurt” is not working. All other stations work fine. I already opened a BUG at github for this issue.

Unfortunately I’m not in python programming so I’m not able to fix that on my own.

Cheers