-
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwODg1MDMsIm5iZiI6MTczOTA4ODIwMywicGF0aCI6Ii8zNjE2MDAwNC8zNjUwNTA3NDYtNmVhMDExYTktMDE3ZC00ZjFlLTk3ZTAtYmMxM2M5MGI3Nzc3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDA4MDMyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYyMzE3OWIyOGY5YTEyYzk4OTRhNTYwZjQ1Yjg3MDg5NDUyOThkOTI3ZmQyNzlhNWJmNjEzM2U1YTgxOTdiMDcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ODY8nZw6duKRsQuHflhhQ5hPFde3Z9YvkHipOCoCpNs)
![](https://private-user-images.githubusercontent.com/36160004/365050975-1b6a4d6b-98e6-43ce-a3d2-4a4711e5e876.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwODg1MDMsIm5iZiI6MTczOTA4ODIwMywicGF0aCI6Ii8zNjE2MDAwNC8zNjUwNTA5NzUtMWI2YTRkNmItOThlNi00M2NlLWEzZDItNGE0NzExZTVlODc2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDA4MDMyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI3YTUxYjYwMDQxYzRlZjQ1MTM3YjU1YTQwNDlkZTA2OGU1YzVmYzAyZTg5OGFhMTViNTRmYzA5OTc4ZGM1OGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.pmP3Ena5jMwsFEn4sS7Un7sIoLp64rDQ0AqajzT-AMg)
![](https://private-user-images.githubusercontent.com/36160004/365051497-66de8e53-1d7f-436f-ae09-3f5323dcd6bf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwODg1MDMsIm5iZiI6MTczOTA4ODIwMywicGF0aCI6Ii8zNjE2MDAwNC8zNjUwNTE0OTctNjZkZThlNTMtMWQ3Zi00MzZmLWFlMDktM2Y1MzIzZGNkNmJmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDA4MDMyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZiODFiYjQxY2RiMGRmM2E1OGQ3ZTc4MTM4ZTgwODNlNDM0YWJiZTUwOTE1OWUzYjhlMmRhZGUyOTY4MzkyZTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.C4SkD4MAvmlEgsAsocw5AAifa4-tyDSK7sDe067XivQ)
![](https://private-user-images.githubusercontent.com/36160004/365051848-7fc41ae5-e945-44ca-a32c-812a0c1d88e9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwODg1MDMsIm5iZiI6MTczOTA4ODIwMywicGF0aCI6Ii8zNjE2MDAwNC8zNjUwNTE4NDgtN2ZjNDFhZTUtZTk0NS00NGNhLWEzMmMtODEyYTBjMWQ4OGU5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDA4MDMyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY0ZTE2YmM0ZmY1MzUyY2YyMWNlOTU3MjlmMmY0YjYxYjUwMWMwMTc2MzAyNjI1OTk5M2JjMDUzM2Q4OTliNzQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.lbOrlbmFiwpDXS7BzFFNijp-hYm-RMZMEKmMT1FhY5o)
To enable a smoother playback, you have to select "live" instead of "auto" for the camera_view in the picture-entity
card.