Skip to content

Wind speed displayed with wrong unit #15710

Closed
@Luzifer

Description

Home Assistant release with the issue:

  • Version v0.74.2
  • Docker image homeassistant/home-assistant@sha256:3db7271c92eacd17221b9361a2a892d0beef9f9ec19a1109c87dda6cd857cc39
    (pulled as homeassistant/home-assistant:latest)

Component/platform:

OpenWeatherMap

Description of problem:

  • Wind speed displayed as km/h while data is delivered in m/s
    image
  • OpenWeatherMap API documentation
  • Current API result
    {
      "cnt": 1,
      "list": [
        {
          "coord": {
            "lon": 9.7,
            "lat": 53.58
          },
          "sys": {
            "type": 1,
            "id": 4901,
            "message": 0.1282,
            "country": "DE",
            "sunrise": 1532662159,
            "sunset": 1532719502
          },
          "weather": [
            {
              "id": 803,
              "main": "Clouds",
              "description": "broken clouds",
              "icon": "04d"
            }
          ],
          "main": {
            "temp": 27.49,
            "pressure": 1012,
            "humidity": 54,
            "temp_min": 27,
            "temp_max": 28
          },
          "visibility": 10000,
          "wind": {
            "speed": 6.2, // <-- Numeric value as in the widget above
            "deg": 60
          },
          "clouds": {
            "all": 56
          },
          "dt": 1532718618,
          "id": 2813464,
          "name": "Wedel"
        }
      ]
    }
  • Weather result from Google
    image
    (Conversion: 6.2 m/s * 3.6 = 22.32 km/h ~ 19 km/h)

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions