core: Airly doesn't find station

The problem

When I add the integration through the UI using my API key and my home location, I expect Airly to find the nearest station. However, it only produces an error “Geen Airly meetstations in dit gebied.” (No Airly stations in this area). When I move to the Airly developer area and try the API, I can find the nearest station to me:

[
  {
    "id": 10189,
    "location": {
      "latitude": 51.914999,
      "longitude": 4.480289
    },
    "address": {
      "country": "Netherlands",
      "city": "Rotterdam",
      "street": "Baan",
      "number": "25",
      "displayAddress1": "Rotterdam",
      "displayAddress2": "Baan"
    },
    "elevation": 5.35,
    "airly": false,
    "sponsor": {
      "id": 576,
      "name": "EEA",
      "description": "Source",
      "logo": "https://cdn.airly.eu/logo/eea.png",
      "link": "https://www.eea.europa.eu"
    }
  }
]

When I replace my home coordinates with the lat/lon of the station itself, it produces the exact same error. So it won’t find any station for me. Making the integration unusable.

Environment

  • Home Assistant release with the issue: 0.107.4
  • Last working Home Assistant release (if known): ?
  • Operating environment (Hass.io/Docker/Windows/etc.): Hass.io
  • Integration causing this issue: Airly
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/airly/

Problem-relevant configuration.yaml

n/a. using the integrations UI.


Traceback/Error logs

Geen Airly meetstations in dit gebied.

Additional information

n/a

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 24 (9 by maintainers)

Most upvoted comments

I used exactly the coordinates of the station. You can try it with this station:

{
        "id": 9541,
        "location": {
            "latitude": 51.036105,
            "longitude": 13.730205
        },
        "locationId": 9541,
        "address": {
            "country": "Germany",
            "city": "Dresden",
            "street": "Schnorrstraße",
            "number": null,
            "displayAddress1": "Dresden",
            "displayAddress2": "Schnorrstraße"
        },
        "elevation": 120.77,
        "airly": false,
        "sponsor": {
            "id": 548,
            "name": "Umweltbundesamt",
            "description": "Source",
            "logo": "https://cdn.airly.eu/logo/UmweltBundesamt.png",
            "link": "https://www.umweltbundesamt.de",
            "displayName": "Umweltbundesamt"
        }
    }

If you get error No Airly stations in this area that’s not an issue. You can use other coordinates closer to the existing measuring station.