Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 107628

What does Met.no forecast daily show and how to store it

$
0
0

Hi all,
i made successfully and proudly work to add template-sensors for the Met.no weather forecast

template:
  - trigger:
      - trigger: time_pattern
        hours: 0
        minutes: 10
      - trigger: homeassistant
        event: start
    action:
      - action: weather.get_forecasts
        data:
          type: daily
        target:
          entity_id: weather.home
        response_variable: daily
    sensor:
      - name: Temperature forecast today
        unique_id: temperature_forecast_today
        state: "{{ daily['weather.home'].forecast[0].temperature }}"
        unit_of_measurement: °C
      - name: Temperature forecast tomorrow
        unique_id: temperature_forecast_tomorrow
        state: "{{ daily['weather.home'].forecast[1].temperature }}"
        unit_of_measurement: °C
      - name: Weather forecast tomorrow
        unique_id: weather_forecast_tomorrow
        state: "{{ daily['weather.home'].forecast[1] }}"

The two questions:

  1. What time period does the daily forecast give me?
  • +/- 12h or +24h or from 00:00 to 00:00?
  • What does the temperature say? Average? Max? Min?
  1. In my example above i try to store a whole forecast including all attributes in an entity which basically works but contains json in a sensor.entity … is it possible to store in a way to be able to use the attributes as im used to in the gui like it would be a true weather. entity?

Thank you all

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 107628

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>