-
Notifications
You must be signed in to change notification settings - Fork 14
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:
![](https://private-user-images.githubusercontent.com/36160004/365050746-6ea011a9-017d-4f1e-97e0-bc13c90b7777.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1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ei1EYXRlPTIwMjUwMjEzVDA5NDExMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUwODQ2NmFmN2Y0YjI3M2E4ZTU5OTFkOTM5M2RlNjdiNzRjYjJjZGQ2MTEzYjk0NTYwZDllOWU5NWEwNzM4YjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.NlRiMj-iXzIWW7x13WlJAMlJ27hgex6QMJOEeyum3VU)
![](https://private-user-images.githubusercontent.com/36160004/365051497-66de8e53-1d7f-436f-ae09-3f5323dcd6bf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0Mzk5NzAsIm5iZiI6MTczOTQzOTY3MCwicGF0aCI6Ii8zNjE2MDAwNC8zNjUwNTE0OTctNjZkZThlNTMtMWQ3Zi00MzZmLWFlMDktM2Y1MzIzZGNkNmJmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA5NDExMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJkYThjMWJjOWFmNzMwMzViM2MyYjVlYWExOTYxNmY5YjgwOWE3ZjgxYzAwYmE5Njc4ZGMyZjA4NjRjMWEyODAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.7RHvjK8_wieMRduI9gWF4Vjlu2D0yzM1ZPFhtHhERog)
![](https://private-user-images.githubusercontent.com/36160004/365051848-7fc41ae5-e945-44ca-a32c-812a0c1d88e9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0Mzk5NzAsIm5iZiI6MTczOTQzOTY3MCwicGF0aCI6Ii8zNjE2MDAwNC8zNjUwNTE4NDgtN2ZjNDFhZTUtZTk0NS00NGNhLWEzMmMtODEyYTBjMWQ4OGU5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA5NDExMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJkMmVhNWM5MWE1MWVlODE5MGZiNzlmZDQ2NDAwNjczYmI2NjcyMDgxMzBkMDczOWZkNmU4YThjNmJlNjU1ZjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._d1L5dPXu0Wjq2Csuc7oPWo3XRjTBA6Q5KdYRsBwv3A)
To enable a smoother playback, you have to select "live" instead of "auto" for the camera_view in the picture-entity
card.