-
Notifications
You must be signed in to change notification settings - Fork 13
Home
- How to get daily max/min values
- How to add a weather chart?
- The precipitation radar is not updated correctly
You have to insert this to your configuration.yaml
and replace the [[REPLACE WITH YOUR WEATHER ENTITY]]
with your station.
template:
- trigger:
- platform: time
at: "00:02:00"
- platform: homeassistant
event: start
- platform: event
event_type: event_template_reloaded
action:
- service: weather.get_forecasts
data:
type: daily
target:
entity_id: [[REPLACE WITH YOUR WEATHER ENTITY]]
response_variable: weather_data
sensor:
- name: "Max temp today"
unique_id: max_temp_today
state: >-
{{ weather_data['[[REPLACE WITH YOUR WEATHER ENTITY]]'].forecast[0].temperature }}
unit_of_measurement: "°C"
- name: "Min temp today"
unique_id: min_temp_today
state: >-
{{ weather_data['[[REPLACE WITH YOUR WEATHER ENTITY]]'].forecast[0].templow }}
unit_of_measurement: "°C"
This is usefull if you want to trigger an automation if the temperature will drop below a certain value in the next days.
You have to insert this to your configuration.yaml
and replace the [[REPLACE WITH YOUR WEATHER ENTITY]]
with your station and
replace the 5
in the template for your desired count of days.
template:
- trigger:
- platform: time
at: "00:02:00"
- platform: homeassistant
event: start
- platform: event
event_type: event_template_reloaded
action:
- service: weather.get_forecasts
data:
type: daily
target:
entity_id: [[REPLACE WITH YOUR WEATHER ENTITY]]
response_variable: weather_data
sensor:
- name: "Minimum temperature next days"
unique_id: min_temp_next_days
state: >-
{{ weather_data['[[REPLACE WITH YOUR WEATHER ENTITY]]'].forecast[:5] | map(attribute='templow')| min }}
unit_of_measurement: "°C"
You first have to configure a new entity, which is done by adding this integration again. You can use this link to go directly to the configuration:
In the following dialogue select to configure a map. After you have completed the configuration you now have a new camera entity which provides the images.
To show the image on your dashboard, add the camera entity in a picture-entity
card.
Example images:
To enable a smoother playback, you have to select "live" instead of "auto" for the camera_view in the picture-entity
card.