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
74.12k stars 31.11k forks source link

Inconsistent Weather Platforms #13564

Closed mynameisdaniel32 closed 6 years ago

mynameisdaniel32 commented 6 years ago

Home Assistant release with the issue: 0.67.0.dev0 (updated 30/03/18)

Last working Home Assistant release (if known): Unknown/Never?

Operating environment (Hass.io/Docker/Windows/etc.): Debian Virtual Env

Component/platform: Weather Platform, affects multiple (possibly all? weather components).

Description of problem: Data stored in the forecast arrays of various weather components is inconsistent. Values which are available aren't stored in some which makes using these weather components as interchangeable equals impossible (something that would be nice to have given some platforms are more accurate for some people).

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

weather:
  - platform: yweather

  - platform: darksky
    api_key: !secret darksky_api_key

  - platform: bom
    station: 'IDS60901.95677'

Additional information: Using templates shown, pulls the data arrays below. I believe the YWeather data is the most useful for this component. I haven't checked all components, but the Buienradar component looks to pull data consistent with YWeather.

YWeather
{{states.weather.yweather.attributes.forecast}}

Dark Sky
{{states.weather.dark_sky.attributes.forecast}}

BOM
{{states.weather.bom_parafield.attributes.forecast}}
YWeather
[{'datetime': '31 Mar 2018', 'temperature': 24, 'condition': 'sunny', 'templow': 12}, {'datetime': '01 Apr 2018', 'temperature': 24, 'condition': 'cloudy', 'templow': 15}, {'datetime': '02 Apr 2018', 'temperature': 20, 'condition': 'cloudy', 'templow': 13}, {'datetime': '03 Apr 2018', 'temperature': 21, 'condition': 'sunny', 'templow': 12}, {'datetime': '04 Apr 2018', 'temperature': 23, 'condition': 'cloudy', 'templow': 12}, {'datetime': '05 Apr 2018', 'temperature': 21, 'condition': 'sunny', 'templow': 13}, {'datetime': '06 Apr 2018', 'temperature': 21, 'condition': 'sunny', 'templow': 13}, {'datetime': '07 Apr 2018', 'temperature': 21, 'condition': 'sunny', 'templow': 12}, {'datetime': '08 Apr 2018', 'temperature': 28, 'condition': 'sunny', 'templow': 16}, {'datetime': '09 Apr 2018', 'temperature': 20, 'condition': 'cloudy', 'templow': 13}]

Dark Sky
[{'datetime': '2018-03-31T12:00:00', 'temperature': 22.5}, {'datetime': '2018-03-31T13:00:00', 'temperature': 24.0}, {'datetime': '2018-03-31T14:00:00', 'temperature': 25.0}, {'datetime': '2018-03-31T15:00:00', 'temperature': 25.5}, {'datetime': '2018-03-31T16:00:00', 'temperature': 25.8}, {'datetime': '2018-03-31T17:00:00', 'temperature': 25.5}, {'datetime': '2018-03-31T18:00:00', 'temperature': 24.1}, {'datetime': '2018-03-31T19:00:00', 'temperature': 22.3}, {'datetime': '2018-03-31T20:00:00', 'temperature': 20.7}, {'datetime': '2018-03-31T21:00:00', 'temperature': 19.5}, {'datetime': '2018-03-31T22:00:00', 'temperature': 18.5}, {'datetime': '2018-03-31T23:00:00', 'temperature': 17.7}, {'datetime': '2018-04-01T00:00:00', 'temperature': 17.1}, {'datetime': '2018-04-01T01:00:00', 'temperature': 16.7}, {'datetime': '2018-04-01T02:00:00', 'temperature': 16.6}, {'datetime': '2018-04-01T02:00:00', 'temperature': 16.7}, {'datetime': '2018-04-01T03:00:00', 'temperature': 17.1}, {'datetime': '2018-04-01T04:00:00', 'temperature': 17.3}, {'datetime': '2018-04-01T05:00:00', 'temperature': 17.0}, {'datetime': '2018-04-01T06:00:00', 'temperature': 16.7}, {'datetime': '2018-04-01T07:00:00', 'temperature': 17.3}, {'datetime': '2018-04-01T08:00:00', 'temperature': 19.2}, {'datetime': '2018-04-01T09:00:00', 'temperature': 21.5}, {'datetime': '2018-04-01T10:00:00', 'temperature': 23.3}, {'datetime': '2018-04-01T11:00:00', 'temperature': 24.6}, {'datetime': '2018-04-01T12:00:00', 'temperature': 25.5}, {'datetime': '2018-04-01T13:00:00', 'temperature': 26.0}, {'datetime': '2018-04-01T14:00:00', 'temperature': 26.3}, {'datetime': '2018-04-01T15:00:00', 'temperature': 26.4}, {'datetime': '2018-04-01T16:00:00', 'temperature': 26.1}, {'datetime': '2018-04-01T17:00:00', 'temperature': 25.2}, {'datetime': '2018-04-01T18:00:00', 'temperature': 23.9}, {'datetime': '2018-04-01T19:00:00', 'temperature': 22.5}, {'datetime': '2018-04-01T20:00:00', 'temperature': 21.0}, {'datetime': '2018-04-01T21:00:00', 'temperature': 19.6}, {'datetime': '2018-04-01T22:00:00', 'temperature': 18.7}, {'datetime': '2018-04-01T23:00:00', 'temperature': 18.0}, {'datetime': '2018-04-02T00:00:00', 'temperature': 17.6}, {'datetime': '2018-04-02T01:00:00', 'temperature': 17.3}, {'datetime': '2018-04-02T02:00:00', 'temperature': 17.2}, {'datetime': '2018-04-02T03:00:00', 'temperature': 17.2}, {'datetime': '2018-04-02T04:00:00', 'temperature': 17.3}, {'datetime': '2018-04-02T05:00:00', 'temperature': 17.2}, {'datetime': '2018-04-02T06:00:00', 'temperature': 16.8}, {'datetime': '2018-04-02T07:00:00', 'temperature': 16.6}, {'datetime': '2018-04-02T08:00:00', 'temperature': 17.0}, {'datetime': '2018-04-02T09:00:00', 'temperature': 17.8}, {'datetime': '2018-04-02T10:00:00', 'temperature': 18.9}, {'datetime': '2018-04-02T11:00:00', 'temperature': 20.2}]

BOM
[NOTHING HERE]
fabaff commented 6 years ago

Not all platforms support the same data or features and they are not interchangeable. We don't say that they are and they will probably never be.

We only consume the data provided by the web services and do not process whatever we get. It's up to the user to decide what she/he wants to do.

I will close this as it's not a bug but more a feature request.