main
Home Assistant Weather Records
Store long-term weather records (such as high/low temperatures, maximum wind speed, and rainfall totals) in Home Assistant using standard helpers and automations.
Step One: Add Helper Files
Place weather_numbers.yaml and weather_datetimes.yaml in your main Home Assistant configuration directory (where your configuration.yaml is located).
Step Two: Configure configuration.yaml
Add the following include lines to your configuration.yaml so Home Assistant loads the required helpers:
input_number: !include weather_numbers.yaml
input_datetime: !include weather_datetimes.yaml
Step Three: Create Automations
- Use the 6 automation files
daily_high_low_temp.yamlday_wind_max.yamlrain_records.yamlset_rain_month.yamlset_rain_yesterday.yamltemp_wind_records.yamlto create 6 new automations. - Go to Settings > Automations & Scenes > Create Automation > Create New Automation in your Home Assistant UI.
- Click the three dots in the top right corner and select Edit in YAML.
- Replace with the contents of the respective automation file, paste it into the editor.
- Replace the placeholder sensor tags (e.g.,
<OUTDOOR TEMP SENSOR>) with your sensor entities. Can be done in YAML or GUI. - Where notifications are used, ensure that your correct method is selected, this is easier in the GUI.
- Save the automation.
Description
Store long term weather records in Home Assistant using helpers.
https://unknownuniverse.uk
71 KiB