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:
- 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?
- In my example above i try to store a whole forecast including all attributes in an entity which basically works but contains
json
in asensor.
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 trueweather.
entity?
Thank you all
1 post - 1 participant