Code Monkey home page Code Monkey logo

home_assistant_weather_data's Introduction

Weather data

Validate with hassfest GitHub Release hacs_badge

Replaces the old yr sensor.

Install it as a custom component or use https://hacs.xyz/docs/faq/custom_repositories.

To migrate from the old yr sensor, replace - platform: yr with - platform: weather_data. All sensor entities should be unchanged.

The weather_data platform uses met.no as a source for current meteorological data for your location. The weather forecast is delivered by the Norwegian Meteorological Institute and the NRK.

To add the weather data to your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
sensor:
  - platform: weather_data
name:
  description: Additional name for the sensors.
  required: false
  type: string
  default: yr
forecast:
  description: If you want to get forecast data instead of the current weather data, set this to the number of hours that you want to look into the future.
  required: false
  type: integer
monitored_conditions:
  description: Conditions to display in the frontend.
  required: false
  type: list
  default: symbol
  keys:
    symbol:
      description: A symbol for the current weather.
    temperature:
      description: The current temperature.
    humidity:
      description: The relative humidity.
    fog:
      description: Fog.
    pressure:
      description: The sea-level air pressure in millibars.
    precipitation:
      description: The precipitation.
    dewpointTemperature:
      description: The dew point temperature.
    windSpeed:
      description: The wind speed.
    windDirection:
      description: Where the wind is coming from in degrees, with true north at 0° and progressing clockwise.
    cloudiness:
      description: The cloudiness.
    lowClouds:
      description: Low cloud level.
    mediumClouds:
      description: Medium cloud level.
    highClouds:
      description: High cloud level.
latitude:
  description: Manually specify latitude.
  required: false
  type: float
  default: Provided by Home Assistant configuration.
longitude:
  description: Manually specify longitude.
  required: false
  type: float
  default: Provided by Home Assistant configuration.
altitude:
  description: Manually specify altitude.
  required: false
  type: float
  default: Provided by Home Assistant configuration.

A full configuration example can be found below:

# Example configuration.yaml entry
sensor:
  - platform: weather_data
    name: Weather
    forecast: 24
    monitored_conditions:
      - temperature
      - symbol
      - precipitation
      - windSpeed
      - pressure
      - windDirection
      - humidity
      - fog
      - cloudiness
      - lowClouds
      - mediumClouds
      - highClouds
      - dewpointTemperature

Support the developer

home_assistant_weather_data's People

Contributors

danielhiversen avatar gpongelli avatar olen avatar amedeebulle avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.